Retrieves all shield lists in the enterprise.
This operation is performed by calling function getShieldListsV2025R0.
See the endpoint docs at API Reference.
await client.shieldLists.getShieldListsV2025R0();
GetShieldListsV2025R0HeadersInput
undefined | CancellationToken
This function returns a value of type ShieldListsV2025R0.
Returns the list of shield list objects.
Creates a shield list.
This operation is performed by calling function createShieldListV2025R0.
See the endpoint docs at API Reference.
await client.shieldLists.createShieldListV2025R0({
name: shieldListCountryName,
description: 'A list of things that are shielded',
content: new ShieldListContentCountryV2025R0({
type: 'country' as ShieldListContentCountryV2025R0TypeField,
countryCodes: ['US', 'PL'],
}),
} satisfies ShieldListsCreateV2025R0);
ShieldListsCreateV2025R0
CreateShieldListV2025R0OptionalsInputThis function returns a value of type ShieldListV2025R0.
Returns the shield list object.
Retrieves a single shield list by its ID.
This operation is performed by calling function getShieldListByIdV2025R0.
See the endpoint docs at API Reference.
await client.shieldLists.getShieldListByIdV2025R0(shieldListCountry.id);
string
GetShieldListByIdV2025R0OptionalsInputThis function returns a value of type ShieldListV2025R0.
Returns the shield list object.
Delete a single shield list by its ID.
This operation is performed by calling function deleteShieldListByIdV2025R0.
See the endpoint docs at API Reference.
await client.shieldLists.deleteShieldListByIdV2025R0(shieldListCountry.id);
string
DeleteShieldListByIdV2025R0OptionalsInputThis function returns a value of type undefined.
Shield List correctly removed. No content in response.
Updates a shield list.
This operation is performed by calling function updateShieldListByIdV2025R0.
See the endpoint docs at API Reference.
await client.shieldLists.updateShieldListByIdV2025R0(shieldListCountry.id, {
name: shieldListCountryName,
description: 'Updated description',
content: new ShieldListContentCountryV2025R0({
type: 'country' as ShieldListContentCountryV2025R0TypeField,
countryCodes: ['US'],
}),
} satisfies ShieldListsUpdateV2025R0);
string
ShieldListsUpdateV2025R0
UpdateShieldListByIdV2025R0OptionalsInputThis function returns a value of type ShieldListV2025R0.
Returns the shield list object.