Skip to content

Commit

Permalink
Merge pull request #5 from speakeasy-sdks/speakeasy-sdk-regen-1723854031
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate 1.2.0
  • Loading branch information
ndimares authored Aug 29, 2024
2 parents 47d1d2d + be90149 commit 5feb9fe
Show file tree
Hide file tree
Showing 15 changed files with 72 additions and 55 deletions.
12 changes: 6 additions & 6 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ id: c1ca526f-aa0e-4e69-8de4-80c2e3eaabd4
management:
docChecksum: 9922bc49f897a6971cd384c3440969f1
docVersion: "10"
speakeasyVersion: 1.372.0
generationVersion: 2.399.0
releaseVersion: 1.1.1
configChecksum: deb0d20940de4331e038fe12a171da0f
speakeasyVersion: 1.382.0
generationVersion: 2.404.11
releaseVersion: 1.2.0
configChecksum: ad1e15de86cf3fbf3eeea308598af96e
repoURL: https://github.com/speakeasy-sdks/api-summit-2024.git
installationURL: https://github.com/speakeasy-sdks/api-summit-2024
published: true
features:
typescript:
additionalDependencies: 0.1.0
constsAndDefaults: 0.1.8
core: 3.13.2
constsAndDefaults: 0.1.11
core: 3.14.1
defaultEnabledRetries: 0.1.0
devContainers: 2.90.0
envVarSecurityUsage: 0.1.1
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: false
typescript:
version: 1.1.1
version: 1.2.0
additionalDependencies:
dependencies: {}
devDependencies: {}
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
speakeasyVersion: 1.372.0
speakeasyVersion: 1.382.0
sources:
discord-OAS:
sourceNamespace: discord-oas
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,9 @@ run();
<!-- Start Debugging [debug] -->
## Debugging

To log HTTP requests and responses, you can pass a logger that matches `console`'s interface as an SDK option.
You can setup your SDK to emit debug logs for SDK requests and responses.

You can pass a logger that matches `console`'s interface as an SDK option.

> [!WARNING]
> Beware that debug logging will reveal secrets, like API tokens in headers, in log messages printed to a console or files. It's recommended to use this feature only during local development and not in production.
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,14 @@ Based on:
### Generated
- [typescript v1.1.1] .
### Releases
- [NPM v1.1.1] https://www.npmjs.com/package/@speakeasy-sdks/discord/v/1.1.1 - .
- [NPM v1.1.1] https://www.npmjs.com/package/@speakeasy-sdks/discord/v/1.1.1 - .

## 2024-08-29 00:22:09
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.382.0 (2.404.11) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v1.2.0] .
### Releases
- [NPM v1.2.0] https://www.npmjs.com/package/@speakeasy-sdks/discord/v/1.2.0 - .
13 changes: 7 additions & 6 deletions docs/sdks/channelinvites/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# ChannelInvites
(*channelInvites*)

## Overview

### Available Operations

* [list](#list)
Expand Down Expand Up @@ -29,7 +31,6 @@ async function run() {
run();
```


### Standalone function

The standalone function version of this method:
Expand Down Expand Up @@ -71,17 +72,18 @@ run();
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |


### Response

**Promise\<[operations.ResponseBody[]](../../models/.md)\>**

### Errors

| Error Object | Status Code | Content Type |
| -------------------- | -------------------- | -------------------- |
| errors.ErrorResponse | 4XX | application/json |
| errors.SDKError | 4xx-5xx | */* |


## create

### Example Usage
Expand All @@ -96,7 +98,7 @@ const discord = new Discord({
async function run() {
const result = await discord.channelInvites.create({
channelId: "<value>",
requestBody: {},
requestBody: {},
});

// Handle the result
Expand All @@ -106,7 +108,6 @@ async function run() {
run();
```


### Standalone function

The standalone function version of this method:
Expand All @@ -124,7 +125,7 @@ const discord = new DiscordCore({
async function run() {
const res = await channelInvitesCreate(discord, {
channelId: "<value>",
requestBody: {},
requestBody: {},
});

if (!res.ok) {
Expand All @@ -149,10 +150,10 @@ run();
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |


### Response

**Promise\<[operations.CreateChannelInviteResponseBody](../../models/operations/createchannelinviteresponsebody.md)\>**

### Errors

| Error Object | Status Code | Content Type |
Expand Down
17 changes: 9 additions & 8 deletions docs/sdks/channels/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Channels
(*channels*)

## Overview

### Available Operations

* [get](#get)
Expand Down Expand Up @@ -30,7 +32,6 @@ async function run() {
run();
```


### Standalone function

The standalone function version of this method:
Expand Down Expand Up @@ -72,17 +73,18 @@ run();
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |


### Response

**Promise\<[operations.GetChannelResponseBody](../../models/operations/getchannelresponsebody.md)\>**

### Errors

| Error Object | Status Code | Content Type |
| -------------------- | -------------------- | -------------------- |
| errors.ErrorResponse | 4XX | application/json |
| errors.SDKError | 4xx-5xx | */* |


## delete

### Example Usage
Expand All @@ -106,7 +108,6 @@ async function run() {
run();
```


### Standalone function

The standalone function version of this method:
Expand Down Expand Up @@ -148,17 +149,18 @@ run();
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |


### Response

**Promise\<[operations.DeleteChannelResponseBody](../../models/operations/deletechannelresponsebody.md)\>**

### Errors

| Error Object | Status Code | Content Type |
| -------------------- | -------------------- | -------------------- |
| errors.ErrorResponse | 4XX | application/json |
| errors.SDKError | 4xx-5xx | */* |


## update

### Example Usage
Expand All @@ -173,7 +175,7 @@ const discord = new Discord({
async function run() {
const result = await discord.channels.update({
channelId: "<value>",
requestBody: {},
requestBody: {},
});

// Handle the result
Expand All @@ -183,7 +185,6 @@ async function run() {
run();
```


### Standalone function

The standalone function version of this method:
Expand All @@ -201,7 +202,7 @@ const discord = new DiscordCore({
async function run() {
const res = await channelsUpdate(discord, {
channelId: "<value>",
requestBody: {},
requestBody: {},
});

if (!res.ok) {
Expand All @@ -226,10 +227,10 @@ run();
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |


### Response

**Promise\<[operations.UpdateChannelResponseBody](../../models/operations/updatechannelresponsebody.md)\>**

### Errors

| Error Object | Status Code | Content Type |
Expand Down
5 changes: 1 addition & 4 deletions docs/sdks/discord/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
# Discord SDK


## Overview

Discord HTTP API (Preview): Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details.

Discord Developer Documentation
<https://discord.com/developers/docs>
### Available Operations

<https://discord.com/developers/docs>
Loading

0 comments on commit 5feb9fe

Please sign in to comment.