From 3cb69c27266d5b4825cbc9eb8a456039601b2a65 Mon Sep 17 00:00:00 2001 From: Lukas Bindreiter Date: Mon, 18 Nov 2024 15:38:15 +0100 Subject: [PATCH] Add tests --- .github/workflows/main.yml | 45 ++ .github/workflows/protolint.yaml | 39 ++ .golangci.yaml | 92 ++++ README.md | 54 ++- client.go | 56 +-- client_test.go | 173 +++++++ examples/contact-crud/main.go | 11 +- examples/send-event/main.go | 5 +- examples/send-transactional-email/main.go | 7 +- go.mod | 10 +- go.sum | 445 ++++++++++++++++++ models.go | 14 +- testdata/create-contact.replay.json | 130 +++++ testdata/delete-contact.replay.json | 133 ++++++ testdata/find-contact-by-id.replay.json | 127 +++++ testdata/find-contact-not-found.replay.json | 127 +++++ testdata/find-contact.replay.json | 127 +++++ testdata/get-custom-fields.replay.json | 127 +++++ testdata/get-mailing-lists.replay.json | 127 +++++ testdata/send-event.replay.json | 130 +++++ testdata/send-transactional-email.replay.json | 130 +++++ testdata/test-api-key-invalid.replay.json | 109 +++++ testdata/test-api-key.replay.json | 127 +++++ testdata/update-contact.replay.json | 130 +++++ 24 files changed, 2414 insertions(+), 61 deletions(-) create mode 100644 .github/workflows/main.yml create mode 100644 .github/workflows/protolint.yaml create mode 100644 .golangci.yaml create mode 100644 client_test.go create mode 100644 testdata/create-contact.replay.json create mode 100644 testdata/delete-contact.replay.json create mode 100644 testdata/find-contact-by-id.replay.json create mode 100644 testdata/find-contact-not-found.replay.json create mode 100644 testdata/find-contact.replay.json create mode 100644 testdata/get-custom-fields.replay.json create mode 100644 testdata/get-mailing-lists.replay.json create mode 100644 testdata/send-event.replay.json create mode 100644 testdata/send-transactional-email.replay.json create mode 100644 testdata/test-api-key-invalid.replay.json create mode 100644 testdata/test-api-key.replay.json create mode 100644 testdata/update-contact.replay.json diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..8ed93c5 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,45 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + merge_group: + branches: ["**"] + +permissions: + contents: read # for golangci-lint-action + +jobs: + tests: + name: Run tests + strategy: + matrix: + os: [Ubuntu] + go-version: ["1.23.x"] + runs-on: ${{ matrix.os }}-latest + steps: + - uses: actions/checkout@v4 + with: + lfs: true + - name: Setup Go ${{ matrix.go-version }} + uses: actions/setup-go@v5 + with: + go-version: ${{ matrix.go-version }} + - name: Install dependencies + run: | + go get ./... + go install github.com/jstemmer/go-junit-report@latest + - name: Build + run: go build -v ./... + - name: Run Tests + run: go test -v ./... | go-junit-report -set-exit-code > test-report.xml + - name: Test Summary + uses: test-summary/action@v2 + with: + paths: "test-report.xml" + if: always() + - name: Lint + uses: golangci/golangci-lint-action@v6 + with: + version: v1.62.0 diff --git a/.github/workflows/protolint.yaml b/.github/workflows/protolint.yaml new file mode 100644 index 0000000..619a230 --- /dev/null +++ b/.github/workflows/protolint.yaml @@ -0,0 +1,39 @@ +--- +name: Lint + +on: + push: + branches: [main] + pull_request: + merge_group: + branches: ["**"] + +permissions: { } + +jobs: + build: + name: Protolint + runs-on: ubuntu-latest + + permissions: + contents: read + packages: read + # To report GitHub Actions status checks + statuses: write + + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + # super-linter needs the full git history to get the + # list of files that changed across commits + fetch-depth: 0 + + - name: Lint protocol buffers + uses: super-linter/super-linter@v6 + env: + # To report GitHub Actions status checks + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + LINTER_RULES_PATH: . + PROTOBUF_CONFIG_FILE: .protolint.yaml + VALIDATE_PROTOBUF: true diff --git a/.golangci.yaml b/.golangci.yaml new file mode 100644 index 0000000..d17909f --- /dev/null +++ b/.golangci.yaml @@ -0,0 +1,92 @@ +# yaml-language-server: $schema=https://golangci-lint.run/jsonschema/golangci.jsonschema.json +# Inspired from: (MIT license) https://gist.github.com/maratori/47a4d00457a92aa426dbd48a18776322 +--- +run: + timeout: '5m' +linters-settings: + errcheck: + ignore: "" # https://github.com/golangci/golangci-lint/issues/4733 + gosec: + excludes: + - G601 # Not relevant anymore with Go 1.22 and later + - G404 # Use of weak random number generator (math/rand instead of crypto/rand) + govet: + enable-all: true + disable: + - fieldalignment # too strict + - shadow # too strict + perfsprint: + strconcat: false + revive: + rules: + - name: var-naming + arguments: + - [] + - [] + - - skipPackageNameChecks: true + stylecheck: + checks: ["all", "-ST1003"] +linters: + enable: + - asasalint # checks for pass []any as any in variadic func(...any) + - asciicheck # checks that your code does not contain non-ASCII identifiers + - bidichk # checks for dangerous unicode character sequences + - bodyclose # checks whether HTTP response body is closed successfully + - canonicalheader # checks for canonical names in HTTP headers + - copyloopvar # detects places where loop variables are copied + #- contextcheck # checks for inherited context.Context + #- cyclop # checks function and package cyclomatic complexity + - dupl # tool for code clone detection + - durationcheck # checks for two durations multiplied together + - errname # checks that sentinel errors are prefixed with the Err and error types are suffixed with the Error + - errorlint # finds code that will cause problems with the error wrapping scheme introduced in Go 1.13 + - exhaustive # checks exhaustiveness of enum switch statements + - fatcontext # finds nested context.WithValue calls in loops + - forbidigo # forbids identifiers + - gocheckcompilerdirectives # validates go compiler directive comments (//go:) + #- gochecknoglobals # checks that no global variables exist + - gochecknoinits # checks that no init functions are present in Go code + - gochecksumtype # checks exhaustiveness on Go "sum types" + - goconst # finds repeated strings that could be replaced by a constant + - gocritic # provides diagnostics that check for bugs, performance and style issues + - goimports # in addition to fixing imports, goimports also formats your code in the same style as gofmt + #- gomnd # detects magic numbers + - gomoddirectives # manages the use of 'replace', 'retract', and 'excludes' directives in go.mod + - gomodguard # allow and block lists linter for direct Go module dependencies. This is different from depguard where there are different block types for example version constraints and module recommendations + - goprintffuncname # checks that printf-like functions are named with f at the end + - gosec # inspects source code for security problems + - intrange # finds places where for loops could make use of an integer range + - loggercheck # checks key value pairs for common logger libraries (kitlog,klog,logr,zap) + - makezero # finds slice declarations with non-zero initial length + - mirror # reports wrong mirror patterns of bytes/strings usage + - musttag # enforces field tags in (un)marshaled structs + - nakedret # finds naked returns in functions greater than a specified function length + - nilerr # finds the code that returns nil even if it checks that the error is not nil + - nilnil # checks that there is no simultaneous return of nil error and an invalid value + - noctx # finds sending http request without context.Context + - nolintlint # reports ill-formed or insufficient nolint directives + - nonamedreturns # reports all named returns + - nosprintfhostport # checks for misuse of Sprintf to construct a host with port in a URL + - perfsprint # checks that fmt.Sprintf can be replaced with a faster alternative + - prealloc # finds slice declarations that could potentially be preallocated + - predeclared # finds code that shadows one of Go's predeclared identifiers + - promlinter # checks Prometheus metrics naming via promlint + - protogetter # reports direct reads from proto message fields when getters should be used + - reassign # checks that package variables are not reassigned + - revive # fast, configurable, extensible, flexible, and beautiful linter for Go, drop-in replacement of golint + - rowserrcheck # checks whether Err of rows is checked successfully + - sloglint # ensure consistent code style when using log/slog + - spancheck # checks for mistakes with OpenTelemetry/Census spans + - sqlclosecheck # checks that sql.Rows and sql.Stmt are closed + - stylecheck # is a replacement for golint + - tagalign # checks that struct tags are well aligned + - tenv # detects using os.Setenv instead of t.Setenv since Go1.17 + - testableexamples # checks if examples are testable (have an expected output) + - testifylint # checks usage of github.com/stretchr/testify + #- testpackage # makes you use a separate _test package + - tparallel # detects inappropriate usage of t.Parallel() method in your Go test codes + - unconvert # removes unnecessary type conversions + - unparam # reports unused function parameters + - usestdlibvars # detects the possibility to use variables/constants from the Go standard library + - wastedassign # finds wasted assignment statements + - whitespace # detects leading and trailing whitespace diff --git a/README.md b/README.md index 88b6840..4d63f18 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,12 @@ A Go SDK for interacting with [Loops's](https://loops.so) API. +## Installation + +```bash +go get github.com/tilebox/loops-go +``` + ## Usage Below are a few examples of how to use the SDK to send API requests. @@ -22,7 +28,7 @@ import ( func main() { ctx := context.Background() - client, err := loops.NewClient(loops.WithApiKey("YOUR_LOOPS_API_KEY")) + client, err := loops.NewClient(loops.WithAPIKey("YOUR_LOOPS_API_KEY")) if err != nil { slog.Error("failed to create client", slog.Any("error", err.Error())) return @@ -36,11 +42,9 @@ func main() { **Find a contact** ```go -contactToFind := &loops.ContactIdentifier{ +contact, err := client.FindContact(ctx, &loops.ContactIdentifier{ Email: loops.String("neil.armstrong@moon.space"), -} - -contact, err := client.FindContact(ctx, contactToFind) +}) if err != nil { slog.Error("failed to find contact", slog.Any("error", err.Error())) return @@ -49,15 +53,13 @@ if err != nil { **Create a contact** ```go -newContact := &loops.Contact{ +contactID, err := client.CreateContact(ctx, &loops.Contact{ Email: "neil.armstrong@moon.space", FirstName: loops.String("Neil"), LastName: loops.String("Armstrong"), UserGroup: loops.String("Astronauts"), Subscribed: true, -} - -contactID, err := client.CreateContact(ctx, newContact) +}) if err != nil { slog.Error("failed to create contact", slog.Any("error", err.Error())) return @@ -66,11 +68,9 @@ if err != nil { **Delete a contact** ```go -contactToDelete := &loops.ContactIdentifier{ +err = client.DeleteContact(ctx, &loops.ContactIdentifier{ Email: loops.String("neil.armstrong@moon.space"), -} - -err = client.DeleteContact(ctx, contactToDelete) +}) if err != nil { slog.Error("failed to delete contact", slog.Any("error", err.Error())) return @@ -112,12 +112,32 @@ if err != nil { } ``` -## Installation +## API Documentation + +The API documentation is part of the official Loops Documentation and can be found [here](https://app.loops.so/docs/api-reference/). + +## Contributing + +Contributions are welcome! Especially if the loops API is updated, please feel free to open PRs for new or updated endpoints. + +## Authors + +Created by [Tilebox](https://tilebox.com) - The Solar System’s #1 developer tool for space data management. + +## License + +This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. + +## Development + +### Testing ```bash -go get github.com/tilebox/loops-go +go test ./... ``` -## API Documentation +### Linting -The API documentation is part of the official Loops Documentation and can be found [here](https://app.loops.so/docs/api-reference/). +```bash +golangci-lint run --fix ./... +``` \ No newline at end of file diff --git a/client.go b/client.go index 44e63de..a526ebc 100644 --- a/client.go +++ b/client.go @@ -11,11 +11,11 @@ import ( "net/url" ) -const defaultApiURL = "https://app.loops.so/api/v1/" +const defaultURL = "https://app.loops.so/api/v1/" var ErrContactNotFound = errors.New("contact not found") -type HttpClient interface { +type HTTPClient interface { Do(req *http.Request) (*http.Response, error) } @@ -23,14 +23,14 @@ type RequestInterceptor func(ctx context.Context, req *http.Request) error type Client struct { apiURL *url.URL - httpClient HttpClient + httpClient HTTPClient requestInterceptors []RequestInterceptor } // NewClient creates a new Loops client. func NewClient(opts ...ClientOption) (*Client, error) { config := clientConfig{ - apiURL: defaultApiURL, + apiURL: defaultURL, httpClient: http.DefaultClient, } for _, o := range opts { @@ -66,30 +66,30 @@ func NewClient(opts ...ClientOption) (*Client, error) { type clientConfig struct { apiURL string apiKey string - httpClient HttpClient + httpClient HTTPClient requestInterceptors []RequestInterceptor } // ClientOption allows setting custom parameters during construction type ClientOption func(*clientConfig) -// WithApiURL allows overriding the default API URL -func WithApiURL(apiURL string) ClientOption { +// WithURL allows overriding the default API URL (default: https://app.loops.so/api/v1/) +func WithURL(apiURL string) ClientOption { return func(c *clientConfig) { c.apiURL = apiURL } } -// WithApiKey sets the loops API key to use -func WithApiKey(apiKey string) ClientOption { +// WithAPIKey sets the loops API key to use +func WithAPIKey(apiKey string) ClientOption { return func(c *clientConfig) { c.apiKey = apiKey } } -// WithHttpClient allows overriding the default http client, in case you want to use a custom one (e.g. retryablehttp) +// WithHTTPClient allows overriding the default http client, in case you want to use a custom one (e.g. retryablehttp) // or for testing purposes (e.g. mocking) -func WithHttpClient(httpClient HttpClient) ClientOption { +func WithHTTPClient(httpClient HTTPClient) ClientOption { return func(c *clientConfig) { c.httpClient = httpClient } @@ -135,10 +135,10 @@ func (c *Client) UpdateContact(ctx context.Context, contact *Contact) (string, e // FindContact finds a contact by email or userId. // See: https://loops.so/docs/api-reference/find-contact func (c *Client) FindContact(ctx context.Context, contact *ContactIdentifier) (*Contact, error) { - if contact.Email == nil && contact.UserId == nil { + if contact.Email == nil && contact.UserID == nil { return nil, errors.New("contact identifier must contain either an email or a userId") } - if contact.Email != nil && contact.UserId != nil { + if contact.Email != nil && contact.UserID != nil { return nil, errors.New("contact identifier must contain either an email or a userId, but not both") } @@ -146,10 +146,10 @@ func (c *Client) FindContact(ctx context.Context, contact *ContactIdentifier) (* if contact.Email != nil { params.Add("email", *contact.Email) } - if contact.UserId != nil { - params.Add("userId", *contact.UserId) + if contact.UserID != nil { + params.Add("userId", *contact.UserID) } - req, err := newRequestWithQueryParams(c, ctx, http.MethodGet, "/contacts/find", params) + req, err := newGetRequestWithQueryParams(c, ctx, "/contacts/find", params) if err != nil { return nil, err } @@ -166,10 +166,10 @@ func (c *Client) FindContact(ctx context.Context, contact *ContactIdentifier) (* // DeleteContact deletes a contact by email or userId. // See: https://loops.so/docs/api-reference/delete-contact func (c *Client) DeleteContact(ctx context.Context, contact *ContactIdentifier) error { - if contact.Email == nil && contact.UserId == nil { + if contact.Email == nil && contact.UserID == nil { return errors.New("contact identifier must contain either an email or a userId") } - if contact.Email != nil && contact.UserId != nil { + if contact.Email != nil && contact.UserID != nil { return errors.New("contact identifier must contain either an email or a userId, but not both") } @@ -184,7 +184,7 @@ func (c *Client) DeleteContact(ctx context.Context, contact *ContactIdentifier) // GetMailingLists retrieves a list of an account’s mailing lists. // See: https://loops.so/docs/api-reference/get-mailing-lists func (c *Client) GetMailingLists(ctx context.Context) ([]*MailingList, error) { - req, err := newRequestWithQueryParams(c, ctx, http.MethodGet, "/lists", nil) + req, err := newGetRequestWithQueryParams(c, ctx, "/lists", nil) if err != nil { return nil, err } @@ -195,10 +195,10 @@ func (c *Client) GetMailingLists(ctx context.Context) ([]*MailingList, error) { // SendEvent sends an event to trigger emails in Loops. // See: https://loops.so/docs/api-reference/send-event func (c *Client) SendEvent(ctx context.Context, event *Event) error { - if event.Email == nil && event.UserId == nil { + if event.Email == nil && event.UserID == nil { return errors.New("event must contain either an email or a userId") } - if event.Email != nil && event.UserId != nil { + if event.Email != nil && event.UserID != nil { return errors.New("event must contain either an email or a userId, but not both") } req, err := newRequestWithBody(c, ctx, http.MethodPost, "/events/send", event) @@ -222,7 +222,7 @@ func (c *Client) SendTransactionalEmail(ctx context.Context, transactional *Tran // GetCustomFields retrieves a list of an account's custom contact properties. func (c *Client) GetCustomFields(ctx context.Context) ([]*CustomField, error) { - req, err := newRequestWithQueryParams(c, ctx, http.MethodGet, "/contacts/customFields", nil) + req, err := newGetRequestWithQueryParams(c, ctx, "/contacts/customFields", nil) if err != nil { return nil, err } @@ -233,19 +233,19 @@ func (c *Client) GetCustomFields(ctx context.Context) ([]*CustomField, error) { return customFields, nil } -// TestApiKey tests that an API key is valid. +// TestAPIKey tests that an API key is valid. // See: https://loops.so/docs/api-reference/api-key -func (c *Client) TestApiKey(ctx context.Context) (*ApiKeyInfo, error) { - req, err := newRequestWithQueryParams(c, ctx, http.MethodGet, "/api-key", nil) +func (c *Client) TestAPIKey(ctx context.Context) (*APIKeyInfo, error) { + req, err := newGetRequestWithQueryParams(c, ctx, "/api-key", nil) if err != nil { return nil, err } - return sendRequest[*ApiKeyInfo](c, req) + return sendRequest[*APIKeyInfo](c, req) } -func newRequestWithQueryParams(c *Client, ctx context.Context, method, path string, queryParams url.Values) (*http.Request, error) { - req, err := newRequestWithBody[Contact](c, ctx, method, path, nil) +func newGetRequestWithQueryParams(c *Client, ctx context.Context, path string, queryParams url.Values) (*http.Request, error) { + req, err := newRequestWithBody[Contact](c, ctx, http.MethodGet, path, nil) if err != nil { return nil, err } diff --git a/client_test.go b/client_test.go new file mode 100644 index 0000000..c169eb9 --- /dev/null +++ b/client_test.go @@ -0,0 +1,173 @@ +package loops + +import ( + "context" + "os" + "path" + "strings" + "testing" + + "github.com/google/go-replayers/httpreplay" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func TestdataDir() string { + cwd, err := os.Getwd() + if err != nil { + return "testdata" + } + + repoRootIndex := strings.LastIndex(cwd, "/loops-go") + repoRoot := path.Join(cwd[:repoRootIndex], "loops-go") + return path.Join(repoRoot, "testdata") +} + +// for initially recording tests by actually sending API requests (to make it work fill in a valid API key) +func newRecordTestClient(t *testing.T, recordingFile string) *Client { //nolint:unused + // recorder automatically removes the Authorization header from requests + recorder, err := httpreplay.NewRecorder(path.Join(TestdataDir(), recordingFile), nil) + require.NoError(t, err) + t.Cleanup(func() { _ = recorder.Close() }) + client, err := NewClient(WithAPIKey("LOOPS_API_KEY"), WithHTTPClient(recorder.Client())) + require.NoError(t, err) + return client +} + +func newReplayTestClient(t *testing.T, recordingFile string) *Client { + replayer, err := httpreplay.NewReplayer(path.Join(TestdataDir(), recordingFile)) + require.NoError(t, err) + t.Cleanup(func() { _ = replayer.Close() }) + client, err := NewClient(WithHTTPClient(replayer.Client())) + require.NoError(t, err) + return client +} + +func TestCreateContact(t *testing.T) { + client := newReplayTestClient(t, "create-contact.replay.json") + contactID, err := client.CreateContact(context.Background(), &Contact{ + Email: "test@example.com", + FirstName: String("Test"), + LastName: String("User"), + UserID: String("user_123"), + Subscribed: true, + }) + require.NoError(t, err) + assert.Equal(t, "cm3n47oh7010hpt4megzzqujt", contactID) +} + +func TestUpdateContact(t *testing.T) { + client := newReplayTestClient(t, "update-contact.replay.json") + contactID, err := client.UpdateContact(context.Background(), &Contact{ + Email: "new-test-mail@example.com", + FirstName: String("Test"), + LastName: String("User"), + UserID: String("user_123"), + Subscribed: true, + }) + require.NoError(t, err) + assert.Equal(t, "cm3n47oh7010hpt4megzzqujt", contactID) +} + +func TestFindContact(t *testing.T) { + client := newReplayTestClient(t, "find-contact.replay.json") + contact, err := client.FindContact(context.Background(), &ContactIdentifier{ + Email: String("new-test-mail@example.com"), + }) + require.NoError(t, err) + assert.Equal(t, "cm3n47oh7010hpt4megzzqujt", contact.ID) + assert.Equal(t, "new-test-mail@example.com", contact.Email) + assert.Equal(t, "Test", *contact.FirstName) + assert.Equal(t, "User", *contact.LastName) + assert.Equal(t, "user_123", *contact.UserID) + assert.True(t, contact.Subscribed) +} + +func TestFindContactByID(t *testing.T) { + client := newReplayTestClient(t, "find-contact-by-id.replay.json") + contact, err := client.FindContact(context.Background(), &ContactIdentifier{ + UserID: String("user_123"), + }) + require.NoError(t, err) + assert.Equal(t, "cm3n47oh7010hpt4megzzqujt", contact.ID) + assert.Equal(t, "new-test-mail@example.com", contact.Email) + assert.Equal(t, "Test", *contact.FirstName) + assert.Equal(t, "User", *contact.LastName) + assert.Equal(t, "user_123", *contact.UserID) + assert.True(t, contact.Subscribed) +} + +func TestFindContactNotFound(t *testing.T) { + client := newReplayTestClient(t, "find-contact-not-found.replay.json") + _, err := client.FindContact(context.Background(), &ContactIdentifier{ + UserID: String("not_found"), + }) + require.Error(t, err) + assert.Contains(t, err.Error(), "contact not found") +} + +func TestDeleteContact(t *testing.T) { + client := newReplayTestClient(t, "delete-contact.replay.json") + err := client.DeleteContact(context.Background(), &ContactIdentifier{ + UserID: String("user_123"), + }) + require.NoError(t, err) +} + +func TestGetMailingLists(t *testing.T) { + client := newReplayTestClient(t, "get-mailing-lists.replay.json") + mailingLists, err := client.GetMailingLists(context.Background()) + require.NoError(t, err) + require.Len(t, mailingLists, 1) + assert.Equal(t, "cm3n274xf027h0mi33t4qhrdg", mailingLists[0].ID) + assert.Equal(t, "Newsletter", mailingLists[0].Name) + assert.True(t, mailingLists[0].IsPublic) +} + +func TestSendEvent(t *testing.T) { + client := newReplayTestClient(t, "send-event.replay.json") + err := client.SendEvent(context.Background(), &Event{ + Email: String("neil.armstrong@moon.space"), + EventName: "joinedMission", + EventProperties: &map[string]interface{}{ + "mission": "Apollo 11", + }, + }) + require.NoError(t, err) +} + +func TestSendTransactionalEmail(t *testing.T) { + client := newReplayTestClient(t, "send-transactional-email.replay.json") + err := client.SendTransactionalEmail(context.Background(), &TransactionalEmail{ + TransactionalID: "cm3n2vjux00cgeyeflew9ly2w", + Email: "test@example.com", + DataVariables: &map[string]interface{}{ + "name": "Mr. Test", + }, + }) + require.NoError(t, err) +} + +func TestGetCustomFields(t *testing.T) { + client := newReplayTestClient(t, "get-custom-fields.replay.json") + customFields, err := client.GetCustomFields(context.Background()) + require.NoError(t, err) + require.Len(t, customFields, 1) + assert.Equal(t, "role", customFields[0].Key) + assert.Equal(t, "Role", customFields[0].Label) + assert.Equal(t, "string", customFields[0].Type) +} + +func TestAPIKey(t *testing.T) { + client := newReplayTestClient(t, "test-api-key.replay.json") + apiKey, err := client.TestAPIKey(context.Background()) + require.NoError(t, err) + assert.Equal(t, "Tilebox Staging", apiKey.TeamName) +} + +func TestAPIKeyInvalid(t *testing.T) { + client := newReplayTestClient(t, "test-api-key-invalid.replay.json") + _, err := client.TestAPIKey(context.Background()) + require.Error(t, err) + assert.Contains(t, err.Error(), "Invalid API key") +} diff --git a/examples/contact-crud/main.go b/examples/contact-crud/main.go index d64c637..301dc4e 100644 --- a/examples/contact-crud/main.go +++ b/examples/contact-crud/main.go @@ -2,12 +2,13 @@ package main import ( "context" - "github.com/tilebox/loops-go" "log/slog" + + "github.com/tilebox/loops-go" ) func main() { - client, err := loops.NewClient(loops.WithApiKey("YOUR_LOOPS_API_KEY")) + client, err := loops.NewClient(loops.WithAPIKey("YOUR_LOOPS_API_KEY")) if err != nil { slog.Error("failed to create client", slog.Any("error", err.Error())) return @@ -36,13 +37,17 @@ func main() { slog.Error("failed to find contact", slog.Any("error", err.Error())) return } - slog.Info("Found contact", slog.String("id", contact.Id), slog.String("email", contact.Email)) + slog.Info("Found contact", slog.String("id", contact.ID), slog.String("email", contact.Email)) // update a contact, specify a user group _, err = client.UpdateContact(ctx, &loops.Contact{ Email: "neil.armstrong@moon.space", UserGroup: loops.String("Astronauts"), }) + if err != nil { + slog.Error("failed to update contact", slog.Any("error", err.Error())) + return + } // delete a contact err = client.DeleteContact(ctx, &loops.ContactIdentifier{ diff --git a/examples/send-event/main.go b/examples/send-event/main.go index 1158980..8d0a447 100644 --- a/examples/send-event/main.go +++ b/examples/send-event/main.go @@ -2,12 +2,13 @@ package main import ( "context" - "github.com/tilebox/loops-go" "log/slog" + + "github.com/tilebox/loops-go" ) func main() { - client, err := loops.NewClient(loops.WithApiKey("YOUR_LOOPS_API_KEY")) + client, err := loops.NewClient(loops.WithAPIKey("YOUR_LOOPS_API_KEY")) if err != nil { slog.Error("failed to create client", slog.Any("error", err.Error())) return diff --git a/examples/send-transactional-email/main.go b/examples/send-transactional-email/main.go index 16c0eb2..3b67def 100644 --- a/examples/send-transactional-email/main.go +++ b/examples/send-transactional-email/main.go @@ -2,12 +2,13 @@ package main import ( "context" - "github.com/tilebox/loops-go" "log/slog" + + "github.com/tilebox/loops-go" ) func main() { - client, err := loops.NewClient(loops.WithApiKey("YOUR_LOOPS_API_KEY")) + client, err := loops.NewClient(loops.WithAPIKey("YOUR_LOOPS_API_KEY")) if err != nil { slog.Error("failed to create client", slog.Any("error", err.Error())) return @@ -16,7 +17,7 @@ func main() { ctx := context.Background() err = client.SendTransactionalEmail(ctx, &loops.TransactionalEmail{ - TransactionalId: "cm3n2vjux00cgeyeflew9ly2w", + TransactionalID: "cm3n2vjux00cgeyeflew9ly2w", Email: "lukas.bindreiter@tilebox.com", DataVariables: &map[string]interface{}{ "name": "Mr. Lukas", diff --git a/go.mod b/go.mod index 082215a..cb4b279 100644 --- a/go.mod +++ b/go.mod @@ -2,21 +2,29 @@ module github.com/tilebox/loops-go go 1.23.3 -require github.com/oapi-codegen/oapi-codegen/v2 v2.4.1 +require ( + github.com/google/go-replayers/httpreplay v1.2.0 + github.com/oapi-codegen/oapi-codegen/v2 v2.4.1 + github.com/stretchr/testify v1.9.0 +) require ( + github.com/davecgh/go-spew v1.1.1 // indirect github.com/dprotaso/go-yit v0.0.0-20220510233725-9ba8df137936 // indirect github.com/getkin/kin-openapi v0.127.0 // indirect github.com/go-openapi/jsonpointer v0.21.0 // indirect github.com/go-openapi/swag v0.23.0 // indirect + github.com/google/martian/v3 v3.3.2 // indirect github.com/invopop/yaml v0.3.1 // indirect github.com/josharian/intern v1.0.0 // indirect github.com/mailru/easyjson v0.7.7 // indirect github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 // indirect github.com/perimeterx/marshmallow v1.1.5 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect github.com/speakeasy-api/openapi-overlay v0.9.0 // indirect github.com/vmware-labs/yaml-jsonpath v0.3.2 // indirect golang.org/x/mod v0.17.0 // indirect + golang.org/x/net v0.25.0 // indirect golang.org/x/text v0.18.0 // indirect golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d // indirect gopkg.in/yaml.v2 v2.4.0 // indirect diff --git a/go.sum b/go.sum index fc9e9df..e19b8f2 100644 --- a/go.sum +++ b/go.sum @@ -1,17 +1,75 @@ +cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= +cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= +cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= +cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= +cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= +cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= +cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4= +cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M= +cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= +cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk= +cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs= +cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= +cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= +cloud.google.com/go v0.72.0/go.mod h1:M+5Vjvlc2wnp6tjzE102Dw08nGShTscUx2nZMufOKPI= +cloud.google.com/go v0.74.0/go.mod h1:VV1xSbzvo+9QJOxLDaJfTjx5e+MePCpCWwvftOeQmWk= +cloud.google.com/go v0.78.0/go.mod h1:QjdrLG0uq+YwhjoVOLsS1t7TW8fs36kLs4XO5R5ECHg= +cloud.google.com/go v0.79.0/go.mod h1:3bzgcEeQlzbuEAYu4mrWhKqWjmpprinYgKJLgKHnbb8= +cloud.google.com/go v0.81.0/go.mod h1:mk/AM35KwGk/Nm2YSeZbxXdrNK3KZOYHmLkOqC2V6E0= +cloud.google.com/go v0.82.0 h1:FZ4B2YAzCzkwzGEOp1dqG8sAa3zNIvro1fHRTrB81RU= +cloud.google.com/go v0.82.0/go.mod h1:vlKccHJGuFBFufnAnuB08dfEH9Y3H7dzDzRECFdC2TA= +cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= +cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= +cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= +cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= +cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= +cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= +cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= +cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= +cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= +cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= +cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= +cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= +cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= +cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= +cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= +cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= +cloud.google.com/go/storage v1.10.0 h1:STgFzyU5/8miMl0//zKh2aQeTyeaUH3WN9bSUiJ09bA= +cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= +dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= +github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= +github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= +github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= +github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= +github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= +github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= +github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/dprotaso/go-yit v0.0.0-20191028211022-135eb7262960/go.mod h1:9HQzr9D/0PGwMEbC3d5AB7oi67+h4TsQqItC1GVYG58= github.com/dprotaso/go-yit v0.0.0-20220510233725-9ba8df137936 h1:PRxIJD8XjimM5aTknUK9w6DHLDox2r2M3DI4i2pnd3w= github.com/dprotaso/go-yit v0.0.0-20220510233725-9ba8df137936/go.mod h1:ttYvX5qlB+mlV1okblJqcSMtR4c52UKxDiX9GRBS8+Q= +github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= +github.com/envoyproxy/go-control-plane v0.9.7/go.mod h1:cwu0lG7PUMfa9snN8LXBig5ynNVH9qI8YYLbd1fK2po= +github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= +github.com/envoyproxy/go-control-plane v0.9.9-0.20210217033140-668b12f5399d/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= +github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= github.com/fsnotify/fsnotify v1.4.9 h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4= github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= github.com/getkin/kin-openapi v0.127.0 h1:Mghqi3Dhryf3F8vR370nN67pAERW+3a95vomb3MAREY= github.com/getkin/kin-openapi v0.127.0/go.mod h1:OZrfXzUfGrNbsKj+xmFBx6E5c6yH3At/tAKSc2UszXM= +github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= +github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= +github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= github.com/go-openapi/jsonpointer v0.21.0 h1:YgdVicSA9vH5RiHs9TZW5oyafXZFc6+2Vc1rr/O9oNQ= github.com/go-openapi/jsonpointer v0.21.0/go.mod h1:IUyH9l/+uyhIYQ/PXVA41Rexl+kOkAPDdXEYns6fzUY= github.com/go-openapi/swag v0.23.0 h1:vsEVJDUo2hPJ2tu0/Xc+4noaxyEffXNIs3cOULZ+GrE= @@ -19,28 +77,93 @@ github.com/go-openapi/swag v0.23.0/go.mod h1:esZ8ITTYEsH1V2trKHjAN8Ai7xHb8RV+YSZ github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE= github.com/go-test/deep v1.0.8 h1:TDsG77qcSprGbC6vTN8OuXp5g+J+b5Pcguhf7Zt61VM= github.com/go-test/deep v1.0.8/go.mod h1:5C2ZWiW0ErCdrYzpqxLbTX7MG14M9iiw8DgHncVwcsE= +github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= +github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e h1:1r7pUrabqp18hOBcwBwiTsbnFeTZHV9eER/QT5JVZxY= +github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= +github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= +github.com/golang/mock v1.5.0/go.mod h1:CWnOUgYIOo4TcNZ0wHX3YZCqsaM1I1Jvs6v3mP3KVu8= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= +github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= +github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= +github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= +github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= +github.com/golang/protobuf v1.5.1/go.mod h1:DopwsBzvsk0Fs44TXzsVbJyPhcCPeIwnvohx4u74HPM= +github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw= github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= +github.com/golang/snappy v0.0.3 h1:fHPg5GQYlCeLIPB9BZqMVR5nR9A+IM5zcgeTdjMYmLA= +github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= +github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= +github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= +github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-replayers/httpreplay v1.2.0 h1:VM1wEyyjaoU53BwrOnaf9VhAyQQEEioJvFYxYcLRKzk= +github.com/google/go-replayers/httpreplay v1.2.0/go.mod h1:WahEFFZZ7a1P4VM1qEeHy+tME4bwyqPcwWbNlUI1Mcg= +github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= +github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= +github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= +github.com/google/martian/v3 v3.3.2 h1:IqNFLAmvJOgVlpdEBiQbDc2EwKW77amAycfTuWKdfvw= +github.com/google/martian/v3 v3.3.2/go.mod h1:oBOf6HBosgwRXnUGWUB05QECsc6uvmMiJ3+6W4l/CUk= +github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= +github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= +github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20201023163331-3e6fc7fc9c4c/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210122040257-d980be63207e/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210226084205-cbba55b83ad5/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210506205249-923b5ab0fc1a/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= +github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= +github.com/googleapis/gax-go/v2 v2.0.5 h1:sjZBwGj9Jlw33ImPtvFviGYvseOtDM7hkSKB7+Tv3SM= +github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= +github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= +github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/invopop/yaml v0.3.1 h1:f0+ZpmhfBSS4MhG+4HYseMdJhoeeopbSKbq5Rpeelso= github.com/invopop/yaml v0.3.1/go.mod h1:PMOp3nn4/12yEZUFfmOuNHJsZToEEOwoWsT+D81KkeA= github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY= github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y= +github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= +github.com/jstemmer/go-junit-report v0.9.1 h1:6QPYqodiu3GuPL+7mfx+NwDdp2eTkp9IfEUpgAwUN0o= +github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= +github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= @@ -74,6 +197,8 @@ github.com/perimeterx/marshmallow v1.1.5 h1:a2LALqQ1BlHM8PZblsDdidgv1mWi1DgC2UmX github.com/perimeterx/marshmallow v1.1.5/go.mod h1:dsXbUu8CRzfYP5a87xpp0xq9S3u0Vchtcl8we9tYaXw= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8= github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4= github.com/sergi/go-diff v1.1.0 h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0= @@ -83,78 +208,388 @@ github.com/speakeasy-api/openapi-overlay v0.9.0/go.mod h1:f5FloQrHA7MsxYg9djzMD5 github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= +github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/ugorji/go/codec v1.2.11 h1:BMaWp1Bb6fHwEtbplGBGJ498wD+LKlNSl25MjdZY4dU= github.com/ugorji/go/codec v1.2.11/go.mod h1:UNopzCgEMSXjBc6AOMqYvWC1ktqTAfzJZUZgYf6w6lg= github.com/vmware-labs/yaml-jsonpath v0.3.2 h1:/5QKeCBGdsInyDCyVNLbXyilb61MXGi9NP674f9Hobk= github.com/vmware-labs/yaml-jsonpath v0.3.2/go.mod h1:U6whw1z03QyqgWdgXxvVnQ90zN1BWz5V+51Ewf8k+rQ= +github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= +github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= +go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= +go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= +go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= +go.opencensus.io v0.23.0 h1:gqCw0LfLxScz8irSi8exQc7fyQ0fKQU/qnC/X8+V/1M= +go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= +golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= +golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= +golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= +golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= +golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= +golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= +golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= +golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= +golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= +golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/lint v0.0.0-20210508222113-6edffad5e616 h1:VLliZ0d+/avPrXXH+OakdXhpJuEoBZuwh1m2j7U6Iug= +golang.org/x/lint v0.0.0-20210508222113-6edffad5e616/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= +golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= +golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= +golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= +golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= +golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= +golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= +golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/mod v0.17.0 h1:zY54UmvipHiNd+pm+m0x9KhZ9hl1/7QNMyxXbc6ICqA= golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc= +golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk= +golang.org/x/net v0.0.0-20210503060351-7fd8e65b6420/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.25.0 h1:d/OCCoBEUq33pjydKrGQhw7IlUPI2Oylr+8qLx49kac= golang.org/x/net v0.25.0/go.mod h1:JkAGAh7GEvH74S6FOH42FLoXpXbE/aqXSrIQjXgsiwM= +golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= +golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20201109201403-9fd604954f58/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210220000619-9bb904979d93/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210313182246-cd4f82c27b84/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210427180440-81ed05c6b58c/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c h1:pkQiBZBvdos9qq4wBAHqlzuZHEXo07pqV06ef90u1WI= +golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210220050731-9a76102bfb43/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210305230114-8fe3ee5dd75b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210503080704-8803ae5d1324/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210514084401-e8d321eab015/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.20.0 h1:Od9JTbYCk261bKm4M/mw7AklTlFYIa0bIp9BgSm1S8Y= golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= +golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= +golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= golang.org/x/text v0.18.0 h1:XvMDiNzPAl0jr17s6W9lcaIhGUfUORdGCNsuLmPG224= golang.org/x/text v0.18.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= +golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= +golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= +golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= +golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= +golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82ur9kSqwfTHTeVxaDqrfMjpcNT6bE= +golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= +golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= +golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d h1:vU5i/LfpvrRCpgM/VPfJLg5KjxD3E+hfT1SH+d9zLwg= golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= +google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= +google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= +google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= +google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= +google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= +google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= +google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= +google.golang.org/api v0.35.0/go.mod h1:/XrVsuzM0rZmrsbjJutiuftIzeuTQcEeaYcSk/mQ1dg= +google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34qYtE= +google.golang.org/api v0.40.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8= +google.golang.org/api v0.41.0/go.mod h1:RkxM5lITDfTzmyKFPt+wGrCJbVfniCr2ool8kTBzRTU= +google.golang.org/api v0.43.0/go.mod h1:nQsDGjRXMo4lvh5hP0TKqF244gqhGcr/YSIykhUk/94= +google.golang.org/api v0.46.0/go.mod h1:ceL4oozhkAiTID8XMmJBsIxID/9wMXJVVFXPg4ylg3I= +google.golang.org/api v0.47.0 h1:sQLWZQvP6jPGIP4JGPkJu4zHswrv81iobiyszr3b/0I= +google.golang.org/api v0.47.0/go.mod h1:Wbvgpq1HddcWVtzsVLyfLp8lDg6AA241LmgIL59tHXo= +google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= +google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= +google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= +google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= +google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= +google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= +google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= +google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= +google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201109203340-2640f1f9cdfb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201201144952-b05cb90ed32e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201210142538-e3217bee35cc/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210222152913-aa3ee6e6a81c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210303154014-9728d6b83eeb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210310155132-4ce2db91004e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210319143718-93e7006c17a6/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210402141018-6c239bbf2bb1/go.mod h1:9lPAdzaEmUacj36I+k7YKbEc5CXzPIeORRgDAUOu28A= +google.golang.org/genproto v0.0.0-20210429181445-86c259c2b4ab/go.mod h1:P3QM42oQyzQSnHPnZ/vqoCdDmzH28fzWByN9asMeM8A= +google.golang.org/genproto v0.0.0-20210513213006-bf773b8c8384/go.mod h1:P3QM42oQyzQSnHPnZ/vqoCdDmzH28fzWByN9asMeM8A= +google.golang.org/genproto v0.0.0-20210517163617-5e0236093d7a h1:VA0wtJaR+W1I11P2f535J7D/YxyvEFMTMvcmyeZ9FBE= +google.golang.org/genproto v0.0.0-20210517163617-5e0236093d7a/go.mod h1:P3QM42oQyzQSnHPnZ/vqoCdDmzH28fzWByN9asMeM8A= +google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= +google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= +google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= +google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= +google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= +google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= +google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.31.1/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= +google.golang.org/grpc v1.34.0/go.mod h1:WotjhfgOW/POjDeRt8vscBtXq+2VjORFy659qA51WJ8= +google.golang.org/grpc v1.35.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= +google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= +google.golang.org/grpc v1.36.1/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= +google.golang.org/grpc v1.37.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= +google.golang.org/grpc v1.37.1 h1:ARnQJNWxGyYJpdf/JXscNlQr/uv607ZPU9Z7ogHi+iI= +google.golang.org/grpc v1.37.1/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= +google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= +google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= +google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= +google.golang.org/protobuf v1.26.0 h1:bxAC2xTBsZGibn2RTntX0oH50xLsqy1OxA9tTL3p/lk= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= +gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= @@ -168,3 +603,13 @@ gopkg.in/yaml.v3 v3.0.0-20191026110619-0b21df46bc1d/go.mod h1:K4uyk7z7BCEPqu6E+C gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= +honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= +honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= +rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= +rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= +rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= diff --git a/models.go b/models.go index 76c9a8d..8c004b7 100644 --- a/models.go +++ b/models.go @@ -8,7 +8,7 @@ func String(v string) *string { // Contact defines model for Contact. type Contact struct { // The contact's ID. - Id string `json:"id,omitempty"` + ID string `json:"id,omitempty"` // The contact's email address. Email string `json:"email,omitempty"` // The contact's first name. @@ -22,19 +22,19 @@ type Contact struct { // The contact's user group (used to segemnt users when sending emails). UserGroup *string `json:"userGroup,omitempty"` // A unique user ID (for example, from an external application). - UserId *string `json:"userId,omitempty"` + UserID *string `json:"userId,omitempty"` // Mailing lists the contact is subscribed to. MailingLists map[string]interface{} `json:"mailingLists,omitempty"` } type ContactIdentifier struct { Email *string `json:"email,omitempty"` - UserId *string `json:"userId,omitempty"` + UserID *string `json:"userId,omitempty"` } type MailingList struct { // The ID of the list. - Id string `json:"id"` + ID string `json:"id"` // The name of the list. Name string `json:"name"` // Whether the list is public (true) or private (false). @@ -46,7 +46,7 @@ type Event struct { // The contact's email address Email *string `json:"email,omitempty"` // The contact's unique user ID. This must already have been added to your contact in Loops. - UserId *string `json:"userId,omitempty"` + UserID *string `json:"userId,omitempty"` // The name of the event EventName string `json:"eventName"` // Properties to update the contact with, including custom properties. @@ -59,7 +59,7 @@ type Event struct { type TransactionalEmail struct { // The ID of the transactional email to send. - TransactionalId string `json:"transactionalId"` + TransactionalID string `json:"transactionalId"` // The email address of the recipient Email string `json:"email"` // Create a contact in your audience using the provided email address (if one doesn't already exist). @@ -88,7 +88,7 @@ type CustomField struct { Type string `json:"type"` } -type ApiKeyInfo struct { +type APIKeyInfo struct { Success bool `json:"success"` // The name of the team the API key belongs to. TeamName string `json:"teamName"` diff --git a/testdata/create-contact.replay.json b/testdata/create-contact.replay.json new file mode 100644 index 0000000..11a72a7 --- /dev/null +++ b/testdata/create-contact.replay.json @@ -0,0 +1,130 @@ +{ + "Initial": null, + "Version": "0.2", + "Converter": { + "ScrubBody": null, + "ClearHeaders": [ + "^X-Goog-.*Encryption-Key$" + ], + "RemoveRequestHeaders": [ + "^Authorization$", + "^Proxy-Authorization$", + "^Connection$", + "^Content-Type$", + "^Date$", + "^Host$", + "^Transfer-Encoding$", + "^Via$", + "^X-Forwarded-.*$", + "^X-Cloud-Trace-Context$", + "^X-Goog-Api-Client$", + "^X-Google-.*$", + "^X-Gfe-.*$" + ], + "RemoveResponseHeaders": [ + "^X-Google-.*$", + "^X-Gfe-.*$" + ], + "ClearParams": null, + "RemoveParams": null + }, + "Entries": [ + { + "ID": "9482f4654381a270", + "Request": { + "Method": "POST", + "URL": "https://app.loops.so/api/v1/contacts/create", + "Header": { + "Accept-Encoding": [ + "gzip" + ], + "Content-Length": [ + "103" + ], + "User-Agent": [ + "Go-http-client/1.1" + ] + }, + "MediaType": "application/json", + "BodyParts": [ + "eyJlbWFpbCI6InRlc3RAZXhhbXBsZS5jb20iLCJmaXJzdE5hbWUiOiJUZXN0IiwibGFzdE5hbWUiOiJVc2VyIiwic3Vic2NyaWJlZCI6dHJ1ZSwidXNlcklkIjoidXNlcl8xMjMifQ==" + ] + }, + "Response": { + "StatusCode": 200, + "Proto": "HTTP/1.1", + "ProtoMajor": 1, + "ProtoMinor": 1, + "Header": { + "Access-Control-Allow-Credentials": [ + "true" + ], + "Access-Control-Allow-Headers": [ + "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version" + ], + "Access-Control-Allow-Methods": [ + "GET,OPTIONS,PATCH,DELETE,POST,PUT" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Cache-Control": [ + "public, max-age=0, must-revalidate" + ], + "Cf-Cache-Status": [ + "DYNAMIC" + ], + "Cf-Ray": [ + "8e489d0f8fc85a60-VIE" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Security-Policy": [ + "default-src 'self'; connect-src 'self' https://loops-prod-mjml-bucket.s3.amazonaws.com https://loops-prod-csv-uploads.s3.amazonaws.com https://vitals.vercel-insights.com https://browser-intake-datadoghq.com https://*.google-analytics.com https://api.zapier.com https://app.atlas.so https://app.getatlas.io wss://app.atlas.so https://*.filestackapi.com https://atlas-prod-uploads.s3.amazonaws.com https://ipgeolocation.abstractapi.com https://zapier.com; script-src 'self' 'unsafe-eval' 'unsafe-inline' https://cdn.zapier.com https://www.googletagmanager.com https://app.getatlas.io https://app.atlas.so https://static.filestackapi.com https://files.atlas.so; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://cdn.zapier.com https://static.filestackapi.com; img-src 'self' blob: data: https://d3b9kr64nievew.cloudfront.net https://atlas-prod-uploads.s3.amazonaws.com https://files.getatlas.io https://files.atlas.so https://static.filestackapi.com https://cdn.filestackcontent.com https://zapier-images.imgix.net; font-src 'self' https://fonts.gstatic.com; object-src 'none'; frame-src 'self' https://zapier.com; media-src 'self' data:; worker-src 'self' blob:; base-uri 'self'; form-action 'self'; frame-ancestors 'none'; upgrade-insecure-requests;" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Mon, 18 Nov 2024 14:22:37 GMT" + ], + "Etag": [ + "W/\"zbn3650bvy1d\"" + ], + "Permissions-Policy": [ + "accelerometer=(), ambient-light-sensor=(), autoplay=(), battery=(), camera=(), cross-origin-isolated=(), display-capture=(), document-domain=(), encrypted-media=(), execution-while-not-rendered=(), execution-while-out-of-viewport=(), fullscreen=(), geolocation=(), gyroscope=(), keyboard-map=(), magnetometer=(), microphone=(), midi=(), navigation-override=(), payment=(), picture-in-picture=(), publickey-credentials-get=(), screen-wake-lock=(), sync-xhr=(), usb=(), web-share=(), xr-spatial-tracking=()" + ], + "Referrer-Policy": [ + "strict-origin-when-cross-origin" + ], + "Server": [ + "cloudflare" + ], + "Strict-Transport-Security": [ + "max-age=63072000" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Matched-Path": [ + "/api/v1/contacts/create" + ], + "X-Ratelimit-Limit": [ + "10" + ], + "X-Ratelimit-Remaining": [ + "9" + ], + "X-Vercel-Cache": [ + "MISS" + ], + "X-Vercel-Id": [ + "fra1::iad1::7f9km-1731939755479-0306be4457e8" + ] + }, + "Body": "H4sIAAAAAAAAA6pWKi5NTk4tLlayKikqTdVRykxRslJKzjXOMzHPzzA3MDTIKCgxyU1Nr6oqLM0qUaoFAAAA//8DAP/EpzQxAAAA" + } + } + ] +} \ No newline at end of file diff --git a/testdata/delete-contact.replay.json b/testdata/delete-contact.replay.json new file mode 100644 index 0000000..899f651 --- /dev/null +++ b/testdata/delete-contact.replay.json @@ -0,0 +1,133 @@ +{ + "Initial": null, + "Version": "0.2", + "Converter": { + "ScrubBody": null, + "ClearHeaders": [ + "^X-Goog-.*Encryption-Key$" + ], + "RemoveRequestHeaders": [ + "^Authorization$", + "^Proxy-Authorization$", + "^Connection$", + "^Content-Type$", + "^Date$", + "^Host$", + "^Transfer-Encoding$", + "^Via$", + "^X-Forwarded-.*$", + "^X-Cloud-Trace-Context$", + "^X-Goog-Api-Client$", + "^X-Google-.*$", + "^X-Gfe-.*$" + ], + "RemoveResponseHeaders": [ + "^X-Google-.*$", + "^X-Gfe-.*$" + ], + "ClearParams": null, + "RemoveParams": null + }, + "Entries": [ + { + "ID": "28c142b3cdee20e4", + "Request": { + "Method": "POST", + "URL": "https://app.loops.so/api/v1/contacts/delete", + "Header": { + "Accept-Encoding": [ + "gzip" + ], + "Content-Length": [ + "21" + ], + "User-Agent": [ + "Go-http-client/1.1" + ] + }, + "MediaType": "application/json", + "BodyParts": [ + "eyJ1c2VySWQiOiJ1c2VyXzEyMyJ9" + ] + }, + "Response": { + "StatusCode": 200, + "Proto": "HTTP/1.1", + "ProtoMajor": 1, + "ProtoMinor": 1, + "Header": { + "Access-Control-Allow-Credentials": [ + "true" + ], + "Access-Control-Allow-Headers": [ + "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version" + ], + "Access-Control-Allow-Methods": [ + "GET,OPTIONS,PATCH,DELETE,POST,PUT" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Cache-Control": [ + "public, max-age=0, must-revalidate" + ], + "Cf-Cache-Status": [ + "DYNAMIC" + ], + "Cf-Ray": [ + "8e48a52b1a7a5c11-VIE" + ], + "Content-Length": [ + "45" + ], + "Content-Security-Policy": [ + "default-src 'self'; connect-src 'self' https://loops-prod-mjml-bucket.s3.amazonaws.com https://loops-prod-csv-uploads.s3.amazonaws.com https://vitals.vercel-insights.com https://browser-intake-datadoghq.com https://*.google-analytics.com https://api.zapier.com https://app.atlas.so https://app.getatlas.io wss://app.atlas.so https://*.filestackapi.com https://atlas-prod-uploads.s3.amazonaws.com https://ipgeolocation.abstractapi.com https://zapier.com; script-src 'self' 'unsafe-eval' 'unsafe-inline' https://cdn.zapier.com https://www.googletagmanager.com https://app.getatlas.io https://app.atlas.so https://static.filestackapi.com https://files.atlas.so; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://cdn.zapier.com https://static.filestackapi.com; img-src 'self' blob: data: https://d3b9kr64nievew.cloudfront.net https://atlas-prod-uploads.s3.amazonaws.com https://files.getatlas.io https://files.atlas.so https://static.filestackapi.com https://cdn.filestackcontent.com https://zapier-images.imgix.net; font-src 'self' https://fonts.gstatic.com; object-src 'none'; frame-src 'self' https://zapier.com; media-src 'self' data:; worker-src 'self' blob:; base-uri 'self'; form-action 'self'; frame-ancestors 'none'; upgrade-insecure-requests;" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Mon, 18 Nov 2024 14:28:08 GMT" + ], + "Etag": [ + "\"ah8yi3hmwo19\"" + ], + "Permissions-Policy": [ + "accelerometer=(), ambient-light-sensor=(), autoplay=(), battery=(), camera=(), cross-origin-isolated=(), display-capture=(), document-domain=(), encrypted-media=(), execution-while-not-rendered=(), execution-while-out-of-viewport=(), fullscreen=(), geolocation=(), gyroscope=(), keyboard-map=(), magnetometer=(), microphone=(), midi=(), navigation-override=(), payment=(), picture-in-picture=(), publickey-credentials-get=(), screen-wake-lock=(), sync-xhr=(), usb=(), web-share=(), xr-spatial-tracking=()" + ], + "Referrer-Policy": [ + "strict-origin-when-cross-origin" + ], + "Server": [ + "cloudflare" + ], + "Strict-Transport-Security": [ + "max-age=63072000" + ], + "Vary": [ + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Matched-Path": [ + "/api/v1/contacts/delete" + ], + "X-Ratelimit-Limit": [ + "10" + ], + "X-Ratelimit-Remaining": [ + "9" + ], + "X-Vercel-Cache": [ + "MISS" + ], + "X-Vercel-Id": [ + "fra1::iad1::6vtpk-1731940087677-5b958085fa1a" + ] + }, + "Body": "eyJzdWNjZXNzIjp0cnVlLCJtZXNzYWdlIjoiQ29udGFjdCBkZWxldGVkLiJ9" + } + } + ] +} \ No newline at end of file diff --git a/testdata/find-contact-by-id.replay.json b/testdata/find-contact-by-id.replay.json new file mode 100644 index 0000000..ed352b2 --- /dev/null +++ b/testdata/find-contact-by-id.replay.json @@ -0,0 +1,127 @@ +{ + "Initial": null, + "Version": "0.2", + "Converter": { + "ScrubBody": null, + "ClearHeaders": [ + "^X-Goog-.*Encryption-Key$" + ], + "RemoveRequestHeaders": [ + "^Authorization$", + "^Proxy-Authorization$", + "^Connection$", + "^Content-Type$", + "^Date$", + "^Host$", + "^Transfer-Encoding$", + "^Via$", + "^X-Forwarded-.*$", + "^X-Cloud-Trace-Context$", + "^X-Goog-Api-Client$", + "^X-Google-.*$", + "^X-Gfe-.*$" + ], + "RemoveResponseHeaders": [ + "^X-Google-.*$", + "^X-Gfe-.*$" + ], + "ClearParams": null, + "RemoveParams": null + }, + "Entries": [ + { + "ID": "db8ab2e6459cd043", + "Request": { + "Method": "GET", + "URL": "https://app.loops.so/api/v1/contacts/find?userId=user_123", + "Header": { + "Accept-Encoding": [ + "gzip" + ], + "User-Agent": [ + "Go-http-client/1.1" + ] + }, + "MediaType": "application/json", + "BodyParts": [ + "" + ] + }, + "Response": { + "StatusCode": 200, + "Proto": "HTTP/1.1", + "ProtoMajor": 1, + "ProtoMinor": 1, + "Header": { + "Access-Control-Allow-Credentials": [ + "true" + ], + "Access-Control-Allow-Headers": [ + "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version" + ], + "Access-Control-Allow-Methods": [ + "GET,OPTIONS,PATCH,DELETE,POST,PUT" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Cache-Control": [ + "public, max-age=0, must-revalidate" + ], + "Cf-Cache-Status": [ + "DYNAMIC" + ], + "Cf-Ray": [ + "8e48a2c309a65a8c-VIE" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Security-Policy": [ + "default-src 'self'; connect-src 'self' https://loops-prod-mjml-bucket.s3.amazonaws.com https://loops-prod-csv-uploads.s3.amazonaws.com https://vitals.vercel-insights.com https://browser-intake-datadoghq.com https://*.google-analytics.com https://api.zapier.com https://app.atlas.so https://app.getatlas.io wss://app.atlas.so https://*.filestackapi.com https://atlas-prod-uploads.s3.amazonaws.com https://ipgeolocation.abstractapi.com https://zapier.com; script-src 'self' 'unsafe-eval' 'unsafe-inline' https://cdn.zapier.com https://www.googletagmanager.com https://app.getatlas.io https://app.atlas.so https://static.filestackapi.com https://files.atlas.so; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://cdn.zapier.com https://static.filestackapi.com; img-src 'self' blob: data: https://d3b9kr64nievew.cloudfront.net https://atlas-prod-uploads.s3.amazonaws.com https://files.getatlas.io https://files.atlas.so https://static.filestackapi.com https://cdn.filestackcontent.com https://zapier-images.imgix.net; font-src 'self' https://fonts.gstatic.com; object-src 'none'; frame-src 'self' https://zapier.com; media-src 'self' data:; worker-src 'self' blob:; base-uri 'self'; form-action 'self'; frame-ancestors 'none'; upgrade-insecure-requests;" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Mon, 18 Nov 2024 14:26:29 GMT" + ], + "Etag": [ + "W/\"16csp7dtxqa5f\"" + ], + "Permissions-Policy": [ + "accelerometer=(), ambient-light-sensor=(), autoplay=(), battery=(), camera=(), cross-origin-isolated=(), display-capture=(), document-domain=(), encrypted-media=(), execution-while-not-rendered=(), execution-while-out-of-viewport=(), fullscreen=(), geolocation=(), gyroscope=(), keyboard-map=(), magnetometer=(), microphone=(), midi=(), navigation-override=(), payment=(), picture-in-picture=(), publickey-credentials-get=(), screen-wake-lock=(), sync-xhr=(), usb=(), web-share=(), xr-spatial-tracking=()" + ], + "Referrer-Policy": [ + "strict-origin-when-cross-origin" + ], + "Server": [ + "cloudflare" + ], + "Strict-Transport-Security": [ + "max-age=63072000" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Matched-Path": [ + "/api/v1/contacts/find" + ], + "X-Ratelimit-Limit": [ + "10" + ], + "X-Ratelimit-Remaining": [ + "9" + ], + "X-Vercel-Cache": [ + "BYPASS" + ], + "X-Vercel-Id": [ + "fra1::iad1::jkf78-1731939989009-51c0dadb1477" + ] + }, + "Body": "H4sIAAAAAAAAAzzOwQrCMBAE0H+ZcyqtLRRy0pMIIh70JCJpu7aRpqnZBKWl/y5B8LZvYJi9ztANJGqTD0VpuzLN0m70haF2ml7h6SFARukeEgO9E0/sk+gNfZQZe1rV1kDgoR37ozIEiTNxrPXqn1yYHATYBldHb0/7yFBx7XRFDaR3gQQCk9s5G0ZI4Md9/C4e92ydQyBu66E9aPYMOS/L7QsAAP//AwCgREeZwwAAAA==" + } + } + ] +} \ No newline at end of file diff --git a/testdata/find-contact-not-found.replay.json b/testdata/find-contact-not-found.replay.json new file mode 100644 index 0000000..bdaeb1f --- /dev/null +++ b/testdata/find-contact-not-found.replay.json @@ -0,0 +1,127 @@ +{ + "Initial": null, + "Version": "0.2", + "Converter": { + "ScrubBody": null, + "ClearHeaders": [ + "^X-Goog-.*Encryption-Key$" + ], + "RemoveRequestHeaders": [ + "^Authorization$", + "^Proxy-Authorization$", + "^Connection$", + "^Content-Type$", + "^Date$", + "^Host$", + "^Transfer-Encoding$", + "^Via$", + "^X-Forwarded-.*$", + "^X-Cloud-Trace-Context$", + "^X-Goog-Api-Client$", + "^X-Google-.*$", + "^X-Gfe-.*$" + ], + "RemoveResponseHeaders": [ + "^X-Google-.*$", + "^X-Gfe-.*$" + ], + "ClearParams": null, + "RemoveParams": null + }, + "Entries": [ + { + "ID": "ca683513829d04fd", + "Request": { + "Method": "GET", + "URL": "https://app.loops.so/api/v1/contacts/find?userId=not_found", + "Header": { + "Accept-Encoding": [ + "gzip" + ], + "User-Agent": [ + "Go-http-client/1.1" + ] + }, + "MediaType": "application/json", + "BodyParts": [ + "" + ] + }, + "Response": { + "StatusCode": 200, + "Proto": "HTTP/1.1", + "ProtoMajor": 1, + "ProtoMinor": 1, + "Header": { + "Access-Control-Allow-Credentials": [ + "true" + ], + "Access-Control-Allow-Headers": [ + "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version" + ], + "Access-Control-Allow-Methods": [ + "GET,OPTIONS,PATCH,DELETE,POST,PUT" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Cache-Control": [ + "public, max-age=0, must-revalidate" + ], + "Cf-Cache-Status": [ + "DYNAMIC" + ], + "Cf-Ray": [ + "8e48a634de915bb4-VIE" + ], + "Content-Length": [ + "2" + ], + "Content-Security-Policy": [ + "default-src 'self'; connect-src 'self' https://loops-prod-mjml-bucket.s3.amazonaws.com https://loops-prod-csv-uploads.s3.amazonaws.com https://vitals.vercel-insights.com https://browser-intake-datadoghq.com https://*.google-analytics.com https://api.zapier.com https://app.atlas.so https://app.getatlas.io wss://app.atlas.so https://*.filestackapi.com https://atlas-prod-uploads.s3.amazonaws.com https://ipgeolocation.abstractapi.com https://zapier.com; script-src 'self' 'unsafe-eval' 'unsafe-inline' https://cdn.zapier.com https://www.googletagmanager.com https://app.getatlas.io https://app.atlas.so https://static.filestackapi.com https://files.atlas.so; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://cdn.zapier.com https://static.filestackapi.com; img-src 'self' blob: data: https://d3b9kr64nievew.cloudfront.net https://atlas-prod-uploads.s3.amazonaws.com https://files.getatlas.io https://files.atlas.so https://static.filestackapi.com https://cdn.filestackcontent.com https://zapier-images.imgix.net; font-src 'self' https://fonts.gstatic.com; object-src 'none'; frame-src 'self' https://zapier.com; media-src 'self' data:; worker-src 'self' blob:; base-uri 'self'; form-action 'self'; frame-ancestors 'none'; upgrade-insecure-requests;" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Mon, 18 Nov 2024 14:28:50 GMT" + ], + "Etag": [ + "\"38jmpejbxv2\"" + ], + "Permissions-Policy": [ + "accelerometer=(), ambient-light-sensor=(), autoplay=(), battery=(), camera=(), cross-origin-isolated=(), display-capture=(), document-domain=(), encrypted-media=(), execution-while-not-rendered=(), execution-while-out-of-viewport=(), fullscreen=(), geolocation=(), gyroscope=(), keyboard-map=(), magnetometer=(), microphone=(), midi=(), navigation-override=(), payment=(), picture-in-picture=(), publickey-credentials-get=(), screen-wake-lock=(), sync-xhr=(), usb=(), web-share=(), xr-spatial-tracking=()" + ], + "Referrer-Policy": [ + "strict-origin-when-cross-origin" + ], + "Server": [ + "cloudflare" + ], + "Strict-Transport-Security": [ + "max-age=63072000" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Matched-Path": [ + "/api/v1/contacts/find" + ], + "X-Ratelimit-Limit": [ + "10" + ], + "X-Ratelimit-Remaining": [ + "9" + ], + "X-Vercel-Cache": [ + "BYPASS" + ], + "X-Vercel-Id": [ + "fra1::iad1::7f9km-1731940130087-001384838447" + ] + }, + "Body": "W10=" + } + } + ] +} \ No newline at end of file diff --git a/testdata/find-contact.replay.json b/testdata/find-contact.replay.json new file mode 100644 index 0000000..4586cf7 --- /dev/null +++ b/testdata/find-contact.replay.json @@ -0,0 +1,127 @@ +{ + "Initial": null, + "Version": "0.2", + "Converter": { + "ScrubBody": null, + "ClearHeaders": [ + "^X-Goog-.*Encryption-Key$" + ], + "RemoveRequestHeaders": [ + "^Authorization$", + "^Proxy-Authorization$", + "^Connection$", + "^Content-Type$", + "^Date$", + "^Host$", + "^Transfer-Encoding$", + "^Via$", + "^X-Forwarded-.*$", + "^X-Cloud-Trace-Context$", + "^X-Goog-Api-Client$", + "^X-Google-.*$", + "^X-Gfe-.*$" + ], + "RemoveResponseHeaders": [ + "^X-Google-.*$", + "^X-Gfe-.*$" + ], + "ClearParams": null, + "RemoveParams": null + }, + "Entries": [ + { + "ID": "5aea57bc89f9160f", + "Request": { + "Method": "GET", + "URL": "https://app.loops.so/api/v1/contacts/find?email=new-test-mail%40example.com", + "Header": { + "Accept-Encoding": [ + "gzip" + ], + "User-Agent": [ + "Go-http-client/1.1" + ] + }, + "MediaType": "application/json", + "BodyParts": [ + "" + ] + }, + "Response": { + "StatusCode": 200, + "Proto": "HTTP/1.1", + "ProtoMajor": 1, + "ProtoMinor": 1, + "Header": { + "Access-Control-Allow-Credentials": [ + "true" + ], + "Access-Control-Allow-Headers": [ + "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version" + ], + "Access-Control-Allow-Methods": [ + "GET,OPTIONS,PATCH,DELETE,POST,PUT" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Cache-Control": [ + "public, max-age=0, must-revalidate" + ], + "Cf-Cache-Status": [ + "DYNAMIC" + ], + "Cf-Ray": [ + "8e48a2d3be2b5a8c-VIE" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Security-Policy": [ + "default-src 'self'; connect-src 'self' https://loops-prod-mjml-bucket.s3.amazonaws.com https://loops-prod-csv-uploads.s3.amazonaws.com https://vitals.vercel-insights.com https://browser-intake-datadoghq.com https://*.google-analytics.com https://api.zapier.com https://app.atlas.so https://app.getatlas.io wss://app.atlas.so https://*.filestackapi.com https://atlas-prod-uploads.s3.amazonaws.com https://ipgeolocation.abstractapi.com https://zapier.com; script-src 'self' 'unsafe-eval' 'unsafe-inline' https://cdn.zapier.com https://www.googletagmanager.com https://app.getatlas.io https://app.atlas.so https://static.filestackapi.com https://files.atlas.so; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://cdn.zapier.com https://static.filestackapi.com; img-src 'self' blob: data: https://d3b9kr64nievew.cloudfront.net https://atlas-prod-uploads.s3.amazonaws.com https://files.getatlas.io https://files.atlas.so https://static.filestackapi.com https://cdn.filestackcontent.com https://zapier-images.imgix.net; font-src 'self' https://fonts.gstatic.com; object-src 'none'; frame-src 'self' https://zapier.com; media-src 'self' data:; worker-src 'self' blob:; base-uri 'self'; form-action 'self'; frame-ancestors 'none'; upgrade-insecure-requests;" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Mon, 18 Nov 2024 14:26:32 GMT" + ], + "Etag": [ + "W/\"16csp7dtxqa5f\"" + ], + "Permissions-Policy": [ + "accelerometer=(), ambient-light-sensor=(), autoplay=(), battery=(), camera=(), cross-origin-isolated=(), display-capture=(), document-domain=(), encrypted-media=(), execution-while-not-rendered=(), execution-while-out-of-viewport=(), fullscreen=(), geolocation=(), gyroscope=(), keyboard-map=(), magnetometer=(), microphone=(), midi=(), navigation-override=(), payment=(), picture-in-picture=(), publickey-credentials-get=(), screen-wake-lock=(), sync-xhr=(), usb=(), web-share=(), xr-spatial-tracking=()" + ], + "Referrer-Policy": [ + "strict-origin-when-cross-origin" + ], + "Server": [ + "cloudflare" + ], + "Strict-Transport-Security": [ + "max-age=63072000" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Matched-Path": [ + "/api/v1/contacts/find" + ], + "X-Ratelimit-Limit": [ + "10" + ], + "X-Ratelimit-Remaining": [ + "9" + ], + "X-Vercel-Cache": [ + "BYPASS" + ], + "X-Vercel-Id": [ + "fra1::iad1::gnwmc-1731939991781-8fdf5a76fbf9" + ] + }, + "Body": "H4sIAAAAAAAAAzzOwQrCMBAE0H+ZcyqtLRRy0pMIIh70JCJpu7aRpqnZBKWl/y5B8LZvYJi9ztANJGqTD0VpuzLN0m70haF2ml7h6SFARukeEgO9E0/sk+gNfZQZe1rV1kDgoR37ozIEiTNxrPXqn1yYHATYBldHb0/7yFBx7XRFDaR3gQQCk9s5G0ZI4Md9/C4e92ydQyBu66E9aPYMOS/L7QsAAP//AwCgREeZwwAAAA==" + } + } + ] +} \ No newline at end of file diff --git a/testdata/get-custom-fields.replay.json b/testdata/get-custom-fields.replay.json new file mode 100644 index 0000000..4937a36 --- /dev/null +++ b/testdata/get-custom-fields.replay.json @@ -0,0 +1,127 @@ +{ + "Initial": null, + "Version": "0.2", + "Converter": { + "ScrubBody": null, + "ClearHeaders": [ + "^X-Goog-.*Encryption-Key$" + ], + "RemoveRequestHeaders": [ + "^Authorization$", + "^Proxy-Authorization$", + "^Connection$", + "^Content-Type$", + "^Date$", + "^Host$", + "^Transfer-Encoding$", + "^Via$", + "^X-Forwarded-.*$", + "^X-Cloud-Trace-Context$", + "^X-Goog-Api-Client$", + "^X-Google-.*$", + "^X-Gfe-.*$" + ], + "RemoveResponseHeaders": [ + "^X-Google-.*$", + "^X-Gfe-.*$" + ], + "ClearParams": null, + "RemoveParams": null + }, + "Entries": [ + { + "ID": "365c7f36ca48117a", + "Request": { + "Method": "GET", + "URL": "https://app.loops.so/api/v1/contacts/customFields", + "Header": { + "Accept-Encoding": [ + "gzip" + ], + "User-Agent": [ + "Go-http-client/1.1" + ] + }, + "MediaType": "application/json", + "BodyParts": [ + "" + ] + }, + "Response": { + "StatusCode": 200, + "Proto": "HTTP/1.1", + "ProtoMajor": 1, + "ProtoMinor": 1, + "Header": { + "Access-Control-Allow-Credentials": [ + "true" + ], + "Access-Control-Allow-Headers": [ + "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version" + ], + "Access-Control-Allow-Methods": [ + "GET,OPTIONS,PATCH,DELETE,POST,PUT" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Cache-Control": [ + "public, max-age=0, must-revalidate" + ], + "Cf-Cache-Status": [ + "DYNAMIC" + ], + "Cf-Ray": [ + "8e48ae1a4b8d5ab3-VIE" + ], + "Content-Length": [ + "47" + ], + "Content-Security-Policy": [ + "default-src 'self'; connect-src 'self' https://loops-prod-mjml-bucket.s3.amazonaws.com https://loops-prod-csv-uploads.s3.amazonaws.com https://vitals.vercel-insights.com https://browser-intake-datadoghq.com https://*.google-analytics.com https://api.zapier.com https://app.atlas.so https://app.getatlas.io wss://app.atlas.so https://*.filestackapi.com https://atlas-prod-uploads.s3.amazonaws.com https://ipgeolocation.abstractapi.com https://zapier.com; script-src 'self' 'unsafe-eval' 'unsafe-inline' https://cdn.zapier.com https://www.googletagmanager.com https://app.getatlas.io https://app.atlas.so https://static.filestackapi.com https://files.atlas.so; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://cdn.zapier.com https://static.filestackapi.com; img-src 'self' blob: data: https://d3b9kr64nievew.cloudfront.net https://atlas-prod-uploads.s3.amazonaws.com https://files.getatlas.io https://files.atlas.so https://static.filestackapi.com https://cdn.filestackcontent.com https://zapier-images.imgix.net; font-src 'self' https://fonts.gstatic.com; object-src 'none'; frame-src 'self' https://zapier.com; media-src 'self' data:; worker-src 'self' blob:; base-uri 'self'; form-action 'self'; frame-ancestors 'none'; upgrade-insecure-requests;" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Mon, 18 Nov 2024 14:34:14 GMT" + ], + "Etag": [ + "\"j3urs9lnhp1b\"" + ], + "Permissions-Policy": [ + "accelerometer=(), ambient-light-sensor=(), autoplay=(), battery=(), camera=(), cross-origin-isolated=(), display-capture=(), document-domain=(), encrypted-media=(), execution-while-not-rendered=(), execution-while-out-of-viewport=(), fullscreen=(), geolocation=(), gyroscope=(), keyboard-map=(), magnetometer=(), microphone=(), midi=(), navigation-override=(), payment=(), picture-in-picture=(), publickey-credentials-get=(), screen-wake-lock=(), sync-xhr=(), usb=(), web-share=(), xr-spatial-tracking=()" + ], + "Referrer-Policy": [ + "strict-origin-when-cross-origin" + ], + "Server": [ + "cloudflare" + ], + "Strict-Transport-Security": [ + "max-age=63072000" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Matched-Path": [ + "/api/v1/contacts/customFields" + ], + "X-Ratelimit-Limit": [ + "10" + ], + "X-Ratelimit-Remaining": [ + "9" + ], + "X-Vercel-Cache": [ + "BYPASS" + ], + "X-Vercel-Id": [ + "fra1::iad1::5v8sq-1731940453508-d2267dd70bb6" + ] + }, + "Body": "W3sia2V5Ijoicm9sZSIsImxhYmVsIjoiUm9sZSIsInR5cGUiOiJzdHJpbmcifV0=" + } + } + ] +} \ No newline at end of file diff --git a/testdata/get-mailing-lists.replay.json b/testdata/get-mailing-lists.replay.json new file mode 100644 index 0000000..1445c91 --- /dev/null +++ b/testdata/get-mailing-lists.replay.json @@ -0,0 +1,127 @@ +{ + "Initial": null, + "Version": "0.2", + "Converter": { + "ScrubBody": null, + "ClearHeaders": [ + "^X-Goog-.*Encryption-Key$" + ], + "RemoveRequestHeaders": [ + "^Authorization$", + "^Proxy-Authorization$", + "^Connection$", + "^Content-Type$", + "^Date$", + "^Host$", + "^Transfer-Encoding$", + "^Via$", + "^X-Forwarded-.*$", + "^X-Cloud-Trace-Context$", + "^X-Goog-Api-Client$", + "^X-Google-.*$", + "^X-Gfe-.*$" + ], + "RemoveResponseHeaders": [ + "^X-Google-.*$", + "^X-Gfe-.*$" + ], + "ClearParams": null, + "RemoveParams": null + }, + "Entries": [ + { + "ID": "eddf18e63363fd6f", + "Request": { + "Method": "GET", + "URL": "https://app.loops.so/api/v1/lists", + "Header": { + "Accept-Encoding": [ + "gzip" + ], + "User-Agent": [ + "Go-http-client/1.1" + ] + }, + "MediaType": "application/json", + "BodyParts": [ + "" + ] + }, + "Response": { + "StatusCode": 200, + "Proto": "HTTP/1.1", + "ProtoMajor": 1, + "ProtoMinor": 1, + "Header": { + "Access-Control-Allow-Credentials": [ + "true" + ], + "Access-Control-Allow-Headers": [ + "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version" + ], + "Access-Control-Allow-Methods": [ + "GET,OPTIONS,PATCH,DELETE,POST,PUT" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Cache-Control": [ + "public, max-age=0, must-revalidate" + ], + "Cf-Cache-Status": [ + "DYNAMIC" + ], + "Cf-Ray": [ + "8e48a831c9fdc2e6-VIE" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Security-Policy": [ + "default-src 'self'; connect-src 'self' https://loops-prod-mjml-bucket.s3.amazonaws.com https://loops-prod-csv-uploads.s3.amazonaws.com https://vitals.vercel-insights.com https://browser-intake-datadoghq.com https://*.google-analytics.com https://api.zapier.com https://app.atlas.so https://app.getatlas.io wss://app.atlas.so https://*.filestackapi.com https://atlas-prod-uploads.s3.amazonaws.com https://ipgeolocation.abstractapi.com https://zapier.com; script-src 'self' 'unsafe-eval' 'unsafe-inline' https://cdn.zapier.com https://www.googletagmanager.com https://app.getatlas.io https://app.atlas.so https://static.filestackapi.com https://files.atlas.so; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://cdn.zapier.com https://static.filestackapi.com; img-src 'self' blob: data: https://d3b9kr64nievew.cloudfront.net https://atlas-prod-uploads.s3.amazonaws.com https://files.getatlas.io https://files.atlas.so https://static.filestackapi.com https://cdn.filestackcontent.com https://zapier-images.imgix.net; font-src 'self' https://fonts.gstatic.com; object-src 'none'; frame-src 'self' https://zapier.com; media-src 'self' data:; worker-src 'self' blob:; base-uri 'self'; form-action 'self'; frame-ancestors 'none'; upgrade-insecure-requests;" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Mon, 18 Nov 2024 14:30:12 GMT" + ], + "Etag": [ + "W/\"qi65y4heca20\"" + ], + "Permissions-Policy": [ + "accelerometer=(), ambient-light-sensor=(), autoplay=(), battery=(), camera=(), cross-origin-isolated=(), display-capture=(), document-domain=(), encrypted-media=(), execution-while-not-rendered=(), execution-while-out-of-viewport=(), fullscreen=(), geolocation=(), gyroscope=(), keyboard-map=(), magnetometer=(), microphone=(), midi=(), navigation-override=(), payment=(), picture-in-picture=(), publickey-credentials-get=(), screen-wake-lock=(), sync-xhr=(), usb=(), web-share=(), xr-spatial-tracking=()" + ], + "Referrer-Policy": [ + "strict-origin-when-cross-origin" + ], + "Server": [ + "cloudflare" + ], + "Strict-Transport-Security": [ + "max-age=63072000" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Matched-Path": [ + "/api/v1/lists" + ], + "X-Ratelimit-Limit": [ + "10" + ], + "X-Ratelimit-Remaining": [ + "9" + ], + "X-Vercel-Cache": [ + "BYPASS" + ], + "X-Vercel-Id": [ + "fra1::iad1::t8krc-1731940211522-c499eca72d1e" + ] + }, + "Body": "H4sIAAAAAAAAA4quVspMUbJSSs41zjMyN6lIMzAyzzDIzTQ2LjEpzChKSVfSUcpLzE1VslLySy0vzkktKUktUtJRyiwOKE3KyUxWsiopKk2tjQUAAAD//wMATtATwUgAAAA=" + } + } + ] +} \ No newline at end of file diff --git a/testdata/send-event.replay.json b/testdata/send-event.replay.json new file mode 100644 index 0000000..6504adb --- /dev/null +++ b/testdata/send-event.replay.json @@ -0,0 +1,130 @@ +{ + "Initial": null, + "Version": "0.2", + "Converter": { + "ScrubBody": null, + "ClearHeaders": [ + "^X-Goog-.*Encryption-Key$" + ], + "RemoveRequestHeaders": [ + "^Authorization$", + "^Proxy-Authorization$", + "^Connection$", + "^Content-Type$", + "^Date$", + "^Host$", + "^Transfer-Encoding$", + "^Via$", + "^X-Forwarded-.*$", + "^X-Cloud-Trace-Context$", + "^X-Goog-Api-Client$", + "^X-Google-.*$", + "^X-Gfe-.*$" + ], + "RemoveResponseHeaders": [ + "^X-Google-.*$", + "^X-Gfe-.*$" + ], + "ClearParams": null, + "RemoveParams": null + }, + "Entries": [ + { + "ID": "08042e61b063f319", + "Request": { + "Method": "POST", + "URL": "https://app.loops.so/api/v1/events/send", + "Header": { + "Accept-Encoding": [ + "gzip" + ], + "Content-Length": [ + "107" + ], + "User-Agent": [ + "Go-http-client/1.1" + ] + }, + "MediaType": "application/json", + "BodyParts": [ + "eyJlbWFpbCI6Im5laWwuYXJtc3Ryb25nQG1vb24uc3BhY2UiLCJldmVudE5hbWUiOiJqb2luZWRNaXNzaW9uIiwiZXZlbnRQcm9wZXJ0aWVzIjp7Im1pc3Npb24iOiJBcG9sbG8gMTEifX0=" + ] + }, + "Response": { + "StatusCode": 200, + "Proto": "HTTP/1.1", + "ProtoMajor": 1, + "ProtoMinor": 1, + "Header": { + "Access-Control-Allow-Credentials": [ + "true" + ], + "Access-Control-Allow-Headers": [ + "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version" + ], + "Access-Control-Allow-Methods": [ + "GET,OPTIONS,PATCH,DELETE,POST,PUT" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Cache-Control": [ + "public, max-age=0, must-revalidate" + ], + "Cf-Cache-Status": [ + "DYNAMIC" + ], + "Cf-Ray": [ + "8e48a9c63e85c268-VIE" + ], + "Content-Length": [ + "16" + ], + "Content-Security-Policy": [ + "default-src 'self'; connect-src 'self' https://loops-prod-mjml-bucket.s3.amazonaws.com https://loops-prod-csv-uploads.s3.amazonaws.com https://vitals.vercel-insights.com https://browser-intake-datadoghq.com https://*.google-analytics.com https://api.zapier.com https://app.atlas.so https://app.getatlas.io wss://app.atlas.so https://*.filestackapi.com https://atlas-prod-uploads.s3.amazonaws.com https://ipgeolocation.abstractapi.com https://zapier.com; script-src 'self' 'unsafe-eval' 'unsafe-inline' https://cdn.zapier.com https://www.googletagmanager.com https://app.getatlas.io https://app.atlas.so https://static.filestackapi.com https://files.atlas.so; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://cdn.zapier.com https://static.filestackapi.com; img-src 'self' blob: data: https://d3b9kr64nievew.cloudfront.net https://atlas-prod-uploads.s3.amazonaws.com https://files.getatlas.io https://files.atlas.so https://static.filestackapi.com https://cdn.filestackcontent.com https://zapier-images.imgix.net; font-src 'self' https://fonts.gstatic.com; object-src 'none'; frame-src 'self' https://zapier.com; media-src 'self' data:; worker-src 'self' blob:; base-uri 'self'; form-action 'self'; frame-ancestors 'none'; upgrade-insecure-requests;" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Mon, 18 Nov 2024 14:31:17 GMT" + ], + "Etag": [ + "\"17a6zzdutk1g\"" + ], + "Permissions-Policy": [ + "accelerometer=(), ambient-light-sensor=(), autoplay=(), battery=(), camera=(), cross-origin-isolated=(), display-capture=(), document-domain=(), encrypted-media=(), execution-while-not-rendered=(), execution-while-out-of-viewport=(), fullscreen=(), geolocation=(), gyroscope=(), keyboard-map=(), magnetometer=(), microphone=(), midi=(), navigation-override=(), payment=(), picture-in-picture=(), publickey-credentials-get=(), screen-wake-lock=(), sync-xhr=(), usb=(), web-share=(), xr-spatial-tracking=()" + ], + "Referrer-Policy": [ + "strict-origin-when-cross-origin" + ], + "Server": [ + "cloudflare" + ], + "Strict-Transport-Security": [ + "max-age=63072000" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Matched-Path": [ + "/api/v1/events/send" + ], + "X-Ratelimit-Limit": [ + "10" + ], + "X-Ratelimit-Remaining": [ + "9" + ], + "X-Vercel-Cache": [ + "MISS" + ], + "X-Vercel-Id": [ + "fra1::iad1::c627s-1731940276337-17adbbf856d6" + ] + }, + "Body": "eyJzdWNjZXNzIjp0cnVlfQ==" + } + } + ] +} \ No newline at end of file diff --git a/testdata/send-transactional-email.replay.json b/testdata/send-transactional-email.replay.json new file mode 100644 index 0000000..270bd6c --- /dev/null +++ b/testdata/send-transactional-email.replay.json @@ -0,0 +1,130 @@ +{ + "Initial": null, + "Version": "0.2", + "Converter": { + "ScrubBody": null, + "ClearHeaders": [ + "^X-Goog-.*Encryption-Key$" + ], + "RemoveRequestHeaders": [ + "^Authorization$", + "^Proxy-Authorization$", + "^Connection$", + "^Content-Type$", + "^Date$", + "^Host$", + "^Transfer-Encoding$", + "^Via$", + "^X-Forwarded-.*$", + "^X-Cloud-Trace-Context$", + "^X-Goog-Api-Client$", + "^X-Google-.*$", + "^X-Gfe-.*$" + ], + "RemoveResponseHeaders": [ + "^X-Google-.*$", + "^X-Gfe-.*$" + ], + "ClearParams": null, + "RemoveParams": null + }, + "Entries": [ + { + "ID": "ad9a1478cbdd308a", + "Request": { + "Method": "POST", + "URL": "https://app.loops.so/api/v1/transactional", + "Header": { + "Accept-Encoding": [ + "gzip" + ], + "Content-Length": [ + "110" + ], + "User-Agent": [ + "Go-http-client/1.1" + ] + }, + "MediaType": "application/json", + "BodyParts": [ + "eyJ0cmFuc2FjdGlvbmFsSWQiOiJjbTNuMnZqdXgwMGNnZXllZmxldzlseTJ3IiwiZW1haWwiOiJ0ZXN0QGV4YW1wbGUuY29tIiwiZGF0YVZhcmlhYmxlcyI6eyJuYW1lIjoiTXIuIFRlc3QifX0=" + ] + }, + "Response": { + "StatusCode": 200, + "Proto": "HTTP/1.1", + "ProtoMajor": 1, + "ProtoMinor": 1, + "Header": { + "Access-Control-Allow-Credentials": [ + "true" + ], + "Access-Control-Allow-Headers": [ + "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version" + ], + "Access-Control-Allow-Methods": [ + "GET,OPTIONS,PATCH,DELETE,POST,PUT" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Cache-Control": [ + "public, max-age=0, must-revalidate" + ], + "Cf-Cache-Status": [ + "DYNAMIC" + ], + "Cf-Ray": [ + "8e48abafa8c95ad1-VIE" + ], + "Content-Length": [ + "16" + ], + "Content-Security-Policy": [ + "default-src 'self'; connect-src 'self' https://loops-prod-mjml-bucket.s3.amazonaws.com https://loops-prod-csv-uploads.s3.amazonaws.com https://vitals.vercel-insights.com https://browser-intake-datadoghq.com https://*.google-analytics.com https://api.zapier.com https://app.atlas.so https://app.getatlas.io wss://app.atlas.so https://*.filestackapi.com https://atlas-prod-uploads.s3.amazonaws.com https://ipgeolocation.abstractapi.com https://zapier.com; script-src 'self' 'unsafe-eval' 'unsafe-inline' https://cdn.zapier.com https://www.googletagmanager.com https://app.getatlas.io https://app.atlas.so https://static.filestackapi.com https://files.atlas.so; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://cdn.zapier.com https://static.filestackapi.com; img-src 'self' blob: data: https://d3b9kr64nievew.cloudfront.net https://atlas-prod-uploads.s3.amazonaws.com https://files.getatlas.io https://files.atlas.so https://static.filestackapi.com https://cdn.filestackcontent.com https://zapier-images.imgix.net; font-src 'self' https://fonts.gstatic.com; object-src 'none'; frame-src 'self' https://zapier.com; media-src 'self' data:; worker-src 'self' blob:; base-uri 'self'; form-action 'self'; frame-ancestors 'none'; upgrade-insecure-requests;" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Mon, 18 Nov 2024 14:32:35 GMT" + ], + "Etag": [ + "\"17a6zzdutk1g\"" + ], + "Permissions-Policy": [ + "accelerometer=(), ambient-light-sensor=(), autoplay=(), battery=(), camera=(), cross-origin-isolated=(), display-capture=(), document-domain=(), encrypted-media=(), execution-while-not-rendered=(), execution-while-out-of-viewport=(), fullscreen=(), geolocation=(), gyroscope=(), keyboard-map=(), magnetometer=(), microphone=(), midi=(), navigation-override=(), payment=(), picture-in-picture=(), publickey-credentials-get=(), screen-wake-lock=(), sync-xhr=(), usb=(), web-share=(), xr-spatial-tracking=()" + ], + "Referrer-Policy": [ + "strict-origin-when-cross-origin" + ], + "Server": [ + "cloudflare" + ], + "Strict-Transport-Security": [ + "max-age=63072000" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Matched-Path": [ + "/api/v1/transactional" + ], + "X-Ratelimit-Limit": [ + "10" + ], + "X-Ratelimit-Remaining": [ + "9" + ], + "X-Vercel-Cache": [ + "MISS" + ], + "X-Vercel-Id": [ + "fra1::iad1::4t5wp-1731940354561-ddf8f93e867a" + ] + }, + "Body": "eyJzdWNjZXNzIjp0cnVlfQ==" + } + } + ] +} \ No newline at end of file diff --git a/testdata/test-api-key-invalid.replay.json b/testdata/test-api-key-invalid.replay.json new file mode 100644 index 0000000..a9d5560 --- /dev/null +++ b/testdata/test-api-key-invalid.replay.json @@ -0,0 +1,109 @@ +{ + "Initial": null, + "Version": "0.2", + "Converter": { + "ScrubBody": null, + "ClearHeaders": [ + "^X-Goog-.*Encryption-Key$" + ], + "RemoveRequestHeaders": [ + "^Authorization$", + "^Proxy-Authorization$", + "^Connection$", + "^Content-Type$", + "^Date$", + "^Host$", + "^Transfer-Encoding$", + "^Via$", + "^X-Forwarded-.*$", + "^X-Cloud-Trace-Context$", + "^X-Goog-Api-Client$", + "^X-Google-.*$", + "^X-Gfe-.*$" + ], + "RemoveResponseHeaders": [ + "^X-Google-.*$", + "^X-Gfe-.*$" + ], + "ClearParams": null, + "RemoveParams": null + }, + "Entries": [ + { + "ID": "55c156b20355fb38", + "Request": { + "Method": "GET", + "URL": "https://app.loops.so/api/v1/api-key", + "Header": { + "Accept-Encoding": [ + "gzip" + ], + "User-Agent": [ + "Go-http-client/1.1" + ] + }, + "MediaType": "application/json", + "BodyParts": [ + "" + ] + }, + "Response": { + "StatusCode": 401, + "Proto": "HTTP/1.1", + "ProtoMajor": 1, + "ProtoMinor": 1, + "Header": { + "Access-Control-Allow-Credentials": [ + "true" + ], + "Access-Control-Allow-Headers": [ + "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version" + ], + "Access-Control-Allow-Methods": [ + "GET,OPTIONS,PATCH,DELETE,POST,PUT" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Cache-Control": [ + "public, max-age=0, must-revalidate" + ], + "Cf-Cache-Status": [ + "DYNAMIC" + ], + "Cf-Ray": [ + "8e48b031ec775ba1-VIE" + ], + "Content-Security-Policy": [ + "default-src 'self'; connect-src 'self' https://loops-prod-mjml-bucket.s3.amazonaws.com https://loops-prod-csv-uploads.s3.amazonaws.com https://vitals.vercel-insights.com https://browser-intake-datadoghq.com https://*.google-analytics.com https://api.zapier.com https://app.atlas.so https://app.getatlas.io wss://app.atlas.so https://*.filestackapi.com https://atlas-prod-uploads.s3.amazonaws.com https://ipgeolocation.abstractapi.com https://zapier.com; script-src 'self' 'unsafe-eval' 'unsafe-inline' https://cdn.zapier.com https://www.googletagmanager.com https://app.getatlas.io https://app.atlas.so https://static.filestackapi.com https://files.atlas.so; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://cdn.zapier.com https://static.filestackapi.com; img-src 'self' blob: data: https://d3b9kr64nievew.cloudfront.net https://atlas-prod-uploads.s3.amazonaws.com https://files.getatlas.io https://files.atlas.so https://static.filestackapi.com https://cdn.filestackcontent.com https://zapier-images.imgix.net; font-src 'self' https://fonts.gstatic.com; object-src 'none'; frame-src 'self' https://zapier.com; media-src 'self' data:; worker-src 'self' blob:; base-uri 'self'; form-action 'self'; frame-ancestors 'none'; upgrade-insecure-requests;" + ], + "Content-Type": [ + "application/json" + ], + "Date": [ + "Mon, 18 Nov 2024 14:35:39 GMT" + ], + "Permissions-Policy": [ + "accelerometer=(), ambient-light-sensor=(), autoplay=(), battery=(), camera=(), cross-origin-isolated=(), display-capture=(), document-domain=(), encrypted-media=(), execution-while-not-rendered=(), execution-while-out-of-viewport=(), fullscreen=(), geolocation=(), gyroscope=(), keyboard-map=(), magnetometer=(), microphone=(), midi=(), navigation-override=(), payment=(), picture-in-picture=(), publickey-credentials-get=(), screen-wake-lock=(), sync-xhr=(), usb=(), web-share=(), xr-spatial-tracking=()" + ], + "Referrer-Policy": [ + "strict-origin-when-cross-origin" + ], + "Server": [ + "cloudflare" + ], + "Strict-Transport-Security": [ + "max-age=63072000" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Vercel-Id": [ + "fra1::52hkd-1731940539264-f8182954d4aa" + ] + }, + "Body": "eyJlcnJvciI6IkludmFsaWQgQVBJIGtleSJ9" + } + } + ] +} \ No newline at end of file diff --git a/testdata/test-api-key.replay.json b/testdata/test-api-key.replay.json new file mode 100644 index 0000000..e1504bc --- /dev/null +++ b/testdata/test-api-key.replay.json @@ -0,0 +1,127 @@ +{ + "Initial": null, + "Version": "0.2", + "Converter": { + "ScrubBody": null, + "ClearHeaders": [ + "^X-Goog-.*Encryption-Key$" + ], + "RemoveRequestHeaders": [ + "^Authorization$", + "^Proxy-Authorization$", + "^Connection$", + "^Content-Type$", + "^Date$", + "^Host$", + "^Transfer-Encoding$", + "^Via$", + "^X-Forwarded-.*$", + "^X-Cloud-Trace-Context$", + "^X-Goog-Api-Client$", + "^X-Google-.*$", + "^X-Gfe-.*$" + ], + "RemoveResponseHeaders": [ + "^X-Google-.*$", + "^X-Gfe-.*$" + ], + "ClearParams": null, + "RemoveParams": null + }, + "Entries": [ + { + "ID": "94b4c79d8e121234", + "Request": { + "Method": "GET", + "URL": "https://app.loops.so/api/v1/api-key", + "Header": { + "Accept-Encoding": [ + "gzip" + ], + "User-Agent": [ + "Go-http-client/1.1" + ] + }, + "MediaType": "application/json", + "BodyParts": [ + "" + ] + }, + "Response": { + "StatusCode": 200, + "Proto": "HTTP/1.1", + "ProtoMajor": 1, + "ProtoMinor": 1, + "Header": { + "Access-Control-Allow-Credentials": [ + "true" + ], + "Access-Control-Allow-Headers": [ + "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version" + ], + "Access-Control-Allow-Methods": [ + "GET,OPTIONS,PATCH,DELETE,POST,PUT" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Cache-Control": [ + "public, max-age=0, must-revalidate" + ], + "Cf-Cache-Status": [ + "DYNAMIC" + ], + "Cf-Ray": [ + "8e48af3dfd8b5a42-VIE" + ], + "Content-Length": [ + "45" + ], + "Content-Security-Policy": [ + "default-src 'self'; connect-src 'self' https://loops-prod-mjml-bucket.s3.amazonaws.com https://loops-prod-csv-uploads.s3.amazonaws.com https://vitals.vercel-insights.com https://browser-intake-datadoghq.com https://*.google-analytics.com https://api.zapier.com https://app.atlas.so https://app.getatlas.io wss://app.atlas.so https://*.filestackapi.com https://atlas-prod-uploads.s3.amazonaws.com https://ipgeolocation.abstractapi.com https://zapier.com; script-src 'self' 'unsafe-eval' 'unsafe-inline' https://cdn.zapier.com https://www.googletagmanager.com https://app.getatlas.io https://app.atlas.so https://static.filestackapi.com https://files.atlas.so; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://cdn.zapier.com https://static.filestackapi.com; img-src 'self' blob: data: https://d3b9kr64nievew.cloudfront.net https://atlas-prod-uploads.s3.amazonaws.com https://files.getatlas.io https://files.atlas.so https://static.filestackapi.com https://cdn.filestackcontent.com https://zapier-images.imgix.net; font-src 'self' https://fonts.gstatic.com; object-src 'none'; frame-src 'self' https://zapier.com; media-src 'self' data:; worker-src 'self' blob:; base-uri 'self'; form-action 'self'; frame-ancestors 'none'; upgrade-insecure-requests;" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Mon, 18 Nov 2024 14:35:00 GMT" + ], + "Etag": [ + "\"d0a2c5wyqd19\"" + ], + "Permissions-Policy": [ + "accelerometer=(), ambient-light-sensor=(), autoplay=(), battery=(), camera=(), cross-origin-isolated=(), display-capture=(), document-domain=(), encrypted-media=(), execution-while-not-rendered=(), execution-while-out-of-viewport=(), fullscreen=(), geolocation=(), gyroscope=(), keyboard-map=(), magnetometer=(), microphone=(), midi=(), navigation-override=(), payment=(), picture-in-picture=(), publickey-credentials-get=(), screen-wake-lock=(), sync-xhr=(), usb=(), web-share=(), xr-spatial-tracking=()" + ], + "Referrer-Policy": [ + "strict-origin-when-cross-origin" + ], + "Server": [ + "cloudflare" + ], + "Strict-Transport-Security": [ + "max-age=63072000" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Matched-Path": [ + "/api/v1/api-key" + ], + "X-Ratelimit-Limit": [ + "10" + ], + "X-Ratelimit-Remaining": [ + "9" + ], + "X-Vercel-Cache": [ + "BYPASS" + ], + "X-Vercel-Id": [ + "fra1::iad1::nwjn7-1731940500255-ad39699a67fa" + ] + }, + "Body": "eyJzdWNjZXNzIjp0cnVlLCJ0ZWFtTmFtZSI6IlRpbGVib3ggU3RhZ2luZyJ9" + } + } + ] +} \ No newline at end of file diff --git a/testdata/update-contact.replay.json b/testdata/update-contact.replay.json new file mode 100644 index 0000000..19c45af --- /dev/null +++ b/testdata/update-contact.replay.json @@ -0,0 +1,130 @@ +{ + "Initial": null, + "Version": "0.2", + "Converter": { + "ScrubBody": null, + "ClearHeaders": [ + "^X-Goog-.*Encryption-Key$" + ], + "RemoveRequestHeaders": [ + "^Authorization$", + "^Proxy-Authorization$", + "^Connection$", + "^Content-Type$", + "^Date$", + "^Host$", + "^Transfer-Encoding$", + "^Via$", + "^X-Forwarded-.*$", + "^X-Cloud-Trace-Context$", + "^X-Goog-Api-Client$", + "^X-Google-.*$", + "^X-Gfe-.*$" + ], + "RemoveResponseHeaders": [ + "^X-Google-.*$", + "^X-Gfe-.*$" + ], + "ClearParams": null, + "RemoveParams": null + }, + "Entries": [ + { + "ID": "4ca9bfedf1a9c11b", + "Request": { + "Method": "PUT", + "URL": "https://app.loops.so/api/v1/contacts/update", + "Header": { + "Accept-Encoding": [ + "gzip" + ], + "Content-Length": [ + "112" + ], + "User-Agent": [ + "Go-http-client/1.1" + ] + }, + "MediaType": "application/json", + "BodyParts": [ + "eyJlbWFpbCI6Im5ldy10ZXN0LW1haWxAZXhhbXBsZS5jb20iLCJmaXJzdE5hbWUiOiJUZXN0IiwibGFzdE5hbWUiOiJVc2VyIiwic3Vic2NyaWJlZCI6dHJ1ZSwidXNlcklkIjoidXNlcl8xMjMifQ==" + ] + }, + "Response": { + "StatusCode": 200, + "Proto": "HTTP/1.1", + "ProtoMajor": 1, + "ProtoMinor": 1, + "Header": { + "Access-Control-Allow-Credentials": [ + "true" + ], + "Access-Control-Allow-Headers": [ + "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version" + ], + "Access-Control-Allow-Methods": [ + "GET,OPTIONS,PATCH,DELETE,POST,PUT" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Cache-Control": [ + "public, max-age=0, must-revalidate" + ], + "Cf-Cache-Status": [ + "DYNAMIC" + ], + "Cf-Ray": [ + "8e48a073ec205b87-VIE" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Security-Policy": [ + "default-src 'self'; connect-src 'self' https://loops-prod-mjml-bucket.s3.amazonaws.com https://loops-prod-csv-uploads.s3.amazonaws.com https://vitals.vercel-insights.com https://browser-intake-datadoghq.com https://*.google-analytics.com https://api.zapier.com https://app.atlas.so https://app.getatlas.io wss://app.atlas.so https://*.filestackapi.com https://atlas-prod-uploads.s3.amazonaws.com https://ipgeolocation.abstractapi.com https://zapier.com; script-src 'self' 'unsafe-eval' 'unsafe-inline' https://cdn.zapier.com https://www.googletagmanager.com https://app.getatlas.io https://app.atlas.so https://static.filestackapi.com https://files.atlas.so; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://cdn.zapier.com https://static.filestackapi.com; img-src 'self' blob: data: https://d3b9kr64nievew.cloudfront.net https://atlas-prod-uploads.s3.amazonaws.com https://files.getatlas.io https://files.atlas.so https://static.filestackapi.com https://cdn.filestackcontent.com https://zapier-images.imgix.net; font-src 'self' https://fonts.gstatic.com; object-src 'none'; frame-src 'self' https://zapier.com; media-src 'self' data:; worker-src 'self' blob:; base-uri 'self'; form-action 'self'; frame-ancestors 'none'; upgrade-insecure-requests;" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Mon, 18 Nov 2024 14:24:54 GMT" + ], + "Etag": [ + "W/\"zbn3650bvy1d\"" + ], + "Permissions-Policy": [ + "accelerometer=(), ambient-light-sensor=(), autoplay=(), battery=(), camera=(), cross-origin-isolated=(), display-capture=(), document-domain=(), encrypted-media=(), execution-while-not-rendered=(), execution-while-out-of-viewport=(), fullscreen=(), geolocation=(), gyroscope=(), keyboard-map=(), magnetometer=(), microphone=(), midi=(), navigation-override=(), payment=(), picture-in-picture=(), publickey-credentials-get=(), screen-wake-lock=(), sync-xhr=(), usb=(), web-share=(), xr-spatial-tracking=()" + ], + "Referrer-Policy": [ + "strict-origin-when-cross-origin" + ], + "Server": [ + "cloudflare" + ], + "Strict-Transport-Security": [ + "max-age=63072000" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Matched-Path": [ + "/api/v1/contacts/update" + ], + "X-Ratelimit-Limit": [ + "10" + ], + "X-Ratelimit-Remaining": [ + "9" + ], + "X-Vercel-Cache": [ + "MISS" + ], + "X-Vercel-Id": [ + "fra1::iad1::c5kpb-1731939894416-cb1d16661fee" + ] + }, + "Body": "H4sIAAAAAAAAA6pWKi5NTk4tLlayKikqTdVRykxRslJKzjXOMzHPzzA3MDTIKCgxyU1Nr6oqLM0qUaoFAAAA//8DAP/EpzQxAAAA" + } + } + ] +} \ No newline at end of file