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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -346,10 +346,6 @@ partial void ProcessActionsCreateResponseContent(
/// Whether the action allows any text to be entered as a value or if it must be one of the possible values.<br/>
/// Default Value: false
/// </param>
/// <param name="webhooks">
/// The action's webhooks.<br/>
/// Default Value: []
/// </param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::ModerationAPI.ActionsCreateResponse> ActionsCreateAsync(
Expand All @@ -364,7 +360,6 @@ partial void ProcessActionsCreateResponseContent(
global::System.Collections.Generic.IList<global::ModerationAPI.ActionsCreateRequestPossibleValue>? possibleValues = default,
bool? valueRequired = default,
bool? freeText = default,
global::System.Collections.Generic.IList<global::ModerationAPI.ActionsCreateRequestWebhook>? webhooks = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::ModerationAPI.ActionsCreateRequest
Expand All @@ -380,7 +375,6 @@ partial void ProcessActionsCreateResponseContent(
PossibleValues = possibleValues,
ValueRequired = valueRequired,
FreeText = freeText,
Webhooks = webhooks,
};

return await ActionsCreateAsync(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -395,10 +395,6 @@ partial void ProcessActionsUpdateResponseContent(
/// Whether the action allows any text to be entered as a value or if it must be one of the possible values.<br/>
/// Default Value: false
/// </param>
/// <param name="webhooks">
/// The action's webhooks.<br/>
/// Default Value: []
/// </param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::ModerationAPI.ActionsUpdateResponse> ActionsUpdateAsync(
Expand All @@ -414,7 +410,6 @@ partial void ProcessActionsUpdateResponseContent(
global::System.Collections.Generic.IList<global::ModerationAPI.ActionsUpdateRequestPossibleValue>? possibleValues = default,
bool? valueRequired = default,
bool? freeText = default,
global::System.Collections.Generic.IList<global::ModerationAPI.ActionsUpdateRequestWebhook>? webhooks = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::ModerationAPI.ActionsUpdateRequest
Expand All @@ -430,7 +425,6 @@ partial void ProcessActionsUpdateResponseContent(
PossibleValues = possibleValues,
ValueRequired = valueRequired,
FreeText = freeText,
Webhooks = webhooks,
};

return await ActionsUpdateAsync(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ partial void ProcessAuthorOpenCreateResponseContent(
/// const author = await client.authors.create({ external_id: 'external_id' });<br/>
/// console.log(author.id);
/// </remarks>
public async global::System.Threading.Tasks.Task<global::ModerationAPI.AuthorOpenCreateResponse> AuthorOpenCreateAsync(
public async global::System.Threading.Tasks.Task<global::ModerationAPI.PublicAuthor> AuthorOpenCreateAsync(

global::ModerationAPI.AuthorOpenCreateRequest request,
global::System.Threading.CancellationToken cancellationToken = default)
Expand Down Expand Up @@ -277,7 +277,7 @@ partial void ProcessAuthorOpenCreateResponseContent(
__response.EnsureSuccessStatusCode();

return
global::ModerationAPI.AuthorOpenCreateResponse.FromJson(__content, JsonSerializerContext) ??
global::ModerationAPI.PublicAuthor.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
Expand Down Expand Up @@ -308,7 +308,7 @@ partial void ProcessAuthorOpenCreateResponseContent(
).ConfigureAwait(false);

return
await global::ModerationAPI.AuthorOpenCreateResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
await global::ModerationAPI.PublicAuthor.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
Expand Down Expand Up @@ -356,6 +356,9 @@ partial void ProcessAuthorOpenCreateResponseContent(
/// <param name="email">
/// Author email address
/// </param>
/// <param name="company">
/// The author's company or organization
/// </param>
/// <param name="metadata">
/// Additional metadata provided by your system. We recommend including any relevant information that may assist in the moderation process.
/// </param>
Expand All @@ -371,12 +374,13 @@ partial void ProcessAuthorOpenCreateResponseContent(
/// </param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::ModerationAPI.AuthorOpenCreateResponse> AuthorOpenCreateAsync(
public async global::System.Threading.Tasks.Task<global::ModerationAPI.PublicAuthor> AuthorOpenCreateAsync(
string externalId,
string? profilePicture = default,
string? externalLink = default,
string? name = default,
string? email = default,
string? company = default,
global::ModerationAPI.AuthorOpenCreateRequestMetadata? metadata = default,
double? firstSeen = default,
double? lastSeen = default,
Expand All @@ -389,6 +393,7 @@ partial void ProcessAuthorOpenCreateResponseContent(
ExternalLink = externalLink,
Name = name,
Email = email,
Company = company,
Metadata = metadata,
FirstSeen = firstSeen,
LastSeen = lastSeen,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ partial void ProcessAuthorOpenGetAuthorDetailsResponseContent(
/// const author = await client.authors.retrieve('id');<br/>
/// console.log(author.id);
/// </remarks>
public async global::System.Threading.Tasks.Task<global::ModerationAPI.AuthorOpenGetAuthorDetailsResponse> AuthorOpenGetAuthorDetailsAsync(
public async global::System.Threading.Tasks.Task<global::ModerationAPI.PublicAuthor> AuthorOpenGetAuthorDetailsAsync(
string id,
global::System.Threading.CancellationToken cancellationToken = default)
{
Expand Down Expand Up @@ -308,7 +308,7 @@ partial void ProcessAuthorOpenGetAuthorDetailsResponseContent(
__response.EnsureSuccessStatusCode();

return
global::ModerationAPI.AuthorOpenGetAuthorDetailsResponse.FromJson(__content, JsonSerializerContext) ??
global::ModerationAPI.PublicAuthor.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
Expand Down Expand Up @@ -339,7 +339,7 @@ partial void ProcessAuthorOpenGetAuthorDetailsResponseContent(
).ConfigureAwait(false);

return
await global::ModerationAPI.AuthorOpenGetAuthorDetailsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
await global::ModerationAPI.PublicAuthor.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ partial void ProcessAuthorOpenUpdateResponseContent(
/// const author = await client.authors.update('id');<br/>
/// console.log(author.id);
/// </remarks>
public async global::System.Threading.Tasks.Task<global::ModerationAPI.AuthorOpenUpdateResponse> AuthorOpenUpdateAsync(
public async global::System.Threading.Tasks.Task<global::ModerationAPI.PublicAuthor> AuthorOpenUpdateAsync(
string id,

global::ModerationAPI.AuthorOpenUpdateRequest request,
Expand Down Expand Up @@ -323,7 +323,7 @@ partial void ProcessAuthorOpenUpdateResponseContent(
__response.EnsureSuccessStatusCode();

return
global::ModerationAPI.AuthorOpenUpdateResponse.FromJson(__content, JsonSerializerContext) ??
global::ModerationAPI.PublicAuthor.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
Expand Down Expand Up @@ -354,7 +354,7 @@ partial void ProcessAuthorOpenUpdateResponseContent(
).ConfigureAwait(false);

return
await global::ModerationAPI.AuthorOpenUpdateResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
await global::ModerationAPI.PublicAuthor.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
Expand Down Expand Up @@ -405,6 +405,9 @@ partial void ProcessAuthorOpenUpdateResponseContent(
/// <param name="email">
/// Author email address
/// </param>
/// <param name="company">
/// The author's company or organization
/// </param>
/// <param name="metadata">
/// Additional metadata provided by your system. We recommend including any relevant information that may assist in the moderation process.
/// </param>
Expand All @@ -417,12 +420,13 @@ partial void ProcessAuthorOpenUpdateResponseContent(
/// <param name="manualTrustLevel"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::ModerationAPI.AuthorOpenUpdateResponse> AuthorOpenUpdateAsync(
public async global::System.Threading.Tasks.Task<global::ModerationAPI.PublicAuthor> AuthorOpenUpdateAsync(
string id,
string? profilePicture = default,
string? externalLink = default,
string? name = default,
string? email = default,
string? company = default,
global::ModerationAPI.AuthorOpenUpdateRequestMetadata? metadata = default,
double? firstSeen = default,
double? lastSeen = default,
Expand All @@ -435,6 +439,7 @@ partial void ProcessAuthorOpenUpdateResponseContent(
ExternalLink = externalLink,
Name = name,
Email = email,
Company = company,
Metadata = metadata,
FirstSeen = firstSeen,
LastSeen = lastSeen,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,6 @@ public partial interface IActionsClient
/// Whether the action allows any text to be entered as a value or if it must be one of the possible values.<br/>
/// Default Value: false
/// </param>
/// <param name="webhooks">
/// The action's webhooks.<br/>
/// Default Value: []
/// </param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::ModerationAPI.ActionsCreateResponse> ActionsCreateAsync(
Expand All @@ -85,7 +81,6 @@ public partial interface IActionsClient
global::System.Collections.Generic.IList<global::ModerationAPI.ActionsCreateRequestPossibleValue>? possibleValues = default,
bool? valueRequired = default,
bool? freeText = default,
global::System.Collections.Generic.IList<global::ModerationAPI.ActionsCreateRequestWebhook>? webhooks = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,6 @@ public partial interface IActionsClient
/// Whether the action allows any text to be entered as a value or if it must be one of the possible values.<br/>
/// Default Value: false
/// </param>
/// <param name="webhooks">
/// The action's webhooks.<br/>
/// Default Value: []
/// </param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::ModerationAPI.ActionsUpdateResponse> ActionsUpdateAsync(
Expand All @@ -93,7 +89,6 @@ public partial interface IActionsClient
global::System.Collections.Generic.IList<global::ModerationAPI.ActionsUpdateRequestPossibleValue>? possibleValues = default,
bool? valueRequired = default,
bool? freeText = default,
global::System.Collections.Generic.IList<global::ModerationAPI.ActionsUpdateRequestWebhook>? webhooks = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public partial interface IAuthorClient
/// const author = await client.authors.create({ external_id: 'external_id' });<br/>
/// console.log(author.id);
/// </remarks>
global::System.Threading.Tasks.Task<global::ModerationAPI.AuthorOpenCreateResponse> AuthorOpenCreateAsync(
global::System.Threading.Tasks.Task<global::ModerationAPI.PublicAuthor> AuthorOpenCreateAsync(

global::ModerationAPI.AuthorOpenCreateRequest request,
global::System.Threading.CancellationToken cancellationToken = default);
Expand All @@ -39,6 +39,9 @@ public partial interface IAuthorClient
/// <param name="email">
/// Author email address
/// </param>
/// <param name="company">
/// The author's company or organization
/// </param>
/// <param name="metadata">
/// Additional metadata provided by your system. We recommend including any relevant information that may assist in the moderation process.
/// </param>
Expand All @@ -54,12 +57,13 @@ public partial interface IAuthorClient
/// </param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::ModerationAPI.AuthorOpenCreateResponse> AuthorOpenCreateAsync(
global::System.Threading.Tasks.Task<global::ModerationAPI.PublicAuthor> AuthorOpenCreateAsync(
string externalId,
string? profilePicture = default,
string? externalLink = default,
string? name = default,
string? email = default,
string? company = default,
global::ModerationAPI.AuthorOpenCreateRequestMetadata? metadata = default,
double? firstSeen = default,
double? lastSeen = default,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public partial interface IAuthorClient
/// const author = await client.authors.retrieve('id');<br/>
/// console.log(author.id);
/// </remarks>
global::System.Threading.Tasks.Task<global::ModerationAPI.AuthorOpenGetAuthorDetailsResponse> AuthorOpenGetAuthorDetailsAsync(
global::System.Threading.Tasks.Task<global::ModerationAPI.PublicAuthor> AuthorOpenGetAuthorDetailsAsync(
string id,
global::System.Threading.CancellationToken cancellationToken = default);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public partial interface IAuthorClient
/// const author = await client.authors.update('id');<br/>
/// console.log(author.id);
/// </remarks>
global::System.Threading.Tasks.Task<global::ModerationAPI.AuthorOpenUpdateResponse> AuthorOpenUpdateAsync(
global::System.Threading.Tasks.Task<global::ModerationAPI.PublicAuthor> AuthorOpenUpdateAsync(
string id,

global::ModerationAPI.AuthorOpenUpdateRequest request,
Expand All @@ -46,6 +46,9 @@ public partial interface IAuthorClient
/// <param name="email">
/// Author email address
/// </param>
/// <param name="company">
/// The author's company or organization
/// </param>
/// <param name="metadata">
/// Additional metadata provided by your system. We recommend including any relevant information that may assist in the moderation process.
/// </param>
Expand All @@ -58,12 +61,13 @@ public partial interface IAuthorClient
/// <param name="manualTrustLevel"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::ModerationAPI.AuthorOpenUpdateResponse> AuthorOpenUpdateAsync(
global::System.Threading.Tasks.Task<global::ModerationAPI.PublicAuthor> AuthorOpenUpdateAsync(
string id,
string? profilePicture = default,
string? externalLink = default,
string? name = default,
string? email = default,
string? company = default,
global::ModerationAPI.AuthorOpenUpdateRequestMetadata? metadata = default,
double? firstSeen = default,
double? lastSeen = default,
Expand Down
Loading
Loading