@@ -36,7 +36,7 @@ You can also load the client-side SDK via `<script>` tag. You can run the latest
3636or a specific version:
3737
3838``` html
39- <script src =" https://unpkg.com/@pipedream/sdk@0 .0.13 /dist/browser/index.js" ></script >
39+ <script src =" https://unpkg.com/@pipedream/sdk@1 .0.6 /dist/browser/index.js" ></script >
4040```
4141
4242## Authentication
@@ -50,7 +50,7 @@ Most of your interactions with the Connect API will happen on the server, to pro
5050[ Create a Pipedream OAuth client] ( /rest-api/auth#oauth ) and instantiate the SDK with your client ID and secret:
5151
5252``` typescript
53- import { createBackendClient } from " @pipedream/sdk" ;
53+ import { createBackendClient } from " @pipedream/sdk/server " ;
5454
5555// These secrets should be saved securely and passed to your environment
5656const pd = createBackendClient ({
@@ -73,7 +73,7 @@ You'll primarily use the browser SDK to let your users securely connect apps fro
7373Here's a Next.js example [ from our quickstart] ( /connect/quickstart ) :
7474
7575``` typescript
76- import { createFrontendClient } from " @pipedream/sdk"
76+ import { createFrontendClient } from " @pipedream/sdk/browser "
7777// Example from our Next.js app
7878import { serverConnectTokenCreate } from " ./server"
7979
@@ -109,7 +109,7 @@ Some API endpoints accept an [environment](/connect/environments) parameter. Thi
109109Always set the environment when you create the SDK client:
110110
111111``` typescript
112- import { createBackendClient } from " @pipedream/sdk" ;
112+ import { createBackendClient } from " @pipedream/sdk/server " ;
113113
114114const pd = createBackendClient ({
115115 environment: " development" , // change to production if running for a test production account, or in production
@@ -211,7 +211,7 @@ import {
211211 type ConnectAPIResponse ,
212212 type ConnectTokenCreateOpts ,
213213 type ConnectTokenResponse ,
214- } from " @pipedream/sdk" ;
214+ } from " @pipedream/sdk/server " ;
215215
216216const pd = createBackendClient ({
217217 environment: " development" , // change to production if running for a test production account, or in production
@@ -230,7 +230,7 @@ const { token, expires_at } = await pd.createConnectToken({
230230</Tabs.Tab >
231231<Tabs.Tab >
232232``` javascript
233- import { createBackendClient } from " @pipedream/sdk" ;
233+ import { createBackendClient } from " @pipedream/sdk/server " ;
234234
235235const pd = createBackendClient ({
236236 environment: " development" , // change to production if running for a test production account, or in production
@@ -320,7 +320,7 @@ Pass `include_credentials=true` as a query-string parameter to include the accou
320320``` typescript
321321import {
322322 createBackendClient ,
323- } from " @pipedream/sdk" ;
323+ } from " @pipedream/sdk/server " ;
324324
325325const pd = createBackendClient ({
326326 environment: " development" , // change to production if running for a test production account, or in production
@@ -341,7 +341,7 @@ const accounts = await pd.getAccounts({
341341</Tabs.Tab >
342342<Tabs.Tab >
343343``` javascript
344- import { createBackendClient } from " @pipedream/sdk" ;
344+ import { createBackendClient } from " @pipedream/sdk/server " ;
345345
346346const pd = createBackendClient ({
347347 environment: " development" , // change to production if running for a test production account, or in production
@@ -488,7 +488,7 @@ Pass `include_credentials=true` as a query-string parameter to include the accou
488488``` typescript
489489import {
490490 createBackendClient ,
491- } from " @pipedream/sdk" ;
491+ } from " @pipedream/sdk/server " ;
492492
493493const pd = createBackendClient ({
494494 environment: " development" , // change to production if running for a test production account, or in production
@@ -509,7 +509,7 @@ const account = await pd.getAccountById(accountId, {
509509</Tabs.Tab >
510510<Tabs.Tab >
511511``` javascript
512- import { createBackendClient } from " @pipedream/sdk" ;
512+ import { createBackendClient } from " @pipedream/sdk/server " ;
513513
514514const pd = createBackendClient ({
515515 environment: " development" , // change to production if running for a test production account, or in production
@@ -632,7 +632,7 @@ DELETE /{project_id}/accounts/{account_id}
632632``` typescript
633633import {
634634 createBackendClient ,
635- } from " @pipedream/sdk" ;
635+ } from " @pipedream/sdk/server " ;
636636
637637const pd = createBackendClient ({
638638 environment: " development" , // change to production if running for a test production account, or in production
@@ -650,7 +650,7 @@ await pd.deleteAccount(accountId);
650650</Tabs.Tab >
651651<Tabs.Tab >
652652``` javascript
653- import { createBackendClient } from " @pipedream/sdk" ;
653+ import { createBackendClient } from " @pipedream/sdk/server " ;
654654
655655const pd = createBackendClient ({
656656 environment: " development" , // change to production if running for a test production account, or in production
@@ -716,7 +716,7 @@ The app ID for which you want to delete all connected accounts. `app_id` can be
716716``` typescript
717717import {
718718 createBackendClient ,
719- } from " @pipedream/sdk" ;
719+ } from " @pipedream/sdk/server " ;
720720
721721const pd = createBackendClient ({
722722 environment: " development" , // change to production if running for a test production account, or in production
@@ -734,7 +734,7 @@ await pd.deleteAccountsByApp(appId);
734734</Tabs.Tab >
735735<Tabs.Tab >
736736``` javascript
737- import { createBackendClient } from " @pipedream/sdk" ;
737+ import { createBackendClient } from " @pipedream/sdk/server " ;
738738
739739const pd = createBackendClient ({
740740 environment: " development" , // change to production if running for a test production account, or in production
@@ -800,7 +800,7 @@ DELETE /{project_id}/users/{external_user_id}
800800``` typescript
801801import {
802802 createBackendClient ,
803- } from " @pipedream/sdk" ;
803+ } from " @pipedream/sdk/server " ;
804804
805805const pd = createBackendClient ({
806806 environment: " development" , // change to production if running for a test production account, or in production
@@ -818,7 +818,7 @@ console.log("All accounts associated with the external ID have been deleted.");
818818</Tabs.Tab >
819819<Tabs.Tab >
820820``` javascript
821- import { createBackendClient } from " @pipedream/sdk" ;
821+ import { createBackendClient } from " @pipedream/sdk/server " ;
822822
823823const pd = createBackendClient ({
824824 environment: " development" , // change to production if running for a test production account, or in production
@@ -880,7 +880,7 @@ GET /{project_id}/info
880880<Tabs items = { [' TypeScript' , ' Node.js' , ' HTTP (cURL)' ]} >
881881<Tabs.Tab >
882882``` typescript
883- import { createBackendClient } from " @pipedream/sdk" ;
883+ import { createBackendClient } from " @pipedream/sdk/server " ;
884884
885885const pd = createBackendClient ({
886886 environment: " development" , // change to production if running for a test production account, or in production
@@ -898,7 +898,7 @@ const info = await pd.getProjectInfo({
898898</Tabs.Tab >
899899<Tabs.Tab >
900900``` javascript
901- import { createBackendClient } from " @pipedream/sdk" ;
901+ import { createBackendClient } from " @pipedream/sdk/server " ;
902902
903903const pd = createBackendClient ({
904904 environment: " development" , // change to production if running for a test production account, or in production
0 commit comments