Skip to content

Commit

Permalink
Merge pull request #3 from speakeasy-sdks/speakeasy-sdk-regen-1723721532
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate 1.1
  • Loading branch information
ndimares authored Aug 15, 2024
2 parents dde632b + 373ef75 commit bbb9228
Show file tree
Hide file tree
Showing 159 changed files with 222 additions and 212 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ mkdir samples
npm install
npm install -g ts-node
npm link
npm link discord
npm link @speakeasy-sdks/discord
TS_CONFIG_CONTENT=$(cat <<EOL
{
"compilerOptions": {
Expand Down
4 changes: 2 additions & 2 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ management:
docVersion: "10"
speakeasyVersion: 1.369.0
generationVersion: 2.399.0
releaseVersion: "1"
configChecksum: 3cda4b7e6415538553a9c79f81b7f9ac
releaseVersion: "1.1"
configChecksum: 561612e2773fc24631fb111bb064c3a9
repoURL: https://github.com/speakeasy-sdks/api-summit-2024.git
installationURL: https://github.com/speakeasy-sdks/api-summit-2024
published: true
Expand Down
4 changes: 2 additions & 2 deletions .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"
version: "1.1"
additionalDependencies:
dependencies: {}
devDependencies: {}
Expand All @@ -38,7 +38,7 @@ typescript:
methodArguments: require-security-and-request
moduleFormat: commonjs
outputModelSuffix: output
packageName: "@speakeasy-sdks/discord"
packageName: '@speakeasy-sdks/discord'
responseFormat: flat
templateVersion: v2
useIndexModules: true
6 changes: 3 additions & 3 deletions FUNCTIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ specific category of applications.
## Example

```typescript
import { DiscordCore } from "discord/core.js";
import { messagesGet } from "discord/funcs/messagesGet.js";
import { SDKValidationError } from "discord/models/errors/sdkvalidationerror.js";
import { DiscordCore } from "@speakeasy-sdks/discord/core.js";
import { messagesGet } from "@speakeasy-sdks/discord/funcs/messagesGet.js";
import { SDKValidationError } from "@speakeasy-sdks/discord/models/errors/sdkvalidationerror.js";

// Use `DiscordCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
Expand Down
30 changes: 15 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,25 @@ It has been generated successfully based on your OpenAPI spec. However, it is no
### NPM

```bash
npm add discord
npm add @speakeasy-sdks/discord
```

### PNPM

```bash
pnpm add discord
pnpm add @speakeasy-sdks/discord
```

### Bun

```bash
bun add discord
bun add @speakeasy-sdks/discord
```

### Yarn

```bash
yarn add discord zod
yarn add @speakeasy-sdks/discord zod

# Note that Yarn does not install peer dependencies automatically. You will need
# to install zod as shown above.
Expand All @@ -59,7 +59,7 @@ For supported JavaScript runtimes, please consult [RUNTIMES.md](RUNTIMES.md).
### Example

```typescript
import { Discord } from "discord";
import { Discord } from "@speakeasy-sdks/discord";

const discord = new Discord({
botToken: "<YOUR_API_KEY_HERE>",
Expand Down Expand Up @@ -145,7 +145,7 @@ Some of the endpoints in this SDK support retries. If you use the SDK without a

To change the default retry strategy for a single API call, simply provide a retryConfig object to the call:
```typescript
import { Discord } from "discord";
import { Discord } from "@speakeasy-sdks/discord";

const discord = new Discord({
botToken: "<YOUR_API_KEY_HERE>",
Expand Down Expand Up @@ -181,7 +181,7 @@ run();

If you'd like to override the default retry strategy for all operations that support retries, you can provide a retryConfig at SDK initialization:
```typescript
import { Discord } from "discord";
import { Discord } from "@speakeasy-sdks/discord";

const discord = new Discord({
retryConfig: {
Expand Down Expand Up @@ -226,8 +226,8 @@ Validation errors can also occur when either method arguments or data returned f


```typescript
import { Discord } from "discord";
import { SDKValidationError } from "discord/models/errors";
import { Discord } from "@speakeasy-sdks/discord";
import { SDKValidationError } from "@speakeasy-sdks/discord/models/errors";

const discord = new Discord({
botToken: "<YOUR_API_KEY_HERE>",
Expand Down Expand Up @@ -280,7 +280,7 @@ You can override the default server globally by passing a server index to the `s
| 0 | `https://discord.com/api/v10` | None |

```typescript
import { Discord } from "discord";
import { Discord } from "@speakeasy-sdks/discord";

const discord = new Discord({
serverIdx: 0,
Expand All @@ -307,7 +307,7 @@ run();
The default server can also be overridden globally by passing a URL to the `serverURL` optional parameter when initializing the SDK client instance. For example:

```typescript
import { Discord } from "discord";
import { Discord } from "@speakeasy-sdks/discord";

const discord = new Discord({
serverURL: "https://discord.com/api/v10",
Expand Down Expand Up @@ -347,8 +347,8 @@ custom header and a timeout to requests and how to use the `"requestError"` hook
to log errors:

```typescript
import { Discord } from "discord";
import { HTTPClient } from "discord/lib/http";
import { Discord } from "@speakeasy-sdks/discord";
import { HTTPClient } from "@speakeasy-sdks/discord/lib/http";

const httpClient = new HTTPClient({
// fetcher takes a function that has the same signature as native `fetch`.
Expand Down Expand Up @@ -391,7 +391,7 @@ This SDK supports the following security scheme globally:

To authenticate with the API the `botToken` parameter must be set when initializing the SDK client instance. For example:
```typescript
import { Discord } from "discord";
import { Discord } from "@speakeasy-sdks/discord";

const discord = new Discord({
botToken: "<YOUR_API_KEY_HERE>",
Expand Down Expand Up @@ -421,7 +421,7 @@ To log HTTP requests and responses, you can pass a logger that matches `console`
> 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.
```typescript
import { Discord } from "discord";
import { Discord } from "@speakeasy-sdks/discord";

const sdk = new Discord({ debugLogger: console });
```
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,14 @@ Based on:
### Generated
- [typescript v1] .
### Releases
- [NPM v1] https://www.npmjs.com/package/discord/v/1 - .
- [NPM v1] https://www.npmjs.com/package/discord/v/1 - .

## 2024-08-15 11:32:08
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.369.0 (2.399.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v1.1] .
### Releases
- [NPM v1.1] https://www.npmjs.com/package/@speakeasy-sdks/discord/v/1.1 - .
2 changes: 1 addition & 1 deletion USAGE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!-- Start SDK Example Usage [usage] -->
```typescript
import { Discord } from "discord";
import { Discord } from "@speakeasy-sdks/discord";

const discord = new Discord({
botToken: "<YOUR_API_KEY_HERE>",
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/actionrow.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Example Usage

```typescript
import { ActionRow } from "discord/models/components";
import { ActionRow } from "@speakeasy-sdks/discord/models/components";

let value: ActionRow = {
components: [],
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/actionrowcomponents.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Example Usage

```typescript
import { ActionRowComponents } from "discord/models/components";
import { ActionRowComponents } from "@speakeasy-sdks/discord/models/components";

let value: ActionRowComponents = {
customId: "<value>",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Example Usage

```typescript
import { ApplicationCommandInteractionMetadataResponse } from "discord/models/components";
import { ApplicationCommandInteractionMetadataResponse } from "@speakeasy-sdks/discord/models/components";

let value: ApplicationCommandInteractionMetadataResponse = {
id: "<value>",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Example Usage

```typescript
import { ApplicationIntegrationTypeConfigurationResponse } from "discord/models/components";
import { ApplicationIntegrationTypeConfigurationResponse } from "@speakeasy-sdks/discord/models/components";

let value: ApplicationIntegrationTypeConfigurationResponse = {};
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Example Usage

```typescript
import { ApplicationOAuth2InstallParamsResponse } from "discord/models/components";
import { ApplicationOAuth2InstallParamsResponse } from "@speakeasy-sdks/discord/models/components";

let value: ApplicationOAuth2InstallParamsResponse = {
scopes: ["<value>"],
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/applicationresponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Example Usage

```typescript
import { ApplicationResponse } from "discord/models/components";
import { ApplicationResponse } from "@speakeasy-sdks/discord/models/components";

let value: ApplicationResponse = {
id: "<value>",
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/basecreatemessagecreaterequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Example Usage

```typescript
import { BaseCreateMessageCreateRequest } from "discord/models/components";
import { BaseCreateMessageCreateRequest } from "@speakeasy-sdks/discord/models/components";

let value: BaseCreateMessageCreateRequest = {};
```
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/basicapplicationresponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Example Usage

```typescript
import { BasicApplicationResponse } from "discord/models/components";
import { BasicApplicationResponse } from "@speakeasy-sdks/discord/models/components";

let value: BasicApplicationResponse = {
id: "<value>",
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/basicmessageresponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Example Usage

```typescript
import { BasicMessageResponse } from "discord/models/components";
import { BasicMessageResponse } from "@speakeasy-sdks/discord/models/components";

let value: BasicMessageResponse = {
content: "<value>",
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/basicmessageresponsecomponents.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Example Usage

```typescript
import { BasicMessageResponseComponents } from "discord/models/components";
import { BasicMessageResponseComponents } from "@speakeasy-sdks/discord/models/components";

let value: BasicMessageResponseComponents = {
id: 528895,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Example Usage

```typescript
import { BasicMessageResponseInteractionMetadata } from "discord/models/components";
import { BasicMessageResponseInteractionMetadata } from "@speakeasy-sdks/discord/models/components";

let value: BasicMessageResponseInteractionMetadata = {
id: "<value>",
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/basicmessageresponsenonce.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Example Usage

```typescript
import { BasicMessageResponseNonce } from "discord/models/components";
import { BasicMessageResponseNonce } from "@speakeasy-sdks/discord/models/components";

let value: BasicMessageResponseNonce = "<value>";
```
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/basicmessageresponsestickers.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Example Usage

```typescript
import { BasicMessageResponseStickers } from "discord/models/components";
import { BasicMessageResponseStickers } from "@speakeasy-sdks/discord/models/components";

let value: BasicMessageResponseStickers = {
id: "<value>",
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/button.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Example Usage

```typescript
import { Button } from "discord/models/components";
import { Button } from "@speakeasy-sdks/discord/models/components";

let value: Button = {};
```
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/bynweekdayresponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Example Usage

```typescript
import { ByNWeekdayResponse } from "discord/models/components";
import { ByNWeekdayResponse } from "@speakeasy-sdks/discord/models/components";

let value: ByNWeekdayResponse = {
n: 979587,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Example Usage

```typescript
import { ChannelPermissionOverwriteRequest } from "discord/models/components";
import { ChannelPermissionOverwriteRequest } from "@speakeasy-sdks/discord/models/components";

let value: ChannelPermissionOverwriteRequest = {
id: "<value>",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Example Usage

```typescript
import { ChannelPermissionOverwriteResponse } from "discord/models/components";
import { ChannelPermissionOverwriteResponse } from "@speakeasy-sdks/discord/models/components";

let value: ChannelPermissionOverwriteResponse = {
id: "<value>",
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/channels.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Example Usage

```typescript
import { Channels } from "discord/models/components";
import { Channels } from "@speakeasy-sdks/discord/models/components";

let value: Channels = {
id: "<value>",
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/channelselect.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Example Usage

```typescript
import { ChannelSelect } from "discord/models/components";
import { ChannelSelect } from "@speakeasy-sdks/discord/models/components";

let value: ChannelSelect = {
customId: "<value>",
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/channelselectdefaultvalue.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Example Usage

```typescript
import { ChannelSelectDefaultValue } from "discord/models/components";
import { ChannelSelectDefaultValue } from "@speakeasy-sdks/discord/models/components";

let value: ChannelSelectDefaultValue = {
id: "<value>",
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/components.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Example Usage

```typescript
import { Components } from "discord/models/components";
import { Components } from "@speakeasy-sdks/discord/models/components";

let value: Components = {
id: 581850,
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/createdthreadresponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Example Usage

```typescript
import { CreatedThreadResponse } from "discord/models/components";
import { CreatedThreadResponse } from "@speakeasy-sdks/discord/models/components";

let value: CreatedThreadResponse = {
id: "<value>",
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/createforumthreadrequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Example Usage

```typescript
import { CreateForumThreadRequest } from "discord/models/components";
import { CreateForumThreadRequest } from "@speakeasy-sdks/discord/models/components";

let value: CreateForumThreadRequest = {
name: "<value>",
Expand Down
Loading

0 comments on commit bbb9228

Please sign in to comment.