open-index/open-npm huggingface dataset:
npm package: @proposal-page/proposal-page-sdk
Description: This module is a open source project with the goal of making the task of consuming the Proposal Page API easy and straight-forward
Author: Gianluca Bine
Latest version: 0.4.0

# Proposal Page - JS SDK

[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/proposal-page/sdk-js/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/proposal-page/sdk-js/?branch=master)
[![Latest Version on NPM](https://img.shields.io/npm/v/@proposal-page/proposal-page-sdk.svg?style=flat-square)](https://npmjs.com/package/@proposal-page/proposal-page-sdk)
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)
[![Build Status](https://scrutinizer-ci.com/g/proposal-page/sdk-js/badges/build.png?b=master)](https://scrutinizer-ci.com/g/proposal-page/sdk-js/build-status/master)
[![npm](https://img.shields.io/npm/dt/@proposal-page/proposal-page-sdk.svg?style=flat-square)](https://npmjs.com/package/@proposal-page/proposal-page-sdk)

Proposal Page is the most modern way to manage your business proposals.

It’s time to take a step forward. Forget old PDF format, let your customers have an online web [Proposal Page][@proposal-page] experience.

This is the official PHP SDK to interact with the [Proposal Page API][@proposal-page-api].

## Documentation

Please take a look at the [Proposal Page API Documentation][@proposal-page-api].

## Installation

You can install the package via npm or yarn:

```bash
# if you use npm
npm install @proposal-page/proposal-page-sdk

# if you use yarn
yarn add @proposal-page/proposal-page-sdk --save
```

## Usage
Please take a look at the [USAGE](USAGE.md) for more information on how to use the SDK.

## Changelog

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

## Contributing

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

## Security

If you discover any security related issues, please email support@proposalpage.com instead of using the issue tracker.

## Credits

- [Mauro André](https://github.com/mauroandre)
- [Claudinei Machado](https://github.com/cjchamado)
- [Gianluca Bine](https://github.com/Pr3d4dor)
- [All Contributors][@contributors]

## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

[@proposal-page]: https://proposalpage.com
[@proposal-page-api]: https://proposal-page.github.io/api-docs/
[@contributors]: https://github.com/proposal-page/sdk-js/graphs/contributors
npm package: @proposeflow/shared
Description: Shared types and utilities for ProposeFlow
Author: Quinton Miller
Latest version: 0.1.1

# @proposeflow/shared

Shared types and utilities used across ProposeFlow packages.

## Overview

This internal package provides:

- Common TypeScript type definitions
- Webhook signature generation and verification utilities
- Shared constants and utilities

## Usage

This package is used internally by other ProposeFlow packages:

```typescript
import { verifyWebhookSignature, generateWebhookSignature } from '@proposeflow/shared';
import type { WebhookEvent, ProposalStatus } from '@proposeflow/shared';
```

## Exports

### Types

Common type definitions shared across the API, SDK, and other packages:

- `ProposalStatus` - Proposal lifecycle states
- `WebhookEvent` - Webhook event types and payloads
- `Schema` - Schema definition types
- Other shared interfaces

### Webhook Utilities

```typescript
// Generate a webhook signature (used by API)
const signature = generateWebhookSignature({
  body: JSON.stringify(payload),
  secret: webhookSecret,
  timestamp: Date.now(),
});

// Verify a webhook signature (used by SDK/consumers)
const result = verifyWebhookSignature({
  body: rawBody,
  signature: headers['x-proposeflow-signature'],
  timestamp: headers['x-proposeflow-timestamp'],
  secret: webhookSecret,
});

if (result.valid) {
  // Signature is valid
}
```

## Development

```bash
# Build
pnpm build

# Watch mode
pnpm dev

# Type check
pnpm typecheck
```

## Note

This is an internal package (`private: true`) and is not published to npm. It's consumed via pnpm workspace dependencies.