@postmcp/types 0.1.8 → 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
@@ -153,6 +153,19 @@ interface AuthConfig {
153
153
  allowedExternalHosts?: string[];
154
154
  allowCrossOriginAuth?: boolean;
155
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
+ }
156
169
  interface AsyncPollResult {
157
170
  response: AxiosResponse;
158
171
  timedOut: boolean;
@@ -332,4 +345,4 @@ interface StudioCommandOptions {
332
345
  noOpen?: boolean;
333
346
  }
334
347
 
335
- 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
@@ -153,6 +153,19 @@ interface AuthConfig {
153
153
  allowedExternalHosts?: string[];
154
154
  allowCrossOriginAuth?: boolean;
155
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
+ }
156
169
  interface AsyncPollResult {
157
170
  response: AxiosResponse;
158
171
  timedOut: boolean;
@@ -332,4 +345,4 @@ interface StudioCommandOptions {
332
345
  noOpen?: boolean;
333
346
  }
334
347
 
335
- 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.8",
3
+ "version": "0.1.9",
4
4
  "description": "Unified TypeScript types and interfaces for the PostMCP ecosystem",
5
5
  "publishConfig": {
6
6
  "access": "public"