Skip to content

Commit

Permalink
release(sdk): v2.0.0-beta.8
Browse files Browse the repository at this point in the history
  • Loading branch information
NumaryBot committed Jan 12, 2024
1 parent 45df9b1 commit 2c0c8bd
Show file tree
Hide file tree
Showing 26 changed files with 1,486 additions and 1,534 deletions.
1,257 changes: 1,257 additions & 0 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ if res.get_versions_response is not None:
* [create_secret](docs/sdks/auth/README.md#create_secret) - Add a secret to a client
* [delete_client](docs/sdks/auth/README.md#delete_client) - Delete client
* [delete_secret](docs/sdks/auth/README.md#delete_secret) - Delete a secret from a client
* [get_server_info](docs/sdks/auth/README.md#get_server_info) - Get server info
* [list_clients](docs/sdks/auth/README.md#list_clients) - List clients
* [list_users](docs/sdks/auth/README.md#list_users) - List users
* [read_client](docs/sdks/auth/README.md#read_client) - Read client
Expand Down Expand Up @@ -244,7 +243,7 @@ Handling errors in this SDK should largely match your expectations. All operati
| Error Object | Status Code | Content Type |
| -------------------- | -------------------- | -------------------- |
| errors.ErrorResponse | 400,404 | application/json |
| errors.SDKError | 400-600 | */* |
| errors.SDKError | 4x-5xx | */* |

### Example

Expand Down Expand Up @@ -333,7 +332,7 @@ if res.get_versions_response is not None:
<!-- Start Custom HTTP Client [http-client] -->
## Custom HTTP Client

The Python SDK makes API calls using the (requests)[https://pypi.org/project/requests/] HTTP library. In order to provide a convenient way to configure timeouts, cookies, proxies, custom headers, and other low-level configuration, you can initialize the SDK client with a custom `requests.Session` object.
The Python SDK makes API calls using the [requests](https://pypi.org/project/requests/) HTTP library. In order to provide a convenient way to configure timeouts, cookies, proxies, custom headers, and other low-level configuration, you can initialize the SDK client with a custom `requests.Session` object.

For example, you could specify a header for every request that this sdk makes as follows:
```python
Expand Down
11 changes: 0 additions & 11 deletions docs/models/operations/getserverinforesponse.md

This file was deleted.

36 changes: 18 additions & 18 deletions docs/models/shared/transferinitiation.md

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions docs/models/shared/transferinitiationadjusments.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# TransferInitiationAdjusments


## Fields

| Field | Type | Required | Description |
| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
| `adjustment_id` | *str* | :heavy_check_mark: | N/A |
| `created_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A |
| `error` | *str* | :heavy_check_mark: | N/A |
| `metadata` | Dict[str, *str*] | :heavy_minus_sign: | N/A |
| `status` | [shared.TransferInitiationStatus](../../models/shared/transferinitiationstatus.md) | :heavy_check_mark: | N/A |
3 changes: 2 additions & 1 deletion docs/models/shared/transferinitiationstatus.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@
| `PROCESSED` | PROCESSED |
| `FAILED` | FAILED |
| `REJECTED` | REJECTED |
| `VALIDATED` | VALIDATED |
| `VALIDATED` | VALIDATED |
| `RETRIED` | RETRIED |
50 changes: 9 additions & 41 deletions docs/sdks/auth/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* [create_secret](#create_secret) - Add a secret to a client
* [delete_client](#delete_client) - Delete client
* [delete_secret](#delete_secret) - Delete a secret from a client
* [get_server_info](#get_server_info) - Get server info
* [list_clients](#list_clients) - List clients
* [list_users](#list_users) - List users
* [read_client](#read_client) - Read client
Expand Down Expand Up @@ -65,7 +64,7 @@ if res.create_client_response is not None:

| Error Object | Status Code | Content Type |
| --------------- | --------------- | --------------- |
| errors.SDKError | 400-600 | */* |
| errors.SDKError | 4x-5xx | */* |

## create_secret

Expand Down Expand Up @@ -112,7 +111,7 @@ if res.create_secret_response is not None:

| Error Object | Status Code | Content Type |
| --------------- | --------------- | --------------- |
| errors.SDKError | 400-600 | */* |
| errors.SDKError | 4x-5xx | */* |

## delete_client

Expand Down Expand Up @@ -153,7 +152,7 @@ if res.status_code == 200:

| Error Object | Status Code | Content Type |
| --------------- | --------------- | --------------- |
| errors.SDKError | 400-600 | */* |
| errors.SDKError | 4x-5xx | */* |

## delete_secret

Expand Down Expand Up @@ -195,38 +194,7 @@ if res.status_code == 200:

| Error Object | Status Code | Content Type |
| --------------- | --------------- | --------------- |
| errors.SDKError | 400-600 | */* |

## get_server_info

Get server info

### Example Usage

```python
import sdk

s = sdk.SDK(
authorization="Bearer <YOUR_ACCESS_TOKEN_HERE>",
)


res = s.auth.get_server_info()

if res.server_info is not None:
# handle response
pass
```


### Response

**[operations.GetServerInfoResponse](../../models/operations/getserverinforesponse.md)**
### Errors

| Error Object | Status Code | Content Type |
| --------------- | --------------- | --------------- |
| errors.SDKError | 400-600 | */* |
| errors.SDKError | 4x-5xx | */* |

## list_clients

Expand Down Expand Up @@ -257,7 +225,7 @@ if res.list_clients_response is not None:

| Error Object | Status Code | Content Type |
| --------------- | --------------- | --------------- |
| errors.SDKError | 400-600 | */* |
| errors.SDKError | 4x-5xx | */* |

## list_users

Expand Down Expand Up @@ -288,7 +256,7 @@ if res.list_users_response is not None:

| Error Object | Status Code | Content Type |
| --------------- | --------------- | --------------- |
| errors.SDKError | 400-600 | */* |
| errors.SDKError | 4x-5xx | */* |

## read_client

Expand Down Expand Up @@ -329,7 +297,7 @@ if res.read_client_response is not None:

| Error Object | Status Code | Content Type |
| --------------- | --------------- | --------------- |
| errors.SDKError | 400-600 | */* |
| errors.SDKError | 4x-5xx | */* |

## read_user

Expand Down Expand Up @@ -370,7 +338,7 @@ if res.read_user_response is not None:

| Error Object | Status Code | Content Type |
| --------------- | --------------- | --------------- |
| errors.SDKError | 400-600 | */* |
| errors.SDKError | 4x-5xx | */* |

## update_client

Expand Down Expand Up @@ -426,4 +394,4 @@ if res.update_client_response is not None:

| Error Object | Status Code | Content Type |
| --------------- | --------------- | --------------- |
| errors.SDKError | 400-600 | */* |
| errors.SDKError | 4x-5xx | */* |
Loading

0 comments on commit 2c0c8bd

Please sign in to comment.