Skip to content

Commit b40eeef

Browse files
feat(api): manual updates
Adds docs and support info
1 parent 236c14e commit b40eeef

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+15
-10919
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Set up Node
2525
uses: actions/setup-node@v4
2626
with:
27-
node-version: '22'
27+
node-version: '20'
2828

2929
- name: Bootstrap
3030
run: ./scripts/bootstrap
@@ -46,7 +46,7 @@ jobs:
4646
- name: Set up Node
4747
uses: actions/setup-node@v4
4848
with:
49-
node-version: '22'
49+
node-version: '20'
5050

5151
- name: Bootstrap
5252
run: ./scripts/bootstrap
@@ -68,15 +68,6 @@ jobs:
6868
AUTH: ${{ steps.github-oidc.outputs.github_token }}
6969
SHA: ${{ github.sha }}
7070
run: ./scripts/utils/upload-artifact.sh
71-
72-
- name: Upload MCP Server tarball
73-
if: github.repository == 'stainless-sdks/perplexity-typescript'
74-
env:
75-
URL: https://pkg.stainless.com/s?subpackage=mcp-server
76-
AUTH: ${{ steps.github-oidc.outputs.github_token }}
77-
SHA: ${{ github.sha }}
78-
BASE_PATH: packages/mcp-server
79-
run: ./scripts/utils/upload-artifact.sh
8071
test:
8172
timeout-minutes: 10
8273
name: test
@@ -88,13 +79,10 @@ jobs:
8879
- name: Set up Node
8980
uses: actions/setup-node@v4
9081
with:
91-
node-version: '22'
82+
node-version: '20'
9283

9384
- name: Bootstrap
9485
run: ./scripts/bootstrap
9586

96-
- name: Build
97-
run: ./scripts/build
98-
9987
- name: Run tests
10088
run: ./scripts/test

.github/workflows/publish-npm.yml

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44
name: Publish NPM
55
on:
66
workflow_dispatch:
7-
inputs:
8-
path:
9-
description: The path to run the release in, e.g. '.' or 'packages/mcp-server'
10-
required: true
117

128
release:
139
types: [published]
@@ -16,8 +12,6 @@ jobs:
1612
publish:
1713
name: publish
1814
runs-on: ubuntu-latest
19-
permissions:
20-
contents: write
2115

2216
steps:
2317
- uses: actions/checkout@v4
@@ -33,18 +27,6 @@ jobs:
3327
3428
- name: Publish to NPM
3529
run: |
36-
if [ -n "${{ github.event.inputs.path }}" ]; then
37-
PATHS_RELEASED='[\"${{ github.event.inputs.path }}\"]'
38-
else
39-
PATHS_RELEASED='[\".\", \"packages/mcp-server\"]'
40-
fi
41-
yarn tsn scripts/publish-packages.ts "{ \"paths_released\": \"$PATHS_RELEASED\" }"
30+
bash ./bin/publish-npm
4231
env:
4332
NPM_TOKEN: ${{ secrets.PERPLEXITY_NPM_TOKEN || secrets.NPM_TOKEN }}
44-
45-
- name: Upload MCP Server DXT GitHub release asset
46-
run: |
47-
gh release upload ${{ github.event.release.tag_name }} \
48-
packages/mcp-server/perplexity_ai_perplexity_ai_api.mcpb
49-
env:
50-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,4 @@ dist-deno
88
/*.tgz
99
.idea/
1010
.eslintcache
11-
dist-bundle
12-
*.mcpb
11+

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ CHANGELOG.md
44
/deno
55

66
# don't format tsc output, will break source maps
7-
dist
7+
/dist

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 5
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/perplexity-ai%2Fperplexity-a5b37a929bd593ff0817459fc9a9c59f7c6a3af614c0485f00a212f2668f846b.yml
33
openapi_spec_hash: e25bde2df8fd479ea1e591c07adac8b6
4-
config_hash: 7d43772091847f323a5bb8c678141a83
4+
config_hash: 29552caca3e91432ed1a14f4a38487cc

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
This library provides convenient access to the Perplexity REST API from server-side TypeScript or JavaScript.
66

7-
The full API of this library can be found in [api.md](api.md).
7+
The REST API documentation can be found on [docs.perplexity.ai](https://docs.perplexity.ai/). The full API of this library can be found in [api.md](api.md).
88

99
It is generated with [Stainless](https://www.stainless.com/).
1010

SECURITY.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ before making any information public.
1818
If you encounter security issues that are not directly related to SDKs but pertain to the services
1919
or products provided by Perplexity, please follow the respective company's security reporting guidelines.
2020

21+
### Perplexity Terms and Policies
22+
23+
Please contact [email protected] for any questions or concerns regarding the security of our services.
24+
2125
---
2226

2327
Thank you for helping us keep the SDKs and systems they interact with secure.

eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default tseslint.config(
3434
},
3535
},
3636
{
37-
files: ['tests/**', 'examples/**', 'packages/**'],
37+
files: ['tests/**', 'examples/**'],
3838
rules: {
3939
'no-restricted-imports': 'off',
4040
},

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@perplexity-ai/perplexity_ai",
33
"version": "0.10.0",
44
"description": "The official TypeScript library for the Perplexity API",
5-
"author": "Perplexity <>",
5+
"author": "Perplexity <[email protected]>",
66
"types": "dist/index.d.ts",
77
"main": "dist/index.js",
88
"type": "commonjs",

packages/mcp-server/README.md

Lines changed: 0 additions & 219 deletions
This file was deleted.

0 commit comments

Comments
 (0)