Skip to Content

API reference

Signatures, options, and return types for the public APIs of @osdk/react, @osdk/client, @osdk/oauth, and @osdk/aip-core.

Look up the exact signature, options, and return type of each public API. Most option and return tables are generated from the TypeScript source and its JSDoc; a page says so when a table is written by hand. For walkthroughs, follow the "See also" links on each page.

@osdk/react

APIDescription
OsdkProviderShares a client and its cache with the hooks below it.
useOsdkObjectsLoads a list of objects of one type or interface.
useOsdkObjectLoads one object by primary key, or observes an instance.
useLinksLoads the objects linked from one or more objects.
useObjectSetLoads a list from an ObjectSet, with set operations and pivots.
useStableObjectSetKeeps an ObjectSet referentially stable across renders.
useOsdkAggregationRuns a server-side aggregation.
useOsdkFunctionExecutes a function and caches the result.
useOsdkFunctionsExecutes several functions from one hook.
useOsdkActionApplies or validates an action.
useDebouncedCallbackDebounces a callback, with cancel and flush.
useOsdkMetadataFetches metadata for an object type, interface, or action.
useOsdkClientReturns the Client from OsdkProvider.
useObservableClientReturns the ObservableClient that backs the cache.
@osdk/react/testingTestOsdkProvider and fakeObservableClient for unit tests.

@osdk/react/platform-apis

APIDescription
useCurrentFoundryUserGets the signed-in user.
useFoundryUserGets a user by ID.
useFoundryUsersListLists users, one page at a time.
useMarkingsLists markings.
useMarkingCategoriesLists marking categories.
useUserViewMarkingsGets the markings a user can view.
useCbacBannerGets the classification banner for marking IDs.
useCbacMarkingRestrictionsGets implied, disallowed, and required markings.

@osdk/client

APIDescription
createClientCreates the client for one Ontology.
createPlatformClientCreates a client for platform APIs only.
ObjectSetFilters, set operations, pivots, aggregation, paging, and subscriptions.
Osdk.InstanceThe type of a loaded object and its $ fields.
WhereClauseFilter operators by property type.
PalantirApiError, ActionValidationErrorErrors thrown by the client.

@osdk/oauth

APIDescription
createPublicOauthClientBrowser sign-in with the authorization code flow and PKCE.
createConfidentialOauthClientServer-side tokens from a client ID and secret.
createAuthlessClientA token provider for public resources.

@osdk/aip-core

APIDescription
foundryModelCreates a model handle for the Language Model Service.
generateTextGenerates a complete response.
streamTextStreams a response as it is generated.
LmsChatTransportA ChatTransport for chat UIs.
generateMessageId, getUIMessageTextHelpers for UIMessage conversations.

On this page