Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,10 @@ partial void ProcessActionsCreateResponseContent(
/// });<br/>
/// async function run() {<br/>
/// const result = await moderationApi.actions.create({<br/>
/// body: {<br/>
/// key: "suspend-24h",<br/>
/// name: "Suspend for 24 hours",<br/>
/// type: "AUTHOR_BLOCK_TEMP",<br/>
/// queueBehaviour: "REMOVE",<br/>
/// },<br/>
/// key: "suspend-24h",<br/>
/// name: "Suspend for 24 hours",<br/>
/// type: "AUTHOR_BLOCK_TEMP",<br/>
/// queueBehaviour: "REMOVE",<br/>
/// });<br/>
/// console.log(result);<br/>
/// }<br/>
Expand Down Expand Up @@ -103,12 +101,10 @@ partial void ProcessActionsCreateResponseContent(
/// });<br/>
/// async function run() {<br/>
/// const result = await moderationApi.actions.create({<br/>
/// body: {<br/>
/// key: "suspend-24h",<br/>
/// name: "Suspend for 24 hours",<br/>
/// type: "AUTHOR_BLOCK_TEMP",<br/>
/// queueBehaviour: "REMOVE",<br/>
/// },<br/>
/// key: "suspend-24h",<br/>
/// name: "Suspend for 24 hours",<br/>
/// type: "AUTHOR_BLOCK_TEMP",<br/>
/// queueBehaviour: "REMOVE",<br/>
/// });<br/>
/// console.log(result);<br/>
/// }<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,7 @@ partial void ProcessActionsDeleteResponseContent(
/// secretKey: process.env["MODAPI_SECRET_KEY"] ?? "",<br/>
/// });<br/>
/// async function run() {<br/>
/// const result = await moderationApi.actions.delete({<br/>
/// id: "&lt;id&gt;",<br/>
/// });<br/>
/// const result = await moderationApi.actions.delete("&lt;id&gt;");<br/>
/// console.log(result);<br/>
/// }<br/>
/// run();
Expand Down Expand Up @@ -99,9 +97,7 @@ partial void ProcessActionsDeleteResponseContent(
/// secretKey: process.env["MODAPI_SECRET_KEY"] ?? "",<br/>
/// });<br/>
/// async function run() {<br/>
/// const result = await moderationApi.actions.delete({<br/>
/// id: "&lt;id&gt;",<br/>
/// });<br/>
/// const result = await moderationApi.actions.delete("&lt;id&gt;");<br/>
/// console.log(result);<br/>
/// }<br/>
/// run();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,10 @@ partial void ProcessActionsExecuteResponseContent(
/// });<br/>
/// async function run() {<br/>
/// const result = await moderationApi.actions.execute({<br/>
/// body: {<br/>
/// actionKey: "suspend-24h",<br/>
/// authorIds: [<br/>
/// "user-1092",<br/>
/// ],<br/>
/// },<br/>
/// actionKey: "suspend-24h",<br/>
/// authorIds: [<br/>
/// "user-1092",<br/>
/// ],<br/>
/// });<br/>
/// console.log(result);<br/>
/// }<br/>
Expand Down Expand Up @@ -103,12 +101,10 @@ partial void ProcessActionsExecuteResponseContent(
/// });<br/>
/// async function run() {<br/>
/// const result = await moderationApi.actions.execute({<br/>
/// body: {<br/>
/// actionKey: "suspend-24h",<br/>
/// authorIds: [<br/>
/// "user-1092",<br/>
/// ],<br/>
/// },<br/>
/// actionKey: "suspend-24h",<br/>
/// authorIds: [<br/>
/// "user-1092",<br/>
/// ],<br/>
/// });<br/>
/// console.log(result);<br/>
/// }<br/>
Expand Down Expand Up @@ -655,6 +651,12 @@ partial void ProcessActionsExecuteResponseContent(
/// <param name="duration">
/// Optional duration in milliseconds for actions with timeouts
/// </param>
/// <param name="moderator">
/// The user ID or email of the organization member who made the decision. The action is recorded as theirs.
/// </param>
/// <param name="createCasebookCase">
/// Record an allow or reject decision as a casebook case. Defaults to true when `moderator` is set, else false. Without `moderator`, the case is recorded as System.
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
Expand All @@ -666,6 +668,8 @@ partial void ProcessActionsExecuteResponseContent(
string? value = default,
string? queueId = default,
double? duration = default,
string? moderator = default,
bool? createCasebookCase = default,
global::ModerationAPI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
Expand All @@ -677,6 +681,8 @@ partial void ProcessActionsExecuteResponseContent(
Value = value,
QueueId = queueId,
Duration = duration,
Moderator = moderator,
CreateCasebookCase = createCasebookCase,
};

return await ActionsExecuteAsync(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,7 @@ partial void ProcessActionsGetResponseContent(
/// secretKey: process.env["MODAPI_SECRET_KEY"] ?? "",<br/>
/// });<br/>
/// async function run() {<br/>
/// const result = await moderationApi.actions.retrieve({<br/>
/// id: "&lt;id&gt;",<br/>
/// });<br/>
/// const result = await moderationApi.actions.retrieve("&lt;id&gt;");<br/>
/// console.log(result);<br/>
/// }<br/>
/// run();
Expand Down Expand Up @@ -99,9 +97,7 @@ partial void ProcessActionsGetResponseContent(
/// secretKey: process.env["MODAPI_SECRET_KEY"] ?? "",<br/>
/// });<br/>
/// async function run() {<br/>
/// const result = await moderationApi.actions.retrieve({<br/>
/// id: "&lt;id&gt;",<br/>
/// });<br/>
/// const result = await moderationApi.actions.retrieve("&lt;id&gt;");<br/>
/// console.log(result);<br/>
/// }<br/>
/// run();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ partial void ProcessActionsListResponseContent(
/// secretKey: process.env["MODAPI_SECRET_KEY"] ?? "",<br/>
/// });<br/>
/// async function run() {<br/>
/// const result = await moderationApi.actions.list({});<br/>
/// const result = await moderationApi.actions.list();<br/>
/// for await (const page of result) {<br/>
/// console.log(page);<br/>
/// }<br/>
Expand Down Expand Up @@ -119,7 +119,7 @@ partial void ProcessActionsListResponseContent(
/// secretKey: process.env["MODAPI_SECRET_KEY"] ?? "",<br/>
/// });<br/>
/// async function run() {<br/>
/// const result = await moderationApi.actions.list({});<br/>
/// const result = await moderationApi.actions.list();<br/>
/// for await (const page of result) {<br/>
/// console.log(page);<br/>
/// }<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,7 @@ partial void ProcessActionsUpdateResponseContent(
/// secretKey: process.env["MODAPI_SECRET_KEY"] ?? "",<br/>
/// });<br/>
/// async function run() {<br/>
/// const result = await moderationApi.actions.update({<br/>
/// id: "&lt;id&gt;",<br/>
/// body: {},<br/>
/// });<br/>
/// const result = await moderationApi.actions.update("&lt;id&gt;", {});<br/>
/// console.log(result);<br/>
/// }<br/>
/// run();
Expand Down Expand Up @@ -108,10 +105,7 @@ partial void ProcessActionsUpdateResponseContent(
/// secretKey: process.env["MODAPI_SECRET_KEY"] ?? "",<br/>
/// });<br/>
/// async function run() {<br/>
/// const result = await moderationApi.actions.update({<br/>
/// id: "&lt;id&gt;",<br/>
/// body: {},<br/>
/// });<br/>
/// const result = await moderationApi.actions.update("&lt;id&gt;", {});<br/>
/// console.log(result);<br/>
/// }<br/>
/// run();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ partial void ProcessAuthorsResponseContent(
/// secretKey: process.env["MODAPI_SECRET_KEY"] ?? "",<br/>
/// });<br/>
/// async function run() {<br/>
/// const result = await moderationApi.analytics.authors({});<br/>
/// const result = await moderationApi.analytics.authors();<br/>
/// console.log(result);<br/>
/// }<br/>
/// run();
Expand Down Expand Up @@ -121,7 +121,7 @@ partial void ProcessAuthorsResponseContent(
/// secretKey: process.env["MODAPI_SECRET_KEY"] ?? "",<br/>
/// });<br/>
/// async function run() {<br/>
/// const result = await moderationApi.analytics.authors({});<br/>
/// const result = await moderationApi.analytics.authors();<br/>
/// console.log(result);<br/>
/// }<br/>
/// run();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ partial void ProcessAutomationResponseContent(
/// secretKey: process.env["MODAPI_SECRET_KEY"] ?? "",<br/>
/// });<br/>
/// async function run() {<br/>
/// const result = await moderationApi.analytics.automation({});<br/>
/// const result = await moderationApi.analytics.automation();<br/>
/// console.log(result);<br/>
/// }<br/>
/// run();
Expand Down Expand Up @@ -109,7 +109,7 @@ partial void ProcessAutomationResponseContent(
/// secretKey: process.env["MODAPI_SECRET_KEY"] ?? "",<br/>
/// });<br/>
/// async function run() {<br/>
/// const result = await moderationApi.analytics.automation({});<br/>
/// const result = await moderationApi.analytics.automation();<br/>
/// console.log(result);<br/>
/// }<br/>
/// run();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ partial void ProcessChannelsResponseContent(
/// secretKey: process.env["MODAPI_SECRET_KEY"] ?? "",<br/>
/// });<br/>
/// async function run() {<br/>
/// const result = await moderationApi.analytics.channels({});<br/>
/// const result = await moderationApi.analytics.channels();<br/>
/// console.log(result);<br/>
/// }<br/>
/// run();
Expand Down Expand Up @@ -99,7 +99,7 @@ partial void ProcessChannelsResponseContent(
/// secretKey: process.env["MODAPI_SECRET_KEY"] ?? "",<br/>
/// });<br/>
/// async function run() {<br/>
/// const result = await moderationApi.analytics.channels({});<br/>
/// const result = await moderationApi.analytics.channels();<br/>
/// console.log(result);<br/>
/// }<br/>
/// run();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ partial void ProcessPoliciesResponseContent(
/// secretKey: process.env["MODAPI_SECRET_KEY"] ?? "",<br/>
/// });<br/>
/// async function run() {<br/>
/// const result = await moderationApi.analytics.policies({});<br/>
/// const result = await moderationApi.analytics.policies();<br/>
/// console.log(result);<br/>
/// }<br/>
/// run();
Expand Down Expand Up @@ -121,7 +121,7 @@ partial void ProcessPoliciesResponseContent(
/// secretKey: process.env["MODAPI_SECRET_KEY"] ?? "",<br/>
/// });<br/>
/// async function run() {<br/>
/// const result = await moderationApi.analytics.policies({});<br/>
/// const result = await moderationApi.analytics.policies();<br/>
/// console.log(result);<br/>
/// }<br/>
/// run();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ partial void ProcessSummaryResponseContent(
/// secretKey: process.env["MODAPI_SECRET_KEY"] ?? "",<br/>
/// });<br/>
/// async function run() {<br/>
/// const result = await moderationApi.analytics.summary({});<br/>
/// const result = await moderationApi.analytics.summary();<br/>
/// console.log(result);<br/>
/// }<br/>
/// run();
Expand Down Expand Up @@ -109,7 +109,7 @@ partial void ProcessSummaryResponseContent(
/// secretKey: process.env["MODAPI_SECRET_KEY"] ?? "",<br/>
/// });<br/>
/// async function run() {<br/>
/// const result = await moderationApi.analytics.summary({});<br/>
/// const result = await moderationApi.analytics.summary();<br/>
/// console.log(result);<br/>
/// }<br/>
/// run();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ partial void ProcessVolumesResponseContent(
/// secretKey: process.env["MODAPI_SECRET_KEY"] ?? "",<br/>
/// });<br/>
/// async function run() {<br/>
/// const result = await moderationApi.analytics.volumes({});<br/>
/// const result = await moderationApi.analytics.volumes();<br/>
/// console.log(result);<br/>
/// }<br/>
/// run();
Expand Down Expand Up @@ -109,7 +109,7 @@ partial void ProcessVolumesResponseContent(
/// secretKey: process.env["MODAPI_SECRET_KEY"] ?? "",<br/>
/// });<br/>
/// async function run() {<br/>
/// const result = await moderationApi.analytics.volumes({});<br/>
/// const result = await moderationApi.analytics.volumes();<br/>
/// console.log(result);<br/>
/// }<br/>
/// run();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,7 @@ partial void ProcessAuthorDeleteResponseContent(
/// secretKey: process.env["MODAPI_SECRET_KEY"] ?? "",<br/>
/// });<br/>
/// async function run() {<br/>
/// const result = await moderationApi.authors.delete({<br/>
/// id: "&lt;id&gt;",<br/>
/// });<br/>
/// const result = await moderationApi.authors.delete("&lt;id&gt;");<br/>
/// console.log(result);<br/>
/// }<br/>
/// run();
Expand Down Expand Up @@ -99,9 +97,7 @@ partial void ProcessAuthorDeleteResponseContent(
/// secretKey: process.env["MODAPI_SECRET_KEY"] ?? "",<br/>
/// });<br/>
/// async function run() {<br/>
/// const result = await moderationApi.authors.delete({<br/>
/// id: "&lt;id&gt;",<br/>
/// });<br/>
/// const result = await moderationApi.authors.delete("&lt;id&gt;");<br/>
/// console.log(result);<br/>
/// }<br/>
/// run();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,13 @@ partial void ProcessAuthorOpenCreateResponseContent(
/// });<br/>
/// async function run() {<br/>
/// const result = await moderationApi.authors.create({<br/>
/// body: {<br/>
/// name: "Jamie Rivera",<br/>
/// email: "jamie@example.com",<br/>
/// metadata: {<br/>
/// emailVerified: true,<br/>
/// isPayingCustomer: false,<br/>
/// },<br/>
/// externalId: "user-1092",<br/>
/// name: "Jamie Rivera",<br/>
/// email: "jamie@example.com",<br/>
/// metadata: {<br/>
/// emailVerified: true,<br/>
/// isPayingCustomer: false,<br/>
/// },<br/>
/// externalId: "user-1092",<br/>
/// });<br/>
/// console.log(result);<br/>
/// }<br/>
Expand Down Expand Up @@ -106,15 +104,13 @@ partial void ProcessAuthorOpenCreateResponseContent(
/// });<br/>
/// async function run() {<br/>
/// const result = await moderationApi.authors.create({<br/>
/// body: {<br/>
/// name: "Jamie Rivera",<br/>
/// email: "jamie@example.com",<br/>
/// metadata: {<br/>
/// emailVerified: true,<br/>
/// isPayingCustomer: false,<br/>
/// },<br/>
/// externalId: "user-1092",<br/>
/// name: "Jamie Rivera",<br/>
/// email: "jamie@example.com",<br/>
/// metadata: {<br/>
/// emailVerified: true,<br/>
/// isPayingCustomer: false,<br/>
/// },<br/>
/// externalId: "user-1092",<br/>
/// });<br/>
/// console.log(result);<br/>
/// }<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,7 @@ partial void ProcessAuthorOpenGetAuthorDetailsResponseContent(
/// secretKey: process.env["MODAPI_SECRET_KEY"] ?? "",<br/>
/// });<br/>
/// async function run() {<br/>
/// const result = await moderationApi.authors.retrieve({<br/>
/// id: "&lt;id&gt;",<br/>
/// });<br/>
/// const result = await moderationApi.authors.retrieve("&lt;id&gt;");<br/>
/// console.log(result);<br/>
/// }<br/>
/// run();
Expand Down Expand Up @@ -99,9 +97,7 @@ partial void ProcessAuthorOpenGetAuthorDetailsResponseContent(
/// secretKey: process.env["MODAPI_SECRET_KEY"] ?? "",<br/>
/// });<br/>
/// async function run() {<br/>
/// const result = await moderationApi.authors.retrieve({<br/>
/// id: "&lt;id&gt;",<br/>
/// });<br/>
/// const result = await moderationApi.authors.retrieve("&lt;id&gt;");<br/>
/// console.log(result);<br/>
/// }<br/>
/// run();
Expand Down
Loading
Loading