From 35e9792d25290440643b06d45b13fdaf4d0c6637 Mon Sep 17 00:00:00 2001 From: Ory Medina Date: Thu, 23 Jul 2026 11:58:24 -0600 Subject: [PATCH] [FIX] Use readyToLicense instead of allowedOnly on search --- internal/client/tollbit/client.go | 2 +- internal/client/tollbit/client_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/client/tollbit/client.go b/internal/client/tollbit/client.go index 00e36dc..55f8dfd 100644 --- a/internal/client/tollbit/client.go +++ b/internal/client/tollbit/client.go @@ -183,7 +183,7 @@ func (c *client) Search(ctx context.Context, params SearchParams, token agent.To q.Set("properties", properties) } if params.ProgrammaticOnlySet { - q.Set("allowedOnly", strconv.FormatBool(params.ProgrammaticOnly)) + q.Set("readyToLicense", strconv.FormatBool(params.ProgrammaticOnly)) } u := c.resolve("/agents/v1/search") diff --git a/internal/client/tollbit/client_test.go b/internal/client/tollbit/client_test.go index 939ce8c..b8ebee8 100644 --- a/internal/client/tollbit/client_test.go +++ b/internal/client/tollbit/client_test.go @@ -52,8 +52,8 @@ func TestSearch(t *testing.T) { if r.URL.Query().Get("properties") != "example.com,other.com" { t.Fatalf("unexpected properties: %q", r.URL.Query().Get("properties")) } - if r.URL.Query().Get("allowedOnly") != "true" { - t.Fatalf("unexpected allowedOnly: %q", r.URL.Query().Get("allowedOnly")) + if r.URL.Query().Get("readyToLicense") != "true" { + t.Fatalf("unexpected readyToLicense: %q", r.URL.Query().Get("readyToLicense")) } if r.Header.Get("Authorization") != "Bearer "+token.RawToken { t.Fatalf("unexpected authorization: %q", r.Header.Get("Authorization"))