agentcat-api 1.0.2__tar.gz → 1.0.5__tar.gz

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.
Files changed (47) hide show
  1. {agentcat_api-1.0.2 → agentcat_api-1.0.5}/PKG-INFO +5 -2
  2. {agentcat_api-1.0.2 → agentcat_api-1.0.5}/agentcat_api/__init__.py +7 -1
  3. {agentcat_api-1.0.2 → agentcat_api-1.0.5}/agentcat_api/api/__init__.py +1 -0
  4. agentcat_api-1.0.5/agentcat_api/api/server_info_api.py +326 -0
  5. {agentcat_api-1.0.2 → agentcat_api-1.0.5}/agentcat_api/api_client.py +1 -1
  6. {agentcat_api-1.0.2 → agentcat_api-1.0.5}/agentcat_api/configuration.py +1 -1
  7. {agentcat_api-1.0.2 → agentcat_api-1.0.5}/agentcat_api/models/__init__.py +2 -0
  8. {agentcat_api-1.0.2 → agentcat_api-1.0.5}/agentcat_api/models/publish_event_request.py +2 -2
  9. agentcat_api-1.0.5/agentcat_api/models/publish_server_info_request.py +98 -0
  10. agentcat_api-1.0.5/agentcat_api/models/server_info_accepted_response.py +87 -0
  11. agentcat_api-1.0.5/agentcat_api/test/test_publish_server_info_request.py +57 -0
  12. agentcat_api-1.0.5/agentcat_api/test/test_server_info_accepted_response.py +51 -0
  13. agentcat_api-1.0.5/agentcat_api/test/test_server_info_api.py +38 -0
  14. {agentcat_api-1.0.2 → agentcat_api-1.0.5}/agentcat_api.egg-info/PKG-INFO +5 -2
  15. {agentcat_api-1.0.2 → agentcat_api-1.0.5}/agentcat_api.egg-info/SOURCES.txt +6 -0
  16. {agentcat_api-1.0.2 → agentcat_api-1.0.5}/agentcat_api_README.md +4 -1
  17. {agentcat_api-1.0.2 → agentcat_api-1.0.5}/setup.py +1 -1
  18. {agentcat_api-1.0.2 → agentcat_api-1.0.5}/MANIFEST.in +0 -0
  19. {agentcat_api-1.0.2 → agentcat_api-1.0.5}/agentcat_api/api/alerts_api.py +0 -0
  20. {agentcat_api-1.0.2 → agentcat_api-1.0.5}/agentcat_api/api/events_api.py +0 -0
  21. {agentcat_api-1.0.2 → agentcat_api-1.0.5}/agentcat_api/api/notifications_api.py +0 -0
  22. {agentcat_api-1.0.2 → agentcat_api-1.0.5}/agentcat_api/api_response.py +0 -0
  23. {agentcat_api-1.0.2 → agentcat_api-1.0.5}/agentcat_api/exceptions.py +0 -0
  24. {agentcat_api-1.0.2 → agentcat_api-1.0.5}/agentcat_api/models/email_channel_verify_request.py +0 -0
  25. {agentcat_api-1.0.2 → agentcat_api-1.0.5}/agentcat_api/models/email_channel_verify_response.py +0 -0
  26. {agentcat_api-1.0.2 → agentcat_api-1.0.5}/agentcat_api/models/error.py +0 -0
  27. {agentcat_api-1.0.2 → agentcat_api-1.0.5}/agentcat_api/models/event_accepted_response.py +0 -0
  28. {agentcat_api-1.0.2 → agentcat_api-1.0.5}/agentcat_api/models/query_timeout.py +0 -0
  29. {agentcat_api-1.0.2 → agentcat_api-1.0.5}/agentcat_api/models/unsubscribe_request_request.py +0 -0
  30. {agentcat_api-1.0.2 → agentcat_api-1.0.5}/agentcat_api/models/validation_error_value.py +0 -0
  31. {agentcat_api-1.0.2 → agentcat_api-1.0.5}/agentcat_api/rest.py +0 -0
  32. {agentcat_api-1.0.2 → agentcat_api-1.0.5}/agentcat_api/test/__init__.py +0 -0
  33. {agentcat_api-1.0.2 → agentcat_api-1.0.5}/agentcat_api/test/test_alerts_api.py +0 -0
  34. {agentcat_api-1.0.2 → agentcat_api-1.0.5}/agentcat_api/test/test_email_channel_verify_request.py +0 -0
  35. {agentcat_api-1.0.2 → agentcat_api-1.0.5}/agentcat_api/test/test_email_channel_verify_response.py +0 -0
  36. {agentcat_api-1.0.2 → agentcat_api-1.0.5}/agentcat_api/test/test_error.py +0 -0
  37. {agentcat_api-1.0.2 → agentcat_api-1.0.5}/agentcat_api/test/test_event_accepted_response.py +0 -0
  38. {agentcat_api-1.0.2 → agentcat_api-1.0.5}/agentcat_api/test/test_events_api.py +0 -0
  39. {agentcat_api-1.0.2 → agentcat_api-1.0.5}/agentcat_api/test/test_notifications_api.py +0 -0
  40. {agentcat_api-1.0.2 → agentcat_api-1.0.5}/agentcat_api/test/test_publish_event_request.py +0 -0
  41. {agentcat_api-1.0.2 → agentcat_api-1.0.5}/agentcat_api/test/test_query_timeout.py +0 -0
  42. {agentcat_api-1.0.2 → agentcat_api-1.0.5}/agentcat_api/test/test_unsubscribe_request_request.py +0 -0
  43. {agentcat_api-1.0.2 → agentcat_api-1.0.5}/agentcat_api/test/test_validation_error_value.py +0 -0
  44. {agentcat_api-1.0.2 → agentcat_api-1.0.5}/agentcat_api.egg-info/dependency_links.txt +0 -0
  45. {agentcat_api-1.0.2 → agentcat_api-1.0.5}/agentcat_api.egg-info/requires.txt +0 -0
  46. {agentcat_api-1.0.2 → agentcat_api-1.0.5}/agentcat_api.egg-info/top_level.txt +0 -0
  47. {agentcat_api-1.0.2 → agentcat_api-1.0.5}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agentcat_api
3
- Version: 1.0.2
3
+ Version: 1.0.5
4
4
  License: MIT
5
5
  Description-Content-Type: text/markdown
6
6
  Requires-Dist: urllib3<3.0.0,>=2.1.0
@@ -17,7 +17,7 @@ API for AgentCat application
17
17
  The `agentcat_api` package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
18
18
 
19
19
  - API version: v1
20
- - Package version: 1.0.2
20
+ - Package version: 1.0.5
21
21
  - Generator version: 7.14.0
22
22
  - Build package: org.openapitools.codegen.languages.PythonClientCodegen
23
23
 
@@ -82,6 +82,7 @@ Class | Method | HTTP request | Description
82
82
  *EventsApi* | [**publish_event**](agentcat_api/docs/EventsApi.md#publish_event) | **POST** /v1/public/events/ | Publish analytics event
83
83
  *NotificationsApi* | [**unsubscribe_notification**](agentcat_api/docs/NotificationsApi.md#unsubscribe_notification) | **POST** /v1/public/notifications/unsubscribe | Disable an email notification type for the token&#39;s user
84
84
  *NotificationsApi* | [**verify_email_channel**](agentcat_api/docs/NotificationsApi.md#verify_email_channel) | **POST** /v1/public/notifications/channels/verify | Activate an email channel from its verification link
85
+ *ServerInfoApi* | [**publish_server_info**](agentcat_api/docs/ServerInfoApi.md#publish_server_info) | **POST** /v1/public/server-info/ | Publish MCP server info
85
86
 
86
87
 
87
88
  ## Documentation For Models
@@ -91,7 +92,9 @@ Class | Method | HTTP request | Description
91
92
  - [Error](agentcat_api/docs/Error.md)
92
93
  - [EventAcceptedResponse](agentcat_api/docs/EventAcceptedResponse.md)
93
94
  - [PublishEventRequest](agentcat_api/docs/PublishEventRequest.md)
95
+ - [PublishServerInfoRequest](agentcat_api/docs/PublishServerInfoRequest.md)
94
96
  - [QueryTimeout](agentcat_api/docs/QueryTimeout.md)
97
+ - [ServerInfoAcceptedResponse](agentcat_api/docs/ServerInfoAcceptedResponse.md)
95
98
  - [UnsubscribeRequestRequest](agentcat_api/docs/UnsubscribeRequestRequest.md)
96
99
  - [ValidationErrorValue](agentcat_api/docs/ValidationErrorValue.md)
97
100
 
@@ -14,13 +14,14 @@
14
14
  """ # noqa: E501
15
15
 
16
16
 
17
- __version__ = "1.0.2"
17
+ __version__ = "1.0.5"
18
18
 
19
19
  # Define package exports
20
20
  __all__ = [
21
21
  "AlertsApi",
22
22
  "EventsApi",
23
23
  "NotificationsApi",
24
+ "ServerInfoApi",
24
25
  "ApiResponse",
25
26
  "ApiClient",
26
27
  "Configuration",
@@ -35,7 +36,9 @@ __all__ = [
35
36
  "Error",
36
37
  "EventAcceptedResponse",
37
38
  "PublishEventRequest",
39
+ "PublishServerInfoRequest",
38
40
  "QueryTimeout",
41
+ "ServerInfoAcceptedResponse",
39
42
  "UnsubscribeRequestRequest",
40
43
  "ValidationErrorValue",
41
44
  ]
@@ -44,6 +47,7 @@ __all__ = [
44
47
  from agentcat_api.api.alerts_api import AlertsApi as AlertsApi
45
48
  from agentcat_api.api.events_api import EventsApi as EventsApi
46
49
  from agentcat_api.api.notifications_api import NotificationsApi as NotificationsApi
50
+ from agentcat_api.api.server_info_api import ServerInfoApi as ServerInfoApi
47
51
 
48
52
  # import ApiClient
49
53
  from agentcat_api.api_response import ApiResponse as ApiResponse
@@ -62,6 +66,8 @@ from agentcat_api.models.email_channel_verify_response import EmailChannelVerify
62
66
  from agentcat_api.models.error import Error as Error
63
67
  from agentcat_api.models.event_accepted_response import EventAcceptedResponse as EventAcceptedResponse
64
68
  from agentcat_api.models.publish_event_request import PublishEventRequest as PublishEventRequest
69
+ from agentcat_api.models.publish_server_info_request import PublishServerInfoRequest as PublishServerInfoRequest
65
70
  from agentcat_api.models.query_timeout import QueryTimeout as QueryTimeout
71
+ from agentcat_api.models.server_info_accepted_response import ServerInfoAcceptedResponse as ServerInfoAcceptedResponse
66
72
  from agentcat_api.models.unsubscribe_request_request import UnsubscribeRequestRequest as UnsubscribeRequestRequest
67
73
  from agentcat_api.models.validation_error_value import ValidationErrorValue as ValidationErrorValue
@@ -4,4 +4,5 @@
4
4
  from agentcat_api.api.alerts_api import AlertsApi
5
5
  from agentcat_api.api.events_api import EventsApi
6
6
  from agentcat_api.api.notifications_api import NotificationsApi
7
+ from agentcat_api.api.server_info_api import ServerInfoApi
7
8
 
@@ -0,0 +1,326 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ AgentCat API
5
+
6
+ API for AgentCat application
7
+
8
+ The version of the OpenAPI document: v1
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+ import warnings
15
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
+ from typing import Any, Dict, List, Optional, Tuple, Union
17
+ from typing_extensions import Annotated
18
+
19
+ from typing import Optional
20
+ from agentcat_api.models.publish_server_info_request import PublishServerInfoRequest
21
+ from agentcat_api.models.server_info_accepted_response import ServerInfoAcceptedResponse
22
+
23
+ from agentcat_api.api_client import ApiClient, RequestSerialized
24
+ from agentcat_api.api_response import ApiResponse
25
+ from agentcat_api.rest import RESTResponseType
26
+
27
+
28
+ class ServerInfoApi:
29
+ """NOTE: This class is auto generated by OpenAPI Generator
30
+ Ref: https://openapi-generator.tech
31
+
32
+ Do not edit the class manually.
33
+ """
34
+
35
+ def __init__(self, api_client=None) -> None:
36
+ if api_client is None:
37
+ api_client = ApiClient.get_default()
38
+ self.api_client = api_client
39
+
40
+
41
+ @validate_call
42
+ def publish_server_info(
43
+ self,
44
+ publish_server_info_request: Optional[PublishServerInfoRequest] = None,
45
+ _request_timeout: Union[
46
+ None,
47
+ Annotated[StrictFloat, Field(gt=0)],
48
+ Tuple[
49
+ Annotated[StrictFloat, Field(gt=0)],
50
+ Annotated[StrictFloat, Field(gt=0)]
51
+ ]
52
+ ] = None,
53
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
54
+ _content_type: Optional[StrictStr] = None,
55
+ _headers: Optional[Dict[StrictStr, Any]] = None,
56
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
57
+ ) -> ServerInfoAcceptedResponse:
58
+ """Publish MCP server info
59
+
60
+ Tell AgentCat what an MCP server offers to agents: its name, version, title, instructions and its lists of tools, resources, resource templates and prompts. Send it when the server starts and then once an hour. The body can hold 1,000,000 bytes at most. AgentCat counts each non-ASCII character as 6 bytes, and an emoji as 12 bytes. AgentCat keeps one row per server name per day and drops repeats. Returns immediately with 202 Accepted.
61
+
62
+ :param publish_server_info_request:
63
+ :type publish_server_info_request: PublishServerInfoRequest
64
+ :param _request_timeout: timeout setting for this request. If one
65
+ number provided, it will be total request
66
+ timeout. It can also be a pair (tuple) of
67
+ (connection, read) timeouts.
68
+ :type _request_timeout: int, tuple(int, int), optional
69
+ :param _request_auth: set to override the auth_settings for an a single
70
+ request; this effectively ignores the
71
+ authentication in the spec for a single request.
72
+ :type _request_auth: dict, optional
73
+ :param _content_type: force content-type for the request.
74
+ :type _content_type: str, Optional
75
+ :param _headers: set to override the headers for a single
76
+ request; this effectively ignores the headers
77
+ in the spec for a single request.
78
+ :type _headers: dict, optional
79
+ :param _host_index: set to override the host_index for a single
80
+ request; this effectively ignores the host_index
81
+ in the spec for a single request.
82
+ :type _host_index: int, optional
83
+ :return: Returns the result object.
84
+ """ # noqa: E501
85
+
86
+ _param = self._publish_server_info_serialize(
87
+ publish_server_info_request=publish_server_info_request,
88
+ _request_auth=_request_auth,
89
+ _content_type=_content_type,
90
+ _headers=_headers,
91
+ _host_index=_host_index
92
+ )
93
+
94
+ _response_types_map: Dict[str, Optional[str]] = {
95
+ '202': "ServerInfoAcceptedResponse",
96
+ '400': None,
97
+ '413': None,
98
+ '503': None,
99
+ '401': "Error",
100
+ '403': "Error",
101
+ }
102
+ response_data = self.api_client.call_api(
103
+ *_param,
104
+ _request_timeout=_request_timeout
105
+ )
106
+ response_data.read()
107
+ return self.api_client.response_deserialize(
108
+ response_data=response_data,
109
+ response_types_map=_response_types_map,
110
+ ).data
111
+
112
+
113
+ @validate_call
114
+ def publish_server_info_with_http_info(
115
+ self,
116
+ publish_server_info_request: Optional[PublishServerInfoRequest] = None,
117
+ _request_timeout: Union[
118
+ None,
119
+ Annotated[StrictFloat, Field(gt=0)],
120
+ Tuple[
121
+ Annotated[StrictFloat, Field(gt=0)],
122
+ Annotated[StrictFloat, Field(gt=0)]
123
+ ]
124
+ ] = None,
125
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
126
+ _content_type: Optional[StrictStr] = None,
127
+ _headers: Optional[Dict[StrictStr, Any]] = None,
128
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
129
+ ) -> ApiResponse[ServerInfoAcceptedResponse]:
130
+ """Publish MCP server info
131
+
132
+ Tell AgentCat what an MCP server offers to agents: its name, version, title, instructions and its lists of tools, resources, resource templates and prompts. Send it when the server starts and then once an hour. The body can hold 1,000,000 bytes at most. AgentCat counts each non-ASCII character as 6 bytes, and an emoji as 12 bytes. AgentCat keeps one row per server name per day and drops repeats. Returns immediately with 202 Accepted.
133
+
134
+ :param publish_server_info_request:
135
+ :type publish_server_info_request: PublishServerInfoRequest
136
+ :param _request_timeout: timeout setting for this request. If one
137
+ number provided, it will be total request
138
+ timeout. It can also be a pair (tuple) of
139
+ (connection, read) timeouts.
140
+ :type _request_timeout: int, tuple(int, int), optional
141
+ :param _request_auth: set to override the auth_settings for an a single
142
+ request; this effectively ignores the
143
+ authentication in the spec for a single request.
144
+ :type _request_auth: dict, optional
145
+ :param _content_type: force content-type for the request.
146
+ :type _content_type: str, Optional
147
+ :param _headers: set to override the headers for a single
148
+ request; this effectively ignores the headers
149
+ in the spec for a single request.
150
+ :type _headers: dict, optional
151
+ :param _host_index: set to override the host_index for a single
152
+ request; this effectively ignores the host_index
153
+ in the spec for a single request.
154
+ :type _host_index: int, optional
155
+ :return: Returns the result object.
156
+ """ # noqa: E501
157
+
158
+ _param = self._publish_server_info_serialize(
159
+ publish_server_info_request=publish_server_info_request,
160
+ _request_auth=_request_auth,
161
+ _content_type=_content_type,
162
+ _headers=_headers,
163
+ _host_index=_host_index
164
+ )
165
+
166
+ _response_types_map: Dict[str, Optional[str]] = {
167
+ '202': "ServerInfoAcceptedResponse",
168
+ '400': None,
169
+ '413': None,
170
+ '503': None,
171
+ '401': "Error",
172
+ '403': "Error",
173
+ }
174
+ response_data = self.api_client.call_api(
175
+ *_param,
176
+ _request_timeout=_request_timeout
177
+ )
178
+ response_data.read()
179
+ return self.api_client.response_deserialize(
180
+ response_data=response_data,
181
+ response_types_map=_response_types_map,
182
+ )
183
+
184
+
185
+ @validate_call
186
+ def publish_server_info_without_preload_content(
187
+ self,
188
+ publish_server_info_request: Optional[PublishServerInfoRequest] = None,
189
+ _request_timeout: Union[
190
+ None,
191
+ Annotated[StrictFloat, Field(gt=0)],
192
+ Tuple[
193
+ Annotated[StrictFloat, Field(gt=0)],
194
+ Annotated[StrictFloat, Field(gt=0)]
195
+ ]
196
+ ] = None,
197
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
198
+ _content_type: Optional[StrictStr] = None,
199
+ _headers: Optional[Dict[StrictStr, Any]] = None,
200
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
201
+ ) -> RESTResponseType:
202
+ """Publish MCP server info
203
+
204
+ Tell AgentCat what an MCP server offers to agents: its name, version, title, instructions and its lists of tools, resources, resource templates and prompts. Send it when the server starts and then once an hour. The body can hold 1,000,000 bytes at most. AgentCat counts each non-ASCII character as 6 bytes, and an emoji as 12 bytes. AgentCat keeps one row per server name per day and drops repeats. Returns immediately with 202 Accepted.
205
+
206
+ :param publish_server_info_request:
207
+ :type publish_server_info_request: PublishServerInfoRequest
208
+ :param _request_timeout: timeout setting for this request. If one
209
+ number provided, it will be total request
210
+ timeout. It can also be a pair (tuple) of
211
+ (connection, read) timeouts.
212
+ :type _request_timeout: int, tuple(int, int), optional
213
+ :param _request_auth: set to override the auth_settings for an a single
214
+ request; this effectively ignores the
215
+ authentication in the spec for a single request.
216
+ :type _request_auth: dict, optional
217
+ :param _content_type: force content-type for the request.
218
+ :type _content_type: str, Optional
219
+ :param _headers: set to override the headers for a single
220
+ request; this effectively ignores the headers
221
+ in the spec for a single request.
222
+ :type _headers: dict, optional
223
+ :param _host_index: set to override the host_index for a single
224
+ request; this effectively ignores the host_index
225
+ in the spec for a single request.
226
+ :type _host_index: int, optional
227
+ :return: Returns the result object.
228
+ """ # noqa: E501
229
+
230
+ _param = self._publish_server_info_serialize(
231
+ publish_server_info_request=publish_server_info_request,
232
+ _request_auth=_request_auth,
233
+ _content_type=_content_type,
234
+ _headers=_headers,
235
+ _host_index=_host_index
236
+ )
237
+
238
+ _response_types_map: Dict[str, Optional[str]] = {
239
+ '202': "ServerInfoAcceptedResponse",
240
+ '400': None,
241
+ '413': None,
242
+ '503': None,
243
+ '401': "Error",
244
+ '403': "Error",
245
+ }
246
+ response_data = self.api_client.call_api(
247
+ *_param,
248
+ _request_timeout=_request_timeout
249
+ )
250
+ return response_data.response
251
+
252
+
253
+ def _publish_server_info_serialize(
254
+ self,
255
+ publish_server_info_request,
256
+ _request_auth,
257
+ _content_type,
258
+ _headers,
259
+ _host_index,
260
+ ) -> RequestSerialized:
261
+
262
+ _host = None
263
+
264
+ _collection_formats: Dict[str, str] = {
265
+ }
266
+
267
+ _path_params: Dict[str, str] = {}
268
+ _query_params: List[Tuple[str, str]] = []
269
+ _header_params: Dict[str, Optional[str]] = _headers or {}
270
+ _form_params: List[Tuple[str, str]] = []
271
+ _files: Dict[
272
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
273
+ ] = {}
274
+ _body_params: Optional[bytes] = None
275
+
276
+ # process the path parameters
277
+ # process the query parameters
278
+ # process the header parameters
279
+ # process the form parameters
280
+ # process the body parameter
281
+ if publish_server_info_request is not None:
282
+ _body_params = publish_server_info_request
283
+
284
+
285
+ # set the HTTP header `Accept`
286
+ if 'Accept' not in _header_params:
287
+ _header_params['Accept'] = self.api_client.select_header_accept(
288
+ [
289
+ 'application/json'
290
+ ]
291
+ )
292
+
293
+ # set the HTTP header `Content-Type`
294
+ if _content_type:
295
+ _header_params['Content-Type'] = _content_type
296
+ else:
297
+ _default_content_type = (
298
+ self.api_client.select_header_content_type(
299
+ [
300
+ 'application/json'
301
+ ]
302
+ )
303
+ )
304
+ if _default_content_type is not None:
305
+ _header_params['Content-Type'] = _default_content_type
306
+
307
+ # authentication setting
308
+ _auth_settings: List[str] = [
309
+ ]
310
+
311
+ return self.api_client.param_serialize(
312
+ method='POST',
313
+ resource_path='/v1/public/server-info/',
314
+ path_params=_path_params,
315
+ query_params=_query_params,
316
+ header_params=_header_params,
317
+ body=_body_params,
318
+ post_params=_form_params,
319
+ files=_files,
320
+ auth_settings=_auth_settings,
321
+ collection_formats=_collection_formats,
322
+ _host=_host,
323
+ _request_auth=_request_auth
324
+ )
325
+
326
+
@@ -90,7 +90,7 @@ class ApiClient:
90
90
  self.default_headers[header_name] = header_value
91
91
  self.cookie = cookie
92
92
  # Set default User-Agent.
93
- self.user_agent = 'OpenAPI-Generator/1.0.2/python'
93
+ self.user_agent = 'OpenAPI-Generator/1.0.5/python'
94
94
  self.client_side_validation = configuration.client_side_validation
95
95
 
96
96
  def __enter__(self):
@@ -531,7 +531,7 @@ conf = agentcat_api.Configuration(
531
531
  "OS: {env}\n"\
532
532
  "Python Version: {pyversion}\n"\
533
533
  "Version of the API: v1\n"\
534
- "SDK Package Version: 1.0.2".\
534
+ "SDK Package Version: 1.0.5".\
535
535
  format(env=sys.platform, pyversion=sys.version)
536
536
 
537
537
  def get_host_settings(self) -> List[HostSetting]:
@@ -19,6 +19,8 @@ from agentcat_api.models.email_channel_verify_response import EmailChannelVerify
19
19
  from agentcat_api.models.error import Error
20
20
  from agentcat_api.models.event_accepted_response import EventAcceptedResponse
21
21
  from agentcat_api.models.publish_event_request import PublishEventRequest
22
+ from agentcat_api.models.publish_server_info_request import PublishServerInfoRequest
22
23
  from agentcat_api.models.query_timeout import QueryTimeout
24
+ from agentcat_api.models.server_info_accepted_response import ServerInfoAcceptedResponse
23
25
  from agentcat_api.models.unsubscribe_request_request import UnsubscribeRequestRequest
24
26
  from agentcat_api.models.validation_error_value import ValidationErrorValue
@@ -64,8 +64,8 @@ class PublishEventRequest(BaseModel):
64
64
  if value is None:
65
65
  return value
66
66
 
67
- if value not in set(['mcp:ping', 'mcp:initialize', 'mcp:completion/complete', 'mcp:logging/setLevel', 'mcp:prompts/get', 'mcp:prompts/list', 'mcp:resources/list', 'mcp:resources/templates/list', 'mcp:resources/read', 'mcp:resources/subscribe', 'mcp:resources/unsubscribe', 'mcp:tools/call', 'mcp:tools/list', 'mcp:tasks/get', 'mcp:tasks/result', 'mcp:tasks/list', 'mcp:tasks/cancel', 'agentcat:identify']):
68
- raise ValueError("must be one of enum values ('mcp:ping', 'mcp:initialize', 'mcp:completion/complete', 'mcp:logging/setLevel', 'mcp:prompts/get', 'mcp:prompts/list', 'mcp:resources/list', 'mcp:resources/templates/list', 'mcp:resources/read', 'mcp:resources/subscribe', 'mcp:resources/unsubscribe', 'mcp:tools/call', 'mcp:tools/list', 'mcp:tasks/get', 'mcp:tasks/result', 'mcp:tasks/list', 'mcp:tasks/cancel', 'agentcat:identify')")
67
+ if value not in set(['mcp:ping', 'mcp:initialize', 'mcp:completion/complete', 'mcp:logging/setLevel', 'mcp:prompts/get', 'mcp:prompts/list', 'mcp:resources/list', 'mcp:resources/templates/list', 'mcp:resources/read', 'mcp:resources/subscribe', 'mcp:resources/unsubscribe', 'mcp:tools/call', 'mcp:tools/list', 'mcp:tasks/get', 'mcp:tasks/result', 'mcp:tasks/list', 'mcp:tasks/cancel', 'agentcat:identify', 'agentcat:custom']):
68
+ raise ValueError("must be one of enum values ('mcp:ping', 'mcp:initialize', 'mcp:completion/complete', 'mcp:logging/setLevel', 'mcp:prompts/get', 'mcp:prompts/list', 'mcp:resources/list', 'mcp:resources/templates/list', 'mcp:resources/read', 'mcp:resources/subscribe', 'mcp:resources/unsubscribe', 'mcp:tools/call', 'mcp:tools/list', 'mcp:tasks/get', 'mcp:tasks/result', 'mcp:tasks/list', 'mcp:tasks/cancel', 'agentcat:identify', 'agentcat:custom')")
69
69
  return value
70
70
 
71
71
  model_config = ConfigDict(
@@ -0,0 +1,98 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ AgentCat API
5
+
6
+ API for AgentCat application
7
+
8
+ The version of the OpenAPI document: v1
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+ from pydantic import BaseModel, ConfigDict, Field, StrictStr
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from typing_extensions import Annotated
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+
26
+ class PublishServerInfoRequest(BaseModel):
27
+ """
28
+ PublishServerInfoRequest
29
+ """ # noqa: E501
30
+ project_id: StrictStr = Field(description="ID of the project that the MCP server reports to.")
31
+ server_name: Optional[Annotated[str, Field(strict=True, max_length=255)]] = Field(default=None, description="Name of the MCP server. Send the same value as server_name on events.")
32
+ server_version: Optional[StrictStr] = Field(default=None, description="Version of the MCP server, as on events.")
33
+ server_title: Optional[StrictStr] = Field(default=None, description="Display title of the MCP server.")
34
+ instructions: Optional[StrictStr] = Field(default=None, description="Instructions that the MCP server gives to agents. AgentCat keeps the first 100,000 characters.")
35
+ features: Optional[Dict[str, Any]] = Field(default=None, description="What the MCP server offers to agents. Each key is a list type of the MCP specification (tools, resources, resourceTemplates, prompts) with the items as the server lists them. Send every item with its full description. AgentCat stores keys that it does not know.")
36
+ __properties: ClassVar[List[str]] = ["project_id", "server_name", "server_version", "server_title", "instructions", "features"]
37
+
38
+ model_config = ConfigDict(
39
+ populate_by_name=True,
40
+ validate_assignment=True,
41
+ protected_namespaces=(),
42
+ )
43
+
44
+
45
+ def to_str(self) -> str:
46
+ """Returns the string representation of the model using alias"""
47
+ return pprint.pformat(self.model_dump(by_alias=True))
48
+
49
+ def to_json(self) -> str:
50
+ """Returns the JSON representation of the model using alias"""
51
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
52
+ return json.dumps(self.to_dict())
53
+
54
+ @classmethod
55
+ def from_json(cls, json_str: str) -> Optional[Self]:
56
+ """Create an instance of PublishServerInfoRequest from a JSON string"""
57
+ return cls.from_dict(json.loads(json_str))
58
+
59
+ def to_dict(self) -> Dict[str, Any]:
60
+ """Return the dictionary representation of the model using alias.
61
+
62
+ This has the following differences from calling pydantic's
63
+ `self.model_dump(by_alias=True)`:
64
+
65
+ * `None` is only added to the output dict for nullable fields that
66
+ were set at model initialization. Other fields with value `None`
67
+ are ignored.
68
+ """
69
+ excluded_fields: Set[str] = set([
70
+ ])
71
+
72
+ _dict = self.model_dump(
73
+ by_alias=True,
74
+ exclude=excluded_fields,
75
+ exclude_none=True,
76
+ )
77
+ return _dict
78
+
79
+ @classmethod
80
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
81
+ """Create an instance of PublishServerInfoRequest from a dict"""
82
+ if obj is None:
83
+ return None
84
+
85
+ if not isinstance(obj, dict):
86
+ return cls.model_validate(obj)
87
+
88
+ _obj = cls.model_validate({
89
+ "project_id": obj.get("project_id"),
90
+ "server_name": obj.get("server_name"),
91
+ "server_version": obj.get("server_version"),
92
+ "server_title": obj.get("server_title"),
93
+ "instructions": obj.get("instructions"),
94
+ "features": obj.get("features")
95
+ })
96
+ return _obj
97
+
98
+
@@ -0,0 +1,87 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ AgentCat API
5
+
6
+ API for AgentCat application
7
+
8
+ The version of the OpenAPI document: v1
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+ from pydantic import BaseModel, ConfigDict, StrictStr
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from typing import Optional, Set
23
+ from typing_extensions import Self
24
+
25
+ class ServerInfoAcceptedResponse(BaseModel):
26
+ """
27
+ ServerInfoAcceptedResponse
28
+ """ # noqa: E501
29
+ status: Optional[StrictStr] = 'accepted'
30
+ __properties: ClassVar[List[str]] = ["status"]
31
+
32
+ model_config = ConfigDict(
33
+ populate_by_name=True,
34
+ validate_assignment=True,
35
+ protected_namespaces=(),
36
+ )
37
+
38
+
39
+ def to_str(self) -> str:
40
+ """Returns the string representation of the model using alias"""
41
+ return pprint.pformat(self.model_dump(by_alias=True))
42
+
43
+ def to_json(self) -> str:
44
+ """Returns the JSON representation of the model using alias"""
45
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
46
+ return json.dumps(self.to_dict())
47
+
48
+ @classmethod
49
+ def from_json(cls, json_str: str) -> Optional[Self]:
50
+ """Create an instance of ServerInfoAcceptedResponse from a JSON string"""
51
+ return cls.from_dict(json.loads(json_str))
52
+
53
+ def to_dict(self) -> Dict[str, Any]:
54
+ """Return the dictionary representation of the model using alias.
55
+
56
+ This has the following differences from calling pydantic's
57
+ `self.model_dump(by_alias=True)`:
58
+
59
+ * `None` is only added to the output dict for nullable fields that
60
+ were set at model initialization. Other fields with value `None`
61
+ are ignored.
62
+ """
63
+ excluded_fields: Set[str] = set([
64
+ ])
65
+
66
+ _dict = self.model_dump(
67
+ by_alias=True,
68
+ exclude=excluded_fields,
69
+ exclude_none=True,
70
+ )
71
+ return _dict
72
+
73
+ @classmethod
74
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
75
+ """Create an instance of ServerInfoAcceptedResponse from a dict"""
76
+ if obj is None:
77
+ return None
78
+
79
+ if not isinstance(obj, dict):
80
+ return cls.model_validate(obj)
81
+
82
+ _obj = cls.model_validate({
83
+ "status": obj.get("status") if obj.get("status") is not None else 'accepted'
84
+ })
85
+ return _obj
86
+
87
+
@@ -0,0 +1,57 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ AgentCat API
5
+
6
+ API for AgentCat application
7
+
8
+ The version of the OpenAPI document: v1
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ import unittest
16
+
17
+ from agentcat_api.models.publish_server_info_request import PublishServerInfoRequest
18
+
19
+ class TestPublishServerInfoRequest(unittest.TestCase):
20
+ """PublishServerInfoRequest unit test stubs"""
21
+
22
+ def setUp(self):
23
+ pass
24
+
25
+ def tearDown(self):
26
+ pass
27
+
28
+ def make_instance(self, include_optional) -> PublishServerInfoRequest:
29
+ """Test PublishServerInfoRequest
30
+ include_optional is a boolean, when False only required
31
+ params are included, when True both required and
32
+ optional params are included """
33
+ # uncomment below to create an instance of `PublishServerInfoRequest`
34
+ """
35
+ model = PublishServerInfoRequest()
36
+ if include_optional:
37
+ return PublishServerInfoRequest(
38
+ project_id = '',
39
+ server_name = '',
40
+ server_version = '',
41
+ server_title = '',
42
+ instructions = '',
43
+ features = None
44
+ )
45
+ else:
46
+ return PublishServerInfoRequest(
47
+ project_id = '',
48
+ )
49
+ """
50
+
51
+ def testPublishServerInfoRequest(self):
52
+ """Test PublishServerInfoRequest"""
53
+ # inst_req_only = self.make_instance(include_optional=False)
54
+ # inst_req_and_optional = self.make_instance(include_optional=True)
55
+
56
+ if __name__ == '__main__':
57
+ unittest.main()
@@ -0,0 +1,51 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ AgentCat API
5
+
6
+ API for AgentCat application
7
+
8
+ The version of the OpenAPI document: v1
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ import unittest
16
+
17
+ from agentcat_api.models.server_info_accepted_response import ServerInfoAcceptedResponse
18
+
19
+ class TestServerInfoAcceptedResponse(unittest.TestCase):
20
+ """ServerInfoAcceptedResponse unit test stubs"""
21
+
22
+ def setUp(self):
23
+ pass
24
+
25
+ def tearDown(self):
26
+ pass
27
+
28
+ def make_instance(self, include_optional) -> ServerInfoAcceptedResponse:
29
+ """Test ServerInfoAcceptedResponse
30
+ include_optional is a boolean, when False only required
31
+ params are included, when True both required and
32
+ optional params are included """
33
+ # uncomment below to create an instance of `ServerInfoAcceptedResponse`
34
+ """
35
+ model = ServerInfoAcceptedResponse()
36
+ if include_optional:
37
+ return ServerInfoAcceptedResponse(
38
+ status = 'accepted'
39
+ )
40
+ else:
41
+ return ServerInfoAcceptedResponse(
42
+ )
43
+ """
44
+
45
+ def testServerInfoAcceptedResponse(self):
46
+ """Test ServerInfoAcceptedResponse"""
47
+ # inst_req_only = self.make_instance(include_optional=False)
48
+ # inst_req_and_optional = self.make_instance(include_optional=True)
49
+
50
+ if __name__ == '__main__':
51
+ unittest.main()
@@ -0,0 +1,38 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ AgentCat API
5
+
6
+ API for AgentCat application
7
+
8
+ The version of the OpenAPI document: v1
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ import unittest
16
+
17
+ from agentcat_api.api.server_info_api import ServerInfoApi
18
+
19
+
20
+ class TestServerInfoApi(unittest.TestCase):
21
+ """ServerInfoApi unit test stubs"""
22
+
23
+ def setUp(self) -> None:
24
+ self.api = ServerInfoApi()
25
+
26
+ def tearDown(self) -> None:
27
+ pass
28
+
29
+ def test_publish_server_info(self) -> None:
30
+ """Test case for publish_server_info
31
+
32
+ Publish MCP server info
33
+ """
34
+ pass
35
+
36
+
37
+ if __name__ == '__main__':
38
+ unittest.main()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agentcat_api
3
- Version: 1.0.2
3
+ Version: 1.0.5
4
4
  License: MIT
5
5
  Description-Content-Type: text/markdown
6
6
  Requires-Dist: urllib3<3.0.0,>=2.1.0
@@ -17,7 +17,7 @@ API for AgentCat application
17
17
  The `agentcat_api` package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
18
18
 
19
19
  - API version: v1
20
- - Package version: 1.0.2
20
+ - Package version: 1.0.5
21
21
  - Generator version: 7.14.0
22
22
  - Build package: org.openapitools.codegen.languages.PythonClientCodegen
23
23
 
@@ -82,6 +82,7 @@ Class | Method | HTTP request | Description
82
82
  *EventsApi* | [**publish_event**](agentcat_api/docs/EventsApi.md#publish_event) | **POST** /v1/public/events/ | Publish analytics event
83
83
  *NotificationsApi* | [**unsubscribe_notification**](agentcat_api/docs/NotificationsApi.md#unsubscribe_notification) | **POST** /v1/public/notifications/unsubscribe | Disable an email notification type for the token&#39;s user
84
84
  *NotificationsApi* | [**verify_email_channel**](agentcat_api/docs/NotificationsApi.md#verify_email_channel) | **POST** /v1/public/notifications/channels/verify | Activate an email channel from its verification link
85
+ *ServerInfoApi* | [**publish_server_info**](agentcat_api/docs/ServerInfoApi.md#publish_server_info) | **POST** /v1/public/server-info/ | Publish MCP server info
85
86
 
86
87
 
87
88
  ## Documentation For Models
@@ -91,7 +92,9 @@ Class | Method | HTTP request | Description
91
92
  - [Error](agentcat_api/docs/Error.md)
92
93
  - [EventAcceptedResponse](agentcat_api/docs/EventAcceptedResponse.md)
93
94
  - [PublishEventRequest](agentcat_api/docs/PublishEventRequest.md)
95
+ - [PublishServerInfoRequest](agentcat_api/docs/PublishServerInfoRequest.md)
94
96
  - [QueryTimeout](agentcat_api/docs/QueryTimeout.md)
97
+ - [ServerInfoAcceptedResponse](agentcat_api/docs/ServerInfoAcceptedResponse.md)
95
98
  - [UnsubscribeRequestRequest](agentcat_api/docs/UnsubscribeRequestRequest.md)
96
99
  - [ValidationErrorValue](agentcat_api/docs/ValidationErrorValue.md)
97
100
 
@@ -16,13 +16,16 @@ agentcat_api/api/__init__.py
16
16
  agentcat_api/api/alerts_api.py
17
17
  agentcat_api/api/events_api.py
18
18
  agentcat_api/api/notifications_api.py
19
+ agentcat_api/api/server_info_api.py
19
20
  agentcat_api/models/__init__.py
20
21
  agentcat_api/models/email_channel_verify_request.py
21
22
  agentcat_api/models/email_channel_verify_response.py
22
23
  agentcat_api/models/error.py
23
24
  agentcat_api/models/event_accepted_response.py
24
25
  agentcat_api/models/publish_event_request.py
26
+ agentcat_api/models/publish_server_info_request.py
25
27
  agentcat_api/models/query_timeout.py
28
+ agentcat_api/models/server_info_accepted_response.py
26
29
  agentcat_api/models/unsubscribe_request_request.py
27
30
  agentcat_api/models/validation_error_value.py
28
31
  agentcat_api/test/__init__.py
@@ -34,6 +37,9 @@ agentcat_api/test/test_event_accepted_response.py
34
37
  agentcat_api/test/test_events_api.py
35
38
  agentcat_api/test/test_notifications_api.py
36
39
  agentcat_api/test/test_publish_event_request.py
40
+ agentcat_api/test/test_publish_server_info_request.py
37
41
  agentcat_api/test/test_query_timeout.py
42
+ agentcat_api/test/test_server_info_accepted_response.py
43
+ agentcat_api/test/test_server_info_api.py
38
44
  agentcat_api/test/test_unsubscribe_request_request.py
39
45
  agentcat_api/test/test_validation_error_value.py
@@ -4,7 +4,7 @@ API for AgentCat application
4
4
  The `agentcat_api` package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
5
5
 
6
6
  - API version: v1
7
- - Package version: 1.0.2
7
+ - Package version: 1.0.5
8
8
  - Generator version: 7.14.0
9
9
  - Build package: org.openapitools.codegen.languages.PythonClientCodegen
10
10
 
@@ -69,6 +69,7 @@ Class | Method | HTTP request | Description
69
69
  *EventsApi* | [**publish_event**](agentcat_api/docs/EventsApi.md#publish_event) | **POST** /v1/public/events/ | Publish analytics event
70
70
  *NotificationsApi* | [**unsubscribe_notification**](agentcat_api/docs/NotificationsApi.md#unsubscribe_notification) | **POST** /v1/public/notifications/unsubscribe | Disable an email notification type for the token&#39;s user
71
71
  *NotificationsApi* | [**verify_email_channel**](agentcat_api/docs/NotificationsApi.md#verify_email_channel) | **POST** /v1/public/notifications/channels/verify | Activate an email channel from its verification link
72
+ *ServerInfoApi* | [**publish_server_info**](agentcat_api/docs/ServerInfoApi.md#publish_server_info) | **POST** /v1/public/server-info/ | Publish MCP server info
72
73
 
73
74
 
74
75
  ## Documentation For Models
@@ -78,7 +79,9 @@ Class | Method | HTTP request | Description
78
79
  - [Error](agentcat_api/docs/Error.md)
79
80
  - [EventAcceptedResponse](agentcat_api/docs/EventAcceptedResponse.md)
80
81
  - [PublishEventRequest](agentcat_api/docs/PublishEventRequest.md)
82
+ - [PublishServerInfoRequest](agentcat_api/docs/PublishServerInfoRequest.md)
81
83
  - [QueryTimeout](agentcat_api/docs/QueryTimeout.md)
84
+ - [ServerInfoAcceptedResponse](agentcat_api/docs/ServerInfoAcceptedResponse.md)
82
85
  - [UnsubscribeRequestRequest](agentcat_api/docs/UnsubscribeRequestRequest.md)
83
86
  - [ValidationErrorValue](agentcat_api/docs/ValidationErrorValue.md)
84
87
 
@@ -11,7 +11,7 @@ if os.path.exists(_readme):
11
11
 
12
12
  setup(
13
13
  name="agentcat_api",
14
- version="1.0.2",
14
+ version="1.0.5",
15
15
  license="MIT",
16
16
  long_description=_long_description,
17
17
  long_description_content_type="text/markdown",
File without changes
File without changes