@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
|
@@ -1,20 +1,23 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
export type Fetch = (
|
|
3
|
+
export type Fetch = (
|
|
4
|
+
input: string | URL | Request,
|
|
5
|
+
init?: RequestInit,
|
|
6
|
+
) => Promise<Response>
|
|
4
7
|
|
|
5
8
|
/**
|
|
6
9
|
* An alias to the builtin `RequestInit` type so we can
|
|
7
10
|
* easily alias it in import statements if there are name clashes.
|
|
8
|
-
|
|
9
|
-
|
|
11
|
+
*
|
|
12
|
+
* https://developer.mozilla.org/docs/Web/API/RequestInit
|
|
10
13
|
*/
|
|
11
14
|
type _RequestInit = RequestInit;
|
|
12
15
|
|
|
13
16
|
/**
|
|
14
17
|
* An alias to the builtin `Response` type so we can
|
|
15
18
|
* easily alias it in import statements if there are name clashes.
|
|
16
|
-
|
|
17
|
-
|
|
19
|
+
*
|
|
20
|
+
* https://developer.mozilla.org/docs/Web/API/Response
|
|
18
21
|
*/
|
|
19
22
|
type _Response = Response;
|
|
20
23
|
|
|
@@ -51,15 +54,7 @@ type _Array<T> = Array<T>;
|
|
|
51
54
|
*/
|
|
52
55
|
type _Record<K extends keyof any, T> = Record<K, T>;
|
|
53
56
|
|
|
54
|
-
export type {
|
|
55
|
-
_Array as Array,
|
|
56
|
-
_BodyInit as BodyInit,
|
|
57
|
-
_HeadersInit as HeadersInit,
|
|
58
|
-
_Record as Record,
|
|
59
|
-
_RequestInfo as RequestInfo,
|
|
60
|
-
_RequestInit as RequestInit,
|
|
61
|
-
_Response as Response,
|
|
62
|
-
};
|
|
57
|
+
export type { _Array as Array, _BodyInit as BodyInit, _HeadersInit as HeadersInit, _Record as Record, _RequestInfo as RequestInfo, _RequestInit as RequestInit, _Response as Response };
|
|
63
58
|
|
|
64
59
|
/**
|
|
65
60
|
* A copy of the builtin `EndingType` type as it isn't fully supported in certain
|
|
@@ -25,11 +25,7 @@ function getDetectedPlatform(): DetectedPlatform {
|
|
|
25
25
|
if (typeof EdgeRuntime !== 'undefined') {
|
|
26
26
|
return 'edge';
|
|
27
27
|
}
|
|
28
|
-
if (
|
|
29
|
-
Object.prototype.toString.call(
|
|
30
|
-
typeof (globalThis as any).process !== 'undefined' ? (globalThis as any).process : 0,
|
|
31
|
-
) === '[object process]'
|
|
32
|
-
) {
|
|
28
|
+
if (Object.prototype.toString.call(typeof (globalThis as any).process !== 'undefined' ? (globalThis as any).process : 0) === '[object process]') {
|
|
33
29
|
return 'node';
|
|
34
30
|
}
|
|
35
31
|
return 'unknown';
|
package/src/internal/errors.ts
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
export function isAbortError(err: unknown) {
|
|
4
4
|
return (
|
|
5
|
-
typeof err === 'object' &&
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
(('name' in err && (err as any).name === 'AbortError') ||
|
|
5
|
+
typeof err === 'object' && err !== null && (
|
|
6
|
+
// Spec-compliant fetch implementations
|
|
7
|
+
('name' in err && (err as any).name === 'AbortError') ||
|
|
9
8
|
// Expo fetch
|
|
10
|
-
('message' in err && String((err as any).message).includes('FetchRequestCanceledException'))
|
|
9
|
+
('message' in err && String((err as any).message).includes('FetchRequestCanceledException'))
|
|
10
|
+
)
|
|
11
11
|
);
|
|
12
12
|
}
|
|
13
13
|
|
|
@@ -24,10 +24,10 @@ export const castToError = (err: any): Error => {
|
|
|
24
24
|
if (err.name) error.name = err.name;
|
|
25
25
|
return error;
|
|
26
26
|
}
|
|
27
|
-
} catch {}
|
|
27
|
+
} catch { }
|
|
28
28
|
try {
|
|
29
29
|
return new Error(JSON.stringify(err));
|
|
30
|
-
} catch {}
|
|
30
|
+
} catch { }
|
|
31
31
|
}
|
|
32
32
|
return new Error(err);
|
|
33
33
|
};
|
package/src/internal/headers.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { isReadonlyArray } from
|
|
3
|
+
import { isReadonlyArray } from "./utils/values";
|
|
4
4
|
|
|
5
5
|
type HeaderValue = string | undefined | null;
|
|
6
6
|
export type HeadersLike =
|
|
@@ -51,7 +51,7 @@ function* iterateHeaders(headers: HeadersLike): IterableIterator<readonly [strin
|
|
|
51
51
|
}
|
|
52
52
|
for (let row of iter) {
|
|
53
53
|
const name = row[0];
|
|
54
|
-
if (typeof name !==
|
|
54
|
+
if (typeof name !== "string") throw new TypeError("expected header name to be a string")
|
|
55
55
|
const values = isReadonlyArray(row[1]) ? row[1] : [row[1]];
|
|
56
56
|
let didClear = false;
|
|
57
57
|
for (const value of values) {
|
package/src/internal/parse.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import type { FinalRequestOptions } from './request-options';
|
|
4
|
-
import { type
|
|
4
|
+
import { type Postpeer } from '../client';
|
|
5
5
|
import { formatRequestDetails, loggerFor } from './utils/log';
|
|
6
6
|
|
|
7
7
|
export type APIResponseProps = {
|
|
@@ -13,9 +13,10 @@ export type APIResponseProps = {
|
|
|
13
13
|
startTime: number;
|
|
14
14
|
};
|
|
15
15
|
|
|
16
|
-
export async function defaultParseResponse<T>(client:
|
|
16
|
+
export async function defaultParseResponse<T>(client: Postpeer, props: APIResponseProps): Promise<T> {
|
|
17
17
|
const { response, requestLogID, retryOfRequestLogID, startTime } = props;
|
|
18
18
|
const body = await (async () => {
|
|
19
|
+
|
|
19
20
|
// fetch refuses to read the body when the status code is 204.
|
|
20
21
|
if (response.status === 204) {
|
|
21
22
|
return null as T;
|
|
@@ -42,15 +43,6 @@ export async function defaultParseResponse<T>(client: PostPeer, props: APIRespon
|
|
|
42
43
|
const text = await response.text();
|
|
43
44
|
return text as unknown as T;
|
|
44
45
|
})();
|
|
45
|
-
loggerFor(client).debug(
|
|
46
|
-
`[${requestLogID}] response parsed`,
|
|
47
|
-
formatRequestDetails({
|
|
48
|
-
retryOfRequestLogID,
|
|
49
|
-
url: response.url,
|
|
50
|
-
status: response.status,
|
|
51
|
-
body,
|
|
52
|
-
durationMs: Date.now() - startTime,
|
|
53
|
-
}),
|
|
54
|
-
);
|
|
46
|
+
loggerFor(client).debug(`[${requestLogID}] response parsed`, formatRequestDetails({ retryOfRequestLogID, url: response.url, status: response.status, body, durationMs: Date.now() - startTime }));
|
|
55
47
|
return body;
|
|
56
48
|
}
|
package/src/internal/qs/utils.ts
CHANGED
|
@@ -62,7 +62,10 @@ export function merge(
|
|
|
62
62
|
if (isArray(target)) {
|
|
63
63
|
target.push(source);
|
|
64
64
|
} else if (target && typeof target === 'object') {
|
|
65
|
-
if (
|
|
65
|
+
if (
|
|
66
|
+
(options && (options.plainObjects || options.allowPrototypes)) ||
|
|
67
|
+
!has(Object.prototype, source)
|
|
68
|
+
) {
|
|
66
69
|
target[source] = true;
|
|
67
70
|
}
|
|
68
71
|
} else {
|
|
@@ -76,10 +76,14 @@ export type RequestOptions = {
|
|
|
76
76
|
defaultBaseURL?: string | undefined;
|
|
77
77
|
|
|
78
78
|
__binaryResponse?: boolean | undefined;
|
|
79
|
+
|
|
79
80
|
};
|
|
80
81
|
|
|
81
82
|
export type EncodedContent = { bodyHeaders: HeadersLike; body: BodyInit };
|
|
82
|
-
export type RequestEncoder = (request: {
|
|
83
|
+
export type RequestEncoder = (request: {
|
|
84
|
+
headers: NullableHeaders;
|
|
85
|
+
body: unknown;
|
|
86
|
+
}) => EncodedContent;
|
|
83
87
|
|
|
84
88
|
export const FallbackEncoder: RequestEncoder = ({ headers, body }) => {
|
|
85
89
|
return {
|
|
@@ -19,8 +19,8 @@ type _ConditionalNodeReadableStream<R = any> =
|
|
|
19
19
|
typeof globalThis extends { ReadableStream: any } ? never : _NodeReadableStream<R>;
|
|
20
20
|
|
|
21
21
|
type _ReadableStream<R = any> = NeverToAny<
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
([0] extends [1 & _DOMReadableStream<R>] ? never : _DOMReadableStream<R>) |
|
|
23
|
+
([0] extends [1 & _ConditionalNodeReadableStream<R>] ? never : _ConditionalNodeReadableStream<R>)
|
|
24
24
|
>;
|
|
25
25
|
|
|
26
26
|
export type { _ReadableStream as ReadableStream };
|
package/src/internal/shims.ts
CHANGED
|
@@ -16,7 +16,7 @@ export function getDefaultFetch(): Fetch {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
throw new Error(
|
|
19
|
-
'`fetch` is not defined as a global; Either pass `fetch` to the client, `new
|
|
19
|
+
'`fetch` is not defined as a global; Either pass `fetch` to the client, `new Postpeer({ fetch })` or polyfill the global, `globalThis.fetch = fetch`',
|
|
20
20
|
);
|
|
21
21
|
}
|
|
22
22
|
|
|
@@ -27,9 +27,7 @@ export function makeReadableStream(...args: ReadableStreamArgs): ReadableStream
|
|
|
27
27
|
if (typeof ReadableStream === 'undefined') {
|
|
28
28
|
// Note: All of the platforms / runtimes we officially support already define
|
|
29
29
|
// `ReadableStream` as a global, so this should only ever be hit on unsupported runtimes.
|
|
30
|
-
throw new Error(
|
|
31
|
-
'`ReadableStream` is not defined as a global; You will need to polyfill it, `globalThis.ReadableStream = ReadableStream`',
|
|
32
|
-
);
|
|
30
|
+
throw new Error('`ReadableStream` is not defined as a global; You will need to polyfill it, `globalThis.ReadableStream = ReadableStream`');
|
|
33
31
|
}
|
|
34
32
|
|
|
35
33
|
return new ReadableStream(...args);
|
package/src/internal/to-file.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BlobPart, getName, makeFile, isAsyncIterable } from
|
|
1
|
+
import { BlobPart, getName, makeFile, isAsyncIterable } from "./uploads";
|
|
2
2
|
import type { FilePropertyBag } from './builtin-types';
|
|
3
3
|
import { checkFileSupport } from './uploads';
|
|
4
4
|
|
|
@@ -65,11 +65,8 @@ const isResponseLike = (value: any): value is ResponseLike =>
|
|
|
65
65
|
typeof value.url === 'string' &&
|
|
66
66
|
typeof value.blob === 'function';
|
|
67
67
|
|
|
68
|
-
export type ToFileInput =
|
|
69
|
-
|
|
70
|
-
| ResponseLike
|
|
71
|
-
| Exclude<BlobLikePart, string>
|
|
72
|
-
| AsyncIterable<BlobLikePart>;
|
|
68
|
+
export type ToFileInput = FileLike | ResponseLike | Exclude<BlobLikePart, string> | AsyncIterable<BlobLikePart>;
|
|
69
|
+
|
|
73
70
|
|
|
74
71
|
/**
|
|
75
72
|
* Helper for creating a {@link File} to pass to an SDK upload method from a variety of different data formats
|
|
@@ -119,7 +116,9 @@ export async function toFile(
|
|
|
119
116
|
return makeFile(parts, name, options);
|
|
120
117
|
}
|
|
121
118
|
|
|
122
|
-
async function getBytes(
|
|
119
|
+
async function getBytes(
|
|
120
|
+
value: BlobLikePart | AsyncIterable<BlobLikePart>,
|
|
121
|
+
): Promise<Array<BlobPart>> {
|
|
123
122
|
let parts: Array<BlobPart> = [];
|
|
124
123
|
if (
|
|
125
124
|
typeof value === 'string' ||
|
|
@@ -152,3 +151,4 @@ function propsForError(value: unknown): string {
|
|
|
152
151
|
const props = Object.getOwnPropertyNames(value);
|
|
153
152
|
return `; props: [${props.map((p) => `"${p}"`).join(', ')}]`;
|
|
154
153
|
}
|
|
154
|
+
|
package/src/internal/types.ts
CHANGED
|
@@ -7,40 +7,34 @@ export type KeysEnum<T> = { [P in keyof Required<T>]: true };
|
|
|
7
7
|
|
|
8
8
|
export type FinalizedRequestInit = RequestInit & { headers: Headers };
|
|
9
9
|
|
|
10
|
-
type NotAny<T> = [0] extends [1 & T] ? never : T;
|
|
10
|
+
type NotAny<T> = [0] extends [(1 & T)] ? never : T;
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Some environments overload the global fetch function, and Parameters<T> only gets the last signature.
|
|
14
14
|
*/
|
|
15
|
-
type OverloadedParameters<T> =
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
type OverloadedParameters<T> = T extends {
|
|
16
|
+
(...args: infer A): unknown;
|
|
17
|
+
(...args: infer B): unknown;
|
|
18
|
+
(...args: infer C): unknown;
|
|
19
|
+
(...args: infer D): unknown;
|
|
20
|
+
}
|
|
21
|
+
? A | B | C | D
|
|
22
|
+
: T extends {
|
|
18
23
|
(...args: infer A): unknown;
|
|
19
24
|
(...args: infer B): unknown;
|
|
20
25
|
(...args: infer C): unknown;
|
|
21
|
-
(...args: infer D): unknown;
|
|
22
26
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
: T extends (
|
|
26
|
-
{
|
|
27
|
-
(...args: infer A): unknown;
|
|
28
|
-
(...args: infer B): unknown;
|
|
29
|
-
(...args: infer C): unknown;
|
|
30
|
-
}
|
|
31
|
-
) ?
|
|
32
|
-
A | B | C
|
|
33
|
-
: T extends (
|
|
34
|
-
{
|
|
27
|
+
? A | B | C
|
|
28
|
+
: T extends {
|
|
35
29
|
(...args: infer A): unknown;
|
|
36
30
|
(...args: infer B): unknown;
|
|
37
31
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
32
|
+
? A | B
|
|
33
|
+
: T extends (...args: infer A) => unknown
|
|
34
|
+
? A
|
|
41
35
|
: never;
|
|
42
36
|
|
|
43
|
-
|
|
37
|
+
|
|
44
38
|
/**
|
|
45
39
|
* These imports attempt to get types from a parent package's dependencies.
|
|
46
40
|
* Unresolved bare specifiers can trigger [automatic type acquisition][1] in some projects, which
|
|
@@ -63,19 +57,19 @@ type OverloadedParameters<T> =
|
|
|
63
57
|
*
|
|
64
58
|
* [1]: https://www.typescriptlang.org/tsconfig/#typeAcquisition
|
|
65
59
|
*/
|
|
66
|
-
/** @ts-ignore For users with \@types/node */
|
|
60
|
+
/** @ts-ignore For users with \@types/node */ /* prettier-ignore */
|
|
67
61
|
type UndiciTypesRequestInit = NotAny<import('../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../../node_modules/undici-types/index.d.ts').RequestInit>;
|
|
68
|
-
/** @ts-ignore For users with undici */
|
|
62
|
+
/** @ts-ignore For users with undici */ /* prettier-ignore */
|
|
69
63
|
type UndiciRequestInit = NotAny<import('../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../../node_modules/undici/index.d.ts').RequestInit>;
|
|
70
|
-
/** @ts-ignore For users with \@types/bun */
|
|
64
|
+
/** @ts-ignore For users with \@types/bun */ /* prettier-ignore */
|
|
71
65
|
type BunRequestInit = globalThis.FetchRequestInit;
|
|
72
|
-
/** @ts-ignore For users with node-fetch@2 */
|
|
66
|
+
/** @ts-ignore For users with node-fetch@2 */ /* prettier-ignore */
|
|
73
67
|
type NodeFetch2RequestInit = NotAny<import('../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit>;
|
|
74
|
-
/** @ts-ignore For users with node-fetch@3, doesn't need file extension because types are at ./@types/index.d.ts */
|
|
68
|
+
/** @ts-ignore For users with node-fetch@3, doesn't need file extension because types are at ./@types/index.d.ts */ /* prettier-ignore */
|
|
75
69
|
type NodeFetch3RequestInit = NotAny<import('../node_modules/node-fetch').RequestInit> | NotAny<import('../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../../../../../node_modules/node-fetch').RequestInit>;
|
|
76
|
-
/** @ts-ignore For users who use Deno */
|
|
70
|
+
/** @ts-ignore For users who use Deno */ /* prettier-ignore */
|
|
77
71
|
type FetchRequestInit = NonNullable<OverloadedParameters<typeof fetch>[1]>;
|
|
78
|
-
|
|
72
|
+
|
|
79
73
|
|
|
80
74
|
type RequestInits =
|
|
81
75
|
| NotAny<UndiciTypesRequestInit>
|
package/src/internal/uploads.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type RequestOptions } from './request-options';
|
|
2
2
|
import type { FilePropertyBag, Fetch } from './builtin-types';
|
|
3
|
-
import type {
|
|
3
|
+
import type { Postpeer } from '../client';
|
|
4
4
|
import { ReadableStreamFrom } from './shims';
|
|
5
5
|
|
|
6
6
|
export type BlobPart = string | ArrayBuffer | ArrayBufferView | Blob | DataView;
|
|
@@ -74,7 +74,7 @@ export const isAsyncIterable = (value: any): value is AsyncIterable<any> =>
|
|
|
74
74
|
*/
|
|
75
75
|
export const maybeMultipartFormRequestOptions = async (
|
|
76
76
|
opts: RequestOptions,
|
|
77
|
-
fetch:
|
|
77
|
+
fetch: Postpeer | Fetch,
|
|
78
78
|
): Promise<RequestOptions> => {
|
|
79
79
|
if (!hasUploadableValue(opts.body)) return opts;
|
|
80
80
|
|
|
@@ -85,7 +85,7 @@ type MultipartFormRequestOptions = Omit<RequestOptions, 'body'> & { body: unknow
|
|
|
85
85
|
|
|
86
86
|
export const multipartFormRequestOptions = async (
|
|
87
87
|
opts: MultipartFormRequestOptions,
|
|
88
|
-
fetch:
|
|
88
|
+
fetch: Postpeer | Fetch,
|
|
89
89
|
): Promise<RequestOptions> => {
|
|
90
90
|
return { ...opts, body: await createForm(opts.body, fetch) };
|
|
91
91
|
};
|
|
@@ -98,7 +98,7 @@ const supportsFormDataMap = /* @__PURE__ */ new WeakMap<Fetch, Promise<boolean>>
|
|
|
98
98
|
* This function detects if the fetch function provided supports the global FormData object to avoid
|
|
99
99
|
* confusing error messages later on.
|
|
100
100
|
*/
|
|
101
|
-
function supportsFormData(fetchObject:
|
|
101
|
+
function supportsFormData(fetchObject: Postpeer | Fetch): Promise<boolean> {
|
|
102
102
|
const fetch: Fetch = typeof fetchObject === 'function' ? fetchObject : (fetchObject as any).fetch;
|
|
103
103
|
const cached = supportsFormDataMap.get(fetch);
|
|
104
104
|
if (cached) return cached;
|
|
@@ -124,7 +124,7 @@ function supportsFormData(fetchObject: PostPeer | Fetch): Promise<boolean> {
|
|
|
124
124
|
|
|
125
125
|
export const createForm = async <T = Record<string, unknown>>(
|
|
126
126
|
body: T | undefined,
|
|
127
|
-
fetch:
|
|
127
|
+
fetch: Postpeer | Fetch,
|
|
128
128
|
): Promise<FormData> => {
|
|
129
129
|
if (!(await supportsFormData(fetch))) {
|
|
130
130
|
throw new TypeError(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { PostpeerError } from '../../core/error';
|
|
4
4
|
import { encodeUTF8 } from './bytes';
|
|
5
5
|
|
|
6
6
|
export const toBase64 = (data: string | Uint8Array | null | undefined): string => {
|
|
@@ -18,7 +18,7 @@ export const toBase64 = (data: string | Uint8Array | null | undefined): string =
|
|
|
18
18
|
return btoa(String.fromCharCode.apply(null, data as any));
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
throw new
|
|
21
|
+
throw new PostpeerError('Cannot generate base64 string; Expected `Buffer` or `btoa` to be defined');
|
|
22
22
|
};
|
|
23
23
|
|
|
24
24
|
export const fromBase64 = (str: string): Uint8Array => {
|
|
@@ -36,5 +36,5 @@ export const fromBase64 = (str: string): Uint8Array => {
|
|
|
36
36
|
return buf;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
throw new
|
|
39
|
+
throw new PostpeerError('Cannot decode base64 string; Expected `Buffer` or `atob` to be defined');
|
|
40
40
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { hasOwn } from './values';
|
|
4
|
-
import { type
|
|
4
|
+
import { type Postpeer } from '../../client';
|
|
5
5
|
import { RequestOptions } from '../request-options';
|
|
6
6
|
|
|
7
|
-
type LogFn = (message: string, ...rest: unknown[]) => void
|
|
7
|
+
type LogFn = (message: string, ...rest: unknown[]) => void
|
|
8
8
|
export type Logger = {
|
|
9
9
|
error: LogFn;
|
|
10
10
|
warn: LogFn;
|
|
@@ -21,22 +21,14 @@ const levelNumbers = {
|
|
|
21
21
|
debug: 500,
|
|
22
22
|
};
|
|
23
23
|
|
|
24
|
-
export const parseLogLevel = (
|
|
25
|
-
maybeLevel: string | undefined,
|
|
26
|
-
sourceName: string,
|
|
27
|
-
client: PostPeer,
|
|
28
|
-
): LogLevel | undefined => {
|
|
24
|
+
export const parseLogLevel = (maybeLevel: string | undefined, sourceName: string, client: Postpeer): LogLevel | undefined => {
|
|
29
25
|
if (!maybeLevel) {
|
|
30
26
|
return undefined;
|
|
31
27
|
}
|
|
32
28
|
if (hasOwn(levelNumbers, maybeLevel)) {
|
|
33
29
|
return maybeLevel;
|
|
34
|
-
}
|
|
35
|
-
loggerFor(client).warn(
|
|
36
|
-
`${sourceName} was set to ${JSON.stringify(maybeLevel)}, expected one of ${JSON.stringify(
|
|
37
|
-
Object.keys(levelNumbers),
|
|
38
|
-
)}`,
|
|
39
|
-
);
|
|
30
|
+
};
|
|
31
|
+
loggerFor(client).warn(`${sourceName} was set to ${JSON.stringify(maybeLevel)}, expected one of ${JSON.stringify(Object.keys(levelNumbers))}`);
|
|
40
32
|
return undefined;
|
|
41
33
|
};
|
|
42
34
|
|
|
@@ -60,7 +52,7 @@ const noopLogger = {
|
|
|
60
52
|
|
|
61
53
|
let cachedLoggers = /* @__PURE__ */ new WeakMap<Logger, [LogLevel, Logger]>();
|
|
62
54
|
|
|
63
|
-
export function loggerFor(client:
|
|
55
|
+
export function loggerFor(client: Postpeer): Logger {
|
|
64
56
|
const logger = client.logger;
|
|
65
57
|
const logLevel = client.logLevel ?? 'off';
|
|
66
58
|
if (!logger) {
|
|
@@ -97,25 +89,11 @@ export const formatRequestDetails = (details: {
|
|
|
97
89
|
body?: unknown;
|
|
98
90
|
}) => {
|
|
99
91
|
if (details.options) {
|
|
100
|
-
details.options = {
|
|
92
|
+
details.options = {...details.options};
|
|
101
93
|
delete details.options['headers']; // redundant + leaks internals
|
|
102
94
|
}
|
|
103
95
|
if (details.headers) {
|
|
104
|
-
details.headers = Object.fromEntries(
|
|
105
|
-
(details.headers instanceof Headers ? [...details.headers] : Object.entries(details.headers)).map(
|
|
106
|
-
([name, value]) => [
|
|
107
|
-
name,
|
|
108
|
-
(
|
|
109
|
-
name.toLowerCase() === 'x-access-key' ||
|
|
110
|
-
name.toLowerCase() === 'authorization' ||
|
|
111
|
-
name.toLowerCase() === 'cookie' ||
|
|
112
|
-
name.toLowerCase() === 'set-cookie'
|
|
113
|
-
) ?
|
|
114
|
-
'***'
|
|
115
|
-
: value,
|
|
116
|
-
],
|
|
117
|
-
),
|
|
118
|
-
);
|
|
96
|
+
details.headers = Object.fromEntries((details.headers instanceof Headers ? [...details.headers] : Object.entries(details.headers)).map(([name, value]) => [name, name.toLowerCase() === 'x-access-key' || name.toLowerCase() === 'authorization' || name.toLowerCase() === 'cookie' || name.toLowerCase() === 'set-cookie' ? '***' : value]))
|
|
119
97
|
}
|
|
120
98
|
if ('retryOfRequestLogID' in details) {
|
|
121
99
|
if (details.retryOfRequestLogID) {
|
|
@@ -123,5 +101,5 @@ export const formatRequestDetails = (details: {
|
|
|
123
101
|
}
|
|
124
102
|
delete details.retryOfRequestLogID;
|
|
125
103
|
}
|
|
126
|
-
return details
|
|
127
|
-
}
|
|
104
|
+
return details
|
|
105
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PostpeerError } from '../../core/error';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Percent-encode everything that isn't safe to have in a path without encoding safe chars.
|
|
@@ -72,7 +72,7 @@ export const createPathTagFunction = (pathEncoder = encodeURIPath) =>
|
|
|
72
72
|
return acc + spaces + arrows;
|
|
73
73
|
}, '');
|
|
74
74
|
|
|
75
|
-
throw new
|
|
75
|
+
throw new PostpeerError(
|
|
76
76
|
`Path parameters result in path with invalid segments:\n${invalidSegments
|
|
77
77
|
.map((e) => e.error)
|
|
78
78
|
.join('\n')}\n${path}\n${underline}`,
|
|
@@ -10,8 +10,10 @@ export let uuid4 = function () {
|
|
|
10
10
|
return crypto.randomUUID();
|
|
11
11
|
}
|
|
12
12
|
const u8 = new Uint8Array(1);
|
|
13
|
-
const randomByte = crypto
|
|
14
|
-
|
|
13
|
+
const randomByte = crypto
|
|
14
|
+
? () => crypto.getRandomValues(u8)[0]!
|
|
15
|
+
: () => (Math.random() * 0xff) & 0xff;
|
|
16
|
+
return "10000000-1000-4000-8000-100000000000".replace(/[018]/g, (c) =>
|
|
15
17
|
(+c ^ (randomByte() & (15 >> (+c / 4)))).toString(16),
|
|
16
18
|
);
|
|
17
|
-
}
|
|
19
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { PostpeerError } from '../../core/error';
|
|
4
4
|
|
|
5
5
|
// https://url.spec.whatwg.org/#url-scheme-string
|
|
6
6
|
const startsWithSchemeRegexp = /^[a-z][a-z0-9+.-]*:/i;
|
|
@@ -39,7 +39,7 @@ export function isObj(obj: unknown): obj is Record<string, unknown> {
|
|
|
39
39
|
|
|
40
40
|
export const ensurePresent = <T>(value: T | null | undefined): T => {
|
|
41
41
|
if (value == null) {
|
|
42
|
-
throw new
|
|
42
|
+
throw new PostpeerError(`Expected a value to be given but received ${value} instead.`);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
return value;
|
|
@@ -47,10 +47,10 @@ export const ensurePresent = <T>(value: T | null | undefined): T => {
|
|
|
47
47
|
|
|
48
48
|
export const validatePositiveInteger = (name: string, n: unknown): number => {
|
|
49
49
|
if (typeof n !== 'number' || !Number.isInteger(n)) {
|
|
50
|
-
throw new
|
|
50
|
+
throw new PostpeerError(`${name} must be an integer`);
|
|
51
51
|
}
|
|
52
52
|
if (n < 0) {
|
|
53
|
-
throw new
|
|
53
|
+
throw new PostpeerError(`${name} must be a positive integer`);
|
|
54
54
|
}
|
|
55
55
|
return n;
|
|
56
56
|
};
|
|
@@ -59,14 +59,14 @@ export const coerceInteger = (value: unknown): number => {
|
|
|
59
59
|
if (typeof value === 'number') return Math.round(value);
|
|
60
60
|
if (typeof value === 'string') return parseInt(value, 10);
|
|
61
61
|
|
|
62
|
-
throw new
|
|
62
|
+
throw new PostpeerError(`Could not coerce ${value} (type: ${typeof value}) into a number`);
|
|
63
63
|
};
|
|
64
64
|
|
|
65
65
|
export const coerceFloat = (value: unknown): number => {
|
|
66
66
|
if (typeof value === 'number') return value;
|
|
67
67
|
if (typeof value === 'string') return parseFloat(value);
|
|
68
68
|
|
|
69
|
-
throw new
|
|
69
|
+
throw new PostpeerError(`Could not coerce ${value} (type: ${typeof value}) into a number`);
|
|
70
70
|
};
|
|
71
71
|
|
|
72
72
|
export const coerceBoolean = (value: unknown): boolean => {
|
package/src/resource.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** @deprecated Import from ./core/resource instead */
|
|
2
|
-
export * from
|
|
2
|
+
export * from "./core/resource"
|
|
@@ -13,11 +13,7 @@ export class Connect extends APIResource {
|
|
|
13
13
|
/**
|
|
14
14
|
* Get OAuth URL for a platform
|
|
15
15
|
*/
|
|
16
|
-
getOAuthURL(
|
|
17
|
-
platform: 'twitter' | 'instagram' | 'youtube' | 'tiktok' | 'pinterest' | 'linkedin',
|
|
18
|
-
query: ConnectGetOAuthURLParams | null | undefined = {},
|
|
19
|
-
options?: RequestOptions,
|
|
20
|
-
): APIPromise<ConnectGetOAuthURLResponse> {
|
|
16
|
+
getOAuthURL(platform: 'twitter' | 'instagram' | 'youtube' | 'tiktok' | 'pinterest' | 'linkedin', query: ConnectGetOAuthURLParams | null | undefined = {}, options?: RequestOptions): APIPromise<ConnectGetOAuthURLResponse> {
|
|
21
17
|
return this._client.get(path`/v1/connect/${platform}`, { query, ...options });
|
|
22
18
|
}
|
|
23
19
|
}
|
|
@@ -38,12 +34,12 @@ Connect.Integrations = Integrations;
|
|
|
38
34
|
export declare namespace Connect {
|
|
39
35
|
export {
|
|
40
36
|
type ConnectGetOAuthURLResponse as ConnectGetOAuthURLResponse,
|
|
41
|
-
type ConnectGetOAuthURLParams as ConnectGetOAuthURLParams
|
|
37
|
+
type ConnectGetOAuthURLParams as ConnectGetOAuthURLParams
|
|
42
38
|
};
|
|
43
39
|
|
|
44
40
|
export {
|
|
45
41
|
Integrations as Integrations,
|
|
46
42
|
type IntegrationListResponse as IntegrationListResponse,
|
|
47
|
-
type IntegrationDisconnectResponse as IntegrationDisconnectResponse
|
|
43
|
+
type IntegrationDisconnectResponse as IntegrationDisconnectResponse
|
|
48
44
|
};
|
|
49
45
|
}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
export { Connect, type ConnectGetOAuthURLResponse, type ConnectGetOAuthURLParams } from './connect'
|
|
4
|
-
export {
|
|
5
|
-
Integrations,
|
|
6
|
-
type IntegrationListResponse,
|
|
7
|
-
type IntegrationDisconnectResponse,
|
|
8
|
-
} from './integrations';
|
|
3
|
+
export { Connect, type ConnectGetOAuthURLResponse, type ConnectGetOAuthURLParams } from './connect';;
|
|
4
|
+
export { Integrations, type IntegrationListResponse, type IntegrationDisconnectResponse } from './integrations';;
|
|
@@ -64,6 +64,6 @@ export interface IntegrationDisconnectResponse {
|
|
|
64
64
|
export declare namespace Integrations {
|
|
65
65
|
export {
|
|
66
66
|
type IntegrationListResponse as IntegrationListResponse,
|
|
67
|
-
type IntegrationDisconnectResponse as IntegrationDisconnectResponse
|
|
67
|
+
type IntegrationDisconnectResponse as IntegrationDisconnectResponse
|
|
68
68
|
};
|
|
69
69
|
}
|
package/src/resources/health.ts
CHANGED
|
@@ -31,6 +31,6 @@ export interface HealthVerifyAccessKeyResponse {
|
|
|
31
31
|
export declare namespace Health {
|
|
32
32
|
export {
|
|
33
33
|
type HealthCheckResponse as HealthCheckResponse,
|
|
34
|
-
type HealthVerifyAccessKeyResponse as HealthVerifyAccessKeyResponse
|
|
34
|
+
type HealthVerifyAccessKeyResponse as HealthVerifyAccessKeyResponse
|
|
35
35
|
};
|
|
36
36
|
}
|