iit-mcp-autotask 0.65.1 → 0.66.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.example +1 -0
- package/README.md +25 -4
- package/capabilities.json +2 -2
- package/dist/tools/aggregate.js +3 -1
- package/dist/tools/billing-review-projection.js +1 -1
- package/dist/tools/catalog-data.d.ts +1 -1
- package/dist/tools/catalog-data.js +1 -1
- package/dist/tools/composites.js +11 -8
- package/dist/tools/context/types.d.ts +2 -0
- package/dist/tools/lists.js +10 -4
- package/dist/tools/meta.js +6 -4
- package/dist/tools/query-hints.d.ts +3 -0
- package/dist/tools/query-hints.js +40 -0
- package/dist/tools/resolves.d.ts +5 -1
- package/dist/tools/resolves.js +45 -14
- package/dist/tools/results/untrusted.js +7 -1
- package/dist/tools/schemas.d.ts +11 -0
- package/dist/tools/schemas.js +10 -1
- package/dist/tools/server.js +1 -0
- package/dist/tools/write/apply.js +7 -5
- package/dist/tools/write/guard-facts.d.ts +19 -0
- package/dist/tools/write/guard-facts.js +168 -0
- package/dist/tools/write/impersonation.js +1 -1
- package/dist/tools/write/preview.js +20 -7
- package/dist/tools/write/sdk-approval.d.ts +25 -0
- package/dist/tools/write/sdk-approval.js +97 -0
- package/dist/tools/write/snapshot.js +11 -5
- package/dist/write/store/types.d.ts +2 -0
- package/package.json +2 -2
- package/server.json +2 -2
- package/skills/slim-reads.md +1 -1
package/.env.example
CHANGED
|
@@ -57,6 +57,7 @@ AUTOTASK_PROFILE=readonly
|
|
|
57
57
|
# unattended or deny (this server asks the person). HTTP: allow or deny only (the MCP client gates).
|
|
58
58
|
# Grammar, hard rules and dedup: docs/write-gate.md.
|
|
59
59
|
# AUTOTASK_WRITE=*:deny,tickets.*:allow,time_entries.create:allow,companies.update:deny
|
|
60
|
+
# Any guarded SDK family is served by listing it (for example company_to_dos.*:allow); the account-wide roots also need an all-company run scope.
|
|
60
61
|
# AUTOTASK_DEDUP=companies.create:companyName
|
|
61
62
|
# operator: the state dir (mode 0700; plans, ledger, audit, locks; same-version processes on one host may share it).
|
|
62
63
|
# AUTOTASK_STATE_DIR=/var/lib/autotask-mcp
|
package/README.md
CHANGED
|
@@ -315,10 +315,31 @@ signal. Keep the rest of the state dir; `audit.jsonl` is the write history.
|
|
|
315
315
|
|
|
316
316
|
### Query results: TSV, `output_path` and the saved-file shape
|
|
317
317
|
|
|
318
|
-
Name and label siblings are
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
318
|
+
Name and label siblings (`<field>Label`, `<id>Name`) are on by default on every read whose SDK operation supports them
|
|
319
|
+
(node-autotask `docs/LABEL-COVERAGE.md` is the coverage inventory). `names: false` is the per-call opt-out and returns raw
|
|
320
|
+
values with no label-only reads; it is a top-level input of:
|
|
321
|
+
|
|
322
|
+
- `autotask_query`: rows, `tsv`, `group_by` keys and `output_path` (a `names` key inside a `*.query` or
|
|
323
|
+
`operations.aggregate` bag sent through `autotask_read` wins over the call's option);
|
|
324
|
+
- `autotask_read`: every read of the call, a single operation or a batch of `items` (`*.get`, `*.resolve`, searches, finders,
|
|
325
|
+
`operations.fetchByIds`, `operations.resolveAny`, `operations.searchAcrossResources`, queries, aggregates);
|
|
326
|
+
- `autotask_resolve`: every branch (exact, contains, fuzzy where it applies, sweep, staff, natural key);
|
|
327
|
+
- the composites `autotask_ticket_full_context`, `autotask_company_full_profile`, `autotask_contact_full_profile`,
|
|
328
|
+
`autotask_contract_full_profile`, `autotask_service_call_full_profile`, `autotask_project_get_context`,
|
|
329
|
+
`autotask_configuration_item_profile`, `autotask_quote_get`, `autotask_resource_workload` and `autotask_invoice_get`
|
|
330
|
+
(record format). `max_name_reads` lowers the name-read budget of the composites whose SDK option bag takes it
|
|
331
|
+
(ticket, company, project, configuration item).
|
|
332
|
+
|
|
333
|
+
`names: true` on an operation that has no label path (counts, metadata, downloads, the invoice exports) is refused by the SDK
|
|
334
|
+
before any request; `names: false` is always a no-op there. Genuinely unsupported (SDK basis, `docs/LABEL-COVERAGE.md`):
|
|
335
|
+
counts and metadata reads, file and export payloads, integration-endpoint results, `companies.searchFuzzy` (a fixed
|
|
336
|
+
four-field projection), and the purpose-built roll-ups (revenue, AR aging, WIP, margin, recurring revenue, non-chargeable
|
|
337
|
+
work), which carry their own pinned label fields. A picklist `*Label` sibling is absent when the tenant's API user cannot read
|
|
338
|
+
the field metadata (the raw value stays); an id with no readable name gets a `null` `*Name`. Both are visibility limits, never
|
|
339
|
+
proof of absence. The server's own snapshot, guard and verification reads (write previews, apply read-backs, the verification
|
|
340
|
+
projections) always send `names: false`, so approved plans and strict outputs stay raw.
|
|
341
|
+
|
|
342
|
+
`autotask_query` always wraps untrusted text and uses the SDK's default transport; `via` and `untrusted_wrapper` are refused as unknown inputs.
|
|
322
343
|
|
|
323
344
|
`autotask_query` answers `data.result` with the SDK's bounded-query envelope:
|
|
324
345
|
|
package/capabilities.json
CHANGED
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
76
|
"id": "autotask.platform.catalog",
|
|
77
|
-
"description": "Find the exact operation key for anything without a dedicated tool: ranked search (q) over the
|
|
77
|
+
"description": "Find the exact operation key for anything without a dedicated tool: ranked search (q) over the 2,082 registry operations, with effect and whether this deployment serves it. No vendor call.",
|
|
78
78
|
"mcpPrimitive": "tool",
|
|
79
79
|
"toolName": "autotask_catalog",
|
|
80
80
|
"type": "read",
|
|
@@ -480,7 +480,7 @@
|
|
|
480
480
|
"autotask_describe",
|
|
481
481
|
"autotask_read"
|
|
482
482
|
],
|
|
483
|
-
"backingRegistryOperations":
|
|
483
|
+
"backingRegistryOperations": 2082,
|
|
484
484
|
"note": "autotask_catalog finds the exact operation key (ranked search), autotask_describe serves its contract, autotask_read runs any effect=read key. Writes go through the operator profile (autotask_write then autotask_apply); authenticate.* is never served."
|
|
485
485
|
},
|
|
486
486
|
"schemas": {}
|
package/dist/tools/aggregate.js
CHANGED
|
@@ -19,6 +19,7 @@ import { ok } from './results/envelope.js';
|
|
|
19
19
|
import { assertOperationPermitted } from '../policy.js';
|
|
20
20
|
import { documentReadArgs } from './documents.js';
|
|
21
21
|
import { scopedCatalogCall } from './field-pointer.js';
|
|
22
|
+
import { queryQuirkHint } from './query-hints.js';
|
|
22
23
|
/** The server line for an SDK aggregate answer: numbers only, and the partial marker whenever the SDK flags truncation. */
|
|
23
24
|
function summaryLine(operation, result) {
|
|
24
25
|
const r = (result ?? {});
|
|
@@ -62,6 +63,7 @@ export async function runAggregate(ctx, operation, rawFilter, opts, signal, extr
|
|
|
62
63
|
});
|
|
63
64
|
if (answer === undefined)
|
|
64
65
|
return abortedAnswer(ctx.correlationId);
|
|
65
|
-
|
|
66
|
+
const hint = await queryQuirkHint(ctx, operation.slice(0, operation.indexOf('.')), filter);
|
|
67
|
+
return ok(`${summaryLine(operation, answer)}${hint}`, { ...extra, operation, result: markResult(answer, ctx.untrustedFields(operation)) });
|
|
66
68
|
}
|
|
67
69
|
//# sourceMappingURL=aggregate.js.map
|
|
@@ -153,7 +153,7 @@ export async function readBillingReview(ctx, input, signal) {
|
|
|
153
153
|
else
|
|
154
154
|
invalid();
|
|
155
155
|
// SDK queries are uncached; its fresh option is valid only for primitive get reads.
|
|
156
|
-
const result = await readOneItem(ctx, input.operation, args, signal, input.operation === 'time_entries.get' ? { fresh: true } :
|
|
156
|
+
const result = await readOneItem(ctx, input.operation, args, signal, input.operation === 'time_entries.get' ? { fresh: true, names: false } : { names: false }, project); // SDK queries are uncached, so no fresh; labels are never wanted in a verification snapshot
|
|
157
157
|
if (result.aborted)
|
|
158
158
|
return abortedAnswer(ctx.correlationId);
|
|
159
159
|
if (result.scopeNote !== undefined)
|
|
@@ -122,7 +122,7 @@ export declare function sdkCacheOptions(cache: 'on' | 'off'): Pick<AutotaskConfi
|
|
|
122
122
|
* fails the boot (or the CI test) instead of quietly shipping a tool surface that no longer
|
|
123
123
|
* describes the SDK behind it.
|
|
124
124
|
*/
|
|
125
|
-
export declare const BUILT_AGAINST_PLAN_HASH = "
|
|
125
|
+
export declare const BUILT_AGAINST_PLAN_HASH = "87f8f8c5b88bdca0067c5a6fc7bcbb854f16a3f0b5bdd23aff0c27d033b37809";
|
|
126
126
|
/**
|
|
127
127
|
* Fail fast when the installed SDK's plan has moved out from under this surface.
|
|
128
128
|
* Called at boot (main.ts) and safe to call repeatedly (pure comparison).
|
|
@@ -227,7 +227,7 @@ export function sdkCacheOptions(cache) {
|
|
|
227
227
|
* fails the boot (or the CI test) instead of quietly shipping a tool surface that no longer
|
|
228
228
|
* describes the SDK behind it.
|
|
229
229
|
*/
|
|
230
|
-
export const BUILT_AGAINST_PLAN_HASH = '
|
|
230
|
+
export const BUILT_AGAINST_PLAN_HASH = '87f8f8c5b88bdca0067c5a6fc7bcbb854f16a3f0b5bdd23aff0c27d033b37809';
|
|
231
231
|
/**
|
|
232
232
|
* Fail fast when the installed SDK's plan has moved out from under this surface.
|
|
233
233
|
* Called at boot (main.ts) and safe to call repeatedly (pure comparison).
|
package/dist/tools/composites.js
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
*/
|
|
19
19
|
import { AutotaskConfigError } from 'node-autotask';
|
|
20
20
|
import { TICKET_FULL_CONTEXT_INPUT, COMPANY_FULL_PROFILE_INPUT, COMPANY_PROFILE_PART_LIMIT_DEFAULT, CONFIGURATION_ITEM_PROFILE_INPUT, PROJECT_GET_CONTEXT_INPUT, QUOTE_GET_INPUT, INVOICE_GET_INPUT, CONTACT_FULL_PROFILE_INPUT, SERVICE_CALL_FULL_PROFILE_INPUT, CONTRACT_FULL_PROFILE_INPUT, RESOURCE_WORKLOAD_INPUT, closedInput, } from './schemas.js';
|
|
21
|
-
import { abortedAnswer } from './dispatch.js';
|
|
21
|
+
import { abortedAnswer, InputInvalidError } from './dispatch.js';
|
|
22
22
|
import { crossResourceUntrusted, documentCore, markFilePayload, markResult } from './results/untrusted.js';
|
|
23
23
|
import { ok } from './results/envelope.js';
|
|
24
24
|
import { resolveOutputTarget } from './output-file.js';
|
|
@@ -184,7 +184,7 @@ export function buildProjectGetContext(ctx) {
|
|
|
184
184
|
opts: (a) => bagOf([['names', a.names], ['maxNameReads', a.max_name_reads]]),
|
|
185
185
|
extraParts: async (a, signal) => {
|
|
186
186
|
const [phases, tasks] = await Promise.all([
|
|
187
|
-
projectRowsPart(ctx, 'phases', a.id, { limit: PROJECT_PHASE_CAP, includeFields: PHASE_FIELDS }, signal),
|
|
187
|
+
projectRowsPart(ctx, 'phases', a.id, { limit: PROJECT_PHASE_CAP, includeFields: PHASE_FIELDS, names: a.names }, signal),
|
|
188
188
|
projectRowsPart(ctx, 'tasks', a.id, { limit: PROJECT_TASK_CAP, includeFields: TASK_FIELDS, names: a.names }, signal),
|
|
189
189
|
]);
|
|
190
190
|
return phases === undefined || tasks === undefined ? undefined : { phases, tasks };
|
|
@@ -197,7 +197,7 @@ export function buildQuoteGet(ctx) {
|
|
|
197
197
|
operation: 'quotes.withItems',
|
|
198
198
|
title: 'Get a quote with its line items',
|
|
199
199
|
input: closedInput(QUOTE_GET_INPUT),
|
|
200
|
-
opts: (a) => bagOf([['itemLimit', a.item_limit]]),
|
|
200
|
+
opts: (a) => bagOf([['itemLimit', a.item_limit], ['names', a.names]]),
|
|
201
201
|
});
|
|
202
202
|
}
|
|
203
203
|
// ---- autotask_invoice_get: the invoice record (A1: there is no invoice_items resource) ----
|
|
@@ -223,6 +223,8 @@ export function buildInvoiceGet(ctx) {
|
|
|
223
223
|
run: async (raw, signal) => {
|
|
224
224
|
const args = raw;
|
|
225
225
|
const op = OPS[args.format];
|
|
226
|
+
if (args.names === true && args.format !== 'record')
|
|
227
|
+
throw new InputInvalidError('invoice: names applies to the record format only (the exports carry no labels)', 'names');
|
|
226
228
|
assertOperationPermitted(op, ctx.record(op), ctx.config, ctx.log);
|
|
227
229
|
if (args.format === 'record' && args.output_path !== undefined) {
|
|
228
230
|
throw new AutotaskConfigError('output_path applies to the export formats (html, xml, pdf): the record is a small JSON payload, always served in-band (nothing was dialled, nothing was written)', { operation: op });
|
|
@@ -237,7 +239,8 @@ export function buildInvoiceGet(ctx) {
|
|
|
237
239
|
relativePath: args.output_path,
|
|
238
240
|
})
|
|
239
241
|
: undefined;
|
|
240
|
-
|
|
242
|
+
// #502: names rides the record read only; the export formats carry no labels (names:true there is refused by the SDK)
|
|
243
|
+
const result = await ctx.ops.invokeRead(ctx.client, op, [args.id], args.names === undefined ? undefined : { names: args.names }, signal);
|
|
241
244
|
if (result === undefined)
|
|
242
245
|
return abortedAnswer(ctx.correlationId);
|
|
243
246
|
if (args.format === 'record') {
|
|
@@ -277,7 +280,7 @@ export function buildContactFullProfile(ctx) {
|
|
|
277
280
|
operation: 'contacts.fullProfile',
|
|
278
281
|
title: 'Get a contact with its company and open tickets',
|
|
279
282
|
input: closedInput(CONTACT_FULL_PROFILE_INPUT),
|
|
280
|
-
opts: (a) => bagOf([['ticketLimit', a.ticket_limit]]),
|
|
283
|
+
opts: (a) => bagOf([['ticketLimit', a.ticket_limit], ['names', a.names]]),
|
|
281
284
|
});
|
|
282
285
|
}
|
|
283
286
|
// ---- autotask_service_call_full_profile: the call, its tickets, its tasks, its resource assignments ----
|
|
@@ -286,7 +289,7 @@ export function buildServiceCallFullProfile(ctx) {
|
|
|
286
289
|
operation: 'service_calls.fullProfile',
|
|
287
290
|
title: 'Get a service call with its tickets, tasks and resource assignments',
|
|
288
291
|
input: closedInput(SERVICE_CALL_FULL_PROFILE_INPUT),
|
|
289
|
-
opts: (a) => bagOf([['ticketLimit', a.ticket_limit], ['taskLimit', a.task_limit]]),
|
|
292
|
+
opts: (a) => bagOf([['ticketLimit', a.ticket_limit], ['taskLimit', a.task_limit], ['names', a.names]]),
|
|
290
293
|
});
|
|
291
294
|
}
|
|
292
295
|
// ---- autotask_contract_full_profile: the contract, its services, its billing rules,
|
|
@@ -296,7 +299,7 @@ export function buildContractFullProfile(ctx) {
|
|
|
296
299
|
operation: 'contracts.fullProfile',
|
|
297
300
|
title: 'Get a contract with its services, billing rules, recent charges and service units',
|
|
298
301
|
input: closedInput(CONTRACT_FULL_PROFILE_INPUT),
|
|
299
|
-
opts: (a) => bagOf([['serviceLimit', a.service_limit], ['billingRuleLimit', a.billing_rule_limit]]),
|
|
302
|
+
opts: (a) => bagOf([['serviceLimit', a.service_limit], ['billingRuleLimit', a.billing_rule_limit], ['names', a.names]]),
|
|
300
303
|
});
|
|
301
304
|
}
|
|
302
305
|
// ---- autotask_resource_workload: the resource, its open work, its balances ----
|
|
@@ -305,7 +308,7 @@ export function buildResourceWorkload(ctx) {
|
|
|
305
308
|
operation: 'resources.workload',
|
|
306
309
|
title: 'Get a resource\'s workload: open tickets, assignments, balances, time off',
|
|
307
310
|
input: closedInput(RESOURCE_WORKLOAD_INPUT),
|
|
308
|
-
opts: (a) => bagOf([['ticketLimit', a.ticket_limit], ['taskLimit', a.task_limit], ['timeOffLimit', a.time_off_limit]]),
|
|
311
|
+
opts: (a) => bagOf([['ticketLimit', a.ticket_limit], ['taskLimit', a.task_limit], ['timeOffLimit', a.time_off_limit], ['names', a.names]]),
|
|
309
312
|
});
|
|
310
313
|
}
|
|
311
314
|
//# sourceMappingURL=composites.js.map
|
|
@@ -63,10 +63,12 @@ export interface ToolOps {
|
|
|
63
63
|
resources?: readonly string[];
|
|
64
64
|
match?: 'exact' | 'auto';
|
|
65
65
|
limit?: number;
|
|
66
|
+
names?: boolean;
|
|
66
67
|
}, signal?: AbortSignal): Promise<unknown>;
|
|
67
68
|
searchAcrossResources(client: ToolClient, query: string, opts?: {
|
|
68
69
|
resources?: readonly string[];
|
|
69
70
|
limit?: number;
|
|
71
|
+
names?: boolean;
|
|
70
72
|
}, signal?: AbortSignal): Promise<unknown>;
|
|
71
73
|
/** Zero wire by construction — no signal needed. */
|
|
72
74
|
relationshipMap(client: ToolClient, resourceKey: string): Promise<unknown>;
|
package/dist/tools/lists.js
CHANGED
|
@@ -14,6 +14,7 @@ import { isDeletedActivityAuditResource, staffReadParentFilter } from './catalog
|
|
|
14
14
|
import { abortedAnswer, InputInvalidError } from './dispatch.js';
|
|
15
15
|
import { documentCompanyScope, projectDocumentRows, scopedDocumentQuery, verifyDocumentRows } from './documents.js';
|
|
16
16
|
import { runAggregate } from './aggregate.js';
|
|
17
|
+
import { queryQuirkHint } from './query-hints.js';
|
|
17
18
|
import { markResult, markServerField, PROVENANCE, sanitiseVendorOutput } from './results/untrusted.js';
|
|
18
19
|
import { bytesCappedNote, QUERY_MAX_BYTES, withinQueryBudget } from './query-budget.js';
|
|
19
20
|
import { ok } from './results/envelope.js';
|
|
@@ -78,7 +79,7 @@ export function buildQuery(ctx) {
|
|
|
78
79
|
const clash = ['latest', 'include_fields', 'note_chars', 'format', 'output_path', 'acknowledge_unscoped'].find((k) => args[k] !== undefined);
|
|
79
80
|
if (clash !== undefined)
|
|
80
81
|
throw new InputInvalidError(`query: ${clash} lists rows; group_by, sum and count return totals only (pass filter, top and limit)`, clash);
|
|
81
|
-
return runAggregate(ctx, operation, args.filter, { groupBy: args.group_by, sum: args.sum, top: args.top, limit: args.limit }, signal, { resource: args.resource });
|
|
82
|
+
return runAggregate(ctx, operation, args.filter, { groupBy: args.group_by, sum: args.sum, top: args.top, limit: args.limit, names: args.names }, signal, { resource: args.resource });
|
|
82
83
|
}
|
|
83
84
|
if (args.top !== undefined)
|
|
84
85
|
throw new InputInvalidError('query: top caps the groups of group_by / sum', 'top');
|
|
@@ -104,6 +105,8 @@ export function buildQuery(ctx) {
|
|
|
104
105
|
bag.noteChars = args.note_chars;
|
|
105
106
|
if (args.acknowledge_unscoped !== undefined)
|
|
106
107
|
bag.acknowledgeUnscoped = args.acknowledge_unscoped;
|
|
108
|
+
if (args.names !== undefined)
|
|
109
|
+
bag.names = args.names;
|
|
107
110
|
const companies = args.resource === 'documents' ? documentCompanyScope(ctx) : undefined;
|
|
108
111
|
const rawResult = await ctx.ops.invokeRead(ctx.client, operation, [scopedDocumentQuery(operation, bag, companies)], undefined, signal)
|
|
109
112
|
.catch((err) => { throw fieldNameInput(scopeRequiredInput(err, 'filter', true), true); });
|
|
@@ -122,9 +125,11 @@ export function buildQuery(ctx) {
|
|
|
122
125
|
// (both are blank-to-undefined at boot)
|
|
123
126
|
const fileForm = ctx.config.MCP_TRANSPORT === 'stdio' && (ctx.config.AUTOTASK_OUTPUT_DIR !== undefined || ctx.config.AUTOTASK_STATE_DIR !== undefined);
|
|
124
127
|
// #451: the full answer as today, or (over the byte budget) the cut answer of the first `rows` rows
|
|
128
|
+
// #472: a covered query-scoped SDK quirk (time_entries approval fields) rides the line once
|
|
129
|
+
const hint = await queryQuirkHint(ctx, args.resource, args.filter);
|
|
125
130
|
const countText = (rows, cut) => cut === undefined
|
|
126
|
-
? `${typeof n === 'number' ? `${n} ${noun}` : noun} returned.${notes}`
|
|
127
|
-
: `${rows} of ${cut.rowsFetched} ${noun} returned.${notes}${bytesCappedNote(cut, fileForm)}`;
|
|
131
|
+
? `${typeof n === 'number' ? `${n} ${noun}` : noun} returned.${notes}${hint}`
|
|
132
|
+
: `${rows} of ${cut.rowsFetched} ${noun} returned.${notes}${bytesCappedNote(cut, fileForm)}${hint}`;
|
|
128
133
|
// #459: an empty userDefinedFields array the caller did not name is dropped before the marking, so the
|
|
129
134
|
// byte budget below measures the slimmed rows; JSON and TSV rows share this one result.
|
|
130
135
|
const marked = markResult(withoutEmptyUdfs(result, args.include_fields), fields);
|
|
@@ -232,6 +237,7 @@ async function outputPathAnswer(ctx, resource, operation, noun, fields, args, si
|
|
|
232
237
|
walk: { maxRows: OUTPUT_MAX_ROWS },
|
|
233
238
|
...(args.include_fields === undefined ? {} : { includeFields: args.include_fields }),
|
|
234
239
|
...(args.acknowledge_unscoped === undefined ? {} : { acknowledgeUnscoped: args.acknowledge_unscoped }),
|
|
240
|
+
...(args.names === undefined ? {} : { names: args.names }),
|
|
235
241
|
}, companies)], companies === undefined ? consume : page => {
|
|
236
242
|
verifyDocumentRows(operation, page.items, companies);
|
|
237
243
|
return consume({ ...page, items: projectDocumentRows(page.items, args.include_fields) });
|
|
@@ -242,7 +248,7 @@ async function outputPathAnswer(ctx, resource, operation, noun, fields, args, si
|
|
|
242
248
|
return abortedAnswer(ctx.correlationId);
|
|
243
249
|
const { columns, rowCount, hasMore, walkNotes, firstRows, bytes, truncatedNote } = exported;
|
|
244
250
|
const capNote = hasMore ? ` The walk is incomplete after ${rowCount} rows (truncated).` : '';
|
|
245
|
-
return ok(`Wrote ${rowCount} ${noun} as ${asTsv ? 'TSV' : 'JSON'} to the output directory.${capNote} The summary carries the path, ${columns.length} column(s) and the first rows; result.items is omitted
|
|
251
|
+
return ok(`Wrote ${rowCount} ${noun} as ${asTsv ? 'TSV' : 'JSON'} to the output directory.${capNote} The summary carries the path, ${columns.length} column(s) and the first rows; result.items is omitted.${await queryQuirkHint(ctx, resource, args.filter)}`, {
|
|
246
252
|
resource,
|
|
247
253
|
result: {
|
|
248
254
|
outputPath: target.path,
|
package/dist/tools/meta.js
CHANGED
|
@@ -785,13 +785,15 @@ export function buildRead(ctx) {
|
|
|
785
785
|
}
|
|
786
786
|
if (args.projection === 'billing_review_entry_v1')
|
|
787
787
|
return readBillingReview(ctx, args, signal);
|
|
788
|
+
// #502: the per-call label option, forwarded as the invoke-level `names` to every read of this call
|
|
789
|
+
const nameOpts = args.names === undefined ? undefined : { names: args.names };
|
|
788
790
|
if (args.projection === TICKET_NOTE_VERIFICATION_PROJECTION) {
|
|
789
791
|
if (args.operation !== 'ticket_notes.get' || args.items !== undefined || args.args.length !== 2 ||
|
|
790
792
|
args.args.some(id => !Number.isSafeInteger(id) || id <= 0)) {
|
|
791
793
|
throw new InputInvalidError('ticket note verification requires one ticket_notes.get and positive ticket/note ids', 'projection');
|
|
792
794
|
}
|
|
793
795
|
const [ticketId, noteId] = args.args;
|
|
794
|
-
const out = await readOneItem(ctx, args.operation, args.args, signal, { fresh: true }, raw => projectTicketNoteVerification(raw, ticketId, noteId));
|
|
796
|
+
const out = await readOneItem(ctx, args.operation, args.args, signal, { fresh: true, names: false }, raw => projectTicketNoteVerification(raw, ticketId, noteId));
|
|
795
797
|
if (out.aborted)
|
|
796
798
|
return abortedAnswer(ctx.correlationId);
|
|
797
799
|
return ok('Fresh TicketNote verification; note text withheld.', out.result);
|
|
@@ -800,13 +802,13 @@ export function buildRead(ctx) {
|
|
|
800
802
|
if (args.operation !== 'time_entries.get' || args.items !== undefined || args.args.length !== 1 || !Number.isSafeInteger(args.args[0]) || args.args[0] <= 0) {
|
|
801
803
|
throw new InputInvalidError('verification projection requires one time_entries.get and one positive numeric id', 'projection');
|
|
802
804
|
}
|
|
803
|
-
const out = await readOneItem(ctx, args.operation, args.args, signal, { fresh: true });
|
|
805
|
+
const out = await readOneItem(ctx, args.operation, args.args, signal, { fresh: true, names: false });
|
|
804
806
|
if (out.aborted)
|
|
805
807
|
return abortedAnswer(ctx.correlationId);
|
|
806
808
|
return ok('Fresh time-entry verification snapshot; note bodies withheld.', projectTimeEntryVerification(out.result, args.args[0]));
|
|
807
809
|
}
|
|
808
810
|
if (args.operation !== undefined) {
|
|
809
|
-
const out = await readOneItem(ctx, args.operation, args.args, signal);
|
|
811
|
+
const out = await readOneItem(ctx, args.operation, args.args, signal, nameOpts);
|
|
810
812
|
if (out.aborted)
|
|
811
813
|
return abortedAnswer(ctx.correlationId);
|
|
812
814
|
// ONE envelope for every read mode (#97): a single read is a one-slot `results`
|
|
@@ -821,7 +823,7 @@ export function buildRead(ctx) {
|
|
|
821
823
|
let aborted = false;
|
|
822
824
|
const results = await Promise.all(items.map(async (item) => {
|
|
823
825
|
try {
|
|
824
|
-
const out = await readOneItem(ctx, item.operation, item.args, signal);
|
|
826
|
+
const out = await readOneItem(ctx, item.operation, item.args, signal, nameOpts);
|
|
825
827
|
if (out.aborted)
|
|
826
828
|
aborted = true;
|
|
827
829
|
return { ok: true, operation: item.operation, result: out.result, ...(out.scopeNote !== undefined ? { scopeNote: out.scopeNote } : {}) };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ToolContext } from './context/types.js';
|
|
2
|
+
/** The ` <statement> <pointer>` text to append to a query answer line, or '' when no covered field is filtered. */
|
|
3
|
+
export declare function queryQuirkHint(ctx: ToolContext, resource: string, filter: unknown): Promise<string>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* tools/query-hints.ts — point-of-use hint for query-scoped SDK quirks (#472, #418): when a filter names a field a
|
|
3
|
+
* `vendor-managed-side-effect` quirk (ops includes `query`) covers, the quirk's own `statement` is appended once to the
|
|
4
|
+
* answer line. Derived from the SDK's relationship map (zero wire), never a server literal; a missing or unreadable
|
|
5
|
+
* map adds nothing. Rows and totals are never changed.
|
|
6
|
+
*/
|
|
7
|
+
import { relationshipMap } from 'node-autotask/operations';
|
|
8
|
+
/** Pointer for the time-entry approval trap: the reachable-everywhere unposted-time read. */
|
|
9
|
+
const UNPOSTED_POINTER = 'Unposted time: autotask_read companies.unbilledWork (source "date_range" with dateFrom and dateTo).';
|
|
10
|
+
/** Lower-cased field names named by a filter: a conditions array, a `{filter}` bag, or nested `and`/`or` `items`. */
|
|
11
|
+
function filterFields(node, out = new Set()) {
|
|
12
|
+
if (Array.isArray(node))
|
|
13
|
+
for (const n of node)
|
|
14
|
+
filterFields(n, out);
|
|
15
|
+
else if (node !== null && typeof node === 'object') {
|
|
16
|
+
const o = node;
|
|
17
|
+
if (typeof o.field === 'string')
|
|
18
|
+
out.add(o.field.toLowerCase());
|
|
19
|
+
filterFields(o.items, out);
|
|
20
|
+
filterFields(o.filter, out);
|
|
21
|
+
}
|
|
22
|
+
return out;
|
|
23
|
+
}
|
|
24
|
+
/** The ` <statement> <pointer>` text to append to a query answer line, or '' when no covered field is filtered. */
|
|
25
|
+
export async function queryQuirkHint(ctx, resource, filter) {
|
|
26
|
+
try {
|
|
27
|
+
const named = filterFields(filter);
|
|
28
|
+
const map = (await relationshipMap(ctx.client, resource));
|
|
29
|
+
const quirks = Array.isArray(map?.zoneFacts?.quirks) ? map.zoneFacts.quirks : [];
|
|
30
|
+
const hit = quirks.find((q) => q?.kind === 'vendor-managed-side-effect' && Array.isArray(q.ops) && q.ops.includes('query') && typeof q.statement === 'string'
|
|
31
|
+
&& Array.isArray(q.fields) && q.fields.some((f) => typeof f === 'string' && named.has(f.toLowerCase())));
|
|
32
|
+
if (hit === undefined)
|
|
33
|
+
return '';
|
|
34
|
+
return ` ${hit.statement}${resource === 'time_entries' ? ` ${UNPOSTED_POINTER}` : ''}`;
|
|
35
|
+
}
|
|
36
|
+
catch {
|
|
37
|
+
return '';
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=query-hints.js.map
|
package/dist/tools/resolves.d.ts
CHANGED
|
@@ -14,7 +14,11 @@ export declare function safeRef(text: string): string | undefined;
|
|
|
14
14
|
/** The human reference of a record of `resource` ({@link safeRef} text), or null when the record carries none. */
|
|
15
15
|
export declare function refOf(resource: string, record: unknown): string | null;
|
|
16
16
|
type Expand = boolean | 'full';
|
|
17
|
-
/**
|
|
17
|
+
/**
|
|
18
|
+
* #225: a record without its `[REDACTED]`, null and empty fields; `expand: "full"` keeps the record as the SDK returned it.
|
|
19
|
+
* #502: a null label sibling (`companyTypeLabel: null`: known value, no name) stays whenever its source value is kept,
|
|
20
|
+
* so "known but unmapped" is told apart from "no label metadata" (sibling absent).
|
|
21
|
+
*/
|
|
18
22
|
export declare function slimRecord(record: unknown, expand: Expand): unknown;
|
|
19
23
|
/**
|
|
20
24
|
* A resource outside the six this tool resolves, but with a `<resource>.resolve` read in the registry (company_locations,
|
package/dist/tools/resolves.js
CHANGED
|
@@ -111,11 +111,32 @@ function isEmptyValue(v) {
|
|
|
111
111
|
return v.length === 0;
|
|
112
112
|
return typeof v === 'object' && Object.keys(v).length === 0;
|
|
113
113
|
}
|
|
114
|
-
/**
|
|
114
|
+
/**
|
|
115
|
+
* The source key a label sibling belongs to: `<field>Label` (picklist) or `<id>Name` (`companyIDName`), else undefined.
|
|
116
|
+
* Only the SDK's two sibling shapes qualify, so a vendor field such as `companyName` is never read as one.
|
|
117
|
+
*/
|
|
118
|
+
function siblingSource(key) {
|
|
119
|
+
if (key.endsWith('Label') && key.length > 5)
|
|
120
|
+
return key.slice(0, -5);
|
|
121
|
+
if (key.endsWith('IDName'))
|
|
122
|
+
return key.slice(0, -4);
|
|
123
|
+
return undefined;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* #225: a record without its `[REDACTED]`, null and empty fields; `expand: "full"` keeps the record as the SDK returned it.
|
|
127
|
+
* #502: a null label sibling (`companyTypeLabel: null`: known value, no name) stays whenever its source value is kept,
|
|
128
|
+
* so "known but unmapped" is told apart from "no label metadata" (sibling absent).
|
|
129
|
+
*/
|
|
115
130
|
export function slimRecord(record, expand) {
|
|
116
131
|
if (expand === 'full' || typeof record !== 'object' || record === null || Array.isArray(record))
|
|
117
132
|
return record;
|
|
118
|
-
|
|
133
|
+
const rec = record;
|
|
134
|
+
return Object.fromEntries(Object.entries(rec).filter(([k, v]) => {
|
|
135
|
+
if (!isEmptyValue(v))
|
|
136
|
+
return true;
|
|
137
|
+
const source = siblingSource(k);
|
|
138
|
+
return v === null && source !== undefined && !isEmptyValue(rec[source]);
|
|
139
|
+
}));
|
|
119
140
|
}
|
|
120
141
|
/** One sweep match: compact by default, the (slim) record under `record` when `expand`. */
|
|
121
142
|
function matchRow(resource, record, expand) {
|
|
@@ -124,9 +145,15 @@ function matchRow(resource, record, expand) {
|
|
|
124
145
|
return { resource, ref, record: slimRecord(record, expand) };
|
|
125
146
|
const rec = asRecord(record);
|
|
126
147
|
const row = { resource, ref, id: rec.id ?? null };
|
|
127
|
-
for (const f of COMPACT_FIELDS[resource] ?? [])
|
|
128
|
-
if (rec[f]
|
|
129
|
-
|
|
148
|
+
for (const f of COMPACT_FIELDS[resource] ?? []) {
|
|
149
|
+
if (rec[f] === undefined)
|
|
150
|
+
continue;
|
|
151
|
+
row[f] = rec[f];
|
|
152
|
+
// #502: the label siblings of a kept field ride along, null included
|
|
153
|
+
for (const sibling of [`${f}Label`, `${f}Name`])
|
|
154
|
+
if (Object.hasOwn(rec, sibling))
|
|
155
|
+
row[sibling] = rec[sibling];
|
|
156
|
+
}
|
|
130
157
|
return row;
|
|
131
158
|
}
|
|
132
159
|
/**
|
|
@@ -206,30 +233,34 @@ const how = (match, matched) => (match === 'auto' ? { match: 'auto', matched } :
|
|
|
206
233
|
export function buildResolve(ctx) {
|
|
207
234
|
const input = closedInput(RESOLVE_INPUT, undefined, resolveRefusalHint);
|
|
208
235
|
const gate = (operation) => assertOperationPermitted(operation, ctx.record(operation), ctx.config, ctx.log);
|
|
209
|
-
const ticketRow = (t) => ({ ...matchRow('tickets', t, false), ...(asRecord(t).companyID !== undefined ? { companyID: asRecord(t).companyID } : {}) });
|
|
236
|
+
const ticketRow = (t) => ({ ...matchRow('tickets', t, false), ...(asRecord(t).companyID !== undefined ? { companyID: asRecord(t).companyID, ...(Object.hasOwn(asRecord(t), 'companyIDName') ? { companyIDName: asRecord(t).companyIDName } : {}) } : {}) });
|
|
210
237
|
return {
|
|
211
238
|
title: 'Resolve an identifier to an Autotask record',
|
|
212
239
|
input,
|
|
213
240
|
run: async (raw, signal) => {
|
|
214
241
|
const a = raw;
|
|
215
242
|
validateCombination(a);
|
|
243
|
+
// #502: the per-call label option rides every SDK read as the invoke-level `names` (absent: the client default, labels on)
|
|
244
|
+
const nm = a.names === undefined ? undefined : { names: a.names };
|
|
245
|
+
// companies.searchFuzzy has no label path (SDK coverage inventory): the SDK refuses names:true there, so only the opt-out is sent
|
|
246
|
+
const nmFuzzy = a.names === false ? nm : undefined;
|
|
216
247
|
/** The contains search of companies (`companies.search`, capped at 10) or tickets (`tickets.search` on title); undefined when aborted. */
|
|
217
248
|
const searchContains = async (resource) => {
|
|
218
249
|
if (resource === 'companies') {
|
|
219
250
|
gate('companies.search');
|
|
220
|
-
const found = await ctx.ops.invokeRead(ctx.client, 'companies.search', [String(a.identifier), { limit: Math.min(a.limit, COMPANY_CONTAINS_MAX_LIMIT), includeFamily: a.include_family }],
|
|
251
|
+
const found = await ctx.ops.invokeRead(ctx.client, 'companies.search', [String(a.identifier), { limit: Math.min(a.limit, COMPANY_CONTAINS_MAX_LIMIT), includeFamily: a.include_family }], nm, signal);
|
|
221
252
|
return found === undefined ? undefined : Array.isArray(found) ? found : [];
|
|
222
253
|
}
|
|
223
254
|
gate('tickets.search');
|
|
224
255
|
const opts = { limit: a.limit, ...(a.company_id !== undefined ? { companyID: a.company_id } : {}), ...(a.expand ? {} : { includeFields: ['ticketNumber', 'title', 'status', 'assignedResourceID', 'companyID'] }) };
|
|
225
|
-
const found = await ctx.ops.invokeRead(ctx.client, 'tickets.search', [String(a.identifier), opts],
|
|
256
|
+
const found = await ctx.ops.invokeRead(ctx.client, 'tickets.search', [String(a.identifier), opts], nm, signal);
|
|
226
257
|
return found === undefined ? undefined : Array.isArray(found) ? found : [];
|
|
227
258
|
};
|
|
228
259
|
/** Fuzzy rows are suggestions, including a single distance-zero hit; the caller always chooses. */
|
|
229
260
|
const searchFuzzy = async () => {
|
|
230
261
|
gate('companies.searchFuzzy');
|
|
231
262
|
const opts = { limit: Math.min(a.limit, COMPANY_CONTAINS_MAX_LIMIT), includeFamily: a.include_family, includeInactive: a.include_inactive };
|
|
232
|
-
const value = await ctx.ops.invokeRead(ctx.client, 'companies.searchFuzzy', [String(a.identifier), opts],
|
|
263
|
+
const value = await ctx.ops.invokeRead(ctx.client, 'companies.searchFuzzy', [String(a.identifier), opts], nmFuzzy, signal);
|
|
233
264
|
if (value === undefined)
|
|
234
265
|
return abortedAnswer(ctx.correlationId);
|
|
235
266
|
const found = value;
|
|
@@ -274,11 +305,11 @@ export function buildResolve(ctx) {
|
|
|
274
305
|
};
|
|
275
306
|
if (a.match === 'contains') {
|
|
276
307
|
gate('operations.searchAcrossResources');
|
|
277
|
-
const value = await ctx.ops.searchAcrossResources(ctx.client, String(a.identifier), { resources, limit: a.limit }, signal);
|
|
308
|
+
const value = await ctx.ops.searchAcrossResources(ctx.client, String(a.identifier), { resources, limit: a.limit, ...nm }, signal);
|
|
278
309
|
return value === undefined ? abortedAnswer(ctx.correlationId) : renderContains(value);
|
|
279
310
|
}
|
|
280
311
|
gate('operations.resolveAny');
|
|
281
|
-
const value = await ctx.ops.resolveAny(ctx.client, a.identifier, { resources, match: a.match, limit: a.limit }, signal);
|
|
312
|
+
const value = await ctx.ops.resolveAny(ctx.client, a.identifier, { resources, match: a.match, limit: a.limit, ...nm }, signal);
|
|
282
313
|
if (value === undefined)
|
|
283
314
|
return abortedAnswer(ctx.correlationId);
|
|
284
315
|
const v = value;
|
|
@@ -304,7 +335,7 @@ export function buildResolve(ctx) {
|
|
|
304
335
|
// ---- staff (#172): one email can match an owner and every API user they own ----
|
|
305
336
|
if (resource === 'resources') {
|
|
306
337
|
gate('operations.resolveStaff');
|
|
307
|
-
const value = await ctx.ops.invokeRead(ctx.client, 'operations.resolveStaff', [a.identifier, { emailOnly: a.by === 'email', includeApiUsers: a.include_api_users, limit: Math.min(a.limit, 10) }], undefined, signal);
|
|
338
|
+
const value = await ctx.ops.invokeRead(ctx.client, 'operations.resolveStaff', [a.identifier, { emailOnly: a.by === 'email', includeApiUsers: a.include_api_users, limit: Math.min(a.limit, 10), ...nm }], undefined, signal);
|
|
308
339
|
if (value === undefined)
|
|
309
340
|
return abortedAnswer(ctx.correlationId);
|
|
310
341
|
const found = value;
|
|
@@ -341,7 +372,7 @@ export function buildResolve(ctx) {
|
|
|
341
372
|
const { operation } = BY_KEY[a.by];
|
|
342
373
|
gate(operation);
|
|
343
374
|
// A miss is a typed NOT_FOUND from the SDK — runTool maps it to TARGET_NOT_FOUND.
|
|
344
|
-
const record = await ctx.ops.invokeRead(ctx.client, operation, [a.identifier],
|
|
375
|
+
const record = await ctx.ops.invokeRead(ctx.client, operation, [a.identifier], nm, signal);
|
|
345
376
|
if (record === undefined)
|
|
346
377
|
return abortedAnswer(ctx.correlationId);
|
|
347
378
|
if (record === null)
|
|
@@ -388,7 +419,7 @@ export function buildResolve(ctx) {
|
|
|
388
419
|
gate(operation);
|
|
389
420
|
try {
|
|
390
421
|
if (!containsOnly)
|
|
391
|
-
record = await ctx.ops.invokeRead(ctx.client, operation, a.expand ? [a.identifier, { expand: true }] : [a.identifier],
|
|
422
|
+
record = await ctx.ops.invokeRead(ctx.client, operation, a.expand ? [a.identifier, { expand: true }] : [a.identifier], nm, signal);
|
|
392
423
|
}
|
|
393
424
|
catch (err) {
|
|
394
425
|
const e = err;
|
|
@@ -316,7 +316,13 @@ export function markReadResult(operation, result) {
|
|
|
316
316
|
if (operation.startsWith('inventory_items.') || (operation === 'operations.aggregate' && value.resource === 'inventory_items')) {
|
|
317
317
|
return markResult(result, INVENTORY_FIELDS);
|
|
318
318
|
}
|
|
319
|
-
|
|
319
|
+
// node-autotask 0.102.0 stamps `value` untrusted on the inventory field reads; in the field catalog a picklist
|
|
320
|
+
// `value` is the id a write sends back, so it stays plain there and on every other field-metadata read (its `label`
|
|
321
|
+
// is still wrapped). Only the two inventory resources the SDK stamped keep `value` wrapped.
|
|
322
|
+
const metadataRead = operation === 'operations.fieldCatalog' || /\.(getFieldInfo|getUdfInfo)(ByParent)?$/.test(operation);
|
|
323
|
+
const stampedValue = /^inventory_(item_serial_numbers|stocked_items)\./.test(operation);
|
|
324
|
+
const fields = metadataRead && !stampedValue ? CROSS_RESOURCE_UNTRUSTED.filter((f) => f !== 'value') : CROSS_RESOURCE_UNTRUSTED;
|
|
325
|
+
const projected = markResult(result, fields);
|
|
320
326
|
if (operation === 'operations.fetchByIds' || operation === 'operations.resolveAny' || operation === 'operations.searchAcrossResources') {
|
|
321
327
|
const field = operation === 'operations.searchAcrossResources' ? 'matches' : 'value';
|
|
322
328
|
const results = markInventoryRows(projected.results, field);
|
package/dist/tools/schemas.d.ts
CHANGED
|
@@ -210,6 +210,7 @@ export declare const READ_INPUT: z.ZodPipe<z.ZodObject<{
|
|
|
210
210
|
billing_review_entry_v1: "billing_review_entry_v1";
|
|
211
211
|
ticket_note_verification_v1: "ticket_note_verification_v1";
|
|
212
212
|
}>>, unknown>;
|
|
213
|
+
names: z.ZodOptional<z.ZodBoolean>;
|
|
213
214
|
expectedReadRuntime: z.ZodOptional<z.ZodString>;
|
|
214
215
|
}, z.core.$strip>, z.ZodTransform<{
|
|
215
216
|
args: unknown[];
|
|
@@ -219,6 +220,7 @@ export declare const READ_INPUT: z.ZodPipe<z.ZodObject<{
|
|
|
219
220
|
args: unknown[];
|
|
220
221
|
}[] | undefined;
|
|
221
222
|
projection?: "default" | "time_entry_verification_v1" | "billing_review_entry_v1" | "ticket_note_verification_v1" | undefined;
|
|
223
|
+
names?: boolean | undefined;
|
|
222
224
|
expectedReadRuntime?: string | undefined;
|
|
223
225
|
}, {
|
|
224
226
|
args: unknown[];
|
|
@@ -228,6 +230,7 @@ export declare const READ_INPUT: z.ZodPipe<z.ZodObject<{
|
|
|
228
230
|
args: unknown[];
|
|
229
231
|
}[] | undefined;
|
|
230
232
|
projection?: "default" | "time_entry_verification_v1" | "billing_review_entry_v1" | "ticket_note_verification_v1" | undefined;
|
|
233
|
+
names?: boolean | undefined;
|
|
231
234
|
expectedReadRuntime?: string | undefined;
|
|
232
235
|
}>>;
|
|
233
236
|
export declare const RESOLVE_INPUT: z.ZodObject<{
|
|
@@ -265,6 +268,7 @@ export declare const RESOLVE_INPUT: z.ZodObject<{
|
|
|
265
268
|
include_inactive: z.ZodDefault<z.ZodBoolean>;
|
|
266
269
|
include_api_users: z.ZodDefault<z.ZodBoolean>;
|
|
267
270
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
271
|
+
names: z.ZodOptional<z.ZodBoolean>;
|
|
268
272
|
}, z.core.$strip>;
|
|
269
273
|
export declare const QUERY_INPUT: z.ZodObject<{
|
|
270
274
|
resource: z.ZodString;
|
|
@@ -283,6 +287,7 @@ export declare const QUERY_INPUT: z.ZodObject<{
|
|
|
283
287
|
}>>;
|
|
284
288
|
acknowledge_unscoped: z.ZodOptional<z.ZodBoolean>;
|
|
285
289
|
output_path: z.ZodOptional<z.ZodString>;
|
|
290
|
+
names: z.ZodOptional<z.ZodBoolean>;
|
|
286
291
|
}, z.core.$strip>;
|
|
287
292
|
export declare const TENANT_STATUS_PARTS: readonly ["identity", "version", "thresholds", "server", "time"];
|
|
288
293
|
export declare const TENANT_STATUS_INPUT: z.ZodObject<{
|
|
@@ -419,16 +424,19 @@ export declare const SERVICE_CALL_FULL_PROFILE_INPUT: z.ZodObject<{
|
|
|
419
424
|
id: z.ZodNumber;
|
|
420
425
|
ticket_limit: z.ZodDefault<z.ZodNumber>;
|
|
421
426
|
task_limit: z.ZodDefault<z.ZodNumber>;
|
|
427
|
+
names: z.ZodDefault<z.ZodBoolean>;
|
|
422
428
|
}, z.core.$strip>;
|
|
423
429
|
export declare const RESOURCE_WORKLOAD_INPUT: z.ZodObject<{
|
|
424
430
|
id: z.ZodNumber;
|
|
425
431
|
ticket_limit: z.ZodDefault<z.ZodNumber>;
|
|
426
432
|
task_limit: z.ZodDefault<z.ZodNumber>;
|
|
427
433
|
time_off_limit: z.ZodDefault<z.ZodNumber>;
|
|
434
|
+
names: z.ZodOptional<z.ZodBoolean>;
|
|
428
435
|
}, z.core.$strip>;
|
|
429
436
|
export declare const CONTACT_FULL_PROFILE_INPUT: z.ZodObject<{
|
|
430
437
|
id: z.ZodNumber;
|
|
431
438
|
ticket_limit: z.ZodDefault<z.ZodNumber>;
|
|
439
|
+
names: z.ZodDefault<z.ZodBoolean>;
|
|
432
440
|
}, z.core.$strip>;
|
|
433
441
|
export declare const CONFIGURATION_ITEM_PROFILE_INPUT: z.ZodObject<{
|
|
434
442
|
names: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -442,10 +450,12 @@ export declare const CONTRACT_FULL_PROFILE_INPUT: z.ZodObject<{
|
|
|
442
450
|
id: z.ZodNumber;
|
|
443
451
|
service_limit: z.ZodDefault<z.ZodNumber>;
|
|
444
452
|
billing_rule_limit: z.ZodDefault<z.ZodNumber>;
|
|
453
|
+
names: z.ZodDefault<z.ZodBoolean>;
|
|
445
454
|
}, z.core.$strip>;
|
|
446
455
|
export declare const QUOTE_GET_INPUT: z.ZodObject<{
|
|
447
456
|
id: z.ZodNumber;
|
|
448
457
|
item_limit: z.ZodDefault<z.ZodNumber>;
|
|
458
|
+
names: z.ZodOptional<z.ZodBoolean>;
|
|
449
459
|
}, z.core.$strip>;
|
|
450
460
|
export declare const INVOICE_GET_INPUT: z.ZodObject<{
|
|
451
461
|
id: z.ZodNumber;
|
|
@@ -455,6 +465,7 @@ export declare const INVOICE_GET_INPUT: z.ZodObject<{
|
|
|
455
465
|
xml: "xml";
|
|
456
466
|
pdf: "pdf";
|
|
457
467
|
}>>;
|
|
468
|
+
names: z.ZodOptional<z.ZodBoolean>;
|
|
458
469
|
output_path: z.ZodOptional<z.ZodString>;
|
|
459
470
|
}, z.core.$strip>;
|
|
460
471
|
export declare const WRITE_INPUT: z.ZodObject<{
|