You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d5e98fa
Browse filesBrowse the repository at this point in the historyBrowse files
feat(credentials): regional and instance hosts for saved LaunchDarkly, LangSmith, New Relic, Square, SendGrid, Hex, and Sentry credentials (#9926)
* feat(credentials): add defaulted region fields to token credentials and LaunchDarkly EU and federal instances
A token credential's connection field can now declare a fixed option set
(rendered as a dropdown) and a default value. The default is what a create
that omits the field gets, and what a credential saved before the field
existed resolves to, so existing credentials and API callers keep the host
they always used. A reconnect that leaves the field blank keeps the stored
value instead of falling back to the default.
LaunchDarkly is the first provider to use it: the access token is checked at,
and every LaunchDarkly tool sends it to, the commercial, EU
(app.eu.launchdarkly.com), or federal (app.launchdarkly.us) instance it was
created in. Runs without a saved credential keep the commercial host.
* feat(langsmith): verify and run saved LangSmith keys in their region
A LangSmith API key only authenticates in the region its organization lives
in. The saved credential now carries that region (GCP US by default, or GCP
EU, GCP APAC, AWS US, or Azure US), and the key check and every LangSmith
tool use its documented API host. Credentials saved before, and runs without
a saved credential, stay on api.smith.langchain.com.
* feat(new-relic): add the JP data center to saved keys, tools, and the legacy block
New Relic now documents a Japan region whose NerdGraph endpoint is
api.jp.newrelic.com. Saved User API keys can be verified and run there, the
tools route jp to it, and the legacy block's region dropdown offers it. The
saved key's region field is now a dropdown. Unknown region values still fall
back to the US endpoint, as workflows saved before regions expect.
* feat(square): verify and run saved Square tokens in the sandbox
Square credentials and resources of one environment cannot be used in the
other. The saved credential now carries its environment (production by
default, or sandbox), and the token check, every Square tool, and the catalog
image upload operation call connect.squareup.com or
connect.squareupsandbox.com accordingly. Credentials saved before, and runs
without a saved credential, stay on production.
* feat(sendgrid): verify and run saved keys of EU regional subusers on the EU host
SendGrid serves regional subusers in the EU from api.eu.sendgrid.com. The
saved credential now carries its region (global by default, or eu), and the
key check, every SendGrid tool, and the mail send operation use that host.
Credentials saved before, and runs without a saved credential, stay on
api.sendgrid.com. The connect modal notes that Marketing Campaigns actions
are not available to EU subusers.
* feat(hex): verify and run saved Hex tokens on the workspace's hex.tech host
Hex serves EU multi-tenant, HIPAA multi-tenant, and single-tenant workspaces
from their own hex.tech host instead of app.hex.tech. The saved credential
now carries that host (app.hex.tech by default), accepting only a single
label under hex.tech so a token is only ever sent to Hex, and the token check
and every Hex tool use it. Credentials saved before, and runs without a saved
credential, stay on app.hex.tech.
* test(credentials): type the regional host tests and keep region option types module-private
* feat(sentry): verify and run saved Sentry tokens in their data storage region
Sentry serves organizations whose data is stored in the EU from de.sentry.io,
and its organization list is per region. The saved credential now carries
its region (us by default, or de), and the token check and every Sentry tool
call sentry.io or de.sentry.io accordingly. Credentials saved before, and
runs without a saved credential, stay on sentry.io.
* feat(credentials): report a defaulted region field's default in the provider catalog
The v2 provider catalog marked a defaulted region, instance, or host field optional without
saying what it defaults to. Each field now carries an additive optional defaultValue, and the
OpenAPI document and CLI client are regenerated.
* docs(square): say a saved credential can hold a sandbox access token
* fix(credentials): keep default-region token credentials as they were and share region definitions
- A credential on its provider's default region or host keeps the bare service display name,
and a vendor region host that fails to resolve is reported as the vendor being unavailable,
not a typed host that was not found.
- defaultValue is honored on the domain field only; providerWorkspaceId keeps its required,
non-defaulted handling everywhere, so a blank reconnect can never reset it.
- One defineCredentialRegions factory now holds each vendor's region ids, hosts, labels,
default, API base, and hidden tool param (LaunchDarkly, LangSmith, New Relic, SendGrid,
Sentry, Square); the internal SendGrid and Square schemas validate against it, and the New
Relic descriptor and block take their options from it.
- One isTokenServiceAccountFieldRequired predicate replaces the inline defaulted-is-optional
checks.
- Hex refuses its known non-workspace hex.tech labels (status, learn, docs, www, help,
community, blog), and the pattern's comment no longer claims more than it guarantees.
- Drops a mock-only and two pass-through tests; adds Sentry to the default-region tables.
* test(credentials): guard a named reconnect region against the stored one
Fold the named-region reconnect case into the blank-reconnect table as a
contrast row on a credential stored in eu, so it fails if a reconnect
always keeps the stored region.
* test(credentials): drop the repeated mock reset in the legacy region tests
Copy file name to clipboardExpand all lines: apps/docs/content/docs/integrations/square.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ import { ReferenceDetails } from "@/components/ui/reference-details"
12
12
{/* MANUAL-CONTENT-START:intro */}
13
13
Use [Square](https://squareup.com/) to take, retrieve, list, cancel, complete, or refund payments; manage customer profiles; create, retrieve, search, or pay for orders; and create, publish, cancel, or delete invoices.
14
14
15
-
The actions also manage catalog objects and images, read inventory counts, and look up locations. Connect with a saved Square credential holding a production access token. Payment and refund actions change live commerce records; use the action's idempotency fields before running them.
15
+
The actions also manage catalog objects and images, read inventory counts, and look up locations. Connect with a saved Square credential holding a production or sandbox access token, and choose the environment that issued it; a sandbox credential runs every action against the Square sandbox. Payment and refund actions on a production credential change live commerce records; use the action's idempotency fields before running them.
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/integrations/components/connect-service-account-modal/token-service-account-modal.tsx
+68-35Lines changed: 68 additions & 35 deletions
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,7 @@ import type { ServiceAccountSecretFields } from '@/lib/credentials/service-accou
0 commit comments