node-autotask 0.25.0 → 0.27.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 (49) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/MCP_TOOL_CATALOG.json +1063 -30
  3. package/MCP_TOOL_MANIFEST.md +82 -24
  4. package/N8N_MCP_MANIFEST.json +39 -8
  5. package/N8N_MCP_MANIFEST.md +9 -8
  6. package/README.md +11 -9
  7. package/capabilities.json +16956 -10596
  8. package/capabilities.schema.json +125 -0
  9. package/dist/capabilities.cjs +2 -2
  10. package/dist/capabilities.js +1 -1
  11. package/dist/{chunk-VUGZKP33.js → chunk-42ZUISDH.js} +997 -136
  12. package/dist/{chunk-WBMRACCV.cjs → chunk-5CC7LGNM.cjs} +16955 -10595
  13. package/dist/{chunk-Z5L7Q33V.cjs → chunk-5GGCSRT4.cjs} +947 -493
  14. package/dist/{chunk-EFR2XWRX.js → chunk-F7FVOXPQ.js} +16955 -10595
  15. package/dist/{chunk-XUB3S6AM.js → chunk-GURC52J7.js} +26 -2
  16. package/dist/{chunk-FKJ77K6Z.cjs → chunk-UHTZLUDE.cjs} +159 -135
  17. package/dist/{chunk-6PIJ6AZG.js → chunk-ZGTFVZL5.js} +478 -24
  18. package/dist/{chunk-2H7YI54B.cjs → chunk-ZJ4ONAQF.cjs} +1084 -223
  19. package/dist/{index-CZ94y401.d.ts → index-BIWy9m-a.d.ts} +414 -49
  20. package/dist/{index-C0OwQhon.d.cts → index-D4XYtn4s.d.cts} +414 -49
  21. package/dist/{index-BVtycq-6.d.cts → index-DQ9NgraW.d.cts} +322 -1
  22. package/dist/{index-BVtycq-6.d.ts → index-DQ9NgraW.d.ts} +322 -1
  23. package/dist/index.cjs +46 -24
  24. package/dist/index.d.cts +11 -5
  25. package/dist/index.d.ts +11 -5
  26. package/dist/index.js +28 -6
  27. package/dist/operations/index.cjs +147 -120
  28. package/dist/operations/index.d.cts +136 -7
  29. package/dist/operations/index.d.ts +136 -7
  30. package/dist/operations/index.js +33 -6
  31. package/dist/pool.cjs +42 -9
  32. package/dist/pool.d.cts +14 -3
  33. package/dist/pool.d.ts +14 -3
  34. package/dist/pool.js +38 -5
  35. package/dist/resources/index.cjs +21 -5
  36. package/dist/resources/index.d.cts +2 -2
  37. package/dist/resources/index.d.ts +2 -2
  38. package/dist/resources/index.js +20 -4
  39. package/dist/types/index.cjs +1 -1
  40. package/dist/types/index.d.cts +1 -1
  41. package/dist/types/index.d.ts +1 -1
  42. package/dist/types/index.js +1 -1
  43. package/docs/API.md +207 -9
  44. package/examples/mcp/schemas.ts +16 -7
  45. package/package.json +3 -3
  46. /package/dist/{chunk-FLB2X6O5.cjs → chunk-IXF7AKOJ.cjs} +0 -0
  47. /package/dist/{chunk-DMMMWO6A.js → chunk-RMG55JTF.js} +0 -0
  48. /package/dist/{chunk-IDPB4N2Q.cjs → chunk-SDYRQFGL.cjs} +0 -0
  49. /package/dist/{chunk-UPQIUWOS.js → chunk-WLTLB2ND.js} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CAPABILITIES
3
- } from "./chunk-EFR2XWRX.js";
3
+ } from "./chunk-F7FVOXPQ.js";
4
4
 
5
5
  // src/auth.ts
6
6
  var AUTH_HEADERS = {
@@ -583,6 +583,111 @@ var MoveRefusedError = class extends AutotaskError {
583
583
  }
584
584
  };
585
585
 
586
+ // src/cache.ts
587
+ var READ_CACHE_MAX_ENTRIES = 4096;
588
+ var ReadCache = class {
589
+ /** The configured TTL in ms (the fallback for resources without an override). */
590
+ ttlMs;
591
+ /** The per-resource TTL overrides (issue #32; absent = every resource uses `ttlMs`). */
592
+ perResourceTtlMs;
593
+ store = /* @__PURE__ */ new Map();
594
+ epochCounter = 0;
595
+ constructor(ttlMs, perResourceTtlMs) {
596
+ if (!Number.isInteger(ttlMs) || ttlMs <= 0) {
597
+ throw new AutotaskConfigError(`cache.ttlMs must be a positive integer (got ${ttlMs})`);
598
+ }
599
+ if (perResourceTtlMs !== void 0) {
600
+ if (perResourceTtlMs === null || typeof perResourceTtlMs !== "object" || Array.isArray(perResourceTtlMs)) {
601
+ throw new AutotaskConfigError(
602
+ `cache.perResourceTtlMs must be an object of resource key -> ms (got ${String(perResourceTtlMs)})`
603
+ );
604
+ }
605
+ for (const [key, value] of Object.entries(perResourceTtlMs)) {
606
+ if (key === "") {
607
+ throw new AutotaskConfigError("cache.perResourceTtlMs keys must be non-empty resource keys");
608
+ }
609
+ if (!Number.isInteger(value) || value <= 0) {
610
+ throw new AutotaskConfigError(
611
+ `cache.perResourceTtlMs.${key} must be a positive integer (got ${String(value)})`
612
+ );
613
+ }
614
+ }
615
+ }
616
+ this.ttlMs = ttlMs;
617
+ this.perResourceTtlMs = perResourceTtlMs;
618
+ }
619
+ /**
620
+ * The TTL (ms) for a resource plan key: the `perResourceTtlMs` override
621
+ * when the map is present and names the resource, else the base
622
+ * `ttlMs` (absent map, absent key, and `undefined` all fall back).
623
+ */
624
+ ttlFor(resource) {
625
+ if (resource !== void 0 && this.perResourceTtlMs !== void 0) {
626
+ const override = this.perResourceTtlMs[resource];
627
+ if (override !== void 0) return override;
628
+ }
629
+ return this.ttlMs;
630
+ }
631
+ /**
632
+ * Read-through lookup: the live entry's value, or `undefined` (absent OR
633
+ * expired — an expired entry is purged lazily on this read).
634
+ */
635
+ get(key) {
636
+ const entry = this.store.get(key);
637
+ if (entry === void 0) return void 0;
638
+ if (entry.expiresAt <= Date.now()) {
639
+ this.store.delete(key);
640
+ return void 0;
641
+ }
642
+ return structuredClone(entry.value);
643
+ }
644
+ /** Store a successful read payload under `key`, live for `ttlFor(resource)`:
645
+ * the per-resource override (issue #32) when named, else `ttlMs`.
646
+ * `epoch` is the invalidation epoch the caller captured BEFORE its wire
647
+ * read: a read that straddled a `clear()` (a write) is dropped, never
648
+ * re-stored with its pre-write body. */
649
+ set(key, value, resource, epoch = this.epochCounter) {
650
+ if (epoch !== this.epochCounter) return;
651
+ if (this.store.size >= READ_CACHE_MAX_ENTRIES && this.purgeExpired() === 0) {
652
+ const oldest = this.store.keys().next();
653
+ if (!oldest.done) this.store.delete(oldest.value);
654
+ }
655
+ this.store.delete(key);
656
+ this.store.set(key, { value: structuredClone(value), expiresAt: Date.now() + this.ttlFor(resource) });
657
+ }
658
+ /** Drop every expired entry (returns the number removed). */
659
+ purgeExpired() {
660
+ const now = Date.now();
661
+ let removed = 0;
662
+ for (const [key, entry] of this.store) {
663
+ if (entry.expiresAt <= now) {
664
+ this.store.delete(key);
665
+ removed += 1;
666
+ }
667
+ }
668
+ return removed;
669
+ }
670
+ /** Current entry count (live + not-yet-purged expired). */
671
+ get size() {
672
+ return this.store.size;
673
+ }
674
+ /** Drop one key (issue #36: a later positive outcome clears a stale 'absent' marker). */
675
+ delete(key) {
676
+ return this.store.delete(key);
677
+ }
678
+ /** The invalidation epoch: bumped by `clear()`; capture it before a wire
679
+ * read and pass it to `set` so a read in flight across a write cannot
680
+ * re-store its stale answer. */
681
+ get epoch() {
682
+ return this.epochCounter;
683
+ }
684
+ /** Drop everything (e.g. a caller that knows the tenant was reset). */
685
+ clear() {
686
+ this.epochCounter += 1;
687
+ this.store.clear();
688
+ }
689
+ };
690
+
586
691
  // src/config/zones.ts
587
692
  var ZONE_CATALOG = {
588
693
  "pre-release": "https://webservices2.autotask.net/atservicesrest",
@@ -689,6 +794,7 @@ var DEFAULT_PER_RESOURCE_TTL_MS = {
689
794
  "appointments": 3e5,
690
795
  "authenticate": 3e5,
691
796
  "billing_codes": 36e5,
797
+ "billing_item_approval_levels": 3e5,
692
798
  "billing_items": 3e5,
693
799
  "change_request_links": 3e5,
694
800
  "checklist_libraries": 3e5,
@@ -737,6 +843,7 @@ var DEFAULT_PER_RESOURCE_TTL_MS = {
737
843
  "contract_ticket_purchases": 3e5,
738
844
  "contracts": 3e5,
739
845
  "countries": 36e5,
846
+ "currencies": 3e5,
740
847
  "departments": 36e5,
741
848
  "domain_registrars": 3e5,
742
849
  "entity_information": 3e5,
@@ -746,12 +853,16 @@ var DEFAULT_PER_RESOURCE_TTL_MS = {
746
853
  "holiday_sets": 3e5,
747
854
  "holidays": 3e5,
748
855
  "inventory_products": 3e5,
856
+ "invoice_templates": 3e5,
749
857
  "invoices": 3e5,
750
858
  "modules": 3e5,
751
859
  "notification_history": 3e5,
752
860
  "opportunities": 3e5,
753
861
  "opportunity_attachments": 3e5,
754
862
  "opportunity_categories": 3e5,
863
+ "organizational_level1s": 3e5,
864
+ "organizational_level2s": 3e5,
865
+ "organizational_level_associations": 3e5,
755
866
  "phases": 36e5,
756
867
  "product_vendors": 3e5,
757
868
  "products": 3e5,
@@ -774,6 +885,7 @@ var DEFAULT_PER_RESOURCE_TTL_MS = {
774
885
  "resource_time_off_balances": 3e5,
775
886
  "resources": 3e5,
776
887
  "roles": 36e5,
888
+ "sales_orders": 3e5,
777
889
  "service_call_task_resources": 3e5,
778
890
  "service_call_tasks": 3e5,
779
891
  "service_call_ticket_resources": 3e5,
@@ -791,6 +903,7 @@ var DEFAULT_PER_RESOURCE_TTL_MS = {
791
903
  "tags": 3e5,
792
904
  "task_secondary_resources": 3e5,
793
905
  "tasks": 3e5,
906
+ "tax_regions": 3e5,
794
907
  "threshold_information": 3e5,
795
908
  "ticket_additional_configuration_items": 3e5,
796
909
  "ticket_additional_contacts": 3e5,
@@ -818,6 +931,7 @@ var DEFAULT_PER_RESOURCE_TTL_MS = {
818
931
  var RESOURCE_KEY_BY_PATH = {
819
932
  "/V1.0/Appointments": "appointments",
820
933
  "/V1.0/BillingCodes": "billing_codes",
934
+ "/V1.0/BillingItemApprovalLevels": "billing_item_approval_levels",
821
935
  "/V1.0/BillingItems": "billing_items",
822
936
  "/V1.0/ChangeRequestLinks": "change_request_links",
823
937
  "/V1.0/ChecklistLibraries": "checklist_libraries",
@@ -866,6 +980,7 @@ var RESOURCE_KEY_BY_PATH = {
866
980
  "/V1.0/ContractTicketPurchases": "contract_ticket_purchases",
867
981
  "/V1.0/Contracts": "contracts",
868
982
  "/V1.0/Countries": "countries",
983
+ "/V1.0/Currencies": "currencies",
869
984
  "/V1.0/Departments": "departments",
870
985
  "/V1.0/DomainRegistrars": "domain_registrars",
871
986
  "/V1.0/ExpenseItemAttachments": "expense_item_attachments",
@@ -874,11 +989,15 @@ var RESOURCE_KEY_BY_PATH = {
874
989
  "/V1.0/HolidaySets": "holiday_sets",
875
990
  "/V1.0/Holidays": "holidays",
876
991
  "/V1.0/InventoryProducts": "inventory_products",
992
+ "/V1.0/InvoiceTemplates": "invoice_templates",
877
993
  "/V1.0/Invoices": "invoices",
878
994
  "/V1.0/NotificationHistory": "notification_history",
879
995
  "/V1.0/Opportunities": "opportunities",
880
996
  "/V1.0/OpportunityAttachments": "opportunity_attachments",
881
997
  "/V1.0/OpportunityCategories": "opportunity_categories",
998
+ "/V1.0/OrganizationalLevel1s": "organizational_level1s",
999
+ "/V1.0/OrganizationalLevel2s": "organizational_level2s",
1000
+ "/V1.0/OrganizationalLevelAssociations": "organizational_level_associations",
882
1001
  "/V1.0/Phases": "phases",
883
1002
  "/V1.0/ProductVendors": "product_vendors",
884
1003
  "/V1.0/Products": "products",
@@ -901,6 +1020,7 @@ var RESOURCE_KEY_BY_PATH = {
901
1020
  "/V1.0/ResourceTimeOffBalances": "resource_time_off_balances",
902
1021
  "/V1.0/Resources": "resources",
903
1022
  "/V1.0/Roles": "roles",
1023
+ "/V1.0/SalesOrders": "sales_orders",
904
1024
  "/V1.0/ServiceCallTaskResources": "service_call_task_resources",
905
1025
  "/V1.0/ServiceCallTasks": "service_call_tasks",
906
1026
  "/V1.0/ServiceCallTicketResources": "service_call_ticket_resources",
@@ -918,6 +1038,7 @@ var RESOURCE_KEY_BY_PATH = {
918
1038
  "/V1.0/Tags": "tags",
919
1039
  "/V1.0/TaskSecondaryResources": "task_secondary_resources",
920
1040
  "/V1.0/Tasks": "tasks",
1041
+ "/V1.0/TaxRegions": "tax_regions",
921
1042
  "/V1.0/TicketAdditionalConfigurationItems": "ticket_additional_configuration_items",
922
1043
  "/V1.0/TicketAdditionalContacts": "ticket_additional_contacts",
923
1044
  "/V1.0/TicketAttachments": "ticket_attachments",
@@ -1245,111 +1366,6 @@ function cooldownDurationMs(retryAfterSecs, opts) {
1245
1366
  return Math.min(rawMs, opts.maxMs);
1246
1367
  }
1247
1368
 
1248
- // src/cache.ts
1249
- var READ_CACHE_MAX_ENTRIES = 4096;
1250
- var ReadCache = class {
1251
- /** The configured TTL in ms (the fallback for resources without an override). */
1252
- ttlMs;
1253
- /** The per-resource TTL overrides (issue #32; absent = every resource uses `ttlMs`). */
1254
- perResourceTtlMs;
1255
- store = /* @__PURE__ */ new Map();
1256
- epochCounter = 0;
1257
- constructor(ttlMs, perResourceTtlMs) {
1258
- if (!Number.isInteger(ttlMs) || ttlMs <= 0) {
1259
- throw new AutotaskConfigError(`cache.ttlMs must be a positive integer (got ${ttlMs})`);
1260
- }
1261
- if (perResourceTtlMs !== void 0) {
1262
- if (perResourceTtlMs === null || typeof perResourceTtlMs !== "object" || Array.isArray(perResourceTtlMs)) {
1263
- throw new AutotaskConfigError(
1264
- `cache.perResourceTtlMs must be an object of resource key -> ms (got ${String(perResourceTtlMs)})`
1265
- );
1266
- }
1267
- for (const [key, value] of Object.entries(perResourceTtlMs)) {
1268
- if (key === "") {
1269
- throw new AutotaskConfigError("cache.perResourceTtlMs keys must be non-empty resource keys");
1270
- }
1271
- if (!Number.isInteger(value) || value <= 0) {
1272
- throw new AutotaskConfigError(
1273
- `cache.perResourceTtlMs.${key} must be a positive integer (got ${String(value)})`
1274
- );
1275
- }
1276
- }
1277
- }
1278
- this.ttlMs = ttlMs;
1279
- this.perResourceTtlMs = perResourceTtlMs;
1280
- }
1281
- /**
1282
- * The TTL (ms) for a resource plan key: the `perResourceTtlMs` override
1283
- * when the map is present and names the resource, else the base
1284
- * `ttlMs` (absent map, absent key, and `undefined` all fall back).
1285
- */
1286
- ttlFor(resource) {
1287
- if (resource !== void 0 && this.perResourceTtlMs !== void 0) {
1288
- const override = this.perResourceTtlMs[resource];
1289
- if (override !== void 0) return override;
1290
- }
1291
- return this.ttlMs;
1292
- }
1293
- /**
1294
- * Read-through lookup: the live entry's value, or `undefined` (absent OR
1295
- * expired — an expired entry is purged lazily on this read).
1296
- */
1297
- get(key) {
1298
- const entry = this.store.get(key);
1299
- if (entry === void 0) return void 0;
1300
- if (entry.expiresAt <= Date.now()) {
1301
- this.store.delete(key);
1302
- return void 0;
1303
- }
1304
- return structuredClone(entry.value);
1305
- }
1306
- /** Store a successful read payload under `key`, live for `ttlFor(resource)`:
1307
- * the per-resource override (issue #32) when named, else `ttlMs`.
1308
- * `epoch` is the invalidation epoch the caller captured BEFORE its wire
1309
- * read: a read that straddled a `clear()` (a write) is dropped, never
1310
- * re-stored with its pre-write body. */
1311
- set(key, value, resource, epoch = this.epochCounter) {
1312
- if (epoch !== this.epochCounter) return;
1313
- if (this.store.size >= READ_CACHE_MAX_ENTRIES && this.purgeExpired() === 0) {
1314
- const oldest = this.store.keys().next();
1315
- if (!oldest.done) this.store.delete(oldest.value);
1316
- }
1317
- this.store.delete(key);
1318
- this.store.set(key, { value: structuredClone(value), expiresAt: Date.now() + this.ttlFor(resource) });
1319
- }
1320
- /** Drop every expired entry (returns the number removed). */
1321
- purgeExpired() {
1322
- const now = Date.now();
1323
- let removed = 0;
1324
- for (const [key, entry] of this.store) {
1325
- if (entry.expiresAt <= now) {
1326
- this.store.delete(key);
1327
- removed += 1;
1328
- }
1329
- }
1330
- return removed;
1331
- }
1332
- /** Current entry count (live + not-yet-purged expired). */
1333
- get size() {
1334
- return this.store.size;
1335
- }
1336
- /** Drop one key (issue #36: a later positive outcome clears a stale 'absent' marker). */
1337
- delete(key) {
1338
- return this.store.delete(key);
1339
- }
1340
- /** The invalidation epoch: bumped by `clear()`; capture it before a wire
1341
- * read and pass it to `set` so a read in flight across a write cannot
1342
- * re-store its stale answer. */
1343
- get epoch() {
1344
- return this.epochCounter;
1345
- }
1346
- /** Drop everything (e.g. a caller that knows the tenant was reset). */
1347
- clear() {
1348
- this.epochCounter += 1;
1349
- this.store.clear();
1350
- }
1351
- };
1352
-
1353
1369
  // src/resourceNameCache.ts
1354
1370
  var RESOURCE_NAME_CACHE_MAX_ENTRIES = 1024;
1355
1371
  var RESOURCE_NAME_CACHE_BLIND_TTL_MS = 6e4;
@@ -1833,12 +1849,10 @@ function resolveResolution(config, agent) {
1833
1849
  }
1834
1850
  function resolveCaches(config) {
1835
1851
  const cacheBlock = config.cache === false || config.cache === void 0 ? void 0 : config.cache;
1852
+ resolveReadCacheStore(cacheBlock);
1836
1853
  const fieldCacheBlock = config.fieldCache === false || config.fieldCache === void 0 ? void 0 : config.fieldCache;
1837
1854
  const resourceNameCacheBlock = config.resourceNameCache === false || config.resourceNameCache === void 0 ? void 0 : config.resourceNameCache;
1838
- const readCache = config.cache === false ? void 0 : new ReadCache(
1839
- cacheBlock?.ttlMs ?? DEFAULT_READ_CACHE_TTL_MS,
1840
- { ...DEFAULT_PER_RESOURCE_TTL_MS, ...cacheBlock?.perResourceTtlMs }
1841
- );
1855
+ const readCache = config.cache === false ? void 0 : cacheBlock?.store ?? buildReadCache(config);
1842
1856
  const fieldCache = config.fieldCache === false ? void 0 : new FieldCache(
1843
1857
  fieldCacheBlock?.ttlMs ?? DEFAULT_FIELD_CACHE_TTL_MS,
1844
1858
  fieldCacheBlock?.maxEntities ?? FIELD_CACHE_MAX_ENTITIES
@@ -1849,6 +1863,27 @@ function resolveCaches(config) {
1849
1863
  );
1850
1864
  return { readCache, fieldCache, resourceNameCache };
1851
1865
  }
1866
+ function resolveReadCacheStore(cacheBlock) {
1867
+ if (cacheBlock === void 0 || cacheBlock === false || cacheBlock.store === void 0) return;
1868
+ if (!(cacheBlock.store instanceof ReadCache)) {
1869
+ throw new AutotaskConfigError(
1870
+ "cache.store must be a ReadCache instance (import { ReadCache } from the SDK; the pool supplies its own)"
1871
+ );
1872
+ }
1873
+ if (cacheBlock.ttlMs !== void 0 || cacheBlock.perResourceTtlMs !== void 0) {
1874
+ throw new AutotaskConfigError(
1875
+ "cache.store cannot be combined with cache.ttlMs or cache.perResourceTtlMs \u2014 the supplied ReadCache instance owns its TTLs"
1876
+ );
1877
+ }
1878
+ }
1879
+ function buildReadCache(config) {
1880
+ if (config.cache === false) return void 0;
1881
+ const cacheBlock = config.cache === void 0 ? void 0 : config.cache;
1882
+ return new ReadCache(
1883
+ cacheBlock?.ttlMs ?? DEFAULT_READ_CACHE_TTL_MS,
1884
+ { ...DEFAULT_PER_RESOURCE_TTL_MS, ...cacheBlock?.perResourceTtlMs }
1885
+ );
1886
+ }
1852
1887
  function resolveConfig(config) {
1853
1888
  if (config === null || typeof config !== "object") {
1854
1889
  throw new AutotaskConfigError("AutotaskConfig is required");
@@ -2353,6 +2388,52 @@ var RELATIONSHIP_MAP = {
2353
2388
  "deleteBoundary": null,
2354
2389
  "markerField": null
2355
2390
  },
2391
+ "billing_item_approval_levels": {
2392
+ "resource": "billing_item_approval_levels",
2393
+ "apiEntity": "BillingItemApprovalLevel",
2394
+ "kind": "entity",
2395
+ "path": "BillingItemApprovalLevels",
2396
+ "parentScoped": false,
2397
+ "tier": "extended",
2398
+ "workflowResource": false,
2399
+ "group": "B",
2400
+ "parent": null,
2401
+ "children": [],
2402
+ "naturalKeys": {
2403
+ "hasSearch": false,
2404
+ "searchCovers": null,
2405
+ "findBy": []
2406
+ },
2407
+ "blindSurfaces": null,
2408
+ "zoneFacts": {
2409
+ "createGuidance": {
2410
+ "createOp": "billing_item_approval_levels.create",
2411
+ "parentScoped": false,
2412
+ "liveProvenPrefix": [],
2413
+ "unproven": true,
2414
+ "blocker": {
2415
+ "kind": "unknown",
2416
+ "message": "never live-probed: this entity reached the plan on 2026-10-26 (feat/time-entry-approve) after the stage-11 apply matrix closed, so no create has been attempted against a tenant. The vendor documents the conditions (timeEntryID and approvalResourceID must reference existing objects) and the side effect (TimeEntry.BillingApprovalLevelMostRecent is updated; approvalDateTime / approvalResourceID are not), but the acceptance of the model body is unverified.",
2417
+ "remedy": "attempt one create against a time entry in a non-production tenant (dry-run first), then promote createGuidance to kind ok with its liveProvenPrefix; a refusal arrives as a vendor 500 whose errors[] text names the failing field."
2418
+ },
2419
+ "vendorEvidence": [
2420
+ 'Vendor help, BillingItemApprovalLevels entity page (fetched 2026-10-26): "describes a multi-level approval record for an Autotask time entry ... This option is only available through the REST API."',
2421
+ 'Vendor help, BillingItemApprovalLevels entity page (fetched 2026-10-26): "When the BillingItemApprovalLevels entity is created, the TimeEntry.BillingApprovalLevelMostRecent field is updated, but approvalDateTime and approvalResourceID are not. Instead, the approvalDateTime and approvalResourceID fields are editable on the TimeEntry entity. Workaround: ... create the BillingItemApprovalLevel and then follow that call up with an update to the TimeEntry to set the BillingApprovalDateTime and BillingApprovalResourceID fields."',
2422
+ "api-docs.json: POST /V1.0/BillingItemApprovalLevels consumes definitions.BillingItemApprovalLevelModel and answers OperationResultModel \u2014 the entity defines no PUT, PATCH or DELETE path."
2423
+ ],
2424
+ "deleteBoundary": {
2425
+ "available": false,
2426
+ "note": "the vendor defines no DELETE for billing_item_approval_levels (spec-derived) \u2014 an approval level cannot be removed or corrected through the API; record cleanup is UI-only."
2427
+ },
2428
+ "zone": "ww29"
2429
+ }
2430
+ },
2431
+ "deleteBoundary": {
2432
+ "note": "the vendor defines no DELETE for billing_item_approval_levels (spec-derived: the vendored api-docs.json defines no DELETE on the entity's paths) \u2014 an approval level cannot be removed or corrected through the API; record cleanup is UI-only.",
2433
+ "proof": "spec-derived"
2434
+ },
2435
+ "markerField": null
2436
+ },
2356
2437
  "billing_items": {
2357
2438
  "resource": "billing_items",
2358
2439
  "apiEntity": "BillingItems",
@@ -5076,8 +5157,8 @@ var RELATIONSHIP_MAP = {
5076
5157
  "unproven": false,
5077
5158
  "blocker": {
5078
5159
  "kind": "ok",
5079
- "message": "live-PROVEN 2026-10-06 (confirm-100, marker CONF100-1791187382): the W-A6 'blind parent' was companyID \u2014 an OWNED company satisfies it (seed 30132785). Proven contractType values: 1, 3 (Fixed Price), 4 (Block hours), 6 (Retainer), 7 (Recurring Services), 8 (PerTicket incident); type 5 is an invalid picklist value. Type-specific extra fields: types 1/3/4/6/8 require estimatedRevenue (type 1 additionally estimatedHours + estimatedCost); type 7 additionally contractPeriodType (2 valid) + setupFee. Proven ids 30131842-30131847 (residue \u2014 no vendor DELETE for contracts).",
5080
- "remedy": "live-proven on ww29 2026-10-06 (confirm-100, marker CONF100-1791187382) \u2014 use the proven body / type gates from the message; residue records are ledgered (.run/confirm-100-20261006/CONFIRMATION-LEDGER.md section E; UI cleanup)"
5160
+ "message": "live-PROVEN 2026-10-06 (confirm-100, marker CONF100-1791187382): the W-A6 'blind parent' was companyID \u2014 an OWNED company satisfies it (seed 30132785). Proven contractType values: 1, 3 (Fixed Price), 4 (Block hours), 6 (Retainer), 7 (Recurring Services), 8 (PerTicket incident). The type-conditioned field gates are declared in requiresByValue / rejectedValues on this row (issue #219 N3) \u2014 they are no longer restated in prose here. Proven ids 30131842-30131847 (residue \u2014 no vendor DELETE for contracts).",
5161
+ "remedy": "live-proven on ww29 2026-10-06 (confirm-100, marker CONF100-1791187382) \u2014 send the body with the contractType you need and satisfy that value's requiresByValue gate (plus the contractPeriodType value it names); residue records are ledgered (.run/confirm-100-20261006/CONFIRMATION-LEDGER.md section E; UI cleanup)"
5081
5162
  },
5082
5163
  "vendorEvidence": [
5083
5164
  '{"error":true,"code":"SERVER_ERROR","category":"server","retryable":true,"httpStatus":500,"operation":"contracts.create","suggestedAction":"Retry with backoff; the server error is transient.","correlationId":"25d4a730-6d6c-49ff-a038-96d3fd09165d","message":"Value does not exist for the required fiel',
@@ -5087,7 +5168,75 @@ var RELATIONSHIP_MAP = {
5087
5168
  "available": false,
5088
5169
  "note": "the vendor defines no DELETE for contracts (spec-derived: the vendored api-docs.json defines no DELETE on the entity's paths) \u2014 a create cannot be undone through the API; cleanup is UI-only."
5089
5170
  },
5090
- "zone": "ww29"
5171
+ "zone": "ww29",
5172
+ "requiresByValue": [
5173
+ {
5174
+ "field": "contractType",
5175
+ "value": 1,
5176
+ "requires": {
5177
+ "allOf": [
5178
+ "estimatedRevenue",
5179
+ "estimatedHours",
5180
+ "estimatedCost"
5181
+ ]
5182
+ }
5183
+ },
5184
+ {
5185
+ "field": "contractType",
5186
+ "value": 3,
5187
+ "requires": {
5188
+ "allOf": [
5189
+ "estimatedRevenue"
5190
+ ]
5191
+ }
5192
+ },
5193
+ {
5194
+ "field": "contractType",
5195
+ "value": 4,
5196
+ "requires": {
5197
+ "allOf": [
5198
+ "estimatedRevenue"
5199
+ ]
5200
+ }
5201
+ },
5202
+ {
5203
+ "field": "contractType",
5204
+ "value": 6,
5205
+ "requires": {
5206
+ "allOf": [
5207
+ "estimatedRevenue"
5208
+ ]
5209
+ }
5210
+ },
5211
+ {
5212
+ "field": "contractType",
5213
+ "value": 7,
5214
+ "requires": {
5215
+ "allOf": [
5216
+ "contractPeriodType",
5217
+ "setupFee"
5218
+ ]
5219
+ },
5220
+ "values": {
5221
+ "contractPeriodType": 2
5222
+ }
5223
+ },
5224
+ {
5225
+ "field": "contractType",
5226
+ "value": 8,
5227
+ "requires": {
5228
+ "allOf": [
5229
+ "estimatedRevenue"
5230
+ ]
5231
+ }
5232
+ }
5233
+ ],
5234
+ "rejectedValues": [
5235
+ {
5236
+ "field": "contractType",
5237
+ "value": 5
5238
+ }
5239
+ ]
5091
5240
  }
5092
5241
  },
5093
5242
  "deleteBoundary": {
@@ -5117,6 +5266,27 @@ var RELATIONSHIP_MAP = {
5117
5266
  "deleteBoundary": null,
5118
5267
  "markerField": null
5119
5268
  },
5269
+ "currencies": {
5270
+ "resource": "currencies",
5271
+ "apiEntity": "Currency",
5272
+ "kind": "entity",
5273
+ "path": "Currencies",
5274
+ "parentScoped": false,
5275
+ "tier": "advanced",
5276
+ "workflowResource": false,
5277
+ "group": "B",
5278
+ "parent": null,
5279
+ "children": [],
5280
+ "naturalKeys": {
5281
+ "hasSearch": true,
5282
+ "searchCovers": "name only (contains)",
5283
+ "findBy": []
5284
+ },
5285
+ "blindSurfaces": null,
5286
+ "zoneFacts": null,
5287
+ "deleteBoundary": null,
5288
+ "markerField": null
5289
+ },
5120
5290
  "departments": {
5121
5291
  "resource": "departments",
5122
5292
  "apiEntity": "Department",
@@ -5504,6 +5674,27 @@ var RELATIONSHIP_MAP = {
5504
5674
  "deleteBoundary": null,
5505
5675
  "markerField": null
5506
5676
  },
5677
+ "invoice_templates": {
5678
+ "resource": "invoice_templates",
5679
+ "apiEntity": "InvoiceTemplate",
5680
+ "kind": "entity",
5681
+ "path": "InvoiceTemplates",
5682
+ "parentScoped": false,
5683
+ "tier": "advanced",
5684
+ "workflowResource": false,
5685
+ "group": "B",
5686
+ "parent": null,
5687
+ "children": [],
5688
+ "naturalKeys": {
5689
+ "hasSearch": false,
5690
+ "searchCovers": null,
5691
+ "findBy": []
5692
+ },
5693
+ "blindSurfaces": null,
5694
+ "zoneFacts": null,
5695
+ "deleteBoundary": null,
5696
+ "markerField": null
5697
+ },
5507
5698
  "invoices": {
5508
5699
  "resource": "invoices",
5509
5700
  "apiEntity": "Invoice",
@@ -5694,6 +5885,138 @@ var RELATIONSHIP_MAP = {
5694
5885
  "deleteBoundary": null,
5695
5886
  "markerField": null
5696
5887
  },
5888
+ "organizational_level1s": {
5889
+ "resource": "organizational_level1s",
5890
+ "apiEntity": "OrganizationalLevel1",
5891
+ "kind": "entity",
5892
+ "path": "OrganizationalLevel1s",
5893
+ "parentScoped": false,
5894
+ "tier": "advanced",
5895
+ "workflowResource": false,
5896
+ "group": "B",
5897
+ "parent": null,
5898
+ "children": [],
5899
+ "naturalKeys": {
5900
+ "hasSearch": false,
5901
+ "searchCovers": null,
5902
+ "findBy": []
5903
+ },
5904
+ "blindSurfaces": null,
5905
+ "zoneFacts": {
5906
+ "createGuidance": {
5907
+ "createOp": "organizational_level1s.create",
5908
+ "parentScoped": false,
5909
+ "liveProvenPrefix": [],
5910
+ "unproven": true,
5911
+ "blocker": {
5912
+ "kind": "unknown",
5913
+ "message": "never live-probed: this entity reached the plan on 2026-10-26 (feat/guidance-contract-027) after the stage-11 apply matrix closed, so no create has been attempted against a tenant. The vendor documents the model body (definitions.OrganizationalLevel1Model) and answers OperationResultModel, but acceptance of the body is unverified; the spec defines no DELETE on the entity's paths.",
5914
+ "remedy": "attempt one create against a non-production tenant (dry-run first), then promote createGuidance to kind ok with its liveProvenPrefix; a refusal arrives as a vendor 500 whose errors[] text names the failing field."
5915
+ },
5916
+ "vendorEvidence": [
5917
+ "api-docs.json: POST /V1.0/OrganizationalLevel1s consumes definitions.OrganizationalLevel1Model and answers OperationResultModel \u2014 the entity defines no DELETE path."
5918
+ ],
5919
+ "deleteBoundary": {
5920
+ "available": false,
5921
+ "note": "the vendor defines no DELETE for organizational_level1s (spec-derived) \u2014 a record cannot be removed or corrected through the API; cleanup is UI-only."
5922
+ },
5923
+ "zone": "ww29"
5924
+ }
5925
+ },
5926
+ "deleteBoundary": {
5927
+ "note": "the vendor defines no DELETE for organizational_level1s (spec-derived: the vendored api-docs.json defines no DELETE on the entity's paths) \u2014 a create cannot be undone through the API; cleanup is UI-only.",
5928
+ "proof": "spec-derived"
5929
+ },
5930
+ "markerField": null
5931
+ },
5932
+ "organizational_level2s": {
5933
+ "resource": "organizational_level2s",
5934
+ "apiEntity": "OrganizationalLevel2",
5935
+ "kind": "entity",
5936
+ "path": "OrganizationalLevel2s",
5937
+ "parentScoped": false,
5938
+ "tier": "advanced",
5939
+ "workflowResource": false,
5940
+ "group": "B",
5941
+ "parent": null,
5942
+ "children": [],
5943
+ "naturalKeys": {
5944
+ "hasSearch": false,
5945
+ "searchCovers": null,
5946
+ "findBy": []
5947
+ },
5948
+ "blindSurfaces": null,
5949
+ "zoneFacts": {
5950
+ "createGuidance": {
5951
+ "createOp": "organizational_level2s.create",
5952
+ "parentScoped": false,
5953
+ "liveProvenPrefix": [],
5954
+ "unproven": true,
5955
+ "blocker": {
5956
+ "kind": "unknown",
5957
+ "message": "never live-probed: this entity reached the plan on 2026-10-26 (feat/guidance-contract-027) after the stage-11 apply matrix closed, so no create has been attempted against a tenant. The vendor documents the model body (definitions.OrganizationalLevel2Model) and answers OperationResultModel, but acceptance of the body is unverified; the spec defines no DELETE on the entity's paths.",
5958
+ "remedy": "attempt one create against a non-production tenant (dry-run first), then promote createGuidance to kind ok with its liveProvenPrefix; a refusal arrives as a vendor 500 whose errors[] text names the failing field."
5959
+ },
5960
+ "vendorEvidence": [
5961
+ "api-docs.json: POST /V1.0/OrganizationalLevel2s consumes definitions.OrganizationalLevel2Model and answers OperationResultModel \u2014 the entity defines no DELETE path."
5962
+ ],
5963
+ "deleteBoundary": {
5964
+ "available": false,
5965
+ "note": "the vendor defines no DELETE for organizational_level2s (spec-derived) \u2014 a record cannot be removed or corrected through the API; cleanup is UI-only."
5966
+ },
5967
+ "zone": "ww29"
5968
+ }
5969
+ },
5970
+ "deleteBoundary": {
5971
+ "note": "the vendor defines no DELETE for organizational_level2s (spec-derived: the vendored api-docs.json defines no DELETE on the entity's paths) \u2014 a create cannot be undone through the API; cleanup is UI-only.",
5972
+ "proof": "spec-derived"
5973
+ },
5974
+ "markerField": null
5975
+ },
5976
+ "organizational_level_associations": {
5977
+ "resource": "organizational_level_associations",
5978
+ "apiEntity": "OrganizationalLevelAssociation",
5979
+ "kind": "entity",
5980
+ "path": "OrganizationalLevelAssociations",
5981
+ "parentScoped": false,
5982
+ "tier": "advanced",
5983
+ "workflowResource": false,
5984
+ "group": "B",
5985
+ "parent": null,
5986
+ "children": [],
5987
+ "naturalKeys": {
5988
+ "hasSearch": false,
5989
+ "searchCovers": null,
5990
+ "findBy": []
5991
+ },
5992
+ "blindSurfaces": null,
5993
+ "zoneFacts": {
5994
+ "createGuidance": {
5995
+ "createOp": "organizational_level_associations.create",
5996
+ "parentScoped": false,
5997
+ "liveProvenPrefix": [],
5998
+ "unproven": true,
5999
+ "blocker": {
6000
+ "kind": "unknown",
6001
+ "message": "never live-probed: this entity reached the plan on 2026-10-26 (feat/guidance-contract-027) after the stage-11 apply matrix closed, so no create has been attempted against a tenant. The vendor documents the model body (definitions.OrganizationalLevelAssociationModel) and answers OperationResultModel, but acceptance of the body is unverified; the spec defines no DELETE on the entity's paths.",
6002
+ "remedy": "attempt one create against a non-production tenant (dry-run first), then promote createGuidance to kind ok with its liveProvenPrefix; a refusal arrives as a vendor 500 whose errors[] text names the failing field."
6003
+ },
6004
+ "vendorEvidence": [
6005
+ "api-docs.json: POST /V1.0/OrganizationalLevelAssociations consumes definitions.OrganizationalLevelAssociationModel and answers OperationResultModel \u2014 the entity defines no DELETE path."
6006
+ ],
6007
+ "deleteBoundary": {
6008
+ "available": false,
6009
+ "note": "the vendor defines no DELETE for organizational_level_associations (spec-derived) \u2014 a record cannot be removed or corrected through the API; cleanup is UI-only."
6010
+ },
6011
+ "zone": "ww29"
6012
+ }
6013
+ },
6014
+ "deleteBoundary": {
6015
+ "note": "the vendor defines no DELETE for organizational_level_associations (spec-derived: the vendored api-docs.json defines no DELETE on the entity's paths) \u2014 a create cannot be undone through the API; cleanup is UI-only.",
6016
+ "proof": "spec-derived"
6017
+ },
6018
+ "markerField": null
6019
+ },
5697
6020
  "product_vendors": {
5698
6021
  "resource": "product_vendors",
5699
6022
  "apiEntity": "ProductVendors",
@@ -5846,7 +6169,13 @@ var RELATIONSHIP_MAP = {
5846
6169
  "blocker": {
5847
6170
  "kind": "blind-parent",
5848
6171
  "message": "vendor 500 (stage-11 apply-matrix, marker FULL100W-1791110339): the create consumed the vendor field ladder and then failed on the parent reference \u2014 the parent table is blind (0 rows) for this API user, so no valid parent id exists to satisfy it (W-A6). The exact final vendor response is preserved verbatim in vendorEvidence (campaign receipt artifact, as recorded on disk).",
5849
- "remedy": "provision a parent record in the Autotask UI first \u2014 the projects table is blind (0 rows) for this API user (W-A6), so no valid parent id can be read back; then retry the create with the real parent id."
6172
+ "remedy": "provision a parent record in the Autotask UI first \u2014 the projects table is blind (0 rows) for this API user (W-A6), so no valid parent id can be read back; then retry the create with the real parent id.",
6173
+ "requires": {
6174
+ "anyOf": [
6175
+ "productID",
6176
+ "billingCodeID"
6177
+ ]
6178
+ }
5850
6179
  },
5851
6180
  "vendorEvidence": [
5852
6181
  '{"error":true,"code":"SERVER_ERROR","category":"server","retryable":true,"httpStatus":500,"operation":"project_charges.create","suggestedAction":"Retry with backoff; the server error is transient.","correlationId":"664ab2ea-408f-4834-a331-eb5dd55ac557","message":"A productID or a billingCodeID must '
@@ -6919,6 +7248,27 @@ var RELATIONSHIP_MAP = {
6919
7248
  },
6920
7249
  "markerField": "name"
6921
7250
  },
7251
+ "sales_orders": {
7252
+ "resource": "sales_orders",
7253
+ "apiEntity": "SalesOrder",
7254
+ "kind": "entity",
7255
+ "path": "SalesOrders",
7256
+ "parentScoped": false,
7257
+ "tier": "extended",
7258
+ "workflowResource": false,
7259
+ "group": "B",
7260
+ "parent": null,
7261
+ "children": [],
7262
+ "naturalKeys": {
7263
+ "hasSearch": false,
7264
+ "searchCovers": null,
7265
+ "findBy": []
7266
+ },
7267
+ "blindSurfaces": null,
7268
+ "zoneFacts": null,
7269
+ "deleteBoundary": null,
7270
+ "markerField": null
7271
+ },
6922
7272
  "service_call_task_resources": {
6923
7273
  "resource": "service_call_task_resources",
6924
7274
  "apiEntity": "ServiceCallTaskResource",
@@ -7577,26 +7927,70 @@ var RELATIONSHIP_MAP = {
7577
7927
  "blindSurfaces": null,
7578
7928
  "zoneFacts": {
7579
7929
  "createGuidance": {
7580
- "createOp": "task_secondary_resources.create",
7581
- "parentScoped": true,
7930
+ "createOp": "task_secondary_resources.create",
7931
+ "parentScoped": true,
7932
+ "liveProvenPrefix": [],
7933
+ "unproven": true,
7934
+ "blocker": {
7935
+ "kind": "unknown",
7936
+ "message": "vendor 500: reference rejection on r (exact vendor text preserved verbatim in vendorEvidence \u2014 campaign receipt artifact, as recorded on disk)",
7937
+ "remedy": "the wall is opaque in the campaign record \u2014 inspect vendorEvidence for the exact vendor text, re-run the create with a live probe (dry-run first), and adjudicate against the vendored spec before retrying."
7938
+ },
7939
+ "vendorEvidence": [
7940
+ '{"error":true,"code":"SERVER_ERROR","category":"server","retryable":true,"httpStatus":500,"operation":"task_secondary_resources.create","suggestedAction":"Retry with backoff; the server error is transient.","correlationId":"d2783d1d-b23a-4c7d-9459-0089be7f9b0b","message":"Reference value on field: r'
7941
+ ],
7942
+ "deleteBoundary": {
7943
+ "available": true,
7944
+ "note": null
7945
+ },
7946
+ "zone": "ww29"
7947
+ }
7948
+ },
7949
+ "deleteBoundary": null,
7950
+ "markerField": null
7951
+ },
7952
+ "tax_regions": {
7953
+ "resource": "tax_regions",
7954
+ "apiEntity": "TaxRegion",
7955
+ "kind": "entity",
7956
+ "path": "TaxRegions",
7957
+ "parentScoped": false,
7958
+ "tier": "advanced",
7959
+ "workflowResource": false,
7960
+ "group": "B",
7961
+ "parent": null,
7962
+ "children": [],
7963
+ "naturalKeys": {
7964
+ "hasSearch": false,
7965
+ "searchCovers": null,
7966
+ "findBy": []
7967
+ },
7968
+ "blindSurfaces": null,
7969
+ "zoneFacts": {
7970
+ "createGuidance": {
7971
+ "createOp": "tax_regions.create",
7972
+ "parentScoped": false,
7582
7973
  "liveProvenPrefix": [],
7583
7974
  "unproven": true,
7584
7975
  "blocker": {
7585
7976
  "kind": "unknown",
7586
- "message": "vendor 500: reference rejection on r (exact vendor text preserved verbatim in vendorEvidence \u2014 campaign receipt artifact, as recorded on disk)",
7587
- "remedy": "the wall is opaque in the campaign record \u2014 inspect vendorEvidence for the exact vendor text, re-run the create with a live probe (dry-run first), and adjudicate against the vendored spec before retrying."
7977
+ "message": "never live-probed: this entity reached the plan on 2026-10-26 (feat/guidance-contract-027) after the stage-11 apply matrix closed, so no create has been attempted against a tenant. The vendor documents the model body (definitions.TaxRegionModel) and answers OperationResultModel, but acceptance of the body is unverified; the spec defines no DELETE on the entity's paths.",
7978
+ "remedy": "attempt one create against a non-production tenant (dry-run first), then promote createGuidance to kind ok with its liveProvenPrefix; a refusal arrives as a vendor 500 whose errors[] text names the failing field."
7588
7979
  },
7589
7980
  "vendorEvidence": [
7590
- '{"error":true,"code":"SERVER_ERROR","category":"server","retryable":true,"httpStatus":500,"operation":"task_secondary_resources.create","suggestedAction":"Retry with backoff; the server error is transient.","correlationId":"d2783d1d-b23a-4c7d-9459-0089be7f9b0b","message":"Reference value on field: r'
7981
+ "api-docs.json: POST /V1.0/TaxRegions consumes definitions.TaxRegionModel and answers OperationResultModel \u2014 the entity defines no DELETE path."
7591
7982
  ],
7592
7983
  "deleteBoundary": {
7593
- "available": true,
7594
- "note": null
7984
+ "available": false,
7985
+ "note": "the vendor defines no DELETE for tax_regions (spec-derived) \u2014 a record cannot be removed or corrected through the API; cleanup is UI-only."
7595
7986
  },
7596
7987
  "zone": "ww29"
7597
7988
  }
7598
7989
  },
7599
- "deleteBoundary": null,
7990
+ "deleteBoundary": {
7991
+ "note": "the vendor defines no DELETE for tax_regions (spec-derived: the vendored api-docs.json defines no DELETE on the entity's paths) \u2014 a create cannot be undone through the API; cleanup is UI-only.",
7992
+ "proof": "spec-derived"
7993
+ },
7600
7994
  "markerField": null
7601
7995
  },
7602
7996
  "ticket_additional_configuration_items": {
@@ -7888,7 +8282,13 @@ var RELATIONSHIP_MAP = {
7888
8282
  "blocker": {
7889
8283
  "kind": "blind-parent",
7890
8284
  "message": "vendor 500 (stage-11 apply-matrix, marker FULL100W-1791110339): the create consumed the vendor field ladder and then failed on the parent reference \u2014 the parent table is blind (0 rows) for this API user, so no valid parent id exists to satisfy it (W-A6). The exact final vendor response is preserved verbatim in vendorEvidence (campaign receipt artifact, as recorded on disk).",
7891
- "remedy": "provision a parent record in the Autotask UI first \u2014 the tickets table is blind (0 rows) for this API user (W-A6), so no valid parent id can be read back; then retry the create with the real parent id."
8285
+ "remedy": "provision a parent record in the Autotask UI first \u2014 the tickets table is blind (0 rows) for this API user (W-A6), so no valid parent id can be read back; then retry the create with the real parent id.",
8286
+ "requires": {
8287
+ "anyOf": [
8288
+ "productID",
8289
+ "billingCodeID"
8290
+ ]
8291
+ }
7892
8292
  },
7893
8293
  "vendorEvidence": [
7894
8294
  '{"error":true,"code":"SERVER_ERROR","category":"server","retryable":true,"httpStatus":500,"operation":"ticket_charges.create","suggestedAction":"Retry with backoff; the server error is transient.","correlationId":"b9b6939b-ccc5-4e9d-9ea2-e2f47d064f63","message":"A productID or a billingCodeID must b'
@@ -8954,6 +9354,7 @@ var BLIND_SURFACE_STAMPS = {
8954
9354
  }
8955
9355
  };
8956
9356
  var DELETE_BOUNDARY_NOTES = {
9357
+ "billing_item_approval_levels": "the vendor defines no DELETE for billing_item_approval_levels (spec-derived: the vendored api-docs.json defines no DELETE on the entity's paths) \u2014 an approval level cannot be removed or corrected through the API; record cleanup is UI-only.",
8957
9358
  "companies": "the vendor defines no DELETE for companies (spec-derived: the vendored api-docs.json defines no DELETE on the entity's paths) \u2014 a create cannot be undone through the API; cleanup is UI-only.",
8958
9359
  "company_notes": "the vendor defines no DELETE for company_notes (spec-derived: the vendored api-docs.json defines no DELETE on the entity's paths) \u2014 a create cannot be undone through the API; cleanup is UI-only.",
8959
9360
  "configuration_item_categories": "the vendor defines no DELETE for configuration_item_categories (spec-derived: the vendored api-docs.json defines no DELETE on the entity's paths) \u2014 a create cannot be undone through the API; cleanup is UI-only.",
@@ -8977,6 +9378,9 @@ var DELETE_BOUNDARY_NOTES = {
8977
9378
  "expense_items": "the vendor defines no DELETE for expense_items (spec-derived: the vendored api-docs.json defines no DELETE on the entity's paths) \u2014 a create cannot be undone through the API; cleanup is UI-only.",
8978
9379
  "expense_reports": "the vendor defines no DELETE for expense_reports (spec-derived: the vendored api-docs.json defines no DELETE on the entity's paths) \u2014 a create cannot be undone through the API; cleanup is UI-only.",
8979
9380
  "opportunities": "the vendor defines no DELETE for opportunities (spec-derived: the vendored api-docs.json defines no DELETE on the entity's paths) \u2014 a create cannot be undone through the API; cleanup is UI-only.",
9381
+ "organizational_level1s": "the vendor defines no DELETE for organizational_level1s (spec-derived: the vendored api-docs.json defines no DELETE on the entity's paths) \u2014 a create cannot be undone through the API; cleanup is UI-only.",
9382
+ "organizational_level2s": "the vendor defines no DELETE for organizational_level2s (spec-derived: the vendored api-docs.json defines no DELETE on the entity's paths) \u2014 a create cannot be undone through the API; cleanup is UI-only.",
9383
+ "organizational_level_associations": "the vendor defines no DELETE for organizational_level_associations (spec-derived: the vendored api-docs.json defines no DELETE on the entity's paths) \u2014 a create cannot be undone through the API; cleanup is UI-only.",
8980
9384
  "phases": "the vendor defines no DELETE for phases (spec-derived: the vendored api-docs.json defines no DELETE on the entity's paths) \u2014 a create cannot be undone through the API; cleanup is UI-only.",
8981
9385
  "product_vendors": "the vendor defines no DELETE for product_vendors (spec-derived: the vendored api-docs.json defines no DELETE on the entity's paths) \u2014 a create cannot be undone through the API; cleanup is UI-only.",
8982
9386
  "products": "the vendor defines no DELETE for products (spec-derived: the vendored api-docs.json defines no DELETE on the entity's paths) \u2014 a create cannot be undone through the API; cleanup is UI-only.",
@@ -8991,6 +9395,7 @@ var DELETE_BOUNDARY_NOTES = {
8991
9395
  "roles": "the vendor defines no DELETE for roles (spec-derived: the vendored api-docs.json defines no DELETE on the entity's paths) \u2014 a create cannot be undone through the API; cleanup is UI-only.",
8992
9396
  "services": "the vendor defines no DELETE for services (spec-derived: the vendored api-docs.json defines no DELETE on the entity's paths) \u2014 a create cannot be undone through the API; cleanup is UI-only.",
8993
9397
  "tasks": "the vendor defines no DELETE for tasks (spec-derived: the vendored api-docs.json defines no DELETE on the entity's paths) \u2014 a create cannot be undone through the API; cleanup is UI-only.",
9398
+ "tax_regions": "the vendor defines no DELETE for tax_regions (spec-derived: the vendored api-docs.json defines no DELETE on the entity's paths) \u2014 a create cannot be undone through the API; cleanup is UI-only.",
8994
9399
  "ticket_checklist_libraries": "the vendor defines no DELETE for ticket_checklist_libraries (spec-derived: the vendored api-docs.json defines no DELETE on the entity's paths) \u2014 a create cannot be undone through the API; cleanup is UI-only.",
8995
9400
  "ticket_notes": "the vendor defines no DELETE for ticket_notes (spec-derived: the vendored api-docs.json defines no DELETE on the entity's paths) \u2014 a create cannot be undone through the API; cleanup is UI-only.",
8996
9401
  "tickets": "the vendor defines no DELETE for tickets (spec-derived: the vendored api-docs.json defines no DELETE on the entity's paths) \u2014 a create cannot be undone through the API; cleanup is UI-only."
@@ -10492,6 +10897,18 @@ var BLIND_SURFACE_INVENTORY = {
10492
10897
  "note": "billing_codes count/query are pinned blind in this zone (plan.blindSurfaces pin, byte-identical sentinel) \u2014 the discovery sweep confirmed 0 rows unfiltered (limit-2 read, marker FULL100-SEED-1791096521); get(id) is the authority.",
10493
10898
  "proof": "live-verified"
10494
10899
  },
10900
+ {
10901
+ "resource": "billing_item_approval_levels",
10902
+ "ops": [
10903
+ "count",
10904
+ "query"
10905
+ ],
10906
+ "kind": "unknown",
10907
+ "unfilteredRows": null,
10908
+ "authority": "billing_item_approval_levels.get",
10909
+ "note": "billing_item_approval_levels was added to the plan on 2026-10-26 (feat/time-entry-approve) and has NEVER been swept \u2014 no discovery read has run against this zone, so the surface is unverified, not blind. get(id) is the authority for a specific record; query by timeEntryID is the intended read.",
10910
+ "proof": "spec-derived"
10911
+ },
10495
10912
  {
10496
10913
  "resource": "billing_items",
10497
10914
  "ops": [
@@ -11044,6 +11461,18 @@ var BLIND_SURFACE_INVENTORY = {
11044
11461
  "note": "ww29 discovery sweep (marker FULL100-SEED-1791096521, 2026-10-04): the unfiltered limit-2 read returned 0 rows \u2014 INCONCLUSIVE (tenant-empty-for-user vs blind for this API user; a 0/empty result here proves nothing). countries.get is the authority for a specific record.",
11045
11462
  "proof": "discovery-sweep"
11046
11463
  },
11464
+ {
11465
+ "resource": "currencies",
11466
+ "ops": [
11467
+ "count",
11468
+ "query"
11469
+ ],
11470
+ "kind": "unknown",
11471
+ "unfilteredRows": null,
11472
+ "authority": "currencies.get",
11473
+ "note": "Not swept: currencies was added after the ww29 discovery sweep, so no unfiltered read has been made for any tenant. Whether this API user sees currency rows through count/query is unknown; currencies.get is the authority for a specific record.",
11474
+ "proof": "spec-derived"
11475
+ },
11047
11476
  {
11048
11477
  "resource": "departments",
11049
11478
  "ops": [
@@ -11140,6 +11569,18 @@ var BLIND_SURFACE_INVENTORY = {
11140
11569
  "note": "ww29 discovery sweep (marker FULL100-SEED-1791096521, 2026-10-04): the unfiltered limit-2 read returned 1 row(s) \u2014 data-full for this API user (unfiltered reads are safe here; no blind class assigned).",
11141
11570
  "proof": "discovery-sweep"
11142
11571
  },
11572
+ {
11573
+ "resource": "invoice_templates",
11574
+ "ops": [
11575
+ "count",
11576
+ "query"
11577
+ ],
11578
+ "kind": "unknown",
11579
+ "unfilteredRows": null,
11580
+ "authority": "invoice_templates.get",
11581
+ "note": "invoice_templates was added to the plan on 2026-10-26 (feat/guidance-contract-027) and has NEVER been swept \u2014 no discovery read has run against this zone, so the surface is unverified, not blind. get(id) is the authority for a specific record.",
11582
+ "proof": "spec-derived"
11583
+ },
11143
11584
  {
11144
11585
  "resource": "invoices",
11145
11586
  "ops": [
@@ -11200,6 +11641,42 @@ var BLIND_SURFACE_INVENTORY = {
11200
11641
  "note": "ww29 discovery sweep (marker FULL100-SEED-1791096521, 2026-10-04): the unfiltered limit-2 read returned 2 row(s) \u2014 data-full for this API user (unfiltered reads are safe here; no blind class assigned).",
11201
11642
  "proof": "discovery-sweep"
11202
11643
  },
11644
+ {
11645
+ "resource": "organizational_level1s",
11646
+ "ops": [
11647
+ "count",
11648
+ "query"
11649
+ ],
11650
+ "kind": "unknown",
11651
+ "unfilteredRows": null,
11652
+ "authority": "organizational_level1s.get",
11653
+ "note": "organizational_level1s was added to the plan on 2026-10-26 (feat/guidance-contract-027) and has NEVER been swept \u2014 no discovery read has run against this zone, so the surface is unverified, not blind. get(id) is the authority for a specific record.",
11654
+ "proof": "spec-derived"
11655
+ },
11656
+ {
11657
+ "resource": "organizational_level2s",
11658
+ "ops": [
11659
+ "count",
11660
+ "query"
11661
+ ],
11662
+ "kind": "unknown",
11663
+ "unfilteredRows": null,
11664
+ "authority": "organizational_level2s.get",
11665
+ "note": "organizational_level2s was added to the plan on 2026-10-26 (feat/guidance-contract-027) and has NEVER been swept \u2014 no discovery read has run against this zone, so the surface is unverified, not blind. get(id) is the authority for a specific record.",
11666
+ "proof": "spec-derived"
11667
+ },
11668
+ {
11669
+ "resource": "organizational_level_associations",
11670
+ "ops": [
11671
+ "count",
11672
+ "query"
11673
+ ],
11674
+ "kind": "unknown",
11675
+ "unfilteredRows": null,
11676
+ "authority": "organizational_level_associations.get",
11677
+ "note": "organizational_level_associations was added to the plan on 2026-10-26 (feat/guidance-contract-027) and has NEVER been swept \u2014 no discovery read has run against this zone, so the surface is unverified, not blind. get(id) is the authority for a specific record.",
11678
+ "proof": "spec-derived"
11679
+ },
11203
11680
  {
11204
11681
  "resource": "phases",
11205
11682
  "ops": [
@@ -11440,6 +11917,18 @@ var BLIND_SURFACE_INVENTORY = {
11440
11917
  "note": "ww29 discovery sweep (marker FULL100-SEED-1791096521, 2026-10-04): the unfiltered limit-2 read returned 2 row(s) \u2014 data-full for this API user (unfiltered reads are safe here; no blind class assigned).",
11441
11918
  "proof": "discovery-sweep"
11442
11919
  },
11920
+ {
11921
+ "resource": "sales_orders",
11922
+ "ops": [
11923
+ "count",
11924
+ "query"
11925
+ ],
11926
+ "kind": "unknown",
11927
+ "unfilteredRows": null,
11928
+ "authority": "sales_orders.get",
11929
+ "note": "sales_orders was added to the plan on 2026-10-26 (feat/guidance-contract-027) and has NEVER been swept \u2014 no discovery read has run against this zone, so the surface is unverified, not blind. get(id) is the authority for a specific record.",
11930
+ "proof": "spec-derived"
11931
+ },
11443
11932
  {
11444
11933
  "resource": "service_call_task_resources",
11445
11934
  "ops": [
@@ -11644,6 +12133,18 @@ var BLIND_SURFACE_INVENTORY = {
11644
12133
  "note": "ww29 discovery sweep (marker FULL100-SEED-1791096521, 2026-10-04): the unfiltered limit-2 read returned 2 row(s) \u2014 data-full for this API user (unfiltered reads are safe here; no blind class assigned).",
11645
12134
  "proof": "discovery-sweep"
11646
12135
  },
12136
+ {
12137
+ "resource": "tax_regions",
12138
+ "ops": [
12139
+ "count",
12140
+ "query"
12141
+ ],
12142
+ "kind": "unknown",
12143
+ "unfilteredRows": null,
12144
+ "authority": "tax_regions.get",
12145
+ "note": "tax_regions was added to the plan on 2026-10-26 (feat/guidance-contract-027) and has NEVER been swept \u2014 no discovery read has run against this zone, so the surface is unverified, not blind. get(id) is the authority for a specific record.",
12146
+ "proof": "spec-derived"
12147
+ },
11647
12148
  {
11648
12149
  "resource": "ticket_additional_configuration_items",
11649
12150
  "ops": [
@@ -11862,7 +12363,7 @@ var BLIND_SURFACE_INVENTORY = {
11862
12363
  }
11863
12364
  ],
11864
12365
  "counts": {
11865
- "total": 116,
12366
+ "total": 124,
11866
12367
  "dataFull": 46,
11867
12368
  "blind": 69,
11868
12369
  "pinned": 6
@@ -11932,6 +12433,7 @@ var REACHABILITY_PROBE_DEFAULTS = {
11932
12433
  "defaultTargets": [
11933
12434
  "appointments",
11934
12435
  "billing_codes",
12436
+ "billing_item_approval_levels",
11935
12437
  "billing_items",
11936
12438
  "change_request_links",
11937
12439
  "classification_icons",
@@ -11964,10 +12466,15 @@ var REACHABILITY_PROBE_DEFAULTS = {
11964
12466
  "contract_ticket_purchases",
11965
12467
  "contracts",
11966
12468
  "countries",
12469
+ "currencies",
11967
12470
  "expense_items",
11968
12471
  "expense_reports",
12472
+ "invoice_templates",
11969
12473
  "invoices",
11970
12474
  "notification_history",
12475
+ "organizational_level1s",
12476
+ "organizational_level2s",
12477
+ "organizational_level_associations",
11971
12478
  "product_vendors",
11972
12479
  "products",
11973
12480
  "project_charges",
@@ -11982,6 +12489,7 @@ var REACHABILITY_PROBE_DEFAULTS = {
11982
12489
  "resource_roles",
11983
12490
  "resource_skills",
11984
12491
  "resources",
12492
+ "sales_orders",
11985
12493
  "service_call_task_resources",
11986
12494
  "service_call_tasks",
11987
12495
  "service_call_ticket_resources",
@@ -11991,6 +12499,7 @@ var REACHABILITY_PROBE_DEFAULTS = {
11991
12499
  "skills",
11992
12500
  "subscription_periods",
11993
12501
  "subscriptions",
12502
+ "tax_regions",
11994
12503
  "ticket_change_request_approvals",
11995
12504
  "ticket_charges",
11996
12505
  "ticket_history",
@@ -12031,6 +12540,28 @@ var CREATE_GUIDANCE = {
12031
12540
  },
12032
12541
  "zone": "ww29"
12033
12542
  },
12543
+ {
12544
+ "resource": "billing_item_approval_levels",
12545
+ "createOp": "billing_item_approval_levels.create",
12546
+ "parentScoped": false,
12547
+ "liveProvenPrefix": [],
12548
+ "unproven": true,
12549
+ "blocker": {
12550
+ "kind": "unknown",
12551
+ "message": "never live-probed: this entity reached the plan on 2026-10-26 (feat/time-entry-approve) after the stage-11 apply matrix closed, so no create has been attempted against a tenant. The vendor documents the conditions (timeEntryID and approvalResourceID must reference existing objects) and the side effect (TimeEntry.BillingApprovalLevelMostRecent is updated; approvalDateTime / approvalResourceID are not), but the acceptance of the model body is unverified.",
12552
+ "remedy": "attempt one create against a time entry in a non-production tenant (dry-run first), then promote createGuidance to kind ok with its liveProvenPrefix; a refusal arrives as a vendor 500 whose errors[] text names the failing field."
12553
+ },
12554
+ "vendorEvidence": [
12555
+ 'Vendor help, BillingItemApprovalLevels entity page (fetched 2026-10-26): "describes a multi-level approval record for an Autotask time entry ... This option is only available through the REST API."',
12556
+ 'Vendor help, BillingItemApprovalLevels entity page (fetched 2026-10-26): "When the BillingItemApprovalLevels entity is created, the TimeEntry.BillingApprovalLevelMostRecent field is updated, but approvalDateTime and approvalResourceID are not. Instead, the approvalDateTime and approvalResourceID fields are editable on the TimeEntry entity. Workaround: ... create the BillingItemApprovalLevel and then follow that call up with an update to the TimeEntry to set the BillingApprovalDateTime and BillingApprovalResourceID fields."',
12557
+ "api-docs.json: POST /V1.0/BillingItemApprovalLevels consumes definitions.BillingItemApprovalLevelModel and answers OperationResultModel \u2014 the entity defines no PUT, PATCH or DELETE path."
12558
+ ],
12559
+ "deleteBoundary": {
12560
+ "available": false,
12561
+ "note": "the vendor defines no DELETE for billing_item_approval_levels (spec-derived) \u2014 an approval level cannot be removed or corrected through the API; record cleanup is UI-only."
12562
+ },
12563
+ "zone": "ww29"
12564
+ },
12034
12565
  {
12035
12566
  "resource": "change_request_links",
12036
12567
  "createOp": "change_request_links.create",
@@ -12962,8 +13493,8 @@ var CREATE_GUIDANCE = {
12962
13493
  "unproven": false,
12963
13494
  "blocker": {
12964
13495
  "kind": "ok",
12965
- "message": "live-PROVEN 2026-10-06 (confirm-100, marker CONF100-1791187382): the W-A6 'blind parent' was companyID \u2014 an OWNED company satisfies it (seed 30132785). Proven contractType values: 1, 3 (Fixed Price), 4 (Block hours), 6 (Retainer), 7 (Recurring Services), 8 (PerTicket incident); type 5 is an invalid picklist value. Type-specific extra fields: types 1/3/4/6/8 require estimatedRevenue (type 1 additionally estimatedHours + estimatedCost); type 7 additionally contractPeriodType (2 valid) + setupFee. Proven ids 30131842-30131847 (residue \u2014 no vendor DELETE for contracts).",
12966
- "remedy": "live-proven on ww29 2026-10-06 (confirm-100, marker CONF100-1791187382) \u2014 use the proven body / type gates from the message; residue records are ledgered (.run/confirm-100-20261006/CONFIRMATION-LEDGER.md section E; UI cleanup)"
13496
+ "message": "live-PROVEN 2026-10-06 (confirm-100, marker CONF100-1791187382): the W-A6 'blind parent' was companyID \u2014 an OWNED company satisfies it (seed 30132785). Proven contractType values: 1, 3 (Fixed Price), 4 (Block hours), 6 (Retainer), 7 (Recurring Services), 8 (PerTicket incident). The type-conditioned field gates are declared in requiresByValue / rejectedValues on this row (issue #219 N3) \u2014 they are no longer restated in prose here. Proven ids 30131842-30131847 (residue \u2014 no vendor DELETE for contracts).",
13497
+ "remedy": "live-proven on ww29 2026-10-06 (confirm-100, marker CONF100-1791187382) \u2014 send the body with the contractType you need and satisfy that value's requiresByValue gate (plus the contractPeriodType value it names); residue records are ledgered (.run/confirm-100-20261006/CONFIRMATION-LEDGER.md section E; UI cleanup)"
12967
13498
  },
12968
13499
  "vendorEvidence": [
12969
13500
  '{"error":true,"code":"SERVER_ERROR","category":"server","retryable":true,"httpStatus":500,"operation":"contracts.create","suggestedAction":"Retry with backoff; the server error is transient.","correlationId":"25d4a730-6d6c-49ff-a038-96d3fd09165d","message":"Value does not exist for the required fiel',
@@ -12973,7 +13504,75 @@ var CREATE_GUIDANCE = {
12973
13504
  "available": false,
12974
13505
  "note": "the vendor defines no DELETE for contracts (spec-derived: the vendored api-docs.json defines no DELETE on the entity's paths) \u2014 a create cannot be undone through the API; cleanup is UI-only."
12975
13506
  },
12976
- "zone": "ww29"
13507
+ "zone": "ww29",
13508
+ "requiresByValue": [
13509
+ {
13510
+ "field": "contractType",
13511
+ "value": 1,
13512
+ "requires": {
13513
+ "allOf": [
13514
+ "estimatedRevenue",
13515
+ "estimatedHours",
13516
+ "estimatedCost"
13517
+ ]
13518
+ }
13519
+ },
13520
+ {
13521
+ "field": "contractType",
13522
+ "value": 3,
13523
+ "requires": {
13524
+ "allOf": [
13525
+ "estimatedRevenue"
13526
+ ]
13527
+ }
13528
+ },
13529
+ {
13530
+ "field": "contractType",
13531
+ "value": 4,
13532
+ "requires": {
13533
+ "allOf": [
13534
+ "estimatedRevenue"
13535
+ ]
13536
+ }
13537
+ },
13538
+ {
13539
+ "field": "contractType",
13540
+ "value": 6,
13541
+ "requires": {
13542
+ "allOf": [
13543
+ "estimatedRevenue"
13544
+ ]
13545
+ }
13546
+ },
13547
+ {
13548
+ "field": "contractType",
13549
+ "value": 7,
13550
+ "requires": {
13551
+ "allOf": [
13552
+ "contractPeriodType",
13553
+ "setupFee"
13554
+ ]
13555
+ },
13556
+ "values": {
13557
+ "contractPeriodType": 2
13558
+ }
13559
+ },
13560
+ {
13561
+ "field": "contractType",
13562
+ "value": 8,
13563
+ "requires": {
13564
+ "allOf": [
13565
+ "estimatedRevenue"
13566
+ ]
13567
+ }
13568
+ }
13569
+ ],
13570
+ "rejectedValues": [
13571
+ {
13572
+ "field": "contractType",
13573
+ "value": 5
13574
+ }
13575
+ ]
12977
13576
  },
12978
13577
  {
12979
13578
  "resource": "departments",
@@ -13219,6 +13818,66 @@ var CREATE_GUIDANCE = {
13219
13818
  },
13220
13819
  "zone": "ww29"
13221
13820
  },
13821
+ {
13822
+ "resource": "organizational_level1s",
13823
+ "createOp": "organizational_level1s.create",
13824
+ "parentScoped": false,
13825
+ "liveProvenPrefix": [],
13826
+ "unproven": true,
13827
+ "blocker": {
13828
+ "kind": "unknown",
13829
+ "message": "never live-probed: this entity reached the plan on 2026-10-26 (feat/guidance-contract-027) after the stage-11 apply matrix closed, so no create has been attempted against a tenant. The vendor documents the model body (definitions.OrganizationalLevel1Model) and answers OperationResultModel, but acceptance of the body is unverified; the spec defines no DELETE on the entity's paths.",
13830
+ "remedy": "attempt one create against a non-production tenant (dry-run first), then promote createGuidance to kind ok with its liveProvenPrefix; a refusal arrives as a vendor 500 whose errors[] text names the failing field."
13831
+ },
13832
+ "vendorEvidence": [
13833
+ "api-docs.json: POST /V1.0/OrganizationalLevel1s consumes definitions.OrganizationalLevel1Model and answers OperationResultModel \u2014 the entity defines no DELETE path."
13834
+ ],
13835
+ "deleteBoundary": {
13836
+ "available": false,
13837
+ "note": "the vendor defines no DELETE for organizational_level1s (spec-derived) \u2014 a record cannot be removed or corrected through the API; cleanup is UI-only."
13838
+ },
13839
+ "zone": "ww29"
13840
+ },
13841
+ {
13842
+ "resource": "organizational_level2s",
13843
+ "createOp": "organizational_level2s.create",
13844
+ "parentScoped": false,
13845
+ "liveProvenPrefix": [],
13846
+ "unproven": true,
13847
+ "blocker": {
13848
+ "kind": "unknown",
13849
+ "message": "never live-probed: this entity reached the plan on 2026-10-26 (feat/guidance-contract-027) after the stage-11 apply matrix closed, so no create has been attempted against a tenant. The vendor documents the model body (definitions.OrganizationalLevel2Model) and answers OperationResultModel, but acceptance of the body is unverified; the spec defines no DELETE on the entity's paths.",
13850
+ "remedy": "attempt one create against a non-production tenant (dry-run first), then promote createGuidance to kind ok with its liveProvenPrefix; a refusal arrives as a vendor 500 whose errors[] text names the failing field."
13851
+ },
13852
+ "vendorEvidence": [
13853
+ "api-docs.json: POST /V1.0/OrganizationalLevel2s consumes definitions.OrganizationalLevel2Model and answers OperationResultModel \u2014 the entity defines no DELETE path."
13854
+ ],
13855
+ "deleteBoundary": {
13856
+ "available": false,
13857
+ "note": "the vendor defines no DELETE for organizational_level2s (spec-derived) \u2014 a record cannot be removed or corrected through the API; cleanup is UI-only."
13858
+ },
13859
+ "zone": "ww29"
13860
+ },
13861
+ {
13862
+ "resource": "organizational_level_associations",
13863
+ "createOp": "organizational_level_associations.create",
13864
+ "parentScoped": false,
13865
+ "liveProvenPrefix": [],
13866
+ "unproven": true,
13867
+ "blocker": {
13868
+ "kind": "unknown",
13869
+ "message": "never live-probed: this entity reached the plan on 2026-10-26 (feat/guidance-contract-027) after the stage-11 apply matrix closed, so no create has been attempted against a tenant. The vendor documents the model body (definitions.OrganizationalLevelAssociationModel) and answers OperationResultModel, but acceptance of the body is unverified; the spec defines no DELETE on the entity's paths.",
13870
+ "remedy": "attempt one create against a non-production tenant (dry-run first), then promote createGuidance to kind ok with its liveProvenPrefix; a refusal arrives as a vendor 500 whose errors[] text names the failing field."
13871
+ },
13872
+ "vendorEvidence": [
13873
+ "api-docs.json: POST /V1.0/OrganizationalLevelAssociations consumes definitions.OrganizationalLevelAssociationModel and answers OperationResultModel \u2014 the entity defines no DELETE path."
13874
+ ],
13875
+ "deleteBoundary": {
13876
+ "available": false,
13877
+ "note": "the vendor defines no DELETE for organizational_level_associations (spec-derived) \u2014 a record cannot be removed or corrected through the API; cleanup is UI-only."
13878
+ },
13879
+ "zone": "ww29"
13880
+ },
13222
13881
  {
13223
13882
  "resource": "phases",
13224
13883
  "createOp": "phases.create",
@@ -13300,7 +13959,13 @@ var CREATE_GUIDANCE = {
13300
13959
  "blocker": {
13301
13960
  "kind": "blind-parent",
13302
13961
  "message": "vendor 500 (stage-11 apply-matrix, marker FULL100W-1791110339): the create consumed the vendor field ladder and then failed on the parent reference \u2014 the parent table is blind (0 rows) for this API user, so no valid parent id exists to satisfy it (W-A6). The exact final vendor response is preserved verbatim in vendorEvidence (campaign receipt artifact, as recorded on disk).",
13303
- "remedy": "provision a parent record in the Autotask UI first \u2014 the projects table is blind (0 rows) for this API user (W-A6), so no valid parent id can be read back; then retry the create with the real parent id."
13962
+ "remedy": "provision a parent record in the Autotask UI first \u2014 the projects table is blind (0 rows) for this API user (W-A6), so no valid parent id can be read back; then retry the create with the real parent id.",
13963
+ "requires": {
13964
+ "anyOf": [
13965
+ "productID",
13966
+ "billingCodeID"
13967
+ ]
13968
+ }
13304
13969
  },
13305
13970
  "vendorEvidence": [
13306
13971
  '{"error":true,"code":"SERVER_ERROR","category":"server","retryable":true,"httpStatus":500,"operation":"project_charges.create","suggestedAction":"Retry with backoff; the server error is transient.","correlationId":"664ab2ea-408f-4834-a331-eb5dd55ac557","message":"A productID or a billingCodeID must '
@@ -13804,6 +14469,26 @@ var CREATE_GUIDANCE = {
13804
14469
  },
13805
14470
  "zone": "ww29"
13806
14471
  },
14472
+ {
14473
+ "resource": "tax_regions",
14474
+ "createOp": "tax_regions.create",
14475
+ "parentScoped": false,
14476
+ "liveProvenPrefix": [],
14477
+ "unproven": true,
14478
+ "blocker": {
14479
+ "kind": "unknown",
14480
+ "message": "never live-probed: this entity reached the plan on 2026-10-26 (feat/guidance-contract-027) after the stage-11 apply matrix closed, so no create has been attempted against a tenant. The vendor documents the model body (definitions.TaxRegionModel) and answers OperationResultModel, but acceptance of the body is unverified; the spec defines no DELETE on the entity's paths.",
14481
+ "remedy": "attempt one create against a non-production tenant (dry-run first), then promote createGuidance to kind ok with its liveProvenPrefix; a refusal arrives as a vendor 500 whose errors[] text names the failing field."
14482
+ },
14483
+ "vendorEvidence": [
14484
+ "api-docs.json: POST /V1.0/TaxRegions consumes definitions.TaxRegionModel and answers OperationResultModel \u2014 the entity defines no DELETE path."
14485
+ ],
14486
+ "deleteBoundary": {
14487
+ "available": false,
14488
+ "note": "the vendor defines no DELETE for tax_regions (spec-derived) \u2014 a record cannot be removed or corrected through the API; cleanup is UI-only."
14489
+ },
14490
+ "zone": "ww29"
14491
+ },
13807
14492
  {
13808
14493
  "resource": "ticket_additional_configuration_items",
13809
14494
  "createOp": "ticket_additional_configuration_items.create",
@@ -13909,7 +14594,13 @@ var CREATE_GUIDANCE = {
13909
14594
  "blocker": {
13910
14595
  "kind": "blind-parent",
13911
14596
  "message": "vendor 500 (stage-11 apply-matrix, marker FULL100W-1791110339): the create consumed the vendor field ladder and then failed on the parent reference \u2014 the parent table is blind (0 rows) for this API user, so no valid parent id exists to satisfy it (W-A6). The exact final vendor response is preserved verbatim in vendorEvidence (campaign receipt artifact, as recorded on disk).",
13912
- "remedy": "provision a parent record in the Autotask UI first \u2014 the tickets table is blind (0 rows) for this API user (W-A6), so no valid parent id can be read back; then retry the create with the real parent id."
14597
+ "remedy": "provision a parent record in the Autotask UI first \u2014 the tickets table is blind (0 rows) for this API user (W-A6), so no valid parent id can be read back; then retry the create with the real parent id.",
14598
+ "requires": {
14599
+ "anyOf": [
14600
+ "productID",
14601
+ "billingCodeID"
14602
+ ]
14603
+ }
13913
14604
  },
13914
14605
  "vendorEvidence": [
13915
14606
  '{"error":true,"code":"SERVER_ERROR","category":"server","retryable":true,"httpStatus":500,"operation":"ticket_charges.create","suggestedAction":"Retry with backoff; the server error is transient.","correlationId":"b9b6939b-ccc5-4e9d-9ea2-e2f47d064f63","message":"A productID or a billingCodeID must b'
@@ -14132,7 +14823,30 @@ var CREATE_GUIDANCE = {
14132
14823
  "available": true,
14133
14824
  "note": null
14134
14825
  },
14135
- "zone": "ww29"
14826
+ "zone": "ww29",
14827
+ "derived": [
14828
+ {
14829
+ "field": "hoursWorked",
14830
+ "rule": "elapsed(startDateTime,endDateTime)"
14831
+ },
14832
+ {
14833
+ "field": "timeEntryType",
14834
+ "rule": "parent"
14835
+ },
14836
+ {
14837
+ "field": "contractID",
14838
+ "rule": "parent"
14839
+ },
14840
+ {
14841
+ "field": "internalBillingCodeID",
14842
+ "rule": "mirror(billingCodeID)"
14843
+ },
14844
+ {
14845
+ "field": "billingApprovalLevelMostRecent",
14846
+ "rule": "external",
14847
+ "writableRoute": "billing_item_approval_levels.create"
14848
+ }
14849
+ ]
14136
14850
  },
14137
14851
  {
14138
14852
  "resource": "time_entry_attachments",
@@ -14161,7 +14875,7 @@ var CREATE_GUIDANCE = {
14161
14875
  }
14162
14876
  ],
14163
14877
  "counts": {
14164
- "total": 92,
14878
+ "total": 97,
14165
14879
  "byKind": {
14166
14880
  "ok": 31,
14167
14881
  "blind-reference": 16,
@@ -14171,7 +14885,7 @@ var CREATE_GUIDANCE = {
14171
14885
  "resource-role-pair": 2,
14172
14886
  "delete-absent": 8,
14173
14887
  "non-mutable": 0,
14174
- "unknown": 12
14888
+ "unknown": 17
14175
14889
  }
14176
14890
  }
14177
14891
  };
@@ -14400,6 +15114,10 @@ var UNTRUSTED_FIELDS_BY_RESOURCE = {
14400
15114
  "displayName",
14401
15115
  "name"
14402
15116
  ],
15117
+ "currencies": [
15118
+ "description",
15119
+ "name"
15120
+ ],
14403
15121
  "departments": [
14404
15122
  "description",
14405
15123
  "name"
@@ -14467,6 +15185,13 @@ var UNTRUSTED_FIELDS_BY_RESOURCE = {
14467
15185
  "holidays": [
14468
15186
  "holidayName"
14469
15187
  ],
15188
+ "invoice_templates": [
15189
+ "coveredByBlockRetainerContractLabel",
15190
+ "coveredByRecurringServiceFixedPricePerTicketContractLabel",
15191
+ "name",
15192
+ "nonBillableLaborLabel",
15193
+ "rateCostExpression"
15194
+ ],
14470
15195
  "invoices": [
14471
15196
  "comments",
14472
15197
  "taxRegionName"
@@ -14515,6 +15240,14 @@ var UNTRUSTED_FIELDS_BY_RESOURCE = {
14515
15240
  "name",
14516
15241
  "nickname"
14517
15242
  ],
15243
+ "organizational_level1s": [
15244
+ "description",
15245
+ "name"
15246
+ ],
15247
+ "organizational_level2s": [
15248
+ "description",
15249
+ "name"
15250
+ ],
14518
15251
  "products": [
14519
15252
  "UDF1",
14520
15253
  "UDF10",
@@ -14652,6 +15385,34 @@ var UNTRUSTED_FIELDS_BY_RESOURCE = {
14652
15385
  "description",
14653
15386
  "name"
14654
15387
  ],
15388
+ "sales_orders": [
15389
+ "UDF1",
15390
+ "UDF10",
15391
+ "UDF11",
15392
+ "UDF12",
15393
+ "UDF13",
15394
+ "UDF14",
15395
+ "UDF15",
15396
+ "UDF16",
15397
+ "UDF17",
15398
+ "UDF18",
15399
+ "UDF19",
15400
+ "UDF2",
15401
+ "UDF20",
15402
+ "UDF3",
15403
+ "UDF4",
15404
+ "UDF5",
15405
+ "UDF6",
15406
+ "UDF7",
15407
+ "UDF8",
15408
+ "UDF9",
15409
+ "additionalBillToAddressInformation",
15410
+ "additionalShipToAddressInformation",
15411
+ "billToPostalCode",
15412
+ "shipToCity",
15413
+ "shipToState",
15414
+ "title"
15415
+ ],
14655
15416
  "service_calls": [
14656
15417
  "description"
14657
15418
  ],
@@ -14726,6 +15487,9 @@ var UNTRUSTED_FIELDS_BY_RESOURCE = {
14726
15487
  "tags": [
14727
15488
  "label"
14728
15489
  ],
15490
+ "tax_regions": [
15491
+ "name"
15492
+ ],
14729
15493
  "ticket_attachments": [
14730
15494
  "title"
14731
15495
  ],
@@ -16248,6 +17012,38 @@ async function expandResourceNames(client, ids, opts = {}) {
16248
17012
  return { results, resolved, blind, failed };
16249
17013
  }
16250
17014
 
17015
+ // src/operations/entityType.ts
17016
+ function buildEntityTypeMap() {
17017
+ const exact = {};
17018
+ for (const [resource, entry] of Object.entries(RELATIONSHIP_MAP)) {
17019
+ const apiEntity = entry.apiEntity;
17020
+ if (typeof apiEntity !== "string" || apiEntity === "") continue;
17021
+ if (exact[apiEntity] === void 0) exact[apiEntity] = resource;
17022
+ }
17023
+ const aliases = {};
17024
+ for (const [apiEntity, resource] of Object.entries(exact)) {
17025
+ if (!apiEntity.endsWith("s") || apiEntity.endsWith("ss")) continue;
17026
+ const singular = apiEntity.slice(0, -1);
17027
+ if (exact[singular] !== void 0 || aliases[singular] !== void 0) continue;
17028
+ aliases[singular] = resource;
17029
+ }
17030
+ return { ...exact, ...aliases };
17031
+ }
17032
+ var ENTITY_TYPE_TO_RESOURCE = buildEntityTypeMap();
17033
+ var ENUMERABLE_RESOURCES = new Set(
17034
+ CAPABILITIES.filter((rec) => rec.resource !== "operations" && (rec.operation === "query" || rec.operation === "get")).map(
17035
+ (rec) => rec.resource
17036
+ )
17037
+ );
17038
+ function resourceForEntityType(entityType) {
17039
+ if (typeof entityType !== "string" || entityType === "") return null;
17040
+ return ENTITY_TYPE_TO_RESOURCE[entityType] ?? null;
17041
+ }
17042
+ function isEnumerableResource(resource) {
17043
+ if (typeof resource !== "string" || resource === "") return false;
17044
+ return ENUMERABLE_RESOURCES.has(resource);
17045
+ }
17046
+
16251
17047
  // src/operations/types.ts
16252
17048
  var WORKFLOW_RESOURCES = [
16253
17049
  "companies",
@@ -16261,24 +17057,36 @@ var WORKFLOW_RESOURCES = [
16261
17057
  var MAX_FIELD_CATALOG_WIRE = 60;
16262
17058
  var FIELD_CATALOG_HONESTY_NOTE = "Live field metadata reports the SHAPE of a field (existence, requiredness, type, maxLength, read-only, queryable, picklist-ness) as FLAGS and NAMES: picklist-ness as a flag (isPickList) and picklist field names (picklistFields). With the opt-in `labels: true`, picklist rows carry the vendor's exposed picklist VALUES (labels next to each value); without it the op serves no VALUES. It cannot resolve a picklist VALUE the vendor does not expose to this API user (the W-A4 wall \u2014 e.g. the attachments Type picklist): retrying the catalog will not surface a withheld value; that gap is vendor-side, not a client defect.";
16263
17059
  var FIELD_CATALOG_OPT_KEYS = ["resources", "include", "fresh", "fields", "labels"];
16264
- function projectFieldRow(raw, labels = false) {
17060
+ function projectFieldRow(raw, labels = false, udf = false) {
16265
17061
  const r = typeof raw === "object" && raw !== null ? raw : {};
16266
17062
  const name = typeof r.name === "string" ? r.name : "";
16267
17063
  const type = typeof r.dataType === "string" ? r.dataType : typeof r.type === "string" ? r.type : "";
16268
17064
  const values = labels && r.isPickList === true && Array.isArray(r.picklistValues) && r.picklistValues.length > 0 ? r.picklistValues : void 0;
17065
+ const referenceEntityType = typeof r.referenceEntityType === "string" ? r.referenceEntityType : "";
17066
+ const targetResource = resourceForEntityType(referenceEntityType);
16269
17067
  return {
16270
17068
  name,
16271
17069
  ...typeof r.label === "string" && r.label !== "" ? { label: r.label } : {},
16272
17070
  type,
16273
17071
  isRequired: r.isRequired === true,
16274
17072
  isReadOnly: r.isReadOnly === true,
16275
- isQueryable: r.isQueryable === true,
17073
+ // Issue #219 N7: a UDF row never serves the vendor's isQueryable (it is
17074
+ // true for UDFs while a plain filter on a UDF name is refused); it serves
17075
+ // the marker the filter actually needs.
17076
+ ...udf ? { filterable: "udf-marker" } : { isQueryable: r.isQueryable === true },
16276
17077
  isPickList: r.isPickList === true,
17078
+ ...isObjectOrArrayType(type) ? { writeShape: "replace-all" } : {},
16277
17079
  maxLength: typeof r.length === "number" ? r.length : null,
16278
- referenceEntityType: typeof r.referenceEntityType === "string" ? r.referenceEntityType : "",
17080
+ referenceEntityType,
17081
+ targetResource,
17082
+ targetEnumerable: isEnumerableResource(targetResource),
16279
17083
  ...values !== void 0 ? { picklistValues: values } : {}
16280
17084
  };
16281
17085
  }
17086
+ function isObjectOrArrayType(type) {
17087
+ const t = type.trim().toLowerCase();
17088
+ return t === "object" || t === "array" || t === "collection" || t.endsWith("[]");
17089
+ }
16282
17090
  function exposesPicklistValues(raw) {
16283
17091
  const r = typeof raw === "object" && raw !== null ? raw : {};
16284
17092
  return Array.isArray(r.picklistValues) && r.picklistValues.length > 0;
@@ -16308,6 +17116,27 @@ function capabilitySets() {
16308
17116
  }
16309
17117
  return { fieldOps, udfOps, resources };
16310
17118
  }
17119
+ var derivedIndex = null;
17120
+ function derivedFieldsFor(resource) {
17121
+ if (derivedIndex === null) {
17122
+ derivedIndex = /* @__PURE__ */ new Map();
17123
+ for (const rec of CAPABILITIES) {
17124
+ const declared = rec.metadata?.derivedFields;
17125
+ if (!Array.isArray(declared) || derivedIndex.has(rec.resource)) continue;
17126
+ const rows = [];
17127
+ for (const row of declared) {
17128
+ if (typeof row?.field !== "string" || typeof row.rule !== "string") continue;
17129
+ rows.push({
17130
+ field: row.field,
17131
+ rule: row.rule,
17132
+ ...typeof row.writableRoute === "string" ? { writableRoute: row.writableRoute } : {}
17133
+ });
17134
+ }
17135
+ derivedIndex.set(rec.resource, rows);
17136
+ }
17137
+ }
17138
+ return derivedIndex.get(resource) ?? [];
17139
+ }
16311
17140
  function apiEntityFor(rec) {
16312
17141
  const m = /^GET \/V1\.0\/([^/]+)\/entityInformation\/fields$/.exec(rec.endpoint ?? "");
16313
17142
  if (m === null) {
@@ -16437,6 +17266,8 @@ async function sweepResource(ctx, resource, tally) {
16437
17266
  resource,
16438
17267
  apiEntity,
16439
17268
  udfCapable: ctx.udfOps.has(resource),
17269
+ // Issue #219 N7: the UDF surface is declared with the mechanism, not a boolean.
17270
+ ...ctx.udfOps.has(resource) ? { udfFilter: "udf-marker", udfWriteShape: "merge" } : {},
16440
17271
  unmatchedFields: [],
16441
17272
  required: [],
16442
17273
  readOnly: [],
@@ -16449,7 +17280,7 @@ async function sweepResource(ctx, resource, tally) {
16449
17280
  const fetches = kindFetches(holder, resource);
16450
17281
  if (fresh) cache?.invalidate(resource);
16451
17282
  const projectList = (kind, list) => {
16452
- const projected = list.map((f) => projectFieldRow(f, labels));
17283
+ const projected = list.map((f) => projectFieldRow(f, labels, kind === "udf"));
16453
17284
  if (kind === "fields") applyFieldsFilter(projected, fieldsFilter, row);
16454
17285
  else row.udf = projected;
16455
17286
  for (const f of list) if (exposesPicklistValues(f)) tally.anyPicklistValues = true;
@@ -16489,6 +17320,19 @@ async function sweepResource(ctx, resource, tally) {
16489
17320
  }
16490
17321
  }
16491
17322
  row.cache = allCached ? { hit: true, age: ages.length > 0 ? Math.max(...ages) : 0 } : { hit: false, age: null };
17323
+ const declared = derivedFieldsFor(resource);
17324
+ if (declared.length > 0) {
17325
+ const byField = new Map(declared.map((d) => [d.field, d]));
17326
+ row.derivedFields = declared;
17327
+ for (const field of row.fields ?? []) {
17328
+ const derivation = byField.get(field.name);
17329
+ if (derivation === void 0) continue;
17330
+ field.derived = {
17331
+ rule: derivation.rule,
17332
+ ...derivation.writableRoute !== void 0 ? { writableRoute: derivation.writableRoute } : {}
17333
+ };
17334
+ }
17335
+ }
16492
17336
  return row;
16493
17337
  }
16494
17338
  async function fieldCatalog(client, opts) {
@@ -16712,6 +17556,7 @@ async function resolveCompositeNames(http, plan, opts = {}) {
16712
17556
  var MODEL_FIELD_SETS = {
16713
17557
  "appointments": ["id", "createDateTime", "creatorResourceID", "description", "endDateTime", "resourceID", "startDateTime", "title", "updateDateTime"],
16714
17558
  "billing_codes": ["id", "afterHoursWorkType", "billingCodeType", "department", "description", "externalNumber", "generalLedgerAccount", "isActive", "isExcludedFromNewContracts", "markupRate", "name", "taxCategoryID", "unitCost", "unitPrice", "useType"],
17559
+ "billing_item_approval_levels": ["id", "approvalDateTime", "approvalLevel", "approvalResourceID", "timeEntryID"],
16715
17560
  "billing_items": ["id", "accountManagerWhenApprovedID", "billingCodeID", "billingItemType", "companyID", "configurationItemID", "contractBlockID", "contractChargeID", "contractID", "contractServiceAdjustmentID", "contractServiceBundleAdjustmentID", "contractServiceBundleID", "contractServiceBundlePeriodID", "contractServiceID", "contractServicePeriodID", "description", "expenseItemID", "extendedPrice", "internalCurrencyExtendedPrice", "internalCurrencyRate", "internalCurrencyTaxDollars", "internalCurrencyTotalAmount", "invoiceID", "itemApproverID", "itemDate", "itemName", "lineItemFullDescription", "lineItemGroupDescription", "milestoneID", "nonBillable", "organizationalLevelAssociationID", "ourCost", "postedDate", "postedOnTime", "projectChargeID", "projectID", "purchaseOrderNumber", "quantity", "rate", "roleID", "serviceBundleID", "serviceID", "sortOrderID", "subType", "taskID", "taxDollars", "ticketChargeID", "ticketID", "timeEntryID", "totalAmount", "vendorID", "webServiceDate"],
16716
17561
  "change_request_links": ["id", "changeRequestTicketID", "problemOrIncidentTicketID"],
16717
17562
  "checklist_libraries": ["id", "description", "entityType", "isActive", "name"],
@@ -16758,6 +17603,7 @@ var MODEL_FIELD_SETS = {
16758
17603
  "contract_ticket_purchases": ["id", "contractID", "datePurchased", "endDate", "invoiceNumber", "isPaid", "paymentNumber", "paymentType", "perTicketRate", "startDate", "status", "ticketsPurchased", "ticketsUsed", "soapParentPropertyId"],
16759
17604
  "contracts": ["id", "billingPreference", "billToCompanyContactID", "billToCompanyID", "companyID", "contactID", "contactName", "contractCategory", "contractExclusionSetID", "contractName", "contractNumber", "contractPeriodType", "contractType", "description", "endDate", "estimatedCost", "estimatedHours", "estimatedRevenue", "exclusionContractID", "internalCurrencyOverageBillingRate", "internalCurrencySetupFee", "isCompliant", "isDefaultContract", "lastModifiedDateTime", "opportunityID", "organizationalLevelAssociationID", "overageBillingRate", "purchaseOrderNumber", "renewedContractID", "serviceLevelAgreementID", "setupFee", "setupFeeBillingCodeID", "startDate", "status", "timeReportingRequiresStartAndStopTimes", "userDefinedFields"],
16760
17605
  "countries": ["id", "addressFormatID", "countryCode", "displayName", "invoiceTemplateID", "isActive", "isDefaultCountry", "name", "purchaseOrderTemplateID", "quoteTemplateID"],
17606
+ "currencies": ["id", "currencyNegativeFormat", "currencyPositiveFormat", "description", "displaySymbol", "exchangeRate", "isActive", "isInternalCurrency", "lastModifiedDateTime", "name", "updateResourceId"],
16761
17607
  "departments": ["id", "description", "name", "number", "primaryLocationID"],
16762
17608
  "domain_registrars": ["id", "name", "url"],
16763
17609
  "expense_item_attachments": ["id", "attachDate", "attachedByContactID", "attachedByResourceID", "attachmentType", "contentType", "creatorType", "expenseItemID", "expenseReportID", "fileSize", "fullPath", "impersonatorCreatorResourceID", "opportunityID", "parentID", "publish", "title", "data", "parentType", "soapParentPropertyId", "isTaskAttachment"],
@@ -16766,11 +17612,15 @@ var MODEL_FIELD_SETS = {
16766
17612
  "holiday_sets": ["id", "holidaySetDescription", "holidaySetName"],
16767
17613
  "holidays": ["id", "holidayDate", "holidayName", "holidaySetID", "soapParentPropertyId"],
16768
17614
  "inventory_products": ["id", "availableUnits", "backOrderQuantity", "bin", "createDateTime", "createdByResourceID", "inventoryLocationID", "onHandUnits", "pickedUnits", "productID", "quantityMaximum", "quantityMinimum", "referenceNumber", "reservedUnits", "unitsOnOrder"],
17615
+ "invoice_templates": ["id", "coveredByBlockRetainerContractLabel", "coveredByRecurringServiceFixedPricePerTicketContractLabel", "currencyNegativeFormat", "currencyPositiveFormat", "dateFormat", "displayFixedPriceContractLabor", "displayRecurringServiceContractLabor", "displaySeparateLineItemForEachTax", "displayTaxCategory", "displayTaxCategorySuperscripts", "displayZeroAmountRecurringServicesAndBundles", "groupBy", "itemizeItemsInEachGroup", "itemizeServicesAndBundles", "name", "nonBillableLaborLabel", "numberFormat", "pageLayout", "pageNumberFormat", "paymentTerms", "rateCostExpression", "showGridHeader", "showVerticalGridLines", "sortBy", "timeFormat"],
16769
17616
  "invoices": ["id", "batchID", "comments", "companyID", "createDateTime", "creatorResourceID", "dueDate", "fromDate", "invoiceDateTime", "invoiceEditorTemplateID", "invoiceNumber", "invoiceTotal", "isVoided", "orderNumber", "paidDate", "paymentTerm", "taxGroup", "taxRegionName", "toDate", "totalTaxValue", "voidedByResourceID", "voidedDate", "webServiceDate"],
16770
17617
  "notification_history": ["id", "companyID", "entityNumber", "entityTitle", "initiatingContactID", "initiatingResourceID", "isActive", "isDeleted", "isTemplateJob", "notificationHistoryTypeID", "notificationSentTime", "opportunityID", "projectID", "quoteID", "recipientDisplayName", "recipientEmailAddress", "taskID", "templateName", "ticketID", "timeEntryID"],
16771
17618
  "opportunities": ["id", "advancedField1", "advancedField2", "advancedField3", "advancedField4", "advancedField5", "amount", "assessmentScore", "barriers", "closedDate", "companyID", "contactID", "cost", "createDate", "creatorResourceID", "description", "helpNeeded", "impersonatorCreatorResourceID", "lastActivity", "leadSource", "lossReason", "lossReasonDetail", "lostDate", "market", "monthlyCost", "monthlyRevenue", "nextStep", "onetimeCost", "onetimeRevenue", "opportunityCategoryID", "organizationalLevelAssociationID", "ownerResourceID", "primaryCompetitor", "probability", "productID", "projectedCloseDate", "promisedFulfillmentDate", "promotionName", "quarterlyCost", "quarterlyRevenue", "rating", "relationshipAssessmentScore", "revenueSpread", "revenueSpreadUnit", "salesOrderID", "salesProcessPercentComplete", "semiannualCost", "semiannualRevenue", "stage", "startDate", "status", "technicalAssessmentScore", "throughDate", "title", "totalAmountMonths", "useQuoteTotals", "winReason", "winReasonDetail", "yearlyCost", "yearlyRevenue", "userDefinedFields"],
16772
17619
  "opportunity_attachments": ["id", "attachDate", "attachedByContactID", "attachedByResourceID", "attachmentType", "contentType", "creatorType", "fileSize", "fullPath", "impersonatorCreatorResourceID", "opportunityID", "parentAttachmentID", "parentID", "publish", "title", "data", "parentType", "soapParentPropertyId", "isTaskAttachment"],
16773
17620
  "opportunity_categories": ["id", "displayColorRGB", "isActive", "isGlobalDefault", "name", "nickname"],
17621
+ "organizational_level1s": ["id", "description", "isActive", "name"],
17622
+ "organizational_level2s": ["id", "description", "isActive", "name"],
17623
+ "organizational_level_associations": ["id", "isActive", "organizationalLevel1ID", "organizationalLevel2ID"],
16774
17624
  "phases": ["id", "createDate", "creatorResourceID", "description", "dueDate", "estimatedHours", "externalID", "isScheduled", "lastActivityDateTime", "parentPhaseID", "phaseNumber", "projectID", "startDate", "title", "soapParentPropertyId"],
16775
17625
  "product_vendors": ["id", "isActive", "isDefault", "productID", "vendorCost", "vendorID", "vendorPartNumber", "soapParentPropertyId"],
16776
17626
  "products": ["id", "billingType", "chargeBillingCodeID", "createdByResourceID", "createdTime", "defaultVendorID", "description", "doesNotRequireProcurement", "externalProductID", "impersonatorCreatorResourceID", "internalProductID", "isActive", "isEligibleForRma", "isSerialized", "link", "manufacturerName", "manufacturerProductName", "markupRate", "msrp", "name", "periodType", "priceCostMethod", "productBillingCodeID", "productCategory", "sku", "unitCost", "unitPrice", "vendorProductNumber", "defaultInstalledProductCategoryID", "userDefinedFields"],
@@ -16792,6 +17642,7 @@ var MODEL_FIELD_SETS = {
16792
17642
  "resource_time_off_balances": ["id", "resourceID", "floatingHolidayAnnualAllowance", "floatingHolidayBalance", "floatingHolidayPlanned", "floatingHolidayUsed", "floatingHolidayWaitingApproval", "personalTimeAnnualAllowance", "personalTimeBalance", "personalTimePlanned", "personalTimeUsed", "personalTimeWaitingApproval", "sickTimeAnnualAllowance", "sickTimeBalance", "sickTimePlanned", "sickTimeUsed", "sickTimeWaitingApproval", "vacationTimeAnnualAllowance", "vacationTimeBalance", "vacationTimePlanned", "vacationTimeUsed", "vacationTimeWaitingApproval", "year", "soapParentPropertyId"],
16793
17643
  "resources": ["id", "accountingReferenceID", "dateFormat", "defaultServiceDeskRoleID", "email", "email2", "email3", "emailTypeCode", "emailTypeCode2", "emailTypeCode3", "firstName", "gender", "greeting", "hireDate", "homePhone", "initials", "internalCost", "isActive", "lastName", "licenseType", "locationID", "middleName", "mobilePhone", "numberFormat", "officeExtension", "officePhone", "payrollIdentifier", "payrollType", "resourceType", "suffix", "surveyResourceRating", "timeFormat", "title", "travelAvailabilityPct", "userName", "userType"],
16794
17644
  "roles": ["id", "description", "hourlyFactor", "hourlyRate", "isActive", "isExcludedFromNewContracts", "isSystemRole", "name", "quoteItemDefaultTaxCategoryId", "roleType"],
17645
+ "sales_orders": ["id", "additionalBillToAddressInformation", "additionalShipToAddressInformation", "billingAddress1", "billingAddress2", "billToCity", "billToCountryID", "billToPostalCode", "billToState", "companyID", "contactID", "impersonatorCreatorResourceID", "opportunityID", "organizationalLevelAssociationID", "ownerResourceID", "promisedFulfillmentDate", "salesOrderDate", "shipToAddress1", "shipToAddress2", "shipToCity", "shipToCountryID", "shipToPostalCode", "shipToState", "status", "title", "soapParentPropertyId", "userDefinedFields"],
16795
17646
  "service_call_task_resources": ["id", "resourceID", "serviceCallTaskID", "soapParentPropertyId"],
16796
17647
  "service_call_tasks": ["id", "serviceCallID", "taskID", "soapParentPropertyId"],
16797
17648
  "service_call_ticket_resources": ["id", "resourceID", "serviceCallTicketID", "soapParentPropertyId"],
@@ -16809,6 +17660,7 @@ var MODEL_FIELD_SETS = {
16809
17660
  "tags": ["id", "createDateTime", "isActive", "isExcludedFromAutomaticTagging", "isSystem", "label", "lastModifiedDateTime", "tagGroupID"],
16810
17661
  "task_secondary_resources": ["id", "resourceID", "roleID", "taskID", "soapParentPropertyId"],
16811
17662
  "tasks": ["id", "assignedResourceID", "assignedResourceRoleID", "billingCodeID", "canClientPortalUserCompleteTask", "companyLocationID", "completedByResourceID", "completedByType", "completedDateTime", "createDateTime", "creatorResourceID", "creatorType", "departmentID", "description", "endDateTime", "estimatedHours", "externalID", "hoursToBeScheduled", "isTaskBillable", "isVisibleInClientPortal", "lastActivityDateTime", "lastActivityPersonType", "lastActivityResourceID", "phaseID", "priority", "priorityLabel", "projectID", "purchaseOrderNumber", "remainingHours", "startDateTime", "status", "taskCategoryID", "taskNumber", "taskType", "title", "soapParentPropertyId", "userDefinedFields"],
17663
+ "tax_regions": ["id", "isActive", "name"],
16812
17664
  "ticket_additional_configuration_items": ["id", "configurationItemID", "ticketID", "soapParentPropertyId"],
16813
17665
  "ticket_additional_contacts": ["id", "contactID", "ticketID", "soapParentPropertyId"],
16814
17666
  "ticket_attachments": ["id", "attachDate", "attachedByContactID", "attachedByResourceID", "attachmentType", "contentType", "creatorType", "fileSize", "fullPath", "impersonatorCreatorResourceID", "opportunityID", "parentAttachmentID", "parentID", "publish", "ticketID", "ticketNoteID", "timeEntryID", "title", "data", "parentType", "soapParentPropertyId", "isTaskAttachment"],
@@ -16830,6 +17682,7 @@ var MODEL_FIELD_SETS = {
16830
17682
  };
16831
17683
  var MODEL_DATE_FIELDS = {
16832
17684
  "appointments": ["createDateTime", "endDateTime", "startDateTime", "updateDateTime"],
17685
+ "billing_item_approval_levels": ["approvalDateTime"],
16833
17686
  "billing_items": ["itemDate", "postedDate", "postedOnTime", "webServiceDate"],
16834
17687
  "companies": ["createDate", "lastActivityDate", "lastTrackedModifiedDateTime"],
16835
17688
  "company_notes": ["completedDateTime", "createDateTime", "endDateTime", "lastModifiedDate", "startDateTime"],
@@ -16848,6 +17701,7 @@ var MODEL_DATE_FIELDS = {
16848
17701
  "contract_service_units": ["approveAndPostDate", "endDate", "startDate"],
16849
17702
  "contract_ticket_purchases": ["datePurchased", "endDate", "startDate"],
16850
17703
  "contracts": ["endDate", "lastModifiedDateTime", "startDate"],
17704
+ "currencies": ["lastModifiedDateTime"],
16851
17705
  "expense_item_attachments": ["attachDate"],
16852
17706
  "expense_items": ["expenseDate"],
16853
17707
  "expense_reports": ["approvedDate", "submitDate", "weekEnding"],
@@ -16868,6 +17722,7 @@ var MODEL_DATE_FIELDS = {
16868
17722
  "quote_templates": ["createDate", "lastActivityDate"],
16869
17723
  "quotes": ["approvalStatusChangedDate", "createDate", "effectiveDate", "expirationDate", "extApprovalResponseDate", "lastActivityDate", "lastPublishedDateTime"],
16870
17724
  "resources": ["hireDate"],
17725
+ "sales_orders": ["promisedFulfillmentDate", "salesOrderDate"],
16871
17726
  "service_calls": ["canceledDateTime", "createDateTime", "endDateTime", "lastModifiedDateTime", "startDateTime"],
16872
17727
  "services": ["createDate", "lastModifiedDate"],
16873
17728
  "subscription_periods": ["periodDate", "postedDate"],
@@ -19315,6 +20170,8 @@ export {
19315
20170
  MarkerUnsafeIdError,
19316
20171
  RecoveryTruncatedError,
19317
20172
  MoveRefusedError,
20173
+ READ_CACHE_MAX_ENTRIES,
20174
+ ReadCache,
19318
20175
  ZONE_CATALOG,
19319
20176
  ZONES,
19320
20177
  DEFAULT_ZONE,
@@ -19360,6 +20217,7 @@ export {
19360
20217
  buildTenantKey,
19361
20218
  cooldownDurationMs,
19362
20219
  resolveCredentials,
20220
+ buildReadCache,
19363
20221
  resolveConfig,
19364
20222
  IDEMPOTENT_METHODS,
19365
20223
  isRecord2 as isRecord,
@@ -19427,6 +20285,9 @@ export {
19427
20285
  validateQueryFieldNames,
19428
20286
  EXPAND_RESOURCE_NAMES_MAX_IDS,
19429
20287
  expandResourceNames,
20288
+ ENTITY_TYPE_TO_RESOURCE,
20289
+ resourceForEntityType,
20290
+ isEnumerableResource,
19430
20291
  WORKFLOW_RESOURCES,
19431
20292
  MAX_FIELD_CATALOG_WIRE,
19432
20293
  FIELD_CATALOG_HONESTY_NOTE,