Coming Soon
Coming Soon
import { WaveShield } from "waveshield";
const waveShield = new WaveShield({
security: {
apiKeyAuth: process.env["WAVESHIELD_API_KEY_AUTH"] ?? "",
apiSecretAuth: process.env["WAVESHIELD_API_SECRET_AUTH"] ?? "",
},
});
async function run() {
await waveShield.webhooks.list();
}
run();The standalone function version of this method:
import { WaveShieldCore } from "waveshield/core.js";
import { webhooksList } from "waveshield/funcs/webhooksList.js";
// Use `WaveShieldCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const waveShield = new WaveShieldCore({
security: {
apiKeyAuth: process.env["WAVESHIELD_API_KEY_AUTH"] ?? "",
apiSecretAuth: process.env["WAVESHIELD_API_SECRET_AUTH"] ?? "",
},
});
async function run() {
const res = await webhooksList(waveShield);
if (res.ok) {
const { value: result } = res;
} else {
console.log("webhooksList failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | 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 | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<void>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.WaveShieldDefaultError | 4XX, 5XX | */* |
Coming Soon. Events: player_banned, player_first_time_seen
import { WaveShield } from "waveshield";
const waveShield = new WaveShield({
security: {
apiKeyAuth: process.env["WAVESHIELD_API_KEY_AUTH"] ?? "",
apiSecretAuth: process.env["WAVESHIELD_API_SECRET_AUTH"] ?? "",
},
});
async function run() {
await waveShield.webhooks.create();
}
run();The standalone function version of this method:
import { WaveShieldCore } from "waveshield/core.js";
import { webhooksCreate } from "waveshield/funcs/webhooksCreate.js";
// Use `WaveShieldCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const waveShield = new WaveShieldCore({
security: {
apiKeyAuth: process.env["WAVESHIELD_API_KEY_AUTH"] ?? "",
apiSecretAuth: process.env["WAVESHIELD_API_SECRET_AUTH"] ?? "",
},
});
async function run() {
const res = await webhooksCreate(waveShield);
if (res.ok) {
const { value: result } = res;
} else {
console.log("webhooksCreate failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | 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 | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<void>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.WaveShieldDefaultError | 4XX, 5XX | */* |
Coming Soon
import { WaveShield } from "waveshield";
const waveShield = new WaveShield({
security: {
apiKeyAuth: process.env["WAVESHIELD_API_KEY_AUTH"] ?? "",
apiSecretAuth: process.env["WAVESHIELD_API_SECRET_AUTH"] ?? "",
},
});
async function run() {
await waveShield.webhooks.delete({
id: "<id>",
});
}
run();The standalone function version of this method:
import { WaveShieldCore } from "waveshield/core.js";
import { webhooksDelete } from "waveshield/funcs/webhooksDelete.js";
// Use `WaveShieldCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const waveShield = new WaveShieldCore({
security: {
apiKeyAuth: process.env["WAVESHIELD_API_KEY_AUTH"] ?? "",
apiSecretAuth: process.env["WAVESHIELD_API_SECRET_AUTH"] ?? "",
},
});
async function run() {
const res = await webhooksDelete(waveShield, {
id: "<id>",
});
if (res.ok) {
const { value: result } = res;
} else {
console.log("webhooksDelete failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.DeleteV1WebhooksIdRequest | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | 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 | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<void>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.WaveShieldDefaultError | 4XX, 5XX | */* |