Skip to content

Commit bccf7c5

Browse files
author
ks-release-bot
committed
chore(release): regenerate ksapi v1.96.0 from ks-backend
1 parent 0c402bc commit bccf7c5

241 files changed

Lines changed: 18630 additions & 5919 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.

‎.openapi-generator/FILES‎

Lines changed: 123 additions & 6 deletions
Large diffs are not rendered by default.

‎README.md‎

Lines changed: 92 additions & 473 deletions
Large diffs are not rendered by default.

‎docs/AccessCheckResponse.md‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# AccessCheckResponse
2+
3+
Result of an admin access-check for a target user on a path part.
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**allowed** | **bool** | Whether the user has the capability |
10+
**reason** | **str** | Why access was granted or denied |
11+
**matched_path** | **str** | The permission path that granted access (None if denied or role bypass) | [optional]
12+
13+
## Example
14+
15+
```python
16+
from ksapi.models.access_check_response import AccessCheckResponse
17+
18+
# TODO update the JSON string below
19+
json = "{}"
20+
# create an instance of AccessCheckResponse from a JSON string
21+
access_check_response_instance = AccessCheckResponse.from_json(json)
22+
# print the JSON string representation of the object
23+
print(AccessCheckResponse.to_json())
24+
25+
# convert the object into a dict
26+
access_check_response_dict = access_check_response_instance.to_dict()
27+
# create an instance of AccessCheckResponse from a dict
28+
access_check_response_from_dict = AccessCheckResponse.from_dict(access_check_response_dict)
29+
```
30+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
31+
32+

‎docs/AgentApi.md‎

Lines changed: 40 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Method | HTTP request | Description
99

1010

1111
# **agent_ask**
12-
> AskResponse agent_ask(ask_request, authorization=authorization, ks_uat=ks_uat)
12+
> AskResponse agent_ask(ask_request)
1313
1414
Agent Ask Handler
1515

@@ -36,6 +36,8 @@ semantics distinguish cause:
3636

3737
### Example
3838

39+
* Api Key Authentication (cookieAuth):
40+
* Bearer Authentication (bearerAuth):
3941

4042
```python
4143
import ksapi
@@ -50,18 +52,31 @@ configuration = ksapi.Configuration(
5052
host = "http://localhost:8000"
5153
)
5254

55+
# The client must configure the authentication and authorization parameters
56+
# in accordance with the API server security policy.
57+
# Examples for each auth method are provided below, use the example that
58+
# satisfies your auth use case.
59+
60+
# Configure API key authorization: cookieAuth
61+
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
62+
63+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
64+
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
65+
66+
# Configure Bearer authorization: bearerAuth
67+
configuration = ksapi.Configuration(
68+
access_token = os.environ["BEARER_TOKEN"]
69+
)
5370

5471
# Enter a context with an instance of the API client
5572
with ksapi.ApiClient(configuration) as api_client:
5673
# Create an instance of the API class
5774
api_instance = ksapi.AgentApi(api_client)
5875
ask_request = ksapi.AskRequest() # AskRequest |
59-
authorization = 'authorization_example' # str | (optional)
60-
ks_uat = 'ks_uat_example' # str | (optional)
6176

6277
try:
6378
# Agent Ask Handler
64-
api_response = api_instance.agent_ask(ask_request, authorization=authorization, ks_uat=ks_uat)
79+
api_response = api_instance.agent_ask(ask_request)
6580
print("The response of AgentApi->agent_ask:\n")
6681
pprint(api_response)
6782
except Exception as e:
@@ -76,16 +91,14 @@ with ksapi.ApiClient(configuration) as api_client:
7691
Name | Type | Description | Notes
7792
------------- | ------------- | ------------- | -------------
7893
**ask_request** | [**AskRequest**](AskRequest.md)| |
79-
**authorization** | **str**| | [optional]
80-
**ks_uat** | **str**| | [optional]
8194

8295
### Return type
8396

8497
[**AskResponse**](AskResponse.md)
8598

8699
### Authorization
87100

88-
No authorization required
101+
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
89102

90103
### HTTP request headers
91104

@@ -102,7 +115,7 @@ No authorization required
102115
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
103116

104117
# **agent_extract**
105-
> ExtractResponse agent_extract(extract_request, authorization=authorization, ks_uat=ks_uat)
118+
> ExtractResponse agent_extract(extract_request)
106119
107120
Agent Extract Handler
108121

@@ -120,6 +133,8 @@ failures both refund.
120133

121134
### Example
122135

136+
* Api Key Authentication (cookieAuth):
137+
* Bearer Authentication (bearerAuth):
123138

124139
```python
125140
import ksapi
@@ -134,18 +149,31 @@ configuration = ksapi.Configuration(
134149
host = "http://localhost:8000"
135150
)
136151

152+
# The client must configure the authentication and authorization parameters
153+
# in accordance with the API server security policy.
154+
# Examples for each auth method are provided below, use the example that
155+
# satisfies your auth use case.
156+
157+
# Configure API key authorization: cookieAuth
158+
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
159+
160+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
161+
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
162+
163+
# Configure Bearer authorization: bearerAuth
164+
configuration = ksapi.Configuration(
165+
access_token = os.environ["BEARER_TOKEN"]
166+
)
137167

138168
# Enter a context with an instance of the API client
139169
with ksapi.ApiClient(configuration) as api_client:
140170
# Create an instance of the API class
141171
api_instance = ksapi.AgentApi(api_client)
142172
extract_request = ksapi.ExtractRequest() # ExtractRequest |
143-
authorization = 'authorization_example' # str | (optional)
144-
ks_uat = 'ks_uat_example' # str | (optional)
145173

146174
try:
147175
# Agent Extract Handler
148-
api_response = api_instance.agent_extract(extract_request, authorization=authorization, ks_uat=ks_uat)
176+
api_response = api_instance.agent_extract(extract_request)
149177
print("The response of AgentApi->agent_extract:\n")
150178
pprint(api_response)
151179
except Exception as e:
@@ -160,16 +188,14 @@ with ksapi.ApiClient(configuration) as api_client:
160188
Name | Type | Description | Notes
161189
------------- | ------------- | ------------- | -------------
162190
**extract_request** | [**ExtractRequest**](ExtractRequest.md)| |
163-
**authorization** | **str**| | [optional]
164-
**ks_uat** | **str**| | [optional]
165191

166192
### Return type
167193

168194
[**ExtractResponse**](ExtractResponse.md)
169195

170196
### Authorization
171197

172-
No authorization required
198+
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
173199

174200
### HTTP request headers
175201

0 commit comments

Comments
 (0)