@postmcp/types 0.1.7 → 0.1.9

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/dist/index.d.mts CHANGED
@@ -41,6 +41,7 @@ interface NormalizedOperation {
41
41
  security?: Array<Record<string, string[]>>;
42
42
  isDeprecated?: boolean;
43
43
  contentType?: string;
44
+ extensions?: Record<string, any>;
44
45
  }
45
46
  interface SecurityScheme {
46
47
  type: 'apiKey' | 'http' | 'oauth2' | 'openIdConnect';
@@ -152,6 +153,19 @@ interface AuthConfig {
152
153
  allowedExternalHosts?: string[];
153
154
  allowCrossOriginAuth?: boolean;
154
155
  }
156
+ interface SandboxAuthConfig {
157
+ bearerToken?: string;
158
+ headers?: Record<string, string>;
159
+ apiKey?: {
160
+ name: string;
161
+ value: string;
162
+ in?: 'header' | 'query' | 'cookie';
163
+ };
164
+ customFields?: Array<{
165
+ key: string;
166
+ value: string;
167
+ }>;
168
+ }
155
169
  interface AsyncPollResult {
156
170
  response: AxiosResponse;
157
171
  timedOut: boolean;
@@ -188,13 +202,15 @@ interface SerializedRequestParameters {
188
202
  interface ToolRegistryOptions {
189
203
  forceJIT?: boolean;
190
204
  maxMountedTools?: number;
205
+ hotToolKeywords?: string[];
191
206
  }
192
207
  interface PostMcpServerOptions {
193
208
  spec: NormalizedSpec;
194
209
  baseUrl?: string;
195
210
  auth?: AuthConfig;
196
211
  tokenDiet?: TokenDietOptions;
197
- jit?: boolean;
212
+ jit?: boolean | ToolRegistryOptions;
213
+ hotToolKeywords?: string[];
198
214
  dryRun?: boolean;
199
215
  serverName?: string;
200
216
  serverVersion?: string;
@@ -271,7 +287,12 @@ interface PostMcpCliConfig {
271
287
  spec?: string;
272
288
  baseUrl?: string;
273
289
  auth?: AuthConfig;
274
- jit?: boolean;
290
+ jit?: boolean | {
291
+ enabled?: boolean;
292
+ maxMountedTools?: number;
293
+ hotToolKeywords?: string[];
294
+ };
295
+ hotToolKeywords?: string[];
275
296
  dryRun?: boolean;
276
297
  transport?: 'stdio' | 'http';
277
298
  port?: number;
@@ -296,6 +317,7 @@ interface RunCommandOptions {
296
317
  bearer?: string;
297
318
  apiKey?: string;
298
319
  jit?: boolean;
320
+ hotToolKeywords?: string;
299
321
  dryRun?: boolean;
300
322
  tokenDiet?: boolean;
301
323
  maxTokens?: string;
@@ -323,4 +345,4 @@ interface StudioCommandOptions {
323
345
  noOpen?: boolean;
324
346
  }
325
347
 
326
- export type { AsyncPollResult, AuthConfig, DryRunResult, EndpointDef, ExportCommandOptions, GenerateCommandOptions, GeneratedProject, HttpMethod, HttpRequestConfig, HttpResponseResult, HttpServerOptions, InspectCommandOptions, JSONSchemaObject, MacroDefinition, MacroExecutionResult, MacroStep, McpImageContent, NormalizedOperation, NormalizedParameter, NormalizedSpec, PostMcpCliConfig, PostMcpServerOptions, Preset, PresetCategory, PresetFieldMask, PresetMacro, ResilientHttpClientOptions, RiskTier, RunCommandOptions, SecurityScheme, SerializedRequestParameters, StudioCommandOptions, TokenDietConfig, TokenDietOptions, TokenDietResult, ToolAnnotations, ToolRegistryOptions };
348
+ export type { AsyncPollResult, AuthConfig, DryRunResult, EndpointDef, ExportCommandOptions, GenerateCommandOptions, GeneratedProject, HttpMethod, HttpRequestConfig, HttpResponseResult, HttpServerOptions, InspectCommandOptions, JSONSchemaObject, MacroDefinition, MacroExecutionResult, MacroStep, McpImageContent, NormalizedOperation, NormalizedParameter, NormalizedSpec, PostMcpCliConfig, PostMcpServerOptions, Preset, PresetCategory, PresetFieldMask, PresetMacro, ResilientHttpClientOptions, RiskTier, RunCommandOptions, SandboxAuthConfig, SecurityScheme, SerializedRequestParameters, StudioCommandOptions, TokenDietConfig, TokenDietOptions, TokenDietResult, ToolAnnotations, ToolRegistryOptions };
package/dist/index.d.ts CHANGED
@@ -41,6 +41,7 @@ interface NormalizedOperation {
41
41
  security?: Array<Record<string, string[]>>;
42
42
  isDeprecated?: boolean;
43
43
  contentType?: string;
44
+ extensions?: Record<string, any>;
44
45
  }
45
46
  interface SecurityScheme {
46
47
  type: 'apiKey' | 'http' | 'oauth2' | 'openIdConnect';
@@ -152,6 +153,19 @@ interface AuthConfig {
152
153
  allowedExternalHosts?: string[];
153
154
  allowCrossOriginAuth?: boolean;
154
155
  }
156
+ interface SandboxAuthConfig {
157
+ bearerToken?: string;
158
+ headers?: Record<string, string>;
159
+ apiKey?: {
160
+ name: string;
161
+ value: string;
162
+ in?: 'header' | 'query' | 'cookie';
163
+ };
164
+ customFields?: Array<{
165
+ key: string;
166
+ value: string;
167
+ }>;
168
+ }
155
169
  interface AsyncPollResult {
156
170
  response: AxiosResponse;
157
171
  timedOut: boolean;
@@ -188,13 +202,15 @@ interface SerializedRequestParameters {
188
202
  interface ToolRegistryOptions {
189
203
  forceJIT?: boolean;
190
204
  maxMountedTools?: number;
205
+ hotToolKeywords?: string[];
191
206
  }
192
207
  interface PostMcpServerOptions {
193
208
  spec: NormalizedSpec;
194
209
  baseUrl?: string;
195
210
  auth?: AuthConfig;
196
211
  tokenDiet?: TokenDietOptions;
197
- jit?: boolean;
212
+ jit?: boolean | ToolRegistryOptions;
213
+ hotToolKeywords?: string[];
198
214
  dryRun?: boolean;
199
215
  serverName?: string;
200
216
  serverVersion?: string;
@@ -271,7 +287,12 @@ interface PostMcpCliConfig {
271
287
  spec?: string;
272
288
  baseUrl?: string;
273
289
  auth?: AuthConfig;
274
- jit?: boolean;
290
+ jit?: boolean | {
291
+ enabled?: boolean;
292
+ maxMountedTools?: number;
293
+ hotToolKeywords?: string[];
294
+ };
295
+ hotToolKeywords?: string[];
275
296
  dryRun?: boolean;
276
297
  transport?: 'stdio' | 'http';
277
298
  port?: number;
@@ -296,6 +317,7 @@ interface RunCommandOptions {
296
317
  bearer?: string;
297
318
  apiKey?: string;
298
319
  jit?: boolean;
320
+ hotToolKeywords?: string;
299
321
  dryRun?: boolean;
300
322
  tokenDiet?: boolean;
301
323
  maxTokens?: string;
@@ -323,4 +345,4 @@ interface StudioCommandOptions {
323
345
  noOpen?: boolean;
324
346
  }
325
347
 
326
- export type { AsyncPollResult, AuthConfig, DryRunResult, EndpointDef, ExportCommandOptions, GenerateCommandOptions, GeneratedProject, HttpMethod, HttpRequestConfig, HttpResponseResult, HttpServerOptions, InspectCommandOptions, JSONSchemaObject, MacroDefinition, MacroExecutionResult, MacroStep, McpImageContent, NormalizedOperation, NormalizedParameter, NormalizedSpec, PostMcpCliConfig, PostMcpServerOptions, Preset, PresetCategory, PresetFieldMask, PresetMacro, ResilientHttpClientOptions, RiskTier, RunCommandOptions, SecurityScheme, SerializedRequestParameters, StudioCommandOptions, TokenDietConfig, TokenDietOptions, TokenDietResult, ToolAnnotations, ToolRegistryOptions };
348
+ export type { AsyncPollResult, AuthConfig, DryRunResult, EndpointDef, ExportCommandOptions, GenerateCommandOptions, GeneratedProject, HttpMethod, HttpRequestConfig, HttpResponseResult, HttpServerOptions, InspectCommandOptions, JSONSchemaObject, MacroDefinition, MacroExecutionResult, MacroStep, McpImageContent, NormalizedOperation, NormalizedParameter, NormalizedSpec, PostMcpCliConfig, PostMcpServerOptions, Preset, PresetCategory, PresetFieldMask, PresetMacro, ResilientHttpClientOptions, RiskTier, RunCommandOptions, SandboxAuthConfig, SecurityScheme, SerializedRequestParameters, StudioCommandOptions, TokenDietConfig, TokenDietOptions, TokenDietResult, ToolAnnotations, ToolRegistryOptions };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@postmcp/types",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "Unified TypeScript types and interfaces for the PostMCP ecosystem",
5
5
  "publishConfig": {
6
6
  "access": "public"