🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@opvious/api

Package Overview
Dependencies
Maintainers
1
Versions
155
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opvious/api

API resources

Source
npmnpm
Version
0.18.4
Version published
Weekly downloads
145
-29.95%
Maintainers
1
Weekly downloads
 
Created
Source

Opvious API

This package contains auto-generated types for Opvious' GraphQL API. Consider also using our higher level SDK.

Quickstart

npm i @opvious/api

You'll need an API access token to call most SDK methods. Once you have it, you can use this package to emit type-safe API requests.

import {createSdk, createGraphqlSdk} from '@opvious/api';

// Typesafe REST SDK (data operations)
const sdk = createSdk('https://api.beta.opvious.io', {
  headers: {authorization: process.env.OPVIOUS_TOKEN},
});

// Typesafe GraphQL SDK (metadata operations)
const graphqlSdk = createGraphqlSdk(sdk);

Resources

This package includes the following resource files:

  • OpenAPI specification (resources/openapi.yaml);
  • GraphQL schema (resources/graphql/schema.gql);
  • GraphQL operations (resources/graphql/**/*.graphql).

Keywords

graphql

FAQs

Package last updated on 20 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts