diff --git a/README.md b/README.md index 2717c3c..348b2af 100755 --- a/README.md +++ b/README.md @@ -121,7 +121,10 @@ func main() { * [Unarchive](docs/sdks/connection/README.md#unarchive) - Unarchive a connection * [Unpause](docs/sdks/connection/README.md#unpause) - Unpause a connection * [Update](docs/sdks/connection/README.md#update) - Update a connection -* [Upsert](docs/sdks/connection/README.md#upsert) - Update or create a connection + +### [ConnectionNumberUpdate](docs/sdks/connectionnumberupdate/README.md) + +* [Upsert](docs/sdks/connectionnumberupdate/README.md#upsert) - Update or create a connection ### [Connections](docs/sdks/connections/README.md) diff --git a/RELEASES.md b/RELEASES.md index 0d7bde4..a66d6a5 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -86,4 +86,12 @@ Based on: - OpenAPI Doc 1.0.0 - Speakeasy CLI 1.61.0 (2.70.0) https://github.com/speakeasy-api/speakeasy ### Releases -- [Go v1.4.2] https://github.com/speakeasy-sdks/hookdeck-go/releases/tag/v1.4.2 - . \ No newline at end of file +- [Go v1.4.2] https://github.com/speakeasy-sdks/hookdeck-go/releases/tag/v1.4.2 - . + +## 2023-07-19 02:34:11 +### Changes +Based on: +- OpenAPI Doc 1.0.0 +- Speakeasy CLI 1.62.1 (2.70.2) https://github.com/speakeasy-api/speakeasy +### Releases +- [Go v1.4.3] https://github.com/speakeasy-sdks/hookdeck-go/releases/tag/v1.4.3 - . \ No newline at end of file diff --git a/connection.go b/connection.go index 4feb859..e8c33d1 100755 --- a/connection.go +++ b/connection.go @@ -670,86 +670,3 @@ func (s *connection) Update(ctx context.Context, requestBody operations.UpdateCo return res, nil } - -// Upsert - Update or create a connection -func (s *connection) Upsert(ctx context.Context, request operations.UpsertConnectionRequestBody) (*operations.UpsertConnectionResponse, error) { - baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) - url := strings.TrimSuffix(baseURL, "/") + "/webhooks" - - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json") - if err != nil { - return nil, fmt.Errorf("error serializing request body: %w", err) - } - if bodyReader == nil { - return nil, fmt.Errorf("request body is required") - } - - req, err := http.NewRequestWithContext(ctx, "PUT", url, bodyReader) - if err != nil { - return nil, fmt.Errorf("error creating request: %w", err) - } - req.Header.Set("Accept", "application/json;q=1, application/json;q=0") - req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion)) - - req.Header.Set("Content-Type", reqContentType) - - client := s.sdkConfiguration.SecurityClient - - httpRes, err := client.Do(req) - if err != nil { - return nil, fmt.Errorf("error sending request: %w", err) - } - if httpRes == nil { - return nil, fmt.Errorf("error sending request: no response") - } - - rawBody, err := io.ReadAll(httpRes.Body) - if err != nil { - return nil, fmt.Errorf("error reading response body: %w", err) - } - httpRes.Body.Close() - httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) - - contentType := httpRes.Header.Get("Content-Type") - - res := &operations.UpsertConnectionResponse{ - StatusCode: httpRes.StatusCode, - ContentType: contentType, - RawResponse: httpRes, - } - switch { - case httpRes.StatusCode == 200: - switch { - case utils.MatchContentType(contentType, `application/json`): - var out *shared.Connection - if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { - return nil, err - } - - res.Connection = out - default: - return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) - } - case httpRes.StatusCode == 400: - fallthrough - case httpRes.StatusCode == 422: - switch { - case utils.MatchContentType(contentType, `application/json`): - var out *sdkerrors.APIErrorResponse - if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { - return nil, err - } - out.RawResponse = httpRes - - return nil, out - default: - return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) - } - case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: - fallthrough - case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: - return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) - } - - return res, nil -} diff --git a/connectionnumberupdate.go b/connectionnumberupdate.go new file mode 100755 index 0000000..d51d356 --- /dev/null +++ b/connectionnumberupdate.go @@ -0,0 +1,109 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package hookdeck + +import ( + "bytes" + "context" + "fmt" + "github.com/speakeasy-sdks/hookdeck-go/pkg/models/operations" + "github.com/speakeasy-sdks/hookdeck-go/pkg/models/sdkerrors" + "github.com/speakeasy-sdks/hookdeck-go/pkg/models/shared" + "github.com/speakeasy-sdks/hookdeck-go/pkg/utils" + "io" + "net/http" + "strings" +) + +type connectionNumberUpdate struct { + sdkConfiguration sdkConfiguration +} + +func newConnectionNumberUpdate(sdkConfig sdkConfiguration) *connectionNumberUpdate { + return &connectionNumberUpdate{ + sdkConfiguration: sdkConfig, + } +} + +// Upsert - Update or create a connection +func (s *connectionNumberUpdate) Upsert(ctx context.Context, request operations.UpsertConnectionRequestBody) (*operations.UpsertConnectionResponse, error) { + baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + url := strings.TrimSuffix(baseURL, "/") + "/webhooks" + + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json") + if err != nil { + return nil, fmt.Errorf("error serializing request body: %w", err) + } + if bodyReader == nil { + return nil, fmt.Errorf("request body is required") + } + + req, err := http.NewRequestWithContext(ctx, "PUT", url, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json;q=1, application/json;q=0") + req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion)) + + req.Header.Set("Content-Type", reqContentType) + + client := s.sdkConfiguration.SecurityClient + + httpRes, err := client.Do(req) + if err != nil { + return nil, fmt.Errorf("error sending request: %w", err) + } + if httpRes == nil { + return nil, fmt.Errorf("error sending request: no response") + } + + rawBody, err := io.ReadAll(httpRes.Body) + if err != nil { + return nil, fmt.Errorf("error reading response body: %w", err) + } + httpRes.Body.Close() + httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) + + contentType := httpRes.Header.Get("Content-Type") + + res := &operations.UpsertConnectionResponse{ + StatusCode: httpRes.StatusCode, + ContentType: contentType, + RawResponse: httpRes, + } + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(contentType, `application/json`): + var out *shared.Connection + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { + return nil, err + } + + res.Connection = out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode == 400: + fallthrough + case httpRes.StatusCode == 422: + switch { + case utils.MatchContentType(contentType, `application/json`): + var out *sdkerrors.APIErrorResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { + return nil, err + } + out.RawResponse = httpRes + + return nil, out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil +} diff --git a/docs/models/operations/getconnectionsrequest.md b/docs/models/operations/getconnectionsrequest.md index c9b9b6b..ec834d6 100755 --- a/docs/models/operations/getconnectionsrequest.md +++ b/docs/models/operations/getconnectionsrequest.md @@ -11,10 +11,7 @@ | `Dir` | [*GetConnectionsDir](../../models/operations/getconnectionsdir.md) | :heavy_minus_sign: | N/A | | `FullName` | **string* | :heavy_minus_sign: | N/A | | `ID` | [*GetConnectionsID](../../models/operations/getconnectionsid.md) | :heavy_minus_sign: | N/A | -| `Limit` | **int64* | :heavy_minus_sign: | N/A | | `Name` | [*GetConnectionsName](../../models/operations/getconnectionsname.md) | :heavy_minus_sign: | N/A | -| `Next` | **string* | :heavy_minus_sign: | N/A | | `OrderBy` | [*GetConnectionsOrderBy](../../models/operations/getconnectionsorderby.md) | :heavy_minus_sign: | N/A | | `PausedAt` | [*GetConnectionsPausedAt](../../models/operations/getconnectionspausedat.md) | :heavy_minus_sign: | N/A | -| `Prev` | **string* | :heavy_minus_sign: | N/A | | `SourceID` | [*GetConnectionsSourceID](../../models/operations/getconnectionssourceid.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdks/connection/README.md b/docs/sdks/connection/README.md index 9fd0ddc..90c1a1a 100755 --- a/docs/sdks/connection/README.md +++ b/docs/sdks/connection/README.md @@ -10,7 +10,6 @@ * [Unarchive](#unarchive) - Unarchive a connection * [Unpause](#unpause) - Unpause a connection * [Update](#update) - Update a connection -* [Upsert](#upsert) - Update or create a connection ## Archive @@ -536,122 +535,3 @@ func main() { **[*operations.UpdateConnectionResponse](../../models/operations/updateconnectionresponse.md), error** - -## Upsert - -Update or create a connection - -### Example Usage - -```go -package main - -import( - "context" - "log" - "github.com/speakeasy-sdks/hookdeck-go" - "github.com/speakeasy-sdks/hookdeck-go/pkg/models/shared" - "github.com/speakeasy-sdks/hookdeck-go/pkg/models/operations" -) - -func main() { - s := hookdeck.New( - hookdeck.WithSecurity(shared.Security{ - BasicAuth: &shared.SchemeBasicAuth{ - Password: "", - Username: "", - }, - }), - ) - - ctx := context.Background() - res, err := s.Connection.Upsert(ctx, operations.UpsertConnectionRequestBody{ - Destination: &operations.UpsertConnectionRequestBodyDestination{ - AuthMethod: &shared.HookdeckSignature{ - Config: &shared.DestinationAuthMethodSignatureConfig{}, - Type: shared.HookdeckSignatureTypeHookdeckSignature, - }, - CliPath: hookdeck.String("reiciendis"), - HTTPMethod: shared.DestinationHTTPMethodDelete.ToPointer(), - Name: "Jessie Langosh V", - PathForwardingDisabled: hookdeck.Bool(false), - RateLimit: hookdeck.Int64(739264), - RateLimitPeriod: operations.UpsertConnectionRequestBodyDestinationRateLimitPeriodSecond.ToPointer(), - URL: hookdeck.String("doloremque"), - }, - DestinationID: hookdeck.String("reprehenderit"), - Name: "Shawna Carter", - Rules: []interface{}{ - shared.RetryRule{ - Count: hookdeck.Int64(688661), - Interval: hookdeck.Int64(317983), - Strategy: shared.RetryStrategyExponential, - Type: shared.RetryRuleTypeRetry, - }, - shared.FilterRule{ - Body: &shared.ConnectionFilterProperty{}, - Headers: &shared.ConnectionFilterProperty{}, - Path: &shared.ConnectionFilterProperty{}, - Query: &shared.ConnectionFilterProperty{}, - Type: shared.FilterRuleTypeFilter, - }, - }, - Ruleset: &operations.UpsertConnectionRequestBodyRuleset{ - IsTeamDefault: hookdeck.Bool(false), - Name: "Eric Emmerich", - Rules: []interface{}{ - shared.DelayRule{ - Delay: 265389, - Type: shared.DelayRuleTypeDelay, - }, - shared.FilterRule{ - Body: &shared.ConnectionFilterProperty{}, - Headers: &shared.ConnectionFilterProperty{}, - Path: &shared.ConnectionFilterProperty{}, - Query: &shared.ConnectionFilterProperty{}, - Type: shared.FilterRuleTypeFilter, - }, - shared.FilterRule{ - Body: &shared.ConnectionFilterProperty{}, - Headers: &shared.ConnectionFilterProperty{}, - Path: &shared.ConnectionFilterProperty{}, - Query: &shared.ConnectionFilterProperty{}, - Type: shared.FilterRuleTypeFilter, - }, - }, - }, - RulesetID: hookdeck.String("voluptates"), - Source: &operations.UpsertConnectionRequestBodySource{ - AllowedHTTPMethods: []shared.SourceAllowedHTTPMethod{ - shared.SourceAllowedHTTPMethodDelete, - }, - CustomResponse: &shared.SourceCustomResponse{ - Body: "sint", - ContentType: shared.SourceCustomResponseContentTypeJSON, - }, - Name: "Miss Randall Hamill", - }, - SourceID: hookdeck.String("explicabo"), - }) - if err != nil { - log.Fatal(err) - } - - if res.Connection != nil { - // handle response - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.UpsertConnectionRequestBody](../../models/operations/upsertconnectionrequestbody.md) | :heavy_check_mark: | The request object to use for the request. | - - -### Response - -**[*operations.UpsertConnectionResponse](../../models/operations/upsertconnectionresponse.md), error** - diff --git a/docs/sdks/connectionnumberupdate/README.md b/docs/sdks/connectionnumberupdate/README.md new file mode 100755 index 0000000..907ef80 --- /dev/null +++ b/docs/sdks/connectionnumberupdate/README.md @@ -0,0 +1,124 @@ +# ConnectionNumberUpdate + +### Available Operations + +* [Upsert](#upsert) - Update or create a connection + +## Upsert + +Update or create a connection + +### Example Usage + +```go +package main + +import( + "context" + "log" + "github.com/speakeasy-sdks/hookdeck-go" + "github.com/speakeasy-sdks/hookdeck-go/pkg/models/shared" + "github.com/speakeasy-sdks/hookdeck-go/pkg/models/operations" +) + +func main() { + s := hookdeck.New( + hookdeck.WithSecurity(shared.Security{ + BasicAuth: &shared.SchemeBasicAuth{ + Password: "", + Username: "", + }, + }), + ) + + ctx := context.Background() + res, err := s.ConnectionNumberUpdate.Upsert(ctx, operations.UpsertConnectionRequestBody{ + Destination: &operations.UpsertConnectionRequestBodyDestination{ + AuthMethod: &shared.HookdeckSignature{ + Config: &shared.DestinationAuthMethodSignatureConfig{}, + Type: shared.HookdeckSignatureTypeHookdeckSignature, + }, + CliPath: hookdeck.String("reiciendis"), + HTTPMethod: shared.DestinationHTTPMethodDelete.ToPointer(), + Name: "Jessie Langosh V", + PathForwardingDisabled: hookdeck.Bool(false), + RateLimit: hookdeck.Int64(739264), + RateLimitPeriod: operations.UpsertConnectionRequestBodyDestinationRateLimitPeriodSecond.ToPointer(), + URL: hookdeck.String("doloremque"), + }, + DestinationID: hookdeck.String("reprehenderit"), + Name: "Shawna Carter", + Rules: []interface{}{ + shared.RetryRule{ + Count: hookdeck.Int64(688661), + Interval: hookdeck.Int64(317983), + Strategy: shared.RetryStrategyExponential, + Type: shared.RetryRuleTypeRetry, + }, + shared.FilterRule{ + Body: &shared.ConnectionFilterProperty{}, + Headers: &shared.ConnectionFilterProperty{}, + Path: &shared.ConnectionFilterProperty{}, + Query: &shared.ConnectionFilterProperty{}, + Type: shared.FilterRuleTypeFilter, + }, + }, + Ruleset: &operations.UpsertConnectionRequestBodyRuleset{ + IsTeamDefault: hookdeck.Bool(false), + Name: "Eric Emmerich", + Rules: []interface{}{ + shared.DelayRule{ + Delay: 265389, + Type: shared.DelayRuleTypeDelay, + }, + shared.FilterRule{ + Body: &shared.ConnectionFilterProperty{}, + Headers: &shared.ConnectionFilterProperty{}, + Path: &shared.ConnectionFilterProperty{}, + Query: &shared.ConnectionFilterProperty{}, + Type: shared.FilterRuleTypeFilter, + }, + shared.FilterRule{ + Body: &shared.ConnectionFilterProperty{}, + Headers: &shared.ConnectionFilterProperty{}, + Path: &shared.ConnectionFilterProperty{}, + Query: &shared.ConnectionFilterProperty{}, + Type: shared.FilterRuleTypeFilter, + }, + }, + }, + RulesetID: hookdeck.String("voluptates"), + Source: &operations.UpsertConnectionRequestBodySource{ + AllowedHTTPMethods: []shared.SourceAllowedHTTPMethod{ + shared.SourceAllowedHTTPMethodDelete, + }, + CustomResponse: &shared.SourceCustomResponse{ + Body: "sint", + ContentType: shared.SourceCustomResponseContentTypeJSON, + }, + Name: "Miss Randall Hamill", + }, + SourceID: hookdeck.String("explicabo"), + }) + if err != nil { + log.Fatal(err) + } + + if res.Connection != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.UpsertConnectionRequestBody](../../models/operations/upsertconnectionrequestbody.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.UpsertConnectionResponse](../../models/operations/upsertconnectionresponse.md), error** + diff --git a/docs/sdks/connections/README.md b/docs/sdks/connections/README.md index 07b61c9..745c1fe 100755 --- a/docs/sdks/connections/README.md +++ b/docs/sdks/connections/README.md @@ -44,12 +44,9 @@ func main() { Dir: &operations.GetConnectionsDir{}, FullName: hookdeck.String("deserunt"), ID: &operations.GetConnectionsID{}, - Limit: hookdeck.Int64(716327), Name: &operations.GetConnectionsName{}, - Next: hookdeck.String("quibusdam"), OrderBy: &operations.GetConnectionsOrderBy{}, PausedAt: &operations.GetConnectionsPausedAt{}, - Prev: hookdeck.String("labore"), SourceID: &operations.GetConnectionsSourceID{}, }) if err != nil { diff --git a/docs/sdks/customdomain/README.md b/docs/sdks/customdomain/README.md index 8acf5b6..3928175 100755 --- a/docs/sdks/customdomain/README.md +++ b/docs/sdks/customdomain/README.md @@ -34,8 +34,8 @@ func main() { ctx := context.Background() res, err := s.CustomDomain.Add(ctx, shared.AddCustomHostname{ - Hostname: "familiar-combination.info", - }, "cupiditate") + Hostname: "sandy-spruce.biz", + }, "modi") if err != nil { log.Fatal(err) } @@ -88,7 +88,7 @@ func main() { ) ctx := context.Background() - res, err := s.CustomDomain.Delete(ctx, "quos", "perferendis") + res, err := s.CustomDomain.Delete(ctx, "qui", "aliquid") if err != nil { log.Fatal(err) } diff --git a/docs/sdks/customdomains/README.md b/docs/sdks/customdomains/README.md index 11c8dd2..1237a5a 100755 --- a/docs/sdks/customdomains/README.md +++ b/docs/sdks/customdomains/README.md @@ -32,7 +32,7 @@ func main() { ) ctx := context.Background() - res, err := s.CustomDomains.List(ctx, "magni") + res, err := s.CustomDomains.List(ctx, "cupiditate") if err != nil { log.Fatal(err) } diff --git a/docs/sdks/destination/README.md b/docs/sdks/destination/README.md index 6feb471..14e243b 100755 --- a/docs/sdks/destination/README.md +++ b/docs/sdks/destination/README.md @@ -38,7 +38,7 @@ func main() { ) ctx := context.Background() - res, err := s.Destination.Archive(ctx, "assumenda") + res, err := s.Destination.Archive(ctx, "quos") if err != nil { log.Fatal(err) } @@ -91,20 +91,17 @@ func main() { ctx := context.Background() res, err := s.Destination.Create(ctx, operations.CreateDestinationRequestBody{ - AuthMethod: &shared.BasicAuth{ - Config: &shared.DestinationAuthMethodBasicAuthConfig{ - Password: "alias", - Username: "Caden.Pagac", - }, - Type: shared.BasicAuthTypeBasicAuth, + AuthMethod: &shared.HookdeckSignature{ + Config: &shared.DestinationAuthMethodSignatureConfig{}, + Type: shared.HookdeckSignatureTypeHookdeckSignature, }, - CliPath: hookdeck.String("facilis"), + CliPath: hookdeck.String("magni"), HTTPMethod: shared.DestinationHTTPMethodPatch.ToPointer(), - Name: "Lucia Kemmer", + Name: "Linda Corkery", PathForwardingDisabled: hookdeck.Bool(false), - RateLimit: hookdeck.Int64(396098), - RateLimitPeriod: operations.CreateDestinationRequestBodyRateLimitPeriodMinute.ToPointer(), - URL: hookdeck.String("necessitatibus"), + RateLimit: hookdeck.Int64(703737), + RateLimitPeriod: operations.CreateDestinationRequestBodyRateLimitPeriodHour.ToPointer(), + URL: hookdeck.String("labore"), }) if err != nil { log.Fatal(err) @@ -157,7 +154,7 @@ func main() { ) ctx := context.Background() - res, err := s.Destination.Delete(ctx, "sint") + res, err := s.Destination.Delete(ctx, "delectus") if err != nil { log.Fatal(err) } @@ -209,7 +206,7 @@ func main() { ) ctx := context.Background() - res, err := s.Destination.Get(ctx, "officia") + res, err := s.Destination.Get(ctx, "eum") if err != nil { log.Fatal(err) } @@ -261,7 +258,7 @@ func main() { ) ctx := context.Background() - res, err := s.Destination.Unarchive(ctx, "dolor") + res, err := s.Destination.Unarchive(ctx, "non") if err != nil { log.Fatal(err) } @@ -314,21 +311,20 @@ func main() { ctx := context.Background() res, err := s.Destination.Update(ctx, operations.UpdateDestinationRequestBody{ - AuthMethod: &shared.CustomSignature{ - Config: shared.DestinationAuthMethodCustomSignatureConfig{ - Key: "a", - SigningSecret: hookdeck.String("dolorum"), + AuthMethod: &shared.BearerToken{ + Config: &shared.DestinationAuthMethodBearerTokenConfig{ + Token: "sint", }, - Type: shared.CustomSignatureTypeCustomSignature, + Type: shared.BearerTokenTypeBearerToken, }, - CliPath: hookdeck.String("in"), - HTTPMethod: shared.DestinationHTTPMethodPost.ToPointer(), - Name: hookdeck.String("Mrs. Emilio Price"), + CliPath: hookdeck.String("aliquid"), + HTTPMethod: shared.DestinationHTTPMethodPut.ToPointer(), + Name: hookdeck.String("Perry Nikolaus"), PathForwardingDisabled: hookdeck.Bool(false), - RateLimit: hookdeck.Int64(411820), + RateLimit: hookdeck.Int64(680056), RateLimitPeriod: operations.UpdateDestinationRequestBodyRateLimitPeriodMinute.ToPointer(), - URL: hookdeck.String("laborum"), - }, "accusamus") + URL: hookdeck.String("in"), + }, "illum") if err != nil { log.Fatal(err) } @@ -382,20 +378,20 @@ func main() { ctx := context.Background() res, err := s.Destination.Upsert(ctx, operations.UpsertDestinationRequestBody{ - AuthMethod: &shared.BasicAuth{ - Config: &shared.DestinationAuthMethodBasicAuthConfig{ - Password: "occaecati", - Username: "Elyssa_Tillman58", + AuthMethod: &shared.CustomSignature{ + Config: shared.DestinationAuthMethodCustomSignatureConfig{ + Key: "rerum", + SigningSecret: hookdeck.String("dicta"), }, - Type: shared.BasicAuthTypeBasicAuth, + Type: shared.CustomSignatureTypeCustomSignature, }, - CliPath: hookdeck.String("nam"), - HTTPMethod: shared.DestinationHTTPMethodPut.ToPointer(), - Name: "Jaime Will", + CliPath: hookdeck.String("magnam"), + HTTPMethod: shared.DestinationHTTPMethodPatch.ToPointer(), + Name: "Nathaniel Hyatt", PathForwardingDisabled: hookdeck.Bool(false), - RateLimit: hookdeck.Int64(423855), - RateLimitPeriod: operations.UpsertDestinationRequestBodyRateLimitPeriodMinute.ToPointer(), - URL: hookdeck.String("omnis"), + RateLimit: hookdeck.Int64(581273), + RateLimitPeriod: operations.UpsertDestinationRequestBodyRateLimitPeriodSecond.ToPointer(), + URL: hookdeck.String("accusamus"), }) if err != nil { log.Fatal(err) diff --git a/docs/sdks/destinations/README.md b/docs/sdks/destinations/README.md index 096fb53..2d6c97e 100755 --- a/docs/sdks/destinations/README.md +++ b/docs/sdks/destinations/README.md @@ -43,11 +43,11 @@ func main() { CliPath: &operations.GetDestinationsCliPath{}, Dir: &operations.GetDestinationsDir{}, ID: &operations.GetDestinationsID{}, - Limit: hookdeck.Int64(474867), + Limit: hookdeck.Int64(965417), Name: &operations.GetDestinationsName{}, - Next: hookdeck.String("perferendis"), + Next: hookdeck.String("quidem"), OrderBy: &operations.GetDestinationsOrderBy{}, - Prev: hookdeck.String("nihil"), + Prev: hookdeck.String("provident"), URL: &operations.GetDestinationsURL{}, }) if err != nil { diff --git a/docs/sdks/event/README.md b/docs/sdks/event/README.md index e6f7576..e64b94f 100755 --- a/docs/sdks/event/README.md +++ b/docs/sdks/event/README.md @@ -34,7 +34,7 @@ func main() { ) ctx := context.Background() - res, err := s.Event.Get(ctx, "magnam") + res, err := s.Event.Get(ctx, "nam") if err != nil { log.Fatal(err) } @@ -86,7 +86,7 @@ func main() { ) ctx := context.Background() - res, err := s.Event.MuteEvent(ctx, "distinctio") + res, err := s.Event.MuteEvent(ctx, "id") if err != nil { log.Fatal(err) } @@ -138,7 +138,7 @@ func main() { ) ctx := context.Background() - res, err := s.Event.Retry(ctx, "id") + res, err := s.Event.Retry(ctx, "blanditiis") if err != nil { log.Fatal(err) } diff --git a/docs/sdks/eventrawbody/README.md b/docs/sdks/eventrawbody/README.md index 2d9df49..7f9e554 100755 --- a/docs/sdks/eventrawbody/README.md +++ b/docs/sdks/eventrawbody/README.md @@ -32,7 +32,7 @@ func main() { ) ctx := context.Background() - res, err := s.EventRawBody.Get(ctx, "labore") + res, err := s.EventRawBody.Get(ctx, "deleniti") if err != nil { log.Fatal(err) } diff --git a/docs/sdks/events/README.md b/docs/sdks/events/README.md index 2e7c5cc..2b77ef2 100755 --- a/docs/sdks/events/README.md +++ b/docs/sdks/events/README.md @@ -53,14 +53,14 @@ func main() { Include: operations.GetEventsIncludeData.ToPointer(), IssueID: &operations.GetEventsIssueID{}, LastAttemptAt: &operations.GetEventsLastAttemptAt{}, - Limit: hookdeck.Int64(290077), - Next: hookdeck.String("suscipit"), + Limit: hookdeck.Int64(956084), + Next: hookdeck.String("amet"), OrderBy: &operations.GetEventsOrderBy{}, ParsedQuery: &operations.GetEventsParsedQuery{}, - Path: hookdeck.String("natus"), - Prev: hookdeck.String("nobis"), + Path: hookdeck.String("deserunt"), + Prev: hookdeck.String("nisi"), ResponseStatus: &operations.GetEventsResponseStatus{}, - SearchTerm: hookdeck.String("eum"), + SearchTerm: hookdeck.String("vel"), SourceID: &operations.GetEventsSourceID{}, Status: &operations.GetEventsStatus{}, SuccessfulAt: &operations.GetEventsSuccessfulAt{}, diff --git a/docs/sdks/integration/README.md b/docs/sdks/integration/README.md index c9b90df..13cd55e 100755 --- a/docs/sdks/integration/README.md +++ b/docs/sdks/integration/README.md @@ -37,7 +37,7 @@ func main() { ) ctx := context.Background() - res, err := s.Integration.AttachIntegrationToSource(ctx, "vero", "aspernatur") + res, err := s.Integration.AttachIntegrationToSource(ctx, "natus", "omnis") if err != nil { log.Fatal(err) } @@ -91,13 +91,16 @@ func main() { ctx := context.Background() res, err := s.Integration.Create(ctx, operations.CreateIntegrationRequestBody{ - Configs: &operations.CreateIntegrationRequestBodyConfigs1{}, + Configs: &shared.APIKeyIntegrationConfigs{ + APIKey: "perferendis", + HeaderKey: "nihil", + }, Features: []shared.IntegrationFeature{ - shared.IntegrationFeatureVerification, + shared.IntegrationFeaturePolling, shared.IntegrationFeatureHandshake, }, - Label: hookdeck.String("ullam"), - Provider: shared.IntegrationProviderGitlab.ToPointer(), + Label: hookdeck.String("labore"), + Provider: shared.IntegrationProviderHmac.ToPointer(), }) if err != nil { log.Fatal(err) @@ -150,7 +153,7 @@ func main() { ) ctx := context.Background() - res, err := s.Integration.Delete(ctx, "quos") + res, err := s.Integration.Delete(ctx, "suscipit") if err != nil { log.Fatal(err) } @@ -202,7 +205,7 @@ func main() { ) ctx := context.Background() - res, err := s.Integration.DetachIntegrationToSource(ctx, "sint", "accusantium") + res, err := s.Integration.DetachIntegrationToSource(ctx, "natus", "nobis") if err != nil { log.Fatal(err) } @@ -255,7 +258,7 @@ func main() { ) ctx := context.Background() - res, err := s.Integration.Get(ctx, "mollitia") + res, err := s.Integration.Get(ctx, "eum") if err != nil { log.Fatal(err) } @@ -309,20 +312,21 @@ func main() { ctx := context.Background() res, err := s.Integration.Update(ctx, operations.UpdateIntegrationRequestBody{ Configs: &shared.ShopifyIntegrationConfigs{ - APIKey: hookdeck.String("mollitia"), - APISecret: hookdeck.String("ad"), - RateLimit: hookdeck.Float32(4314.18), + APIKey: hookdeck.String("aspernatur"), + APISecret: hookdeck.String("architecto"), + RateLimit: hookdeck.Float32(2982.82), RateLimitPeriod: shared.ShopifyIntegrationConfigsRateLimitPeriodLessThanNilGreaterThan.ToPointer(), - Shop: hookdeck.String("necessitatibus"), - WebhookSecretKey: "odit", + Shop: hookdeck.String("excepturi"), + WebhookSecretKey: "ullam", }, Features: []shared.IntegrationFeature{ - shared.IntegrationFeatureVerification, shared.IntegrationFeatureHandshake, + shared.IntegrationFeatureHandshake, + shared.IntegrationFeatureVerification, }, - Label: hookdeck.String("doloribus"), - Provider: shared.IntegrationProviderWorkos.ToPointer(), - }, "eius") + Label: hookdeck.String("mollitia"), + Provider: shared.IntegrationProviderAwsSns.ToPointer(), + }, "mollitia") if err != nil { log.Fatal(err) } diff --git a/docs/sdks/integrations/README.md b/docs/sdks/integrations/README.md index 7a41c30..e68fa3c 100755 --- a/docs/sdks/integrations/README.md +++ b/docs/sdks/integrations/README.md @@ -36,7 +36,7 @@ func main() { ) ctx := context.Background() - res, err := s.Integrations.Get(ctx, "maxime", shared.IntegrationProviderAkeneo) + res, err := s.Integrations.Get(ctx, "ad", shared.IntegrationProviderSvix) if err != nil { log.Fatal(err) } diff --git a/docs/sdks/issue/README.md b/docs/sdks/issue/README.md index 9c4092e..e9afbd3 100755 --- a/docs/sdks/issue/README.md +++ b/docs/sdks/issue/README.md @@ -34,7 +34,7 @@ func main() { ) ctx := context.Background() - res, err := s.Issue.Dismiss(ctx, "facilis") + res, err := s.Issue.Dismiss(ctx, "dolor") if err != nil { log.Fatal(err) } @@ -86,7 +86,7 @@ func main() { ) ctx := context.Background() - res, err := s.Issue.Get(ctx, "in") + res, err := s.Issue.Get(ctx, "necessitatibus") if err != nil { log.Fatal(err) } @@ -140,7 +140,7 @@ func main() { ctx := context.Background() res, err := s.Issue.Update(ctx, operations.UpdateIssueRequestBody{ Status: operations.UpdateIssueRequestBodyStatusOpened, - }, "architecto") + }, "nemo") if err != nil { log.Fatal(err) } diff --git a/docs/sdks/issues/README.md b/docs/sdks/issues/README.md index ef4ae35..396d9ff 100755 --- a/docs/sdks/issues/README.md +++ b/docs/sdks/issues/README.md @@ -50,11 +50,11 @@ func main() { ID: &operations.GetIssuesID{}, IssueTriggerID: &operations.GetIssuesIssueTriggerID{}, LastSeenAt: &operations.GetIssuesLastSeenAt{}, - Limit: hookdeck.Int64(171629), + Limit: hookdeck.Int64(50588), MergedWith: &operations.GetIssuesMergedWith{}, - Next: hookdeck.String("quis"), + Next: hookdeck.String("pariatur"), OrderBy: &operations.GetIssuesOrderBy{}, - Prev: hookdeck.String("totam"), + Prev: hookdeck.String("nemo"), Status: &operations.GetIssuesStatus{}, Type: &operations.GetIssuesType{}, }) diff --git a/docs/sdks/issuescount/README.md b/docs/sdks/issuescount/README.md index 948fca0..64fd2c4 100755 --- a/docs/sdks/issuescount/README.md +++ b/docs/sdks/issuescount/README.md @@ -46,11 +46,11 @@ func main() { ID: &operations.GetIssueCountID{}, IssueTriggerID: &operations.GetIssueCountIssueTriggerID{}, LastSeenAt: &operations.GetIssueCountLastSeenAt{}, - Limit: hookdeck.Int64(489549), + Limit: hookdeck.Int64(975522), MergedWith: &operations.GetIssueCountMergedWith{}, - Next: hookdeck.String("eaque"), + Next: hookdeck.String("perferendis"), OrderBy: &operations.GetIssueCountOrderBy{}, - Prev: hookdeck.String("quis"), + Prev: hookdeck.String("fugiat"), Status: &operations.GetIssueCountStatus{}, Type: &operations.GetIssueCountType{}, }) diff --git a/docs/sdks/issuetrigger/README.md b/docs/sdks/issuetrigger/README.md index 002ad57..5b79d39 100755 --- a/docs/sdks/issuetrigger/README.md +++ b/docs/sdks/issuetrigger/README.md @@ -43,15 +43,15 @@ func main() { Email: &shared.IssueTriggerEmailChannel{}, Opsgenie: &shared.IssueTriggerIntegrationChannel{}, Slack: &shared.IssueTriggerSlackChannel{ - ChannelName: "repudiandae", + ChannelName: "quasi", }, }, Configs: &shared.IssueTriggerTransformationConfigs{ - LogLevel: shared.TransformationExecutionLogLevelError, + LogLevel: shared.TransformationExecutionLogLevelFatal, Transformations: shared.IssueTriggerTransformationConfigsTransformations{}, }, - Name: hookdeck.String("Kristie Spencer"), - Type: shared.IssueTypeBackpressure, + Name: hookdeck.String("Frederick Schoen"), + Type: shared.IssueTypeTransformation, }) if err != nil { log.Fatal(err) @@ -104,7 +104,7 @@ func main() { ) ctx := context.Background() - res, err := s.IssueTrigger.Delete(ctx, "accusantium") + res, err := s.IssueTrigger.Delete(ctx, "architecto") if err != nil { log.Fatal(err) } @@ -156,7 +156,7 @@ func main() { ) ctx := context.Background() - res, err := s.IssueTrigger.Disable(ctx, "consequuntur") + res, err := s.IssueTrigger.Disable(ctx, "architecto") if err != nil { log.Fatal(err) } @@ -208,7 +208,7 @@ func main() { ) ctx := context.Background() - res, err := s.IssueTrigger.Enable(ctx, "praesentium") + res, err := s.IssueTrigger.Enable(ctx, "repudiandae") if err != nil { log.Fatal(err) } @@ -260,7 +260,7 @@ func main() { ) ctx := context.Background() - res, err := s.IssueTrigger.Get(ctx, "natus") + res, err := s.IssueTrigger.Get(ctx, "ullam") if err != nil { log.Fatal(err) } @@ -318,16 +318,16 @@ func main() { Email: &shared.IssueTriggerEmailChannel{}, Opsgenie: &shared.IssueTriggerIntegrationChannel{}, Slack: &shared.IssueTriggerSlackChannel{ - ChannelName: "magni", + ChannelName: "expedita", }, }, - Configs: &shared.IssueTriggerDeliveryConfigs{ - Connections: shared.IssueTriggerDeliveryConfigsConnections{}, - Strategy: shared.IssueTriggerStrategyFinalAttempt, + Configs: &shared.IssueTriggerTransformationConfigs{ + LogLevel: shared.TransformationExecutionLogLevelFatal, + Transformations: shared.IssueTriggerTransformationConfigsTransformations{}, }, - DisabledAt: types.MustTimeFromString("2020-05-28T21:33:10.895Z"), - Name: hookdeck.String("Nathaniel Marks"), - }, "accusantium") + DisabledAt: types.MustTimeFromString("2022-07-21T08:29:53.942Z"), + Name: hookdeck.String("Al Bashirian"), + }, "natus") if err != nil { log.Fatal(err) } @@ -385,15 +385,15 @@ func main() { Email: &shared.IssueTriggerEmailChannel{}, Opsgenie: &shared.IssueTriggerIntegrationChannel{}, Slack: &shared.IssueTriggerSlackChannel{ - ChannelName: "ab", + ChannelName: "magni", }, }, - Configs: &shared.IssueTriggerBackpressureConfigs{ - Delay: 697429, - Destinations: shared.IssueTriggerBackpressureConfigsDestinations{}, + Configs: &shared.IssueTriggerDeliveryConfigs{ + Connections: shared.IssueTriggerDeliveryConfigsConnections{}, + Strategy: shared.IssueTriggerStrategyFinalAttempt, }, - Name: "Colleen Johnston PhD", - Type: shared.IssueTypeTransformation, + Name: "Ervin Schoen", + Type: shared.IssueTypeDelivery, }) if err != nil { log.Fatal(err) diff --git a/docs/sdks/issuetriggers/README.md b/docs/sdks/issuetriggers/README.md index 06635a8..5c12df6 100755 --- a/docs/sdks/issuetriggers/README.md +++ b/docs/sdks/issuetriggers/README.md @@ -36,11 +36,11 @@ func main() { res, err := s.IssueTriggers.Get(ctx, operations.GetIssueTriggersRequest{ Dir: &operations.GetIssueTriggersDir{}, DisabledAt: &operations.GetIssueTriggersDisabledAt{}, - Limit: hookdeck.Int64(975522), - Name: hookdeck.String("Miss Ginger Feeney"), - Next: hookdeck.String("hic"), + Limit: hookdeck.Int64(407183), + Name: hookdeck.String("Virginia Wunsch"), + Next: hookdeck.String("voluptate"), OrderBy: &operations.GetIssueTriggersOrderBy{}, - Prev: hookdeck.String("libero"), + Prev: hookdeck.String("autem"), Type: shared.IssueTypeBackpressure.ToPointer(), }) if err != nil { diff --git a/docs/sdks/request/README.md b/docs/sdks/request/README.md index 129912c..2ea2aa4 100755 --- a/docs/sdks/request/README.md +++ b/docs/sdks/request/README.md @@ -33,7 +33,7 @@ func main() { ) ctx := context.Background() - res, err := s.Request.Get(ctx, "nesciunt") + res, err := s.Request.Get(ctx, "amet") if err != nil { log.Fatal(err) } @@ -87,9 +87,9 @@ func main() { ctx := context.Background() res, err := s.Request.Retry(ctx, operations.RetryRequestRequestBody{ WebhookIds: []string{ - "perferendis", + "cumque", }, - }, "dolores") + }, "corporis") if err != nil { log.Fatal(err) } diff --git a/docs/sdks/requestbulkretry/README.md b/docs/sdks/requestbulkretry/README.md index 7d386c0..192509c 100755 --- a/docs/sdks/requestbulkretry/README.md +++ b/docs/sdks/requestbulkretry/README.md @@ -33,7 +33,7 @@ func main() { ) ctx := context.Background() - res, err := s.RequestBulkRetry.Cancel(ctx, "minus") + res, err := s.RequestBulkRetry.Cancel(ctx, "hic") if err != nil { log.Fatal(err) } @@ -85,7 +85,7 @@ func main() { ) ctx := context.Background() - res, err := s.RequestBulkRetry.Get(ctx, "quam") + res, err := s.RequestBulkRetry.Get(ctx, "libero") if err != nil { log.Fatal(err) } diff --git a/docs/sdks/requestevents/README.md b/docs/sdks/requestevents/README.md index c2b31e3..25e2975 100755 --- a/docs/sdks/requestevents/README.md +++ b/docs/sdks/requestevents/README.md @@ -45,19 +45,19 @@ func main() { ErrorCode: &operations.GetRequestEventsErrorCode{}, EventDataID: &operations.GetRequestEventsEventDataID{}, Headers: &operations.GetRequestEventsHeaders{}, - IDPathParameter: "dolor", + IDPathParameter: "nobis", IDQueryParameter: &operations.GetRequestEventsID{}, Include: operations.GetRequestEventsIncludeData.ToPointer(), IssueID: &operations.GetRequestEventsIssueID{}, LastAttemptAt: &operations.GetRequestEventsLastAttemptAt{}, - Limit: hookdeck.Int64(874573), - Next: hookdeck.String("nostrum"), + Limit: hookdeck.Int64(171629), + Next: hookdeck.String("quis"), OrderBy: &operations.GetRequestEventsOrderBy{}, ParsedQuery: &operations.GetRequestEventsParsedQuery{}, - Path: hookdeck.String("hic"), - Prev: hookdeck.String("recusandae"), + Path: hookdeck.String("totam"), + Prev: hookdeck.String("dignissimos"), ResponseStatus: &operations.GetRequestEventsResponseStatus{}, - SearchTerm: hookdeck.String("omnis"), + SearchTerm: hookdeck.String("eaque"), SourceID: &operations.GetRequestEventsSourceID{}, Status: &operations.GetRequestEventsStatus{}, SuccessfulAt: &operations.GetRequestEventsSuccessfulAt{}, diff --git a/docs/sdks/requestignoredevents/README.md b/docs/sdks/requestignoredevents/README.md index affc351..8293d71 100755 --- a/docs/sdks/requestignoredevents/README.md +++ b/docs/sdks/requestignoredevents/README.md @@ -34,12 +34,12 @@ func main() { ctx := context.Background() res, err := s.RequestIgnoredEvents.Get(ctx, operations.GetRequestIgnoredEventsRequest{ Dir: &operations.GetRequestIgnoredEventsDir{}, - IDPathParameter: "facilis", + IDPathParameter: "quis", IDQueryParameter: &operations.GetRequestIgnoredEventsID{}, - Limit: hookdeck.Int64(596656), - Next: hookdeck.String("voluptatem"), + Limit: hookdeck.Int64(199996), + Next: hookdeck.String("eos"), OrderBy: &operations.GetRequestIgnoredEventsOrderBy{}, - Prev: hookdeck.String("porro"), + Prev: hookdeck.String("perferendis"), }) if err != nil { log.Fatal(err) diff --git a/docs/sdks/requestrawbody/README.md b/docs/sdks/requestrawbody/README.md index ba4f829..83b4856 100755 --- a/docs/sdks/requestrawbody/README.md +++ b/docs/sdks/requestrawbody/README.md @@ -32,7 +32,7 @@ func main() { ) ctx := context.Background() - res, err := s.RequestRawBody.Get(ctx, "consequuntur") + res, err := s.RequestRawBody.Get(ctx, "dolores") if err != nil { log.Fatal(err) } diff --git a/docs/sdks/requests/README.md b/docs/sdks/requests/README.md index a104bf0..4b1d00b 100755 --- a/docs/sdks/requests/README.md +++ b/docs/sdks/requests/README.md @@ -48,16 +48,16 @@ func main() { IgnoredCount: &operations.GetRequestsIgnoredCount{}, Include: operations.GetRequestsIncludeData.ToPointer(), IngestedAt: &operations.GetRequestsIngestedAt{}, - Limit: hookdeck.Int64(500026), - Next: hookdeck.String("error"), + Limit: hookdeck.Int64(793698), + Next: hookdeck.String("quam"), OrderBy: &operations.GetRequestsOrderBy{}, ParsedQuery: &operations.GetRequestsParsedQuery{}, - Path: hookdeck.String("eaque"), - Prev: hookdeck.String("occaecati"), + Path: hookdeck.String("dolor"), + Prev: hookdeck.String("vero"), RejectionCause: &operations.GetRequestsRejectionCause{}, - SearchTerm: hookdeck.String("rerum"), + SearchTerm: hookdeck.String("nostrum"), SourceID: &operations.GetRequestsSourceID{}, - Status: operations.GetRequestsStatusAccepted.ToPointer(), + Status: operations.GetRequestsStatusRejected.ToPointer(), Verified: hookdeck.Bool(false), }) if err != nil { diff --git a/docs/sdks/ruleset/README.md b/docs/sdks/ruleset/README.md index 6b25bc8..efb42fb 100755 --- a/docs/sdks/ruleset/README.md +++ b/docs/sdks/ruleset/README.md @@ -37,7 +37,7 @@ func main() { ) ctx := context.Background() - res, err := s.Ruleset.Archive(ctx, "asperiores") + res, err := s.Ruleset.Archive(ctx, "recusandae") if err != nil { log.Fatal(err) } @@ -91,40 +91,19 @@ func main() { ctx := context.Background() res, err := s.Ruleset.Create(ctx, operations.CreateRulesetRequestBody{ IsTeamDefault: hookdeck.Bool(false), - Name: "Edwin Morar", + Name: "Miss Cesar Metz", Rules: []interface{}{ - shared.FilterRule{ - Body: &shared.ConnectionFilterProperty{}, - Headers: &shared.ConnectionFilterProperty{}, - Path: &shared.ConnectionFilterProperty{}, - Query: &shared.ConnectionFilterProperty{}, - Type: shared.FilterRuleTypeFilter, + shared.TransformReference{ + TransformationID: "occaecati", + Type: shared.TransformReferenceTypeTransform, }, - shared.TransformFull{ - Transformation: &shared.TransformFullTransformation{ - Code: "delectus", - Env: map[string]string{ - "quos": "aliquid", - "dolorem": "dolorem", - }, - Name: "Norma Erdman", - }, - TransformationID: hookdeck.String("cum"), - Type: shared.TransformFullTypeTransform, + shared.TransformReference{ + TransformationID: "asperiores", + Type: shared.TransformReferenceTypeTransform, }, - shared.FilterRule{ - Body: &shared.ConnectionFilterProperty{}, - Headers: &shared.ConnectionFilterProperty{}, - Path: &shared.ConnectionFilterProperty{}, - Query: &shared.ConnectionFilterProperty{}, - Type: shared.FilterRuleTypeFilter, - }, - shared.FilterRule{ - Body: &shared.ConnectionFilterProperty{}, - Headers: &shared.ConnectionFilterProperty{}, - Path: &shared.ConnectionFilterProperty{}, - Query: &shared.ConnectionFilterProperty{}, - Type: shared.FilterRuleTypeFilter, + shared.DelayRule{ + Delay: 267262, + Type: shared.DelayRuleTypeDelay, }, }, }) @@ -179,7 +158,7 @@ func main() { ) ctx := context.Background() - res, err := s.Ruleset.Get(ctx, "reiciendis") + res, err := s.Ruleset.Get(ctx, "iste") if err != nil { log.Fatal(err) } @@ -231,7 +210,7 @@ func main() { ) ctx := context.Background() - res, err := s.Ruleset.Unarchive(ctx, "amet") + res, err := s.Ruleset.Unarchive(ctx, "dolorum") if err != nil { log.Fatal(err) } @@ -285,27 +264,28 @@ func main() { ctx := context.Background() res, err := s.Ruleset.Update(ctx, operations.UpdateRulesetRequestBody{ IsTeamDefault: hookdeck.Bool(false), - Name: hookdeck.String("Mr. Bradley Bogan"), + Name: hookdeck.String("Ervin McLaughlin"), Rules: []interface{}{ shared.AlertRule{ Strategy: shared.AlertStrategyLastAttempt, Type: shared.AlertRuleTypeAlert, }, - shared.TransformFull{ - Transformation: &shared.TransformFullTransformation{ - Code: "voluptas", - Env: map[string]string{ - "eos": "atque", - "sit": "fugiat", - "ab": "soluta", - }, - Name: "Ted Kling", - }, - TransformationID: hookdeck.String("omnis"), - Type: shared.TransformFullTypeTransform, + shared.AlertRule{ + Strategy: shared.AlertStrategyEachAttempt, + Type: shared.AlertRuleTypeAlert, + }, + shared.AlertRule{ + Strategy: shared.AlertStrategyEachAttempt, + Type: shared.AlertRuleTypeAlert, + }, + shared.RetryRule{ + Count: hookdeck.Int64(218749), + Interval: hookdeck.Int64(944373), + Strategy: shared.RetryStrategyExponential, + Type: shared.RetryRuleTypeRetry, }, }, - }, "necessitatibus") + }, "cum") if err != nil { log.Fatal(err) } @@ -360,21 +340,20 @@ func main() { ctx := context.Background() res, err := s.Ruleset.Upsert(ctx, operations.UpsertRulesetRequestBody{ IsTeamDefault: hookdeck.Bool(false), - Name: "Emmett Kovacek", + Name: "Marian Wisozk", Rules: []interface{}{ - shared.DelayRule{ - Delay: 263322, - Type: shared.DelayRuleTypeDelay, - }, shared.RetryRule{ - Count: hookdeck.Int64(20651), - Interval: hookdeck.Int64(229219), - Strategy: shared.RetryStrategyExponential, + Count: hookdeck.Int64(58029), + Interval: hookdeck.Int64(56418), + Strategy: shared.RetryStrategyLinear, Type: shared.RetryRuleTypeRetry, }, - shared.DelayRule{ - Delay: 320017, - Type: shared.DelayRuleTypeDelay, + shared.FilterRule{ + Body: &shared.ConnectionFilterProperty{}, + Headers: &shared.ConnectionFilterProperty{}, + Path: &shared.ConnectionFilterProperty{}, + Query: &shared.ConnectionFilterProperty{}, + Type: shared.FilterRuleTypeFilter, }, }, }) diff --git a/docs/sdks/rulesets/README.md b/docs/sdks/rulesets/README.md index 0051e3a..bd4fe8d 100755 --- a/docs/sdks/rulesets/README.md +++ b/docs/sdks/rulesets/README.md @@ -42,15 +42,18 @@ func main() { ArchivedAt: &operations.GetRulesetsArchivedAt{}, Dir: &operations.GetRulesetsDir{}, ID: &operations.GetRulesetsID{}, - Limit: hookdeck.Int64(904425), - Name: []string{ - "minima", - "repellendus", - "totam", + Limit: hookdeck.Int64(311796), + Name: &operations.GetRulesetsName2{ + Any: hookdeck.Bool(false), + Contains: &operations.GetRulesetsName2Contains{}, + Gt: &operations.GetRulesetsName2Gt{}, + Gte: &operations.GetRulesetsName2Gte{}, + Le: &operations.GetRulesetsName2Le{}, + Lte: &operations.GetRulesetsName2Lte{}, }, - Next: hookdeck.String("similique"), + Next: hookdeck.String("quidem"), OrderBy: &operations.GetRulesetsOrderBy{}, - Prev: hookdeck.String("alias"), + Prev: hookdeck.String("voluptatibus"), }) if err != nil { log.Fatal(err) diff --git a/docs/sdks/source/README.md b/docs/sdks/source/README.md index f01f4fc..1ca82a7 100755 --- a/docs/sdks/source/README.md +++ b/docs/sdks/source/README.md @@ -38,7 +38,7 @@ func main() { ) ctx := context.Background() - res, err := s.Source.Archive(ctx, "at") + res, err := s.Source.Archive(ctx, "voluptas") if err != nil { log.Fatal(err) } @@ -92,14 +92,15 @@ func main() { ctx := context.Background() res, err := s.Source.Create(ctx, operations.CreateSourceRequestBody{ AllowedHTTPMethods: []shared.SourceAllowedHTTPMethod{ - shared.SourceAllowedHTTPMethodPost, + shared.SourceAllowedHTTPMethodGet, shared.SourceAllowedHTTPMethodPut, + shared.SourceAllowedHTTPMethodGet, }, CustomResponse: &shared.SourceCustomResponse{ - Body: "quod", - ContentType: shared.SourceCustomResponseContentTypeXML, + Body: "fugiat", + ContentType: shared.SourceCustomResponseContentTypeJSON, }, - Name: "Jan Wilderman", + Name: "Omar Kris", }) if err != nil { log.Fatal(err) @@ -152,7 +153,7 @@ func main() { ) ctx := context.Background() - res, err := s.Source.Delete(ctx, "iusto") + res, err := s.Source.Delete(ctx, "deleniti") if err != nil { log.Fatal(err) } @@ -204,7 +205,7 @@ func main() { ) ctx := context.Background() - res, err := s.Source.Get(ctx, "ipsum") + res, err := s.Source.Get(ctx, "omnis") if err != nil { log.Fatal(err) } @@ -256,7 +257,7 @@ func main() { ) ctx := context.Background() - res, err := s.Source.Unarchive(ctx, "quisquam") + res, err := s.Source.Unarchive(ctx, "necessitatibus") if err != nil { log.Fatal(err) } @@ -310,17 +311,16 @@ func main() { ctx := context.Background() res, err := s.Source.Update(ctx, operations.UpdateSourceRequestBody{ AllowedHTTPMethods: []shared.SourceAllowedHTTPMethod{ - shared.SourceAllowedHTTPMethodPost, - shared.SourceAllowedHTTPMethodPatch, shared.SourceAllowedHTTPMethodDelete, + shared.SourceAllowedHTTPMethodPut, shared.SourceAllowedHTTPMethodPost, }, CustomResponse: &shared.SourceCustomResponse{ - Body: "enim", - ContentType: shared.SourceCustomResponseContentTypeJSON, + Body: "voluptate", + ContentType: shared.SourceCustomResponseContentTypeText, }, - Name: hookdeck.String("Miss Jimmie Kozey"), - }, "sed") + Name: hookdeck.String("Mrs. Ray Collins"), + }, "accusamus") if err != nil { log.Fatal(err) } @@ -375,14 +375,14 @@ func main() { ctx := context.Background() res, err := s.Source.Upsert(ctx, operations.UpsertSourceRequestBody{ AllowedHTTPMethods: []shared.SourceAllowedHTTPMethod{ - shared.SourceAllowedHTTPMethodPatch, + shared.SourceAllowedHTTPMethodDelete, shared.SourceAllowedHTTPMethodPost, }, CustomResponse: &shared.SourceCustomResponse{ Body: "deserunt", ContentType: shared.SourceCustomResponseContentTypeText, }, - Name: "Amber Dibbert", + Name: "Kari Leannon PhD", }) if err != nil { log.Fatal(err) diff --git a/docs/sdks/sources/README.md b/docs/sdks/sources/README.md index f155cd9..4acaef8 100755 --- a/docs/sdks/sources/README.md +++ b/docs/sdks/sources/README.md @@ -43,11 +43,11 @@ func main() { Dir: &operations.GetSourcesDir{}, ID: &operations.GetSourcesID{}, IntegrationID: &operations.GetSourcesIntegrationID{}, - Limit: hookdeck.Int64(863856), + Limit: hookdeck.Int64(311860), Name: &operations.GetSourcesName{}, - Next: hookdeck.String("soluta"), + Next: hookdeck.String("tempora"), OrderBy: &operations.GetSourcesOrderBy{}, - Prev: hookdeck.String("dicta"), + Prev: hookdeck.String("vel"), }) if err != nil { log.Fatal(err) diff --git a/docs/sdks/transformation/README.md b/docs/sdks/transformation/README.md index 25a2a64..69a239e 100755 --- a/docs/sdks/transformation/README.md +++ b/docs/sdks/transformation/README.md @@ -37,13 +37,14 @@ func main() { ctx := context.Background() res, err := s.Transformation.Create(ctx, operations.CreateTransformationRequestBody{ - Code: "laborum", + Code: "quod", Env: map[string]interface{}{ - "incidunt": "aspernatur", - "dolores": "distinctio", - "facilis": "aliquid", + "qui": "dolorum", + "a": "esse", + "harum": "iusto", + "ipsum": "quisquam", }, - Name: "Felicia Spencer", + Name: "Marvin Renner", }) if err != nil { log.Fatal(err) @@ -96,7 +97,7 @@ func main() { ) ctx := context.Background() - res, err := s.Transformation.Get(ctx, "fugit") + res, err := s.Transformation.Get(ctx, "enim") if err != nil { log.Fatal(err) } @@ -149,20 +150,22 @@ func main() { ctx := context.Background() res, err := s.Transformation.Test(ctx, operations.TestTransformationRequestBody{ - Code: hookdeck.String("magni"), + Code: hookdeck.String("dolorem"), Env: &operations.TestTransformationRequestBodyEnv{}, - EventID: hookdeck.String("odio"), + EventID: hookdeck.String("sapiente"), Request: &operations.TestTransformationRequestBodyRequest{ Body: &operations.TestTransformationRequestBodyRequestBody{}, Headers: map[string]string{ - "ullam": "nam", + "nihil": "sit", + "expedita": "neque", + "sed": "vel", }, ParsedQuery: &operations.TestTransformationRequestBodyRequestParsedQuery{}, - Path: hookdeck.String("hic"), - Query: hookdeck.String("voluptatem"), + Path: hookdeck.String("libero"), + Query: hookdeck.String("voluptas"), }, - TransformationID: hookdeck.String("cumque"), - WebhookID: hookdeck.String("soluta"), + TransformationID: hookdeck.String("deserunt"), + WebhookID: hookdeck.String("quam"), }) if err != nil { log.Fatal(err) @@ -216,12 +219,13 @@ func main() { ctx := context.Background() res, err := s.Transformation.Update(ctx, operations.UpdateTransformationRequestBody{ - Code: hookdeck.String("nobis"), + Code: hookdeck.String("ipsum"), Env: map[string]interface{}{ - "saepe": "ipsum", + "qui": "cupiditate", + "maxime": "pariatur", }, - Name: hookdeck.String("Gayle Lueilwitz"), - }, "aperiam") + Name: hookdeck.String("Keith Padberg"), + }, "aspernatur") if err != nil { log.Fatal(err) } @@ -275,11 +279,13 @@ func main() { ctx := context.Background() res, err := s.Transformation.Upsert(ctx, operations.UpsertTransformationRequestBody{ - Code: "delectus", + Code: "dolores", Env: map[string]interface{}{ - "dolore": "labore", + "facilis": "aliquid", + "quam": "molestias", + "temporibus": "qui", }, - Name: "Mr. Sonya Bradtke", + Name: "Beverly Cummerata II", }) if err != nil { log.Fatal(err) diff --git a/docs/sdks/transformationexecution/README.md b/docs/sdks/transformationexecution/README.md index 542da33..e8b3948 100755 --- a/docs/sdks/transformationexecution/README.md +++ b/docs/sdks/transformationexecution/README.md @@ -32,7 +32,7 @@ func main() { ) ctx := context.Background() - res, err := s.TransformationExecution.Get(ctx, "itaque", "consequatur") + res, err := s.TransformationExecution.Get(ctx, "nam", "hic") if err != nil { log.Fatal(err) } diff --git a/docs/sdks/transformationexecutions/README.md b/docs/sdks/transformationexecutions/README.md index 566cd18..75eb233 100755 --- a/docs/sdks/transformationexecutions/README.md +++ b/docs/sdks/transformationexecutions/README.md @@ -36,13 +36,13 @@ func main() { res, err := s.TransformationExecutions.Get(ctx, operations.GetTransformationExecutionsRequest{ CreatedAt: &operations.GetTransformationExecutionsCreatedAt{}, Dir: &operations.GetTransformationExecutionsDir{}, - ID: "adcf4b92-1879-4fce-953f-73ef7fbc7abd", + ID: "0cbb1e31-b8b9-40f3-843a-1108e0adcf4b", IssueID: &operations.GetTransformationExecutionsIssueID{}, - Limit: hookdeck.Int64(498140), + Limit: hookdeck.Int64(586410), LogLevel: &operations.GetTransformationExecutionsLogLevel{}, - Next: hookdeck.String("dolore"), + Next: hookdeck.String("qui"), OrderBy: &operations.GetTransformationExecutionsOrderBy{}, - Prev: hookdeck.String("quibusdam"), + Prev: hookdeck.String("quae"), WebhookID: &operations.GetTransformationExecutionsWebhookID{}, }) if err != nil { diff --git a/docs/sdks/transformations/README.md b/docs/sdks/transformations/README.md index 47b0652..3a62352 100755 --- a/docs/sdks/transformations/README.md +++ b/docs/sdks/transformations/README.md @@ -39,11 +39,11 @@ func main() { res, err := s.Transformations.Get(ctx, operations.GetTransformationsRequest{ Dir: &operations.GetTransformationsDir{}, ID: &operations.GetTransformationsID{}, - Limit: hookdeck.Int64(848944), + Limit: hookdeck.Int64(512393), Name: &operations.GetTransformationsName{}, - Next: hookdeck.String("sequi"), + Next: hookdeck.String("odio"), OrderBy: &operations.GetTransformationsOrderBy{}, - Prev: hookdeck.String("natus"), + Prev: hookdeck.String("occaecati"), }) if err != nil { log.Fatal(err) diff --git a/docs/sdks/webhooknotifications/README.md b/docs/sdks/webhooknotifications/README.md index 4935d7f..86f532c 100755 --- a/docs/sdks/webhooknotifications/README.md +++ b/docs/sdks/webhooknotifications/README.md @@ -34,9 +34,12 @@ func main() { ctx := context.Background() res, err := s.WebhookNotifications.Toggle(ctx, operations.ToggleWebhookNotificationsRequestBody{ Enabled: hookdeck.Bool(false), - SourceID: hookdeck.String("impedit"), + SourceID: hookdeck.String("voluptatibus"), Topics: []shared.TopicsValue{ shared.TopicsValueEventSuccessful, + shared.TopicsValueDeprecatedAttemptFailed, + shared.TopicsValueIssueUpdated, + shared.TopicsValueIssueOpened, }, }) if err != nil { diff --git a/files.gen b/files.gen index 2309f9f..4963220 100755 --- a/files.gen +++ b/files.gen @@ -7,6 +7,7 @@ bulkretryignoredevent.go bulkretryignoredevents.go bulkretryrequests.go connection.go +connectionnumberupdate.go connections.go customdomain.go customdomains.go @@ -271,6 +272,7 @@ docs/sdks/bulkretryignoredevent/README.md docs/sdks/bulkretryignoredevents/README.md docs/sdks/bulkretryrequests/README.md docs/sdks/connection/README.md +docs/sdks/connectionnumberupdate/README.md docs/sdks/connections/README.md docs/sdks/customdomain/README.md docs/sdks/customdomains/README.md diff --git a/gen.yaml b/gen.yaml index 90d03a4..1231a8d 100644 --- a/gen.yaml +++ b/gen.yaml @@ -1,9 +1,9 @@ configVersion: 1.0.0 management: - docChecksum: bb2db859942682a0c387b6e92a5db55d + docChecksum: f5f85e261a0dc111ffa34c18736669e6 docVersion: 1.0.0 - speakeasyVersion: 1.61.0 - generationVersion: 2.70.0 + speakeasyVersion: 1.62.1 + generationVersion: 2.70.2 generation: comments: disableComments: false @@ -13,6 +13,6 @@ generation: singleTagPerOp: false tagNamespacingDisabled: false go: - version: 1.4.2 + version: 1.4.3 maxMethodParams: 5 packageName: github.com/speakeasy-sdks/hookdeck-go diff --git a/hookdeck.go b/hookdeck.go index 7a3bd4d..1d91462 100755 --- a/hookdeck.go +++ b/hookdeck.go @@ -74,6 +74,7 @@ type Hookdeck struct { BulkRetryIgnoredEvents *bulkRetryIgnoredEvents BulkRetryRequests *bulkRetryRequests Connection *connection + ConnectionNumberUpdate *connectionNumberUpdate // Connections - A connection lets you route webhooks from a source to a destination, using a ruleset. Connections *connections CustomDomain *customDomain @@ -223,8 +224,8 @@ func New(opts ...SDKOption) *Hookdeck { sdkConfiguration: sdkConfiguration{ Language: "go", OpenAPIDocVersion: "1.0.0", - SDKVersion: "1.4.2", - GenVersion: "2.70.0", + SDKVersion: "1.4.3", + GenVersion: "2.70.2", ServerDefaults: []map[string]string{ { "version": "2023-01-01", @@ -266,6 +267,8 @@ func New(opts ...SDKOption) *Hookdeck { sdk.Connection = newConnection(sdk.sdkConfiguration) + sdk.ConnectionNumberUpdate = newConnectionNumberUpdate(sdk.sdkConfiguration) + sdk.Connections = newConnections(sdk.sdkConfiguration) sdk.CustomDomain = newCustomDomain(sdk.sdkConfiguration) diff --git a/pkg/models/operations/getconnections.go b/pkg/models/operations/getconnections.go index 7243fac..291f641 100755 --- a/pkg/models/operations/getconnections.go +++ b/pkg/models/operations/getconnections.go @@ -807,12 +807,9 @@ type GetConnectionsRequest struct { Dir *GetConnectionsDir `queryParam:"style=form,explode=true,name=dir"` FullName *string `queryParam:"style=form,explode=true,name=full_name"` ID *GetConnectionsID `queryParam:"style=form,explode=true,name=id"` - Limit *int64 `queryParam:"style=form,explode=true,name=limit"` Name *GetConnectionsName `queryParam:"style=form,explode=true,name=name"` - Next *string `queryParam:"style=form,explode=true,name=next"` OrderBy *GetConnectionsOrderBy `queryParam:"style=form,explode=true,name=order_by"` PausedAt *GetConnectionsPausedAt `queryParam:"style=form,explode=true,name=paused_at"` - Prev *string `queryParam:"style=form,explode=true,name=prev"` SourceID *GetConnectionsSourceID `queryParam:"style=form,explode=true,name=source_id"` } @@ -858,13 +855,6 @@ func (o *GetConnectionsRequest) GetID() *GetConnectionsID { return o.ID } -func (o *GetConnectionsRequest) GetLimit() *int64 { - if o == nil { - return nil - } - return o.Limit -} - func (o *GetConnectionsRequest) GetName() *GetConnectionsName { if o == nil { return nil @@ -872,13 +862,6 @@ func (o *GetConnectionsRequest) GetName() *GetConnectionsName { return o.Name } -func (o *GetConnectionsRequest) GetNext() *string { - if o == nil { - return nil - } - return o.Next -} - func (o *GetConnectionsRequest) GetOrderBy() *GetConnectionsOrderBy { if o == nil { return nil @@ -893,13 +876,6 @@ func (o *GetConnectionsRequest) GetPausedAt() *GetConnectionsPausedAt { return o.PausedAt } -func (o *GetConnectionsRequest) GetPrev() *string { - if o == nil { - return nil - } - return o.Prev -} - func (o *GetConnectionsRequest) GetSourceID() *GetConnectionsSourceID { if o == nil { return nil