@pptb/types 1.2.7 → 1.2.8-beta.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.
package/README.md CHANGED
@@ -157,7 +157,7 @@ In addition to `package.json`, the validator automatically checks a `pptb.config
157
157
  | `agents.defaultMode` | ❌ | Default mode when the agent does not request one explicitly |
158
158
  | `agents.timeoutMS` | ❌ | Optional timeout hint in milliseconds for two-way calls |
159
159
  | `agents.executionModes` | ❌ | Array of supported execution modes (`"windowed"`, `"headless"`) |
160
- | `agents.defaultExecutionMode` | ❌ | Default execution mode when the agent does not request one explicitly |
160
+ | `agents.defaultExecutionMode` | ❌ | Currently ignored: headless is used whenever supported and windowed is the backup. May be removed in a future release |
161
161
  | `agents.headlessEntry` | ❌ | Path to the compiled automated runtime entry point |
162
162
 
163
163
  > \*\* Required only when the `invocation` object is present.
package/dataverseAPI.d.ts CHANGED
@@ -23,6 +23,8 @@ declare namespace DataverseAPI {
23
23
  status: number;
24
24
  statusText?: string;
25
25
  headers: Record<string, string>;
26
+ /** Selected headers from the outer HTTP batch response, shared by every operation result. */
27
+ batchHeaders?: Record<string, string>;
26
28
  body?: unknown;
27
29
  }
28
30
  /**
@@ -49,10 +51,7 @@ declare namespace DataverseAPI {
49
51
  export type EntityRelatedMetadataBasePath = "Attributes" | "Keys" | "ManyToOneRelationships" | "OneToManyRelationships" | "ManyToManyRelationships" | "Privileges";
50
52
 
51
53
  export type EntityRelatedMetadataPath =
52
- | EntityRelatedMetadataBasePath
53
- | `${EntityRelatedMetadataBasePath}/${string}`
54
- | `${EntityRelatedMetadataBasePath}(${string})`
55
- | `${EntityRelatedMetadataBasePath}(${string})/${string}`;
54
+ EntityRelatedMetadataBasePath | `${EntityRelatedMetadataBasePath}/${string}` | `${EntityRelatedMetadataBasePath}(${string})` | `${EntityRelatedMetadataBasePath}(${string})/${string}`;
56
55
 
57
56
  type EntityRelatedMetadataRecordPath = `${EntityRelatedMetadataBasePath}/${string}` | `${EntityRelatedMetadataBasePath}(${string})` | `${EntityRelatedMetadataBasePath}(${string})/${string}`;
58
57
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pptb/types",
3
- "version": "1.2.7",
3
+ "version": "1.2.8-beta.0",
4
4
  "description": "Type definitions for Power Platform ToolBox APIs and validity checks for tool packages",
5
5
  "main": "index.d.ts",
6
6
  "types": "index.d.ts",
package/pptbConfig.d.ts CHANGED
@@ -86,6 +86,12 @@ export interface JsonSchemaProperty {
86
86
  enum?: string[];
87
87
  /** Describes the items of an array property. */
88
88
  items?: JsonSchemaProperty;
89
+ /** Short human-readable label. Shown to the user when an agent must ask for this value. */
90
+ title?: string;
91
+ /** Explains the value. Shown to the user when an agent must ask for this value. */
92
+ description?: string;
93
+ /** Marks the property as required. Missing required values are requested from the user via the MCP agent. */
94
+ required?: boolean;
89
95
  }
90
96
 
91
97
  /** A JSON-schema-style object definition: a map of named property descriptors. */
@@ -117,8 +123,8 @@ export type AgentExecutionMode = "windowed" | "headless";
117
123
  * - `modes`: supported MCP invocation modes for this tool.
118
124
  * - `defaultMode`: fallback mode when the caller does not specify one.
119
125
  * - `timeoutMS`: optional timeout hint, in milliseconds, for two-way calls.
120
- * - `executionModes`: supported execution modes for this tool.
121
- * - `defaultExecutionMode`: fallback execution mode when the caller does not specify one.
126
+ * - `executionModes`: supported execution modes for this tool. When both are listed, `headless` is used by default and `windowed` is a backup.
127
+ * - `defaultExecutionMode`: currently ignored by the MCP server (headless is preferred whenever supported); may be removed in a future release.
122
128
  * - `headlessEntry`: path to the compiled automated runtime entry point.
123
129
  */
124
130
  export interface AgentsConfig {
@@ -136,7 +142,7 @@ export interface AgentsConfig {
136
142
  timeoutMS?: number;
137
143
  /** Execution modes supported by the tool. */
138
144
  executionModes?: AgentExecutionMode[];
139
- /** Default execution mode when an agent does not request one explicitly. */
145
+ /** Currently ignored: headless is preferred whenever supported. May be removed in a future release. */
140
146
  defaultExecutionMode?: AgentExecutionMode;
141
147
  /** Path to the compiled automated runtime entry point. */
142
148
  headlessEntry?: string;