@postpeer/node 0.3.2 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -3
- package/LICENSE +1 -1
- package/README.md +28 -27
- package/api-promise.js.map +1 -1
- package/client.d.mts +14 -14
- package/client.d.mts.map +1 -1
- package/client.d.ts +14 -14
- package/client.d.ts.map +1 -1
- package/client.js +51 -96
- package/client.js.map +1 -1
- package/client.mjs +51 -96
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts +2 -2
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts +2 -2
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.js.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.d.mts +2 -2
- package/core/error.d.mts.map +1 -1
- package/core/error.d.ts +2 -2
- package/core/error.d.ts.map +1 -1
- package/core/error.js +6 -6
- package/core/error.js.map +1 -1
- package/core/error.mjs +4 -4
- package/core/error.mjs.map +1 -1
- package/core/resource.d.mts +3 -3
- package/core/resource.d.ts +3 -3
- package/error.js.map +1 -1
- package/index.d.mts +3 -3
- package/index.d.mts.map +1 -1
- package/index.d.ts +3 -3
- package/index.d.ts.map +1 -1
- package/index.js +4 -4
- package/index.js.map +1 -1
- package/index.mjs +3 -3
- package/index.mjs.map +1 -1
- package/internal/builtin-types.d.mts +5 -5
- package/internal/builtin-types.d.mts.map +1 -1
- package/internal/builtin-types.d.ts +5 -5
- package/internal/builtin-types.d.ts.map +1 -1
- package/internal/detect-platform.d.mts.map +1 -1
- package/internal/detect-platform.d.ts.map +1 -1
- package/internal/detect-platform.js.map +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/errors.js +5 -6
- package/internal/errors.js.map +1 -1
- package/internal/errors.mjs +5 -6
- package/internal/errors.mjs.map +1 -1
- package/internal/headers.js +2 -2
- package/internal/headers.js.map +1 -1
- package/internal/headers.mjs +2 -2
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts +2 -2
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts +2 -2
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +1 -7
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +1 -7
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/utils.d.mts.map +1 -1
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.js +2 -1
- package/internal/qs/utils.js.map +1 -1
- package/internal/qs/utils.mjs +2 -1
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/request-options.js.map +1 -1
- package/internal/request-options.mjs.map +1 -1
- package/internal/shim-types.d.mts.map +1 -1
- package/internal/shim-types.d.ts.map +1 -1
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts.map +1 -1
- package/internal/shims.js +1 -1
- package/internal/shims.js.map +1 -1
- package/internal/shims.mjs +1 -1
- package/internal/shims.mjs.map +1 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.js.map +1 -1
- package/internal/to-file.mjs.map +1 -1
- package/internal/types.d.mts +11 -17
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +11 -17
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts +4 -4
- package/internal/uploads.d.ts +4 -4
- package/internal/utils/base64.js +2 -2
- package/internal/utils/base64.mjs +3 -3
- package/internal/utils/log.d.mts +3 -3
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts +3 -3
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +2 -9
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +2 -9
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.js +1 -1
- package/internal/utils/path.mjs +2 -2
- package/internal/utils/query.js.map +1 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/uuid.d.mts.map +1 -1
- package/internal/utils/uuid.d.ts.map +1 -1
- package/internal/utils/uuid.js +4 -2
- package/internal/utils/uuid.js.map +1 -1
- package/internal/utils/uuid.mjs +4 -2
- package/internal/utils/uuid.mjs.map +1 -1
- package/internal/utils/values.js +5 -5
- package/internal/utils/values.mjs +6 -6
- package/package.json +4 -4
- package/resource.js.map +1 -1
- package/resources/connect/connect.d.mts +2 -2
- package/resources/connect/connect.d.mts.map +1 -1
- package/resources/connect/connect.d.ts +2 -2
- package/resources/connect/connect.d.ts.map +1 -1
- package/resources/connect/connect.js.map +1 -1
- package/resources/connect/connect.mjs.map +1 -1
- package/resources/connect/index.d.mts +1 -1
- package/resources/connect/index.d.mts.map +1 -1
- package/resources/connect/index.d.ts +1 -1
- package/resources/connect/index.d.ts.map +1 -1
- package/resources/connect/index.js +2 -0
- package/resources/connect/index.js.map +1 -1
- package/resources/connect/index.mjs +3 -1
- package/resources/connect/index.mjs.map +1 -1
- package/resources/connect/integrations.d.mts +1 -1
- package/resources/connect/integrations.d.mts.map +1 -1
- package/resources/connect/integrations.d.ts +1 -1
- package/resources/connect/integrations.d.ts.map +1 -1
- package/resources/health.d.mts +1 -1
- package/resources/health.d.mts.map +1 -1
- package/resources/health.d.ts +1 -1
- package/resources/health.d.ts.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -0
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +6 -1
- package/resources/index.mjs.map +1 -1
- package/resources/media.d.mts.map +1 -1
- package/resources/media.d.ts.map +1 -1
- package/resources/platforms.d.mts.map +1 -1
- package/resources/platforms.d.ts.map +1 -1
- package/resources/posts/index.d.mts +2 -2
- package/resources/posts/index.d.mts.map +1 -1
- package/resources/posts/index.d.ts +2 -2
- package/resources/posts/index.d.ts.map +1 -1
- package/resources/posts/index.js +2 -0
- package/resources/posts/index.js.map +1 -1
- package/resources/posts/index.mjs +4 -2
- package/resources/posts/index.mjs.map +1 -1
- package/resources/posts/posts.d.mts +97 -262
- package/resources/posts/posts.d.mts.map +1 -1
- package/resources/posts/posts.d.ts +97 -262
- package/resources/posts/posts.d.ts.map +1 -1
- package/resources/posts/posts.js.map +1 -1
- package/resources/posts/posts.mjs +1 -1
- package/resources/posts/posts.mjs.map +1 -1
- package/resources/posts/scheduled.d.mts +3 -9
- package/resources/posts/scheduled.d.mts.map +1 -1
- package/resources/posts/scheduled.d.ts +3 -9
- package/resources/posts/scheduled.d.ts.map +1 -1
- package/resources/posts/scheduled.js.map +1 -1
- package/resources/posts/scheduled.mjs.map +1 -1
- package/src/api-promise.ts +1 -1
- package/src/client.ts +93 -184
- package/src/core/api-promise.ts +5 -10
- package/src/core/error.ts +24 -22
- package/src/core/resource.ts +3 -3
- package/src/error.ts +1 -1
- package/src/index.ts +3 -17
- package/src/internal/builtin-types.ts +9 -14
- package/src/internal/detect-platform.ts +1 -5
- package/src/internal/errors.ts +7 -7
- package/src/internal/headers.ts +2 -2
- package/src/internal/parse.ts +4 -12
- package/src/internal/qs/utils.ts +4 -1
- package/src/internal/request-options.ts +5 -1
- package/src/internal/shim-types.ts +2 -2
- package/src/internal/shims.ts +2 -4
- package/src/internal/to-file.ts +7 -7
- package/src/internal/types.ts +22 -28
- package/src/internal/uploads.ts +5 -5
- package/src/internal/utils/base64.ts +3 -3
- package/src/internal/utils/log.ts +10 -32
- package/src/internal/utils/path.ts +2 -2
- package/src/internal/utils/query.ts +1 -1
- package/src/internal/utils/uuid.ts +5 -3
- package/src/internal/utils/values.ts +6 -6
- package/src/resource.ts +1 -1
- package/src/resources/connect/connect.ts +3 -7
- package/src/resources/connect/index.ts +2 -6
- package/src/resources/connect/integrations.ts +1 -1
- package/src/resources/health.ts +1 -1
- package/src/resources/index.ts +5 -15
- package/src/resources/media.ts +4 -1
- package/src/resources/platforms.ts +3 -1
- package/src/resources/posts/index.ts +2 -18
- package/src/resources/posts/posts.ts +138 -340
- package/src/resources/posts/scheduled.ts +4 -14
- package/src/uploads.ts +1 -1
- package/src/version.ts +1 -1
- package/uploads.js.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,34 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 0.
|
|
3
|
+
## 0.5.0 (2026-04-27)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.4.0...v0.5.0](https://github.com/PostPeer-API/postpeer-node/compare/v0.4.0...v0.5.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([4d62307](https://github.com/PostPeer-API/postpeer-node/commit/4d6230790ddd0f60eb57b8f98b0361cbf16f4904))
|
|
10
|
+
* **api:** api update ([9411834](https://github.com/PostPeer-API/postpeer-node/commit/9411834d9792457de0fc2904e31a8128c21f2c5d))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Chores
|
|
14
|
+
|
|
15
|
+
* **formatter:** run prettier and eslint separately ([80fe4b5](https://github.com/PostPeer-API/postpeer-node/commit/80fe4b51aabe1b22f5275c2f1c09c360f994f75c))
|
|
16
|
+
* **internal:** more robust bootstrap script ([b581aeb](https://github.com/PostPeer-API/postpeer-node/commit/b581aeb94a851b78096edeee23bea88f491a5f9a))
|
|
17
|
+
* restructure docs search code ([162a5ca](https://github.com/PostPeer-API/postpeer-node/commit/162a5ca3ff9decf80a52a5e8849ab1bd32e84d17))
|
|
18
|
+
|
|
19
|
+
## 0.4.0 (2026-04-16)
|
|
20
|
+
|
|
21
|
+
Full Changelog: [v0.3.1...v0.4.0](https://github.com/PostPeer-API/postpeer-node/compare/v0.3.1...v0.4.0)
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
|
|
25
|
+
* **api:** manual updates ([f6c645f](https://github.com/PostPeer-API/postpeer-node/commit/f6c645f270e89f136b31e6eb77deee347721cc3c))
|
|
4
26
|
|
|
5
|
-
Full Changelog: [v0.3.1...v0.3.2](https://github.com/PostPeer-API/postpeer-typescript/compare/v0.3.1...v0.3.2)
|
|
6
27
|
|
|
7
28
|
### Chores
|
|
8
29
|
|
|
9
|
-
*
|
|
30
|
+
* sync repo ([64cc226](https://github.com/PostPeer-API/postpeer-node/commit/64cc226bdaec83152c6fe31c843a952a50ea1b52))
|
|
31
|
+
* update SDK settings ([726ba8c](https://github.com/PostPeer-API/postpeer-node/commit/726ba8cc5e14a8fec6eee1f2c8062254ad7ab49d))
|
|
10
32
|
|
|
11
33
|
## 0.3.1 (2026-04-16)
|
|
12
34
|
|
package/LICENSE
CHANGED
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
same "printed page" as the copyright notice for easier
|
|
187
187
|
identification within third-party archives.
|
|
188
188
|
|
|
189
|
-
Copyright 2026
|
|
189
|
+
Copyright 2026 Postpeer
|
|
190
190
|
|
|
191
191
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
192
|
you may not use this file except in compliance with the License.
|
package/README.md
CHANGED
|
@@ -4,9 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
This library provides convenient access to the PostPeer REST API from server-side TypeScript or JavaScript.
|
|
6
6
|
|
|
7
|
+
|
|
7
8
|
## MCP Server
|
|
8
9
|
|
|
9
|
-
Use the
|
|
10
|
+
Use the Postpeer MCP Server to enable AI assistants to interact with this API, allowing them to explore endpoints, make test requests, and use documentation to help integrate this SDK into your application.
|
|
10
11
|
|
|
11
12
|
[](https://cursor.com/en-US/install-mcp?name=postpeer-mcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsInBvc3RwZWVyLW1jcCJdLCJlbnYiOnsiUE9TVFBFRVJfQVBJX0tFWSI6Ik15IEFQSSBLZXkifX0)
|
|
12
13
|
[](https://vscode.stainless.com/mcp/%7B%22name%22%3A%22postpeer-mcp%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22postpeer-mcp%22%5D%2C%22env%22%3A%7B%22POSTPEER_API_KEY%22%3A%22My%20API%20Key%22%7D%7D)
|
|
@@ -25,9 +26,9 @@ The full API of this library can be found in [api.md](api.md).
|
|
|
25
26
|
|
|
26
27
|
<!-- prettier-ignore -->
|
|
27
28
|
```js
|
|
28
|
-
import
|
|
29
|
+
import Postpeer from '@postpeer/node';
|
|
29
30
|
|
|
30
|
-
const client = new
|
|
31
|
+
const client = new Postpeer({
|
|
31
32
|
apiKey: process.env['POSTPEER_API_KEY'], // This is the default and can be omitted
|
|
32
33
|
});
|
|
33
34
|
|
|
@@ -42,13 +43,13 @@ This library includes TypeScript definitions for all request params and response
|
|
|
42
43
|
|
|
43
44
|
<!-- prettier-ignore -->
|
|
44
45
|
```ts
|
|
45
|
-
import
|
|
46
|
+
import Postpeer from '@postpeer/node';
|
|
46
47
|
|
|
47
|
-
const client = new
|
|
48
|
+
const client = new Postpeer({
|
|
48
49
|
apiKey: process.env['POSTPEER_API_KEY'], // This is the default and can be omitted
|
|
49
50
|
});
|
|
50
51
|
|
|
51
|
-
const response:
|
|
52
|
+
const response: Postpeer.HealthCheckResponse = await client.health.check();
|
|
52
53
|
```
|
|
53
54
|
|
|
54
55
|
Documentation for each method, request param, and response field are available in docstrings and will appear on hover in most modern editors.
|
|
@@ -62,7 +63,7 @@ a subclass of `APIError` will be thrown:
|
|
|
62
63
|
<!-- prettier-ignore -->
|
|
63
64
|
```ts
|
|
64
65
|
const response = await client.health.check().catch(async (err) => {
|
|
65
|
-
if (err instanceof
|
|
66
|
+
if (err instanceof Postpeer.APIError) {
|
|
66
67
|
console.log(err.status); // 400
|
|
67
68
|
console.log(err.name); // BadRequestError
|
|
68
69
|
console.log(err.headers); // {server: 'nginx', ...}
|
|
@@ -96,7 +97,7 @@ You can use the `maxRetries` option to configure or disable this:
|
|
|
96
97
|
<!-- prettier-ignore -->
|
|
97
98
|
```js
|
|
98
99
|
// Configure the default for all requests:
|
|
99
|
-
const client = new
|
|
100
|
+
const client = new Postpeer({
|
|
100
101
|
maxRetries: 0, // default is 2
|
|
101
102
|
});
|
|
102
103
|
|
|
@@ -113,7 +114,7 @@ Requests time out after 1 minute by default. You can configure this with a `time
|
|
|
113
114
|
<!-- prettier-ignore -->
|
|
114
115
|
```ts
|
|
115
116
|
// Configure the default for all requests:
|
|
116
|
-
const client = new
|
|
117
|
+
const client = new Postpeer({
|
|
117
118
|
timeout: 20 * 1000, // 20 seconds (default is 1 minute)
|
|
118
119
|
});
|
|
119
120
|
|
|
@@ -139,7 +140,7 @@ Unlike `.asResponse()` this method consumes the body, returning once it is parse
|
|
|
139
140
|
|
|
140
141
|
<!-- prettier-ignore -->
|
|
141
142
|
```ts
|
|
142
|
-
const client = new
|
|
143
|
+
const client = new Postpeer();
|
|
143
144
|
|
|
144
145
|
const response = await client.health.check().asResponse();
|
|
145
146
|
console.log(response.headers.get('X-My-Header'));
|
|
@@ -160,13 +161,13 @@ console.log(response.ok);
|
|
|
160
161
|
|
|
161
162
|
The log level can be configured in two ways:
|
|
162
163
|
|
|
163
|
-
1. Via the `
|
|
164
|
+
1. Via the `POSTPEER_LOG` environment variable
|
|
164
165
|
2. Using the `logLevel` client option (overrides the environment variable if set)
|
|
165
166
|
|
|
166
167
|
```ts
|
|
167
|
-
import
|
|
168
|
+
import Postpeer from '@postpeer/node';
|
|
168
169
|
|
|
169
|
-
const client = new
|
|
170
|
+
const client = new Postpeer({
|
|
170
171
|
logLevel: 'debug', // Show all log messages
|
|
171
172
|
});
|
|
172
173
|
```
|
|
@@ -192,13 +193,13 @@ When providing a custom logger, the `logLevel` option still controls which messa
|
|
|
192
193
|
below the configured level will not be sent to your logger.
|
|
193
194
|
|
|
194
195
|
```ts
|
|
195
|
-
import
|
|
196
|
+
import Postpeer from '@postpeer/node';
|
|
196
197
|
import pino from 'pino';
|
|
197
198
|
|
|
198
199
|
const logger = pino();
|
|
199
200
|
|
|
200
|
-
const client = new
|
|
201
|
-
logger: logger.child({ name: '
|
|
201
|
+
const client = new Postpeer({
|
|
202
|
+
logger: logger.child({ name: 'Postpeer' }),
|
|
202
203
|
logLevel: 'debug', // Send all messages to pino, allowing it to filter
|
|
203
204
|
});
|
|
204
205
|
```
|
|
@@ -261,10 +262,10 @@ globalThis.fetch = fetch;
|
|
|
261
262
|
Or pass it to the client:
|
|
262
263
|
|
|
263
264
|
```ts
|
|
264
|
-
import
|
|
265
|
+
import Postpeer from '@postpeer/node';
|
|
265
266
|
import fetch from 'my-fetch';
|
|
266
267
|
|
|
267
|
-
const client = new
|
|
268
|
+
const client = new Postpeer({ fetch });
|
|
268
269
|
```
|
|
269
270
|
|
|
270
271
|
### Fetch options
|
|
@@ -272,9 +273,9 @@ const client = new PostPeer({ fetch });
|
|
|
272
273
|
If you want to set custom `fetch` options without overriding the `fetch` function, you can provide a `fetchOptions` object when instantiating the client or making a request. (Request-specific options override client options.)
|
|
273
274
|
|
|
274
275
|
```ts
|
|
275
|
-
import
|
|
276
|
+
import Postpeer from '@postpeer/node';
|
|
276
277
|
|
|
277
|
-
const client = new
|
|
278
|
+
const client = new Postpeer({
|
|
278
279
|
fetchOptions: {
|
|
279
280
|
// `RequestInit` options
|
|
280
281
|
},
|
|
@@ -289,11 +290,11 @@ options to requests:
|
|
|
289
290
|
<img src="https://raw.githubusercontent.com/stainless-api/sdk-assets/refs/heads/main/node.svg" align="top" width="18" height="21"> **Node** <sup>[[docs](https://github.com/nodejs/undici/blob/main/docs/docs/api/ProxyAgent.md#example---proxyagent-with-fetch)]</sup>
|
|
290
291
|
|
|
291
292
|
```ts
|
|
292
|
-
import
|
|
293
|
+
import Postpeer from '@postpeer/node';
|
|
293
294
|
import * as undici from 'undici';
|
|
294
295
|
|
|
295
296
|
const proxyAgent = new undici.ProxyAgent('http://localhost:8888');
|
|
296
|
-
const client = new
|
|
297
|
+
const client = new Postpeer({
|
|
297
298
|
fetchOptions: {
|
|
298
299
|
dispatcher: proxyAgent,
|
|
299
300
|
},
|
|
@@ -303,9 +304,9 @@ const client = new PostPeer({
|
|
|
303
304
|
<img src="https://raw.githubusercontent.com/stainless-api/sdk-assets/refs/heads/main/bun.svg" align="top" width="18" height="21"> **Bun** <sup>[[docs](https://bun.sh/guides/http/proxy)]</sup>
|
|
304
305
|
|
|
305
306
|
```ts
|
|
306
|
-
import
|
|
307
|
+
import Postpeer from '@postpeer/node';
|
|
307
308
|
|
|
308
|
-
const client = new
|
|
309
|
+
const client = new Postpeer({
|
|
309
310
|
fetchOptions: {
|
|
310
311
|
proxy: 'http://localhost:8888',
|
|
311
312
|
},
|
|
@@ -315,10 +316,10 @@ const client = new PostPeer({
|
|
|
315
316
|
<img src="https://raw.githubusercontent.com/stainless-api/sdk-assets/refs/heads/main/deno.svg" align="top" width="18" height="21"> **Deno** <sup>[[docs](https://docs.deno.com/api/deno/~/Deno.createHttpClient)]</sup>
|
|
316
317
|
|
|
317
318
|
```ts
|
|
318
|
-
import
|
|
319
|
+
import Postpeer from 'npm:@postpeer/node';
|
|
319
320
|
|
|
320
321
|
const httpClient = Deno.createHttpClient({ proxy: { url: 'http://localhost:8888' } });
|
|
321
|
-
const client = new
|
|
322
|
+
const client = new Postpeer({
|
|
322
323
|
fetchOptions: {
|
|
323
324
|
client: httpClient,
|
|
324
325
|
},
|
|
@@ -337,7 +338,7 @@ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) con
|
|
|
337
338
|
|
|
338
339
|
We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.
|
|
339
340
|
|
|
340
|
-
We are keen for your feedback; please open an [issue](https://www.github.com/PostPeer-API/postpeer-
|
|
341
|
+
We are keen for your feedback; please open an [issue](https://www.github.com/PostPeer-API/postpeer-node/issues) with questions, bugs, or suggestions.
|
|
341
342
|
|
|
342
343
|
## Requirements
|
|
343
344
|
|
package/api-promise.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-promise.js","sourceRoot":"","sources":["src/api-promise.ts"],"names":[],"mappings":";;;AAAA,yDAAyD;AACzD,
|
|
1
|
+
{"version":3,"file":"api-promise.js","sourceRoot":"","sources":["src/api-promise.ts"],"names":[],"mappings":";;;AAAA,yDAAyD;AACzD,gEAAkC"}
|
package/client.d.mts
CHANGED
|
@@ -10,7 +10,7 @@ import { Health, HealthCheckResponse, HealthVerifyAccessKeyResponse } from "./re
|
|
|
10
10
|
import { Media, MediaUploadParams, MediaUploadResponse } from "./resources/media.mjs";
|
|
11
11
|
import { PlatformListResponse, Platforms } from "./resources/platforms.mjs";
|
|
12
12
|
import { Connect, ConnectGetOAuthURLParams, ConnectGetOAuthURLResponse } from "./resources/connect/connect.mjs";
|
|
13
|
-
import { PostCreateParams, PostCreateResponse, PostDeleteResponse, PostListParams, PostListResponse, PostRetrieveResponse,
|
|
13
|
+
import { PostCreateParams, PostCreateResponse, PostDeleteResponse, PostListParams, PostListResponse, PostRetrieveResponse, Posts, Status } from "./resources/posts/posts.mjs";
|
|
14
14
|
import { type Fetch } from "./internal/builtin-types.mjs";
|
|
15
15
|
import { HeadersLike, NullableHeaders } from "./internal/headers.mjs";
|
|
16
16
|
import { FinalRequestOptions, RequestOptions } from "./internal/request-options.mjs";
|
|
@@ -23,7 +23,7 @@ export interface ClientOptions {
|
|
|
23
23
|
/**
|
|
24
24
|
* Override the default base URL for the API, e.g., "https://api.example.com/v2/"
|
|
25
25
|
*
|
|
26
|
-
* Defaults to process.env['
|
|
26
|
+
* Defaults to process.env['POSTPEER_BASE_URL'].
|
|
27
27
|
*/
|
|
28
28
|
baseURL?: string | null | undefined;
|
|
29
29
|
/**
|
|
@@ -71,7 +71,7 @@ export interface ClientOptions {
|
|
|
71
71
|
/**
|
|
72
72
|
* Set the log level.
|
|
73
73
|
*
|
|
74
|
-
* Defaults to process.env['
|
|
74
|
+
* Defaults to process.env['POSTPEER_LOG'] or 'warn' if it isn't set.
|
|
75
75
|
*/
|
|
76
76
|
logLevel?: LogLevel | undefined;
|
|
77
77
|
/**
|
|
@@ -82,9 +82,9 @@ export interface ClientOptions {
|
|
|
82
82
|
logger?: Logger | undefined;
|
|
83
83
|
}
|
|
84
84
|
/**
|
|
85
|
-
* API Client for interfacing with the
|
|
85
|
+
* API Client for interfacing with the Postpeer API.
|
|
86
86
|
*/
|
|
87
|
-
export declare class
|
|
87
|
+
export declare class Postpeer {
|
|
88
88
|
#private;
|
|
89
89
|
apiKey: string;
|
|
90
90
|
baseURL: string;
|
|
@@ -97,10 +97,10 @@ export declare class PostPeer {
|
|
|
97
97
|
protected idempotencyHeader?: string;
|
|
98
98
|
private _options;
|
|
99
99
|
/**
|
|
100
|
-
* API Client for interfacing with the
|
|
100
|
+
* API Client for interfacing with the Postpeer API.
|
|
101
101
|
*
|
|
102
102
|
* @param {string | undefined} [opts.apiKey=process.env['POSTPEER_API_KEY'] ?? undefined]
|
|
103
|
-
* @param {string} [opts.baseURL=process.env['
|
|
103
|
+
* @param {string} [opts.baseURL=process.env['POSTPEER_BASE_URL'] ?? https://api.example.com] - Override the default base URL for the API.
|
|
104
104
|
* @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
|
105
105
|
* @param {MergedRequestInit} [opts.fetchOptions] - Additional `RequestInit` options to be passed to `fetch` calls.
|
|
106
106
|
* @param {Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
|
|
@@ -157,9 +157,9 @@ export declare class PostPeer {
|
|
|
157
157
|
private buildHeaders;
|
|
158
158
|
private _makeAbort;
|
|
159
159
|
private buildBody;
|
|
160
|
-
static
|
|
160
|
+
static Postpeer: typeof Postpeer;
|
|
161
161
|
static DEFAULT_TIMEOUT: number;
|
|
162
|
-
static
|
|
162
|
+
static PostpeerError: typeof Errors.PostpeerError;
|
|
163
163
|
static APIError: typeof Errors.APIError;
|
|
164
164
|
static APIConnectionError: typeof Errors.APIConnectionError;
|
|
165
165
|
static APIConnectionTimeoutError: typeof Errors.APIConnectionTimeoutError;
|
|
@@ -179,12 +179,12 @@ export declare class PostPeer {
|
|
|
179
179
|
posts: API.Posts;
|
|
180
180
|
media: API.Media;
|
|
181
181
|
}
|
|
182
|
-
export declare namespace
|
|
182
|
+
export declare namespace Postpeer {
|
|
183
183
|
export type RequestOptions = Opts.RequestOptions;
|
|
184
|
-
export { Health as Health, type HealthCheckResponse as HealthCheckResponse, type HealthVerifyAccessKeyResponse as HealthVerifyAccessKeyResponse
|
|
185
|
-
export { Connect as Connect, type ConnectGetOAuthURLResponse as ConnectGetOAuthURLResponse, type ConnectGetOAuthURLParams as ConnectGetOAuthURLParams
|
|
184
|
+
export { Health as Health, type HealthCheckResponse as HealthCheckResponse, type HealthVerifyAccessKeyResponse as HealthVerifyAccessKeyResponse };
|
|
185
|
+
export { Connect as Connect, type ConnectGetOAuthURLResponse as ConnectGetOAuthURLResponse, type ConnectGetOAuthURLParams as ConnectGetOAuthURLParams };
|
|
186
186
|
export { Platforms as Platforms, type PlatformListResponse as PlatformListResponse };
|
|
187
|
-
export { Posts as Posts, type
|
|
188
|
-
export { Media as Media, type MediaUploadResponse as MediaUploadResponse, type MediaUploadParams as MediaUploadParams
|
|
187
|
+
export { Posts as Posts, type Status as Status, type PostCreateResponse as PostCreateResponse, type PostRetrieveResponse as PostRetrieveResponse, type PostListResponse as PostListResponse, type PostDeleteResponse as PostDeleteResponse, type PostCreateParams as PostCreateParams, type PostListParams as PostListParams };
|
|
188
|
+
export { Media as Media, type MediaUploadResponse as MediaUploadResponse, type MediaUploadParams as MediaUploadParams };
|
|
189
189
|
}
|
|
190
190
|
//# sourceMappingURL=client.d.mts.map
|
package/client.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.mts","sourceRoot":"","sources":["src/client.ts"],"names":[],"mappings":"OAEO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAY;OAC3C,KAAK,EAAc,cAAc,EAAE,iBAAiB,EAAE,oBAAoB,EAAE;YAIvE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7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,EACtC,CAAC;IAEF,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC5C,CAAC;CACG"}
|
package/client.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { Health, HealthCheckResponse, HealthVerifyAccessKeyResponse } from "./re
|
|
|
10
10
|
import { Media, MediaUploadParams, MediaUploadResponse } from "./resources/media.js";
|
|
11
11
|
import { PlatformListResponse, Platforms } from "./resources/platforms.js";
|
|
12
12
|
import { Connect, ConnectGetOAuthURLParams, ConnectGetOAuthURLResponse } from "./resources/connect/connect.js";
|
|
13
|
-
import { PostCreateParams, PostCreateResponse, PostDeleteResponse, PostListParams, PostListResponse, PostRetrieveResponse,
|
|
13
|
+
import { PostCreateParams, PostCreateResponse, PostDeleteResponse, PostListParams, PostListResponse, PostRetrieveResponse, Posts, Status } from "./resources/posts/posts.js";
|
|
14
14
|
import { type Fetch } from "./internal/builtin-types.js";
|
|
15
15
|
import { HeadersLike, NullableHeaders } from "./internal/headers.js";
|
|
16
16
|
import { FinalRequestOptions, RequestOptions } from "./internal/request-options.js";
|
|
@@ -23,7 +23,7 @@ export interface ClientOptions {
|
|
|
23
23
|
/**
|
|
24
24
|
* Override the default base URL for the API, e.g., "https://api.example.com/v2/"
|
|
25
25
|
*
|
|
26
|
-
* Defaults to process.env['
|
|
26
|
+
* Defaults to process.env['POSTPEER_BASE_URL'].
|
|
27
27
|
*/
|
|
28
28
|
baseURL?: string | null | undefined;
|
|
29
29
|
/**
|
|
@@ -71,7 +71,7 @@ export interface ClientOptions {
|
|
|
71
71
|
/**
|
|
72
72
|
* Set the log level.
|
|
73
73
|
*
|
|
74
|
-
* Defaults to process.env['
|
|
74
|
+
* Defaults to process.env['POSTPEER_LOG'] or 'warn' if it isn't set.
|
|
75
75
|
*/
|
|
76
76
|
logLevel?: LogLevel | undefined;
|
|
77
77
|
/**
|
|
@@ -82,9 +82,9 @@ export interface ClientOptions {
|
|
|
82
82
|
logger?: Logger | undefined;
|
|
83
83
|
}
|
|
84
84
|
/**
|
|
85
|
-
* API Client for interfacing with the
|
|
85
|
+
* API Client for interfacing with the Postpeer API.
|
|
86
86
|
*/
|
|
87
|
-
export declare class
|
|
87
|
+
export declare class Postpeer {
|
|
88
88
|
#private;
|
|
89
89
|
apiKey: string;
|
|
90
90
|
baseURL: string;
|
|
@@ -97,10 +97,10 @@ export declare class PostPeer {
|
|
|
97
97
|
protected idempotencyHeader?: string;
|
|
98
98
|
private _options;
|
|
99
99
|
/**
|
|
100
|
-
* API Client for interfacing with the
|
|
100
|
+
* API Client for interfacing with the Postpeer API.
|
|
101
101
|
*
|
|
102
102
|
* @param {string | undefined} [opts.apiKey=process.env['POSTPEER_API_KEY'] ?? undefined]
|
|
103
|
-
* @param {string} [opts.baseURL=process.env['
|
|
103
|
+
* @param {string} [opts.baseURL=process.env['POSTPEER_BASE_URL'] ?? https://api.example.com] - Override the default base URL for the API.
|
|
104
104
|
* @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
|
105
105
|
* @param {MergedRequestInit} [opts.fetchOptions] - Additional `RequestInit` options to be passed to `fetch` calls.
|
|
106
106
|
* @param {Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
|
|
@@ -157,9 +157,9 @@ export declare class PostPeer {
|
|
|
157
157
|
private buildHeaders;
|
|
158
158
|
private _makeAbort;
|
|
159
159
|
private buildBody;
|
|
160
|
-
static
|
|
160
|
+
static Postpeer: typeof Postpeer;
|
|
161
161
|
static DEFAULT_TIMEOUT: number;
|
|
162
|
-
static
|
|
162
|
+
static PostpeerError: typeof Errors.PostpeerError;
|
|
163
163
|
static APIError: typeof Errors.APIError;
|
|
164
164
|
static APIConnectionError: typeof Errors.APIConnectionError;
|
|
165
165
|
static APIConnectionTimeoutError: typeof Errors.APIConnectionTimeoutError;
|
|
@@ -179,12 +179,12 @@ export declare class PostPeer {
|
|
|
179
179
|
posts: API.Posts;
|
|
180
180
|
media: API.Media;
|
|
181
181
|
}
|
|
182
|
-
export declare namespace
|
|
182
|
+
export declare namespace Postpeer {
|
|
183
183
|
export type RequestOptions = Opts.RequestOptions;
|
|
184
|
-
export { Health as Health, type HealthCheckResponse as HealthCheckResponse, type HealthVerifyAccessKeyResponse as HealthVerifyAccessKeyResponse
|
|
185
|
-
export { Connect as Connect, type ConnectGetOAuthURLResponse as ConnectGetOAuthURLResponse, type ConnectGetOAuthURLParams as ConnectGetOAuthURLParams
|
|
184
|
+
export { Health as Health, type HealthCheckResponse as HealthCheckResponse, type HealthVerifyAccessKeyResponse as HealthVerifyAccessKeyResponse };
|
|
185
|
+
export { Connect as Connect, type ConnectGetOAuthURLResponse as ConnectGetOAuthURLResponse, type ConnectGetOAuthURLParams as ConnectGetOAuthURLParams };
|
|
186
186
|
export { Platforms as Platforms, type PlatformListResponse as PlatformListResponse };
|
|
187
|
-
export { Posts as Posts, type
|
|
188
|
-
export { Media as Media, type MediaUploadResponse as MediaUploadResponse, type MediaUploadParams as MediaUploadParams
|
|
187
|
+
export { Posts as Posts, type Status as Status, type PostCreateResponse as PostCreateResponse, type PostRetrieveResponse as PostRetrieveResponse, type PostListResponse as PostListResponse, type PostDeleteResponse as PostDeleteResponse, type PostCreateParams as PostCreateParams, type PostListParams as PostListParams };
|
|
188
|
+
export { Media as Media, type MediaUploadResponse as MediaUploadResponse, type MediaUploadParams as MediaUploadParams };
|
|
189
189
|
}
|
|
190
190
|
//# sourceMappingURL=client.d.ts.map
|
package/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["src/client.ts"],"names":[],"mappings":"OAEO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAY;OAC3C,KAAK,EAAc,cAAc,EAAE,iBAAiB,EAAE,oBAAoB,EAAE;YAIvE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