@utcp/http 1.0.13 → 1.1.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/dist/index.d.cts CHANGED
@@ -18,6 +18,7 @@ interface HttpCallTemplate extends CallTemplate {
18
18
  body_field?: string;
19
19
  header_fields?: string[];
20
20
  auth_tools?: Auth | null;
21
+ allowed_communication_protocols?: string[];
21
22
  }
22
23
  /**
23
24
  * HTTP Call Template schema for RESTful HTTP/HTTPS API tools.
@@ -149,6 +150,7 @@ interface StreamableHttpCallTemplate extends CallTemplate {
149
150
  headers?: Record<string, string>;
150
151
  body_field?: string | null;
151
152
  header_fields?: string[] | null;
153
+ allowed_communication_protocols?: string[];
152
154
  }
153
155
  /**
154
156
  * Streamable HTTP Call Template schema.
@@ -245,6 +247,7 @@ interface SseCallTemplate extends CallTemplate {
245
247
  headers?: Record<string, string>;
246
248
  body_field?: string | null;
247
249
  header_fields?: string[] | null;
250
+ allowed_communication_protocols?: string[];
248
251
  }
249
252
  /**
250
253
  * SSE Call Template schema.
package/dist/index.d.ts CHANGED
@@ -18,6 +18,7 @@ interface HttpCallTemplate extends CallTemplate {
18
18
  body_field?: string;
19
19
  header_fields?: string[];
20
20
  auth_tools?: Auth | null;
21
+ allowed_communication_protocols?: string[];
21
22
  }
22
23
  /**
23
24
  * HTTP Call Template schema for RESTful HTTP/HTTPS API tools.
@@ -149,6 +150,7 @@ interface StreamableHttpCallTemplate extends CallTemplate {
149
150
  headers?: Record<string, string>;
150
151
  body_field?: string | null;
151
152
  header_fields?: string[] | null;
153
+ allowed_communication_protocols?: string[];
152
154
  }
153
155
  /**
154
156
  * Streamable HTTP Call Template schema.
@@ -245,6 +247,7 @@ interface SseCallTemplate extends CallTemplate {
245
247
  headers?: Record<string, string>;
246
248
  body_field?: string | null;
247
249
  header_fields?: string[] | null;
250
+ allowed_communication_protocols?: string[];
248
251
  }
249
252
  /**
250
253
  * SSE Call Template schema.
package/dist/index.js CHANGED
@@ -4067,7 +4067,8 @@ var HttpCallTemplateSchema = external_exports.object({
4067
4067
  return new AuthSerializer().validateDict(val);
4068
4068
  }
4069
4069
  return val;
4070
- }).describe("Authentication configuration for generated tools")
4070
+ }).describe("Authentication configuration for generated tools"),
4071
+ allowed_communication_protocols: external_exports.array(external_exports.string()).optional().describe("Optional list of allowed communication protocol types for tools within this manual.")
4071
4072
  });
4072
4073
  var HttpCallTemplateSerializer = class extends Serializer {
4073
4074
  toDict(obj) {
@@ -4081,7 +4082,8 @@ var HttpCallTemplateSerializer = class extends Serializer {
4081
4082
  auth_tools: obj.auth_tools ? new AuthSerializer().toDict(obj.auth_tools) : null,
4082
4083
  headers: obj.headers,
4083
4084
  body_field: obj.body_field,
4084
- header_fields: obj.header_fields
4085
+ header_fields: obj.header_fields,
4086
+ allowed_communication_protocols: obj.allowed_communication_protocols
4085
4087
  };
4086
4088
  }
4087
4089
  validateDict(obj) {
@@ -4108,7 +4110,8 @@ var StreamableHttpCallTemplateSchema = external_exports.object({
4108
4110
  auth: AuthSchema2.optional().describe("Optional authentication configuration."),
4109
4111
  headers: external_exports.record(external_exports.string(), external_exports.string()).optional().describe("Optional static headers to include in requests."),
4110
4112
  body_field: external_exports.string().nullable().optional().describe("The name of the single input field to be sent as the request body."),
4111
- header_fields: external_exports.array(external_exports.string()).nullable().optional().describe("List of input fields to be sent as request headers.")
4113
+ header_fields: external_exports.array(external_exports.string()).nullable().optional().describe("List of input fields to be sent as request headers."),
4114
+ allowed_communication_protocols: external_exports.array(external_exports.string()).optional().describe("Optional list of allowed communication protocol types for tools within this manual.")
4112
4115
  });
4113
4116
  var StreamableHttpCallTemplateSerializer = class extends Serializer2 {
4114
4117
  /**
@@ -4127,7 +4130,8 @@ var StreamableHttpCallTemplateSerializer = class extends Serializer2 {
4127
4130
  auth: obj.auth,
4128
4131
  headers: obj.headers,
4129
4132
  body_field: obj.body_field,
4130
- header_fields: obj.header_fields
4133
+ header_fields: obj.header_fields,
4134
+ allowed_communication_protocols: obj.allowed_communication_protocols
4131
4135
  };
4132
4136
  }
4133
4137
  /**
@@ -4157,7 +4161,8 @@ var SseCallTemplateSchema = external_exports.object({
4157
4161
  auth: AuthSchema3.optional().describe("Optional authentication configuration."),
4158
4162
  headers: external_exports.record(external_exports.string(), external_exports.string()).optional().describe("Optional static headers for the initial connection."),
4159
4163
  body_field: external_exports.string().nullable().optional().describe("The name of the single input field to be sent as the request body."),
4160
- header_fields: external_exports.array(external_exports.string()).nullable().optional().describe("List of input fields to be sent as request headers for the initial connection.")
4164
+ header_fields: external_exports.array(external_exports.string()).nullable().optional().describe("List of input fields to be sent as request headers for the initial connection."),
4165
+ allowed_communication_protocols: external_exports.array(external_exports.string()).optional().describe("Optional list of allowed communication protocol types for tools within this manual.")
4161
4166
  });
4162
4167
  var SseCallTemplateSerializer = class extends Serializer3 {
4163
4168
  /**
@@ -4175,7 +4180,8 @@ var SseCallTemplateSerializer = class extends Serializer3 {
4175
4180
  auth: obj.auth,
4176
4181
  headers: obj.headers,
4177
4182
  body_field: obj.body_field,
4178
- header_fields: obj.header_fields
4183
+ header_fields: obj.header_fields,
4184
+ allowed_communication_protocols: obj.allowed_communication_protocols
4179
4185
  };
4180
4186
  }
4181
4187
  /**