Skip to content

Commit 5e18259

Browse files
author
brandon
committed
unclear text responses have a null text value
1 parent 81e1e09 commit 5e18259

23 files changed

+1084
-12
lines changed

generated/.openapi-generator/FILES

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ docs/PaginatedDetectorList.md
4242
docs/PaginatedImageQueryList.md
4343
docs/PaginatedRuleList.md
4444
docs/PatchedDetectorRequest.md
45+
docs/PayloadTemplate.md
46+
docs/PayloadTemplateRequest.md
4547
docs/ROI.md
4648
docs/ROIRequest.md
4749
docs/ResultTypeEnum.md
@@ -50,6 +52,7 @@ docs/RuleRequest.md
5052
docs/SnoozeTimeUnitEnum.md
5153
docs/SourceEnum.md
5254
docs/StatusEnum.md
55+
docs/TextModeConfiguration.md
5356
docs/TextRecognitionResult.md
5457
docs/UserApi.md
5558
docs/VerbEnum.md
@@ -106,6 +109,8 @@ groundlight_openapi_client/model/paginated_detector_list.py
106109
groundlight_openapi_client/model/paginated_image_query_list.py
107110
groundlight_openapi_client/model/paginated_rule_list.py
108111
groundlight_openapi_client/model/patched_detector_request.py
112+
groundlight_openapi_client/model/payload_template.py
113+
groundlight_openapi_client/model/payload_template_request.py
109114
groundlight_openapi_client/model/result_type_enum.py
110115
groundlight_openapi_client/model/roi.py
111116
groundlight_openapi_client/model/roi_request.py
@@ -114,6 +119,7 @@ groundlight_openapi_client/model/rule_request.py
114119
groundlight_openapi_client/model/snooze_time_unit_enum.py
115120
groundlight_openapi_client/model/source_enum.py
116121
groundlight_openapi_client/model/status_enum.py
122+
groundlight_openapi_client/model/text_mode_configuration.py
117123
groundlight_openapi_client/model/text_recognition_result.py
118124
groundlight_openapi_client/model/verb_enum.py
119125
groundlight_openapi_client/model/webhook_action.py
@@ -126,4 +132,6 @@ setup.cfg
126132
setup.py
127133
test-requirements.txt
128134
test/__init__.py
135+
test/test_payload_template.py
136+
test/test_payload_template_request.py
129137
tox.ini

generated/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ rule_request = RuleRequest(
9494
WebhookActionRequest(
9595
url="url_example",
9696
include_image=True,
97+
payload_template=None,
9798
),
9899
],
99100
) # RuleRequest |
@@ -171,6 +172,8 @@ Class | Method | HTTP request | Description
171172
- [PaginatedImageQueryList](docs/PaginatedImageQueryList.md)
172173
- [PaginatedRuleList](docs/PaginatedRuleList.md)
173174
- [PatchedDetectorRequest](docs/PatchedDetectorRequest.md)
175+
- [PayloadTemplate](docs/PayloadTemplate.md)
176+
- [PayloadTemplateRequest](docs/PayloadTemplateRequest.md)
174177
- [ROI](docs/ROI.md)
175178
- [ROIRequest](docs/ROIRequest.md)
176179
- [ResultTypeEnum](docs/ResultTypeEnum.md)
@@ -179,6 +182,7 @@ Class | Method | HTTP request | Description
179182
- [SnoozeTimeUnitEnum](docs/SnoozeTimeUnitEnum.md)
180183
- [SourceEnum](docs/SourceEnum.md)
181184
- [StatusEnum](docs/StatusEnum.md)
185+
- [TextModeConfiguration](docs/TextModeConfiguration.md)
182186
- [TextRecognitionResult](docs/TextRecognitionResult.md)
183187
- [VerbEnum](docs/VerbEnum.md)
184188
- [WebhookAction](docs/WebhookAction.md)

generated/docs/ActionsApi.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ with groundlight_openapi_client.ApiClient(configuration) as api_client:
6969
WebhookActionRequest(
7070
url="url_example",
7171
include_image=True,
72+
payload_template=None,
7273
),
7374
],
7475
) # RuleRequest |

generated/docs/PayloadTemplate.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# PayloadTemplate
2+
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**template** | **str** | |
8+
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
9+
10+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11+
12+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# PayloadTemplateRequest
2+
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**template** | **str** | |
8+
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
9+
10+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11+
12+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# TextModeConfiguration
2+
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**value_max_length** | **int** | | [optional]
8+
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
9+
10+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11+
12+

generated/docs/TextRecognitionResult.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**text** | **str** | |
7+
**text** | **str, none_type** | |
88
**truncated** | **bool** | |
99
**confidence** | **float, none_type** | | [optional]
1010
**source** | **str** | | [optional]

generated/docs/WebhookAction.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**url** | **str** | |
88
**include_image** | **bool** | | [optional]
9+
**payload_template** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [optional]
910
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
1011

1112
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

generated/docs/WebhookActionRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**url** | **str** | |
88
**include_image** | **bool** | | [optional]
9+
**payload_template** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [optional]
910
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
1011

1112
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

generated/groundlight_openapi_client/model/detector_creation_input_request.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,12 @@ def lazy_import():
3333
from groundlight_openapi_client.model.count_mode_configuration import CountModeConfiguration
3434
from groundlight_openapi_client.model.mode_enum import ModeEnum
3535
from groundlight_openapi_client.model.multi_class_mode_configuration import MultiClassModeConfiguration
36+
from groundlight_openapi_client.model.text_mode_configuration import TextModeConfiguration
3637

3738
globals()["CountModeConfiguration"] = CountModeConfiguration
3839
globals()["ModeEnum"] = ModeEnum
3940
globals()["MultiClassModeConfiguration"] = MultiClassModeConfiguration
41+
globals()["TextModeConfiguration"] = TextModeConfiguration
4042

4143

4244
class DetectorCreationInputRequest(ModelNormal):

0 commit comments

Comments
 (0)