Skip to content

Commit 6e24cda

Browse files
committed
Regenerate SDK from latest OpenAPI spec (moderation tenantId + broadcastId params)
Adds the optional tenantId query param to the SSO-gated Moderation API endpoints and the optional broadcastId query param to the mutating moderation endpoints. Backward-compatible. Mirrors fastcomments-sdk-js v5.0.2.
1 parent b7e1010 commit 6e24cda

562 files changed

Lines changed: 71442 additions & 3884 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

client/.openapi-generator/FILES

Lines changed: 531 additions & 0 deletions
Large diffs are not rendered by default.

client/README.md

Lines changed: 181 additions & 2 deletions
Large diffs are not rendered by default.

client/__init__.py

Lines changed: 178 additions & 1 deletion
Large diffs are not rendered by default.

client/api/default_api.py

Lines changed: 540 additions & 513 deletions
Large diffs are not rendered by default.

client/api/moderation_api.py

Lines changed: 1170 additions & 244 deletions
Large diffs are not rendered by default.

client/api/public_api.py

Lines changed: 264 additions & 254 deletions
Large diffs are not rendered by default.

client/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def __init__(
9090
self.default_headers[header_name] = header_value
9191
self.cookie = cookie
9292
# Set default User-Agent.
93-
self.user_agent = 'OpenAPI-Generator/1.2.1/python'
93+
self.user_agent = 'OpenAPI-Generator/2.0.0/python'
9494
self.client_side_validation = configuration.client_side_validation
9595

9696
def __enter__(self):

client/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ def to_debug_report(self) -> str:
524524
"OS: {env}\n"\
525525
"Python Version: {pyversion}\n"\
526526
"Version of the API: 0.0.0\n"\
527-
"SDK Package Version: 1.2.1".\
527+
"SDK Package Version: 2.0.0".\
528528
format(env=sys.platform, pyversion=sys.version)
529529

530530
def get_host_settings(self) -> List[HostSetting]:

client/docs/AddHashTagResponse.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# AddHashTagResponse
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**status** | [**APIStatus**](APIStatus.md) | |
9+
**hash_tag** | [**TenantHashTag**](TenantHashTag.md) | |
10+
**reason** | **str** | |
11+
**code** | **str** | |
12+
**secondary_code** | **str** | | [optional]
13+
**banned_until** | **int** | | [optional]
14+
**max_character_length** | **int** | | [optional]
15+
**translated_error** | **str** | | [optional]
16+
**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional]
17+
18+
## Example
19+
20+
```python
21+
from client.models.add_hash_tag_response import AddHashTagResponse
22+
23+
# TODO update the JSON string below
24+
json = "{}"
25+
# create an instance of AddHashTagResponse from a JSON string
26+
add_hash_tag_response_instance = AddHashTagResponse.from_json(json)
27+
# print the JSON string representation of the object
28+
print(AddHashTagResponse.to_json())
29+
30+
# convert the object into a dict
31+
add_hash_tag_response_dict = add_hash_tag_response_instance.to_dict()
32+
# create an instance of AddHashTagResponse from a dict
33+
add_hash_tag_response_from_dict = AddHashTagResponse.from_dict(add_hash_tag_response_dict)
34+
```
35+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
36+
37+
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# AddHashTagsBulkResponse
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**status** | [**APIStatus**](APIStatus.md) | |
9+
**results** | [**List[BulkCreateHashTagsResponseResultsInner]**](BulkCreateHashTagsResponseResultsInner.md) | |
10+
**reason** | **str** | |
11+
**code** | **str** | |
12+
**secondary_code** | **str** | | [optional]
13+
**banned_until** | **int** | | [optional]
14+
**max_character_length** | **int** | | [optional]
15+
**translated_error** | **str** | | [optional]
16+
**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional]
17+
18+
## Example
19+
20+
```python
21+
from client.models.add_hash_tags_bulk_response import AddHashTagsBulkResponse
22+
23+
# TODO update the JSON string below
24+
json = "{}"
25+
# create an instance of AddHashTagsBulkResponse from a JSON string
26+
add_hash_tags_bulk_response_instance = AddHashTagsBulkResponse.from_json(json)
27+
# print the JSON string representation of the object
28+
print(AddHashTagsBulkResponse.to_json())
29+
30+
# convert the object into a dict
31+
add_hash_tags_bulk_response_dict = add_hash_tags_bulk_response_instance.to_dict()
32+
# create an instance of AddHashTagsBulkResponse from a dict
33+
add_hash_tags_bulk_response_from_dict = AddHashTagsBulkResponse.from_dict(add_hash_tags_bulk_response_dict)
34+
```
35+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
36+
37+

0 commit comments

Comments
 (0)