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
12 changes: 12 additions & 0 deletions src/libs/LabelStudio/Generated/LabelStudio.Models.Webhook.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ public sealed partial class Webhook
[global::System.Text.Json.Serialization.JsonPropertyName("actions")]
public global::System.Collections.Generic.IList<global::LabelStudio.ActionsEnum>? Actions { get; set; }

/// <summary>
/// Included only in responses
/// </summary>
/// <default>default!</default>
[global::System.Text.Json.Serialization.JsonPropertyName("consecutive_failures")]
public int ConsecutiveFailures { get; set; } = default!;

/// <summary>
/// Creation time<br/>
/// Included only in responses
Expand Down Expand Up @@ -109,6 +116,9 @@ public sealed partial class Webhook
/// <param name="sendPayload">
/// If value is False send only action
/// </param>
/// <param name="consecutiveFailures">
/// Included only in responses
/// </param>
/// <param name="createdAt">
/// Creation time<br/>
/// Included only in responses
Expand All @@ -134,12 +144,14 @@ public Webhook(
int? project,
bool? sendForAllActions,
bool? sendPayload,
int consecutiveFailures = default!,
global::System.DateTime createdAt = default!,
int id = default!,
int organization = default!,
global::System.DateTime updatedAt = default!)
{
this.Actions = actions;
this.ConsecutiveFailures = consecutiveFailures;
this.CreatedAt = createdAt;
this.Headers = headers;
this.Id = id;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ public sealed partial class WebhookSerializerForUpdate
[global::System.Text.Json.Serialization.JsonPropertyName("actions")]
public global::System.Collections.Generic.IList<global::LabelStudio.ActionsEnum>? Actions { get; set; }

/// <summary>
/// Included only in responses
/// </summary>
/// <default>default!</default>
[global::System.Text.Json.Serialization.JsonPropertyName("consecutive_failures")]
public int ConsecutiveFailures { get; set; } = default!;

/// <summary>
/// Creation time<br/>
/// Included only in responses
Expand Down Expand Up @@ -112,6 +119,9 @@ public sealed partial class WebhookSerializerForUpdate
/// <param name="sendPayload">
/// If value is False send only action
/// </param>
/// <param name="consecutiveFailures">
/// Included only in responses
/// </param>
/// <param name="createdAt">
/// Creation time<br/>
/// Included only in responses
Expand All @@ -137,12 +147,14 @@ public WebhookSerializerForUpdate(
int? project,
bool? sendForAllActions,
bool? sendPayload,
int consecutiveFailures = default!,
global::System.DateTime createdAt = default!,
int id = default!,
int organization = default!,
global::System.DateTime updatedAt = default!)
{
this.Actions = actions;
this.ConsecutiveFailures = consecutiveFailures;
this.CreatedAt = createdAt;
this.Headers = headers;
this.Id = id;
Expand Down
8 changes: 8 additions & 0 deletions src/libs/LabelStudio/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43759,6 +43759,9 @@ components:
items:
$ref: '#/components/schemas/ActionsEnum'
type: array
consecutive_failures:
readOnly: true
type: integer
created_at:
description: Creation time
format: date-time
Expand Down Expand Up @@ -43800,6 +43803,7 @@ components:
title: URL of webhook
type: string
required:
- consecutive_failures
- created_at
- id
- organization
Expand Down Expand Up @@ -43852,6 +43856,9 @@ components:
items:
$ref: '#/components/schemas/ActionsEnum'
type: array
consecutive_failures:
readOnly: true
type: integer
created_at:
description: Creation time
format: date-time
Expand Down Expand Up @@ -43894,6 +43901,7 @@ components:
title: URL of webhook
type: string
required:
- consecutive_failures
- created_at
- id
- organization
Expand Down