@postpeer/node 0.7.0 → 0.8.1
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 +7 -128
- package/LICENSE +1 -1
- package/README.md +92 -314
- package/dist/index.cjs +1709 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +3484 -0
- package/dist/index.d.ts +3484 -0
- package/dist/index.js +1690 -0
- package/dist/index.js.map +1 -0
- package/package.json +58 -131
- package/api-promise.d.mts +0 -3
- package/api-promise.d.mts.map +0 -1
- package/api-promise.d.ts +0 -3
- package/api-promise.d.ts.map +0 -1
- package/api-promise.js +0 -6
- package/api-promise.js.map +0 -1
- package/api-promise.mjs +0 -3
- package/api-promise.mjs.map +0 -1
- package/client.d.mts +0 -190
- package/client.d.mts.map +0 -1
- package/client.d.ts +0 -190
- package/client.d.ts.map +0 -1
- package/client.js +0 -485
- package/client.js.map +0 -1
- package/client.mjs +0 -481
- package/client.mjs.map +0 -1
- package/core/api-promise.d.mts +0 -46
- package/core/api-promise.d.mts.map +0 -1
- package/core/api-promise.d.ts +0 -46
- package/core/api-promise.d.ts.map +0 -1
- package/core/api-promise.js +0 -74
- package/core/api-promise.js.map +0 -1
- package/core/api-promise.mjs +0 -70
- package/core/api-promise.mjs.map +0 -1
- package/core/error.d.mts +0 -46
- package/core/error.d.mts.map +0 -1
- package/core/error.d.ts +0 -46
- package/core/error.d.ts.map +0 -1
- package/core/error.js +0 -113
- package/core/error.js.map +0 -1
- package/core/error.mjs +0 -97
- package/core/error.mjs.map +0 -1
- package/core/resource.d.mts +0 -6
- package/core/resource.d.mts.map +0 -1
- package/core/resource.d.ts +0 -6
- package/core/resource.d.ts.map +0 -1
- package/core/resource.js +0 -11
- package/core/resource.js.map +0 -1
- package/core/resource.mjs +0 -7
- package/core/resource.mjs.map +0 -1
- package/core/uploads.d.mts +0 -3
- package/core/uploads.d.mts.map +0 -1
- package/core/uploads.d.ts +0 -3
- package/core/uploads.d.ts.map +0 -1
- package/core/uploads.js +0 -6
- package/core/uploads.js.map +0 -1
- package/core/uploads.mjs +0 -2
- package/core/uploads.mjs.map +0 -1
- package/error.d.mts +0 -3
- package/error.d.mts.map +0 -1
- package/error.d.ts +0 -3
- package/error.d.ts.map +0 -1
- package/error.js +0 -6
- package/error.js.map +0 -1
- package/error.mjs +0 -3
- package/error.mjs.map +0 -1
- package/index.d.mts +0 -6
- package/index.d.mts.map +0 -1
- package/index.d.ts +0 -6
- package/index.d.ts.map +0 -1
- package/index.js +0 -30
- package/index.js.map +0 -1
- package/index.mjs +0 -7
- package/index.mjs.map +0 -1
- package/internal/builtin-types.d.mts +0 -73
- package/internal/builtin-types.d.mts.map +0 -1
- package/internal/builtin-types.d.ts +0 -73
- package/internal/builtin-types.d.ts.map +0 -1
- package/internal/builtin-types.js +0 -4
- package/internal/builtin-types.js.map +0 -1
- package/internal/builtin-types.mjs +0 -3
- package/internal/builtin-types.mjs.map +0 -1
- package/internal/detect-platform.d.mts +0 -15
- package/internal/detect-platform.d.mts.map +0 -1
- package/internal/detect-platform.d.ts +0 -15
- package/internal/detect-platform.d.ts.map +0 -1
- package/internal/detect-platform.js +0 -162
- package/internal/detect-platform.js.map +0 -1
- package/internal/detect-platform.mjs +0 -157
- package/internal/detect-platform.mjs.map +0 -1
- package/internal/errors.d.mts +0 -3
- package/internal/errors.d.mts.map +0 -1
- package/internal/errors.d.ts +0 -3
- package/internal/errors.d.ts.map +0 -1
- package/internal/errors.js +0 -41
- package/internal/errors.js.map +0 -1
- package/internal/errors.mjs +0 -36
- package/internal/errors.mjs.map +0 -1
- package/internal/headers.d.mts +0 -20
- package/internal/headers.d.mts.map +0 -1
- package/internal/headers.d.ts +0 -20
- package/internal/headers.d.ts.map +0 -1
- package/internal/headers.js +0 -79
- package/internal/headers.js.map +0 -1
- package/internal/headers.mjs +0 -74
- package/internal/headers.mjs.map +0 -1
- package/internal/parse.d.mts +0 -12
- package/internal/parse.d.mts.map +0 -1
- package/internal/parse.d.ts +0 -12
- package/internal/parse.d.ts.map +0 -1
- package/internal/parse.js +0 -40
- package/internal/parse.js.map +0 -1
- package/internal/parse.mjs +0 -37
- package/internal/parse.mjs.map +0 -1
- package/internal/qs/formats.d.mts +0 -7
- package/internal/qs/formats.d.mts.map +0 -1
- package/internal/qs/formats.d.ts +0 -7
- package/internal/qs/formats.d.ts.map +0 -1
- package/internal/qs/formats.js +0 -13
- package/internal/qs/formats.js.map +0 -1
- package/internal/qs/formats.mjs +0 -9
- package/internal/qs/formats.mjs.map +0 -1
- package/internal/qs/index.d.mts +0 -10
- package/internal/qs/index.d.mts.map +0 -1
- package/internal/qs/index.d.ts +0 -10
- package/internal/qs/index.d.ts.map +0 -1
- package/internal/qs/index.js +0 -14
- package/internal/qs/index.js.map +0 -1
- package/internal/qs/index.mjs +0 -10
- package/internal/qs/index.mjs.map +0 -1
- package/internal/qs/stringify.d.mts +0 -3
- package/internal/qs/stringify.d.mts.map +0 -1
- package/internal/qs/stringify.d.ts +0 -3
- package/internal/qs/stringify.d.ts.map +0 -1
- package/internal/qs/stringify.js +0 -277
- package/internal/qs/stringify.js.map +0 -1
- package/internal/qs/stringify.mjs +0 -274
- package/internal/qs/stringify.mjs.map +0 -1
- package/internal/qs/types.d.mts +0 -57
- package/internal/qs/types.d.mts.map +0 -1
- package/internal/qs/types.d.ts +0 -57
- package/internal/qs/types.d.ts.map +0 -1
- package/internal/qs/types.js +0 -3
- package/internal/qs/types.js.map +0 -1
- package/internal/qs/types.mjs +0 -2
- package/internal/qs/types.mjs.map +0 -1
- package/internal/qs/utils.d.mts +0 -15
- package/internal/qs/utils.d.mts.map +0 -1
- package/internal/qs/utils.d.ts +0 -15
- package/internal/qs/utils.d.ts.map +0 -1
- package/internal/qs/utils.js +0 -230
- package/internal/qs/utils.js.map +0 -1
- package/internal/qs/utils.mjs +0 -217
- package/internal/qs/utils.mjs.map +0 -1
- package/internal/request-options.d.mts +0 -75
- package/internal/request-options.d.mts.map +0 -1
- package/internal/request-options.d.ts +0 -75
- package/internal/request-options.d.ts.map +0 -1
- package/internal/request-options.js +0 -14
- package/internal/request-options.js.map +0 -1
- package/internal/request-options.mjs +0 -10
- package/internal/request-options.mjs.map +0 -1
- package/internal/shim-types.d.mts +0 -17
- package/internal/shim-types.d.mts.map +0 -1
- package/internal/shim-types.d.ts +0 -17
- package/internal/shim-types.d.ts.map +0 -1
- package/internal/shim-types.js +0 -4
- package/internal/shim-types.js.map +0 -1
- package/internal/shim-types.mjs +0 -3
- package/internal/shim-types.mjs.map +0 -1
- package/internal/shims.d.mts +0 -26
- package/internal/shims.d.mts.map +0 -1
- package/internal/shims.d.ts +0 -26
- package/internal/shims.d.ts.map +0 -1
- package/internal/shims.js +0 -92
- package/internal/shims.js.map +0 -1
- package/internal/shims.mjs +0 -85
- package/internal/shims.mjs.map +0 -1
- package/internal/to-file.d.mts +0 -45
- package/internal/to-file.d.mts.map +0 -1
- package/internal/to-file.d.ts +0 -45
- package/internal/to-file.d.ts.map +0 -1
- package/internal/to-file.js +0 -91
- package/internal/to-file.js.map +0 -1
- package/internal/to-file.mjs +0 -88
- package/internal/to-file.mjs.map +0 -1
- package/internal/tslib.js +0 -81
- package/internal/tslib.mjs +0 -17
- package/internal/types.d.mts +0 -69
- package/internal/types.d.mts.map +0 -1
- package/internal/types.d.ts +0 -69
- package/internal/types.d.ts.map +0 -1
- package/internal/types.js +0 -4
- package/internal/types.js.map +0 -1
- package/internal/types.mjs +0 -3
- package/internal/types.mjs.map +0 -1
- package/internal/uploads.d.mts +0 -42
- package/internal/uploads.d.mts.map +0 -1
- package/internal/uploads.d.ts +0 -42
- package/internal/uploads.d.ts.map +0 -1
- package/internal/uploads.js +0 -141
- package/internal/uploads.js.map +0 -1
- package/internal/uploads.mjs +0 -131
- package/internal/uploads.mjs.map +0 -1
- package/internal/utils/base64.d.mts +0 -3
- package/internal/utils/base64.d.mts.map +0 -1
- package/internal/utils/base64.d.ts +0 -3
- package/internal/utils/base64.d.ts.map +0 -1
- package/internal/utils/base64.js +0 -38
- package/internal/utils/base64.js.map +0 -1
- package/internal/utils/base64.mjs +0 -33
- package/internal/utils/base64.mjs.map +0 -1
- package/internal/utils/bytes.d.mts +0 -4
- package/internal/utils/bytes.d.mts.map +0 -1
- package/internal/utils/bytes.d.ts +0 -4
- package/internal/utils/bytes.d.ts.map +0 -1
- package/internal/utils/bytes.js +0 -31
- package/internal/utils/bytes.js.map +0 -1
- package/internal/utils/bytes.mjs +0 -26
- package/internal/utils/bytes.mjs.map +0 -1
- package/internal/utils/env.d.mts +0 -9
- package/internal/utils/env.d.mts.map +0 -1
- package/internal/utils/env.d.ts +0 -9
- package/internal/utils/env.d.ts.map +0 -1
- package/internal/utils/env.js +0 -22
- package/internal/utils/env.js.map +0 -1
- package/internal/utils/env.mjs +0 -18
- package/internal/utils/env.mjs.map +0 -1
- package/internal/utils/log.d.mts +0 -37
- package/internal/utils/log.d.mts.map +0 -1
- package/internal/utils/log.d.ts +0 -37
- package/internal/utils/log.d.ts.map +0 -1
- package/internal/utils/log.js +0 -88
- package/internal/utils/log.js.map +0 -1
- package/internal/utils/log.mjs +0 -82
- package/internal/utils/log.mjs.map +0 -1
- package/internal/utils/path.d.mts +0 -15
- package/internal/utils/path.d.mts.map +0 -1
- package/internal/utils/path.d.ts +0 -15
- package/internal/utils/path.d.ts.map +0 -1
- package/internal/utils/path.js +0 -79
- package/internal/utils/path.js.map +0 -1
- package/internal/utils/path.mjs +0 -74
- package/internal/utils/path.mjs.map +0 -1
- package/internal/utils/query.d.mts +0 -2
- package/internal/utils/query.d.mts.map +0 -1
- package/internal/utils/query.d.ts +0 -2
- package/internal/utils/query.d.ts.map +0 -1
- package/internal/utils/query.js +0 -10
- package/internal/utils/query.js.map +0 -1
- package/internal/utils/query.mjs +0 -6
- package/internal/utils/query.mjs.map +0 -1
- package/internal/utils/sleep.d.mts +0 -2
- package/internal/utils/sleep.d.mts.map +0 -1
- package/internal/utils/sleep.d.ts +0 -2
- package/internal/utils/sleep.d.ts.map +0 -1
- package/internal/utils/sleep.js +0 -7
- package/internal/utils/sleep.js.map +0 -1
- package/internal/utils/sleep.mjs +0 -3
- package/internal/utils/sleep.mjs.map +0 -1
- package/internal/utils/uuid.d.mts +0 -5
- package/internal/utils/uuid.d.mts.map +0 -1
- package/internal/utils/uuid.d.ts +0 -5
- package/internal/utils/uuid.d.ts.map +0 -1
- package/internal/utils/uuid.js +0 -19
- package/internal/utils/uuid.js.map +0 -1
- package/internal/utils/uuid.mjs +0 -15
- package/internal/utils/uuid.mjs.map +0 -1
- package/internal/utils/values.d.mts +0 -18
- package/internal/utils/values.d.mts.map +0 -1
- package/internal/utils/values.d.ts +0 -18
- package/internal/utils/values.d.ts.map +0 -1
- package/internal/utils/values.js +0 -112
- package/internal/utils/values.js.map +0 -1
- package/internal/utils/values.mjs +0 -94
- package/internal/utils/values.mjs.map +0 -1
- package/internal/utils.d.mts +0 -8
- package/internal/utils.d.mts.map +0 -1
- package/internal/utils.d.ts +0 -8
- package/internal/utils.d.ts.map +0 -1
- package/internal/utils.js +0 -12
- package/internal/utils.js.map +0 -1
- package/internal/utils.mjs +0 -9
- package/internal/utils.mjs.map +0 -1
- package/resource.d.mts +0 -3
- package/resource.d.mts.map +0 -1
- package/resource.d.ts +0 -3
- package/resource.d.ts.map +0 -1
- package/resource.js +0 -6
- package/resource.js.map +0 -1
- package/resource.mjs +0 -3
- package/resource.mjs.map +0 -1
- package/resources/connect/connect.d.mts +0 -31
- package/resources/connect/connect.d.mts.map +0 -1
- package/resources/connect/connect.d.ts +0 -31
- package/resources/connect/connect.d.ts.map +0 -1
- package/resources/connect/connect.js +0 -24
- package/resources/connect/connect.js.map +0 -1
- package/resources/connect/connect.mjs +0 -19
- package/resources/connect/connect.mjs.map +0 -1
- package/resources/connect/index.d.mts +0 -3
- package/resources/connect/index.d.mts.map +0 -1
- package/resources/connect/index.d.ts +0 -3
- package/resources/connect/index.d.ts.map +0 -1
- package/resources/connect/index.js +0 -9
- package/resources/connect/index.js.map +0 -1
- package/resources/connect/index.mjs +0 -4
- package/resources/connect/index.mjs.map +0 -1
- package/resources/connect/integrations.d.mts +0 -78
- package/resources/connect/integrations.d.mts.map +0 -1
- package/resources/connect/integrations.d.ts +0 -78
- package/resources/connect/integrations.d.ts.map +0 -1
- package/resources/connect/integrations.js +0 -22
- package/resources/connect/integrations.js.map +0 -1
- package/resources/connect/integrations.mjs +0 -18
- package/resources/connect/integrations.mjs.map +0 -1
- package/resources/connect.d.mts +0 -2
- package/resources/connect.d.mts.map +0 -1
- package/resources/connect.d.ts +0 -2
- package/resources/connect.d.ts.map +0 -1
- package/resources/connect.js +0 -6
- package/resources/connect.js.map +0 -1
- package/resources/connect.mjs +0 -3
- package/resources/connect.mjs.map +0 -1
- package/resources/health.d.mts +0 -23
- package/resources/health.d.mts.map +0 -1
- package/resources/health.d.ts +0 -23
- package/resources/health.d.ts.map +0 -1
- package/resources/health.js +0 -21
- package/resources/health.js.map +0 -1
- package/resources/health.mjs +0 -17
- package/resources/health.mjs.map +0 -1
- package/resources/index.d.mts +0 -6
- package/resources/index.d.mts.map +0 -1
- package/resources/index.d.ts +0 -6
- package/resources/index.d.ts.map +0 -1
- package/resources/index.js +0 -15
- package/resources/index.js.map +0 -1
- package/resources/index.mjs +0 -7
- package/resources/index.mjs.map +0 -1
- package/resources/media.d.mts +0 -27
- package/resources/media.d.mts.map +0 -1
- package/resources/media.d.ts +0 -27
- package/resources/media.d.ts.map +0 -1
- package/resources/media.js +0 -15
- package/resources/media.js.map +0 -1
- package/resources/media.mjs +0 -11
- package/resources/media.mjs.map +0 -1
- package/resources/platforms.d.mts +0 -22
- package/resources/platforms.d.mts.map +0 -1
- package/resources/platforms.d.ts +0 -22
- package/resources/platforms.d.ts.map +0 -1
- package/resources/platforms.js +0 -15
- package/resources/platforms.js.map +0 -1
- package/resources/platforms.mjs +0 -11
- package/resources/platforms.mjs.map +0 -1
- package/resources/posts/index.d.mts +0 -3
- package/resources/posts/index.d.mts.map +0 -1
- package/resources/posts/index.d.ts +0 -3
- package/resources/posts/index.d.ts.map +0 -1
- package/resources/posts/index.js +0 -9
- package/resources/posts/index.js.map +0 -1
- package/resources/posts/index.mjs +0 -4
- package/resources/posts/index.mjs.map +0 -1
- package/resources/posts/posts.d.mts +0 -300
- package/resources/posts/posts.d.mts.map +0 -1
- package/resources/posts/posts.d.ts +0 -300
- package/resources/posts/posts.d.ts.map +0 -1
- package/resources/posts/posts.js +0 -69
- package/resources/posts/posts.js.map +0 -1
- package/resources/posts/posts.mjs +0 -64
- package/resources/posts/posts.mjs.map +0 -1
- package/resources/posts/scheduled.d.mts +0 -121
- package/resources/posts/scheduled.d.mts.map +0 -1
- package/resources/posts/scheduled.d.ts +0 -121
- package/resources/posts/scheduled.d.ts.map +0 -1
- package/resources/posts/scheduled.js +0 -49
- package/resources/posts/scheduled.js.map +0 -1
- package/resources/posts/scheduled.mjs +0 -45
- package/resources/posts/scheduled.mjs.map +0 -1
- package/resources/posts.d.mts +0 -2
- package/resources/posts.d.mts.map +0 -1
- package/resources/posts.d.ts +0 -2
- package/resources/posts.d.ts.map +0 -1
- package/resources/posts.js +0 -6
- package/resources/posts.js.map +0 -1
- package/resources/posts.mjs +0 -3
- package/resources/posts.mjs.map +0 -1
- package/resources.d.mts +0 -2
- package/resources.d.mts.map +0 -1
- package/resources.d.ts +0 -2
- package/resources.d.ts.map +0 -1
- package/resources.js +0 -5
- package/resources.js.map +0 -1
- package/resources.mjs +0 -2
- package/resources.mjs.map +0 -1
- package/src/api-promise.ts +0 -2
- package/src/client.ts +0 -789
- package/src/core/README.md +0 -3
- package/src/core/api-promise.ts +0 -92
- package/src/core/error.ts +0 -130
- package/src/core/resource.ts +0 -11
- package/src/core/uploads.ts +0 -2
- package/src/error.ts +0 -2
- package/src/index.ts +0 -22
- package/src/internal/README.md +0 -3
- package/src/internal/builtin-types.ts +0 -93
- package/src/internal/detect-platform.ts +0 -196
- package/src/internal/errors.ts +0 -33
- package/src/internal/headers.ts +0 -97
- package/src/internal/parse.ts +0 -56
- package/src/internal/qs/LICENSE.md +0 -13
- package/src/internal/qs/README.md +0 -3
- package/src/internal/qs/formats.ts +0 -10
- package/src/internal/qs/index.ts +0 -13
- package/src/internal/qs/stringify.ts +0 -385
- package/src/internal/qs/types.ts +0 -71
- package/src/internal/qs/utils.ts +0 -265
- package/src/internal/request-options.ts +0 -91
- package/src/internal/shim-types.ts +0 -26
- package/src/internal/shims.ts +0 -107
- package/src/internal/to-file.ts +0 -154
- package/src/internal/types.ts +0 -93
- package/src/internal/uploads.ts +0 -187
- package/src/internal/utils/base64.ts +0 -40
- package/src/internal/utils/bytes.ts +0 -32
- package/src/internal/utils/env.ts +0 -18
- package/src/internal/utils/log.ts +0 -129
- package/src/internal/utils/path.ts +0 -88
- package/src/internal/utils/query.ts +0 -7
- package/src/internal/utils/sleep.ts +0 -3
- package/src/internal/utils/uuid.ts +0 -17
- package/src/internal/utils/values.ts +0 -105
- package/src/internal/utils.ts +0 -9
- package/src/lib/.keep +0 -4
- package/src/resource.ts +0 -2
- package/src/resources/connect/connect.ts +0 -70
- package/src/resources/connect/index.ts +0 -9
- package/src/resources/connect/integrations.ts +0 -130
- package/src/resources/connect.ts +0 -3
- package/src/resources/health.ts +0 -36
- package/src/resources/index.ts +0 -16
- package/src/resources/media.ts +0 -38
- package/src/resources/platforms.ts +0 -39
- package/src/resources/posts/index.ts +0 -20
- package/src/resources/posts/posts.ts +0 -472
- package/src/resources/posts/scheduled.ts +0 -180
- package/src/resources/posts.ts +0 -3
- package/src/resources.ts +0 -1
- package/src/tsconfig.json +0 -11
- package/src/uploads.ts +0 -2
- package/src/version.ts +0 -1
- package/uploads.d.mts +0 -3
- package/uploads.d.mts.map +0 -1
- package/uploads.d.ts +0 -3
- package/uploads.d.ts.map +0 -1
- package/uploads.js +0 -6
- package/uploads.js.map +0 -1
- package/uploads.mjs +0 -3
- package/uploads.mjs.map +0 -1
- package/version.d.mts +0 -2
- package/version.d.mts.map +0 -1
- package/version.d.ts +0 -2
- package/version.d.ts.map +0 -1
- package/version.js +0 -5
- package/version.js.map +0 -1
- package/version.mjs +0 -2
- package/version.mjs.map +0 -1
|
@@ -1,300 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
-
import * as ScheduledAPI from "./scheduled.mjs";
|
|
3
|
-
import { Scheduled, ScheduledCancelResponse, ScheduledListParams, ScheduledListResponse, ScheduledRescheduleParams, ScheduledRescheduleResponse } from "./scheduled.mjs";
|
|
4
|
-
import { APIPromise } from "../../core/api-promise.mjs";
|
|
5
|
-
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
6
|
-
export declare class Posts extends APIResource {
|
|
7
|
-
scheduled: ScheduledAPI.Scheduled;
|
|
8
|
-
/**
|
|
9
|
-
* Publish a post to one or more social media platforms
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```ts
|
|
13
|
-
* const post = await client.posts.create({
|
|
14
|
-
* content: 'Hello world!',
|
|
15
|
-
* platforms: [
|
|
16
|
-
* { platform: 'twitter', accountId: '<your-account-id>' },
|
|
17
|
-
* ],
|
|
18
|
-
* publishNow: true,
|
|
19
|
-
* });
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
create(body: PostCreateParams, options?: RequestOptions): APIPromise<PostCreateResponse>;
|
|
23
|
-
/**
|
|
24
|
-
* Get a single post by ID
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* ```ts
|
|
28
|
-
* const post = await client.posts.retrieve('postId');
|
|
29
|
-
* ```
|
|
30
|
-
*/
|
|
31
|
-
retrieve(postID: string, options?: RequestOptions): APIPromise<PostRetrieveResponse>;
|
|
32
|
-
/**
|
|
33
|
-
* Returns a paginated list of posts. Filter by status, platform (OR logic), and
|
|
34
|
-
* date ranges. Published posts include platformPostUrl per platform.
|
|
35
|
-
*
|
|
36
|
-
* @example
|
|
37
|
-
* ```ts
|
|
38
|
-
* const posts = await client.posts.list();
|
|
39
|
-
* ```
|
|
40
|
-
*/
|
|
41
|
-
list(query?: PostListParams | null | undefined, options?: RequestOptions): APIPromise<PostListResponse>;
|
|
42
|
-
/**
|
|
43
|
-
* Delete a post by ID
|
|
44
|
-
*
|
|
45
|
-
* @example
|
|
46
|
-
* ```ts
|
|
47
|
-
* const post = await client.posts.delete('postId');
|
|
48
|
-
* ```
|
|
49
|
-
*/
|
|
50
|
-
delete(postID: string, options?: RequestOptions): APIPromise<PostDeleteResponse>;
|
|
51
|
-
}
|
|
52
|
-
export type Status = 'draft' | 'pending' | 'scheduled' | 'publishing' | 'published' | 'failed' | 'partial';
|
|
53
|
-
export interface PostCreateResponse {
|
|
54
|
-
platforms: Array<PostCreateResponse.Platform>;
|
|
55
|
-
/**
|
|
56
|
-
* id of the saved Post document
|
|
57
|
-
*/
|
|
58
|
-
postId: string;
|
|
59
|
-
status: 'draft' | 'pending' | 'scheduled' | 'publishing' | 'published' | 'failed' | 'partial';
|
|
60
|
-
/**
|
|
61
|
-
* false only when every platform failed
|
|
62
|
-
*/
|
|
63
|
-
success: boolean;
|
|
64
|
-
/**
|
|
65
|
-
* ISO 8601 datetime the post is scheduled for (only present for scheduled posts)
|
|
66
|
-
*/
|
|
67
|
-
scheduledFor?: string;
|
|
68
|
-
}
|
|
69
|
-
export declare namespace PostCreateResponse {
|
|
70
|
-
interface Platform {
|
|
71
|
-
platform: 'twitter' | 'instagram' | 'youtube' | 'tiktok' | 'pinterest' | 'linkedin' | 'bluesky' | 'facebook' | 'threads';
|
|
72
|
-
success: boolean;
|
|
73
|
-
/**
|
|
74
|
-
* Error message when success is false
|
|
75
|
-
*/
|
|
76
|
-
error?: string;
|
|
77
|
-
/**
|
|
78
|
-
* Direct URL to the published post
|
|
79
|
-
*/
|
|
80
|
-
platformPostUrl?: string;
|
|
81
|
-
/**
|
|
82
|
-
* Warning message when the post published but a non-critical follow-up action
|
|
83
|
-
* failed
|
|
84
|
-
*/
|
|
85
|
-
warningMessage?: string;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
export interface PostRetrieveResponse {
|
|
89
|
-
post: PostRetrieveResponse.Post;
|
|
90
|
-
success: boolean;
|
|
91
|
-
}
|
|
92
|
-
export declare namespace PostRetrieveResponse {
|
|
93
|
-
interface Post {
|
|
94
|
-
content: string;
|
|
95
|
-
createdAt: string;
|
|
96
|
-
crosspostingEnabled: boolean;
|
|
97
|
-
mediaItems: Array<Post.MediaItem>;
|
|
98
|
-
platforms: Array<Post.Platform>;
|
|
99
|
-
/**
|
|
100
|
-
* MongoDB ObjectId of the Post document
|
|
101
|
-
*/
|
|
102
|
-
postId: string;
|
|
103
|
-
rawRequestBody: {
|
|
104
|
-
[key: string]: unknown;
|
|
105
|
-
};
|
|
106
|
-
/**
|
|
107
|
-
* ISO 8601 scheduled datetime
|
|
108
|
-
*/
|
|
109
|
-
scheduledFor: string | null;
|
|
110
|
-
status: 'draft' | 'pending' | 'scheduled' | 'publishing' | 'published' | 'failed' | 'partial';
|
|
111
|
-
timezone: string;
|
|
112
|
-
updatedAt: string;
|
|
113
|
-
}
|
|
114
|
-
namespace Post {
|
|
115
|
-
interface MediaItem {
|
|
116
|
-
filename: string;
|
|
117
|
-
mimeType: string;
|
|
118
|
-
size: number;
|
|
119
|
-
type: 'image' | 'video' | 'gif';
|
|
120
|
-
url: string;
|
|
121
|
-
}
|
|
122
|
-
interface Platform {
|
|
123
|
-
/**
|
|
124
|
-
* Per-platform text override that was used for this platform. Null when the
|
|
125
|
-
* top-level `content` was used.
|
|
126
|
-
*/
|
|
127
|
-
content: string | null;
|
|
128
|
-
errorMessage: string | null;
|
|
129
|
-
platform: 'twitter' | 'instagram' | 'youtube' | 'tiktok' | 'pinterest' | 'linkedin' | 'bluesky' | 'facebook' | 'threads';
|
|
130
|
-
platformPostId: string | null;
|
|
131
|
-
/**
|
|
132
|
-
* Direct URL to the published post
|
|
133
|
-
*/
|
|
134
|
-
platformPostUrl: string | null;
|
|
135
|
-
publishedAt: string | null;
|
|
136
|
-
status: 'draft' | 'pending' | 'scheduled' | 'publishing' | 'published' | 'failed' | 'partial';
|
|
137
|
-
warningMessage: string | null;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
export interface PostListResponse {
|
|
142
|
-
posts: Array<PostListResponse.Post>;
|
|
143
|
-
success: boolean;
|
|
144
|
-
/**
|
|
145
|
-
* Total matched posts across all pages
|
|
146
|
-
*/
|
|
147
|
-
total: number;
|
|
148
|
-
}
|
|
149
|
-
export declare namespace PostListResponse {
|
|
150
|
-
interface Post {
|
|
151
|
-
content: string;
|
|
152
|
-
createdAt: string;
|
|
153
|
-
crosspostingEnabled: boolean;
|
|
154
|
-
mediaItems: Array<Post.MediaItem>;
|
|
155
|
-
platforms: Array<Post.Platform>;
|
|
156
|
-
/**
|
|
157
|
-
* MongoDB ObjectId of the Post document
|
|
158
|
-
*/
|
|
159
|
-
postId: string;
|
|
160
|
-
rawRequestBody: {
|
|
161
|
-
[key: string]: unknown;
|
|
162
|
-
};
|
|
163
|
-
/**
|
|
164
|
-
* ISO 8601 scheduled datetime
|
|
165
|
-
*/
|
|
166
|
-
scheduledFor: string | null;
|
|
167
|
-
status: 'draft' | 'pending' | 'scheduled' | 'publishing' | 'published' | 'failed' | 'partial';
|
|
168
|
-
timezone: string;
|
|
169
|
-
updatedAt: string;
|
|
170
|
-
}
|
|
171
|
-
namespace Post {
|
|
172
|
-
interface MediaItem {
|
|
173
|
-
filename: string;
|
|
174
|
-
mimeType: string;
|
|
175
|
-
size: number;
|
|
176
|
-
type: 'image' | 'video' | 'gif';
|
|
177
|
-
url: string;
|
|
178
|
-
}
|
|
179
|
-
interface Platform {
|
|
180
|
-
/**
|
|
181
|
-
* Per-platform text override that was used for this platform. Null when the
|
|
182
|
-
* top-level `content` was used.
|
|
183
|
-
*/
|
|
184
|
-
content: string | null;
|
|
185
|
-
errorMessage: string | null;
|
|
186
|
-
platform: 'twitter' | 'instagram' | 'youtube' | 'tiktok' | 'pinterest' | 'linkedin' | 'bluesky' | 'facebook' | 'threads';
|
|
187
|
-
platformPostId: string | null;
|
|
188
|
-
/**
|
|
189
|
-
* Direct URL to the published post
|
|
190
|
-
*/
|
|
191
|
-
platformPostUrl: string | null;
|
|
192
|
-
publishedAt: string | null;
|
|
193
|
-
status: 'draft' | 'pending' | 'scheduled' | 'publishing' | 'published' | 'failed' | 'partial';
|
|
194
|
-
warningMessage: string | null;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
export interface PostDeleteResponse {
|
|
199
|
-
success: boolean;
|
|
200
|
-
}
|
|
201
|
-
export interface PostCreateParams {
|
|
202
|
-
/**
|
|
203
|
-
* Post text body
|
|
204
|
-
*/
|
|
205
|
-
content: string;
|
|
206
|
-
/**
|
|
207
|
-
* Target platform accounts to publish to
|
|
208
|
-
*/
|
|
209
|
-
platforms: Array<PostCreateParams.Platform>;
|
|
210
|
-
/**
|
|
211
|
-
* Media attachments (images, videos, GIFs)
|
|
212
|
-
*/
|
|
213
|
-
mediaItems?: Array<PostCreateParams.MediaItem>;
|
|
214
|
-
/**
|
|
215
|
-
* Publish immediately. Required when scheduledFor is omitted.
|
|
216
|
-
*/
|
|
217
|
-
publishNow?: boolean;
|
|
218
|
-
/**
|
|
219
|
-
* ISO 8601 datetime to schedule the post for future publishing
|
|
220
|
-
*/
|
|
221
|
-
scheduledFor?: string;
|
|
222
|
-
/**
|
|
223
|
-
* IANA timezone for the scheduled time (e.g. America/New_York). Defaults to UTC.
|
|
224
|
-
*/
|
|
225
|
-
timezone?: string;
|
|
226
|
-
}
|
|
227
|
-
export declare namespace PostCreateParams {
|
|
228
|
-
interface Platform {
|
|
229
|
-
/**
|
|
230
|
-
* Integration.\_id — find yours via GET /connect/integrations
|
|
231
|
-
*/
|
|
232
|
-
accountId: string;
|
|
233
|
-
platform: 'twitter' | 'instagram' | 'youtube' | 'tiktok' | 'pinterest' | 'linkedin' | 'bluesky' | 'facebook' | 'threads';
|
|
234
|
-
/**
|
|
235
|
-
* Optional per-platform text override. Use when you want to change the text for
|
|
236
|
-
* this platform because different platforms talk differently. When omitted, the
|
|
237
|
-
* top-level `content` is used.
|
|
238
|
-
*/
|
|
239
|
-
content?: string;
|
|
240
|
-
/**
|
|
241
|
-
* Platform-specific options. See TwitterConfigurations, YouTubeConfigurations,
|
|
242
|
-
* TikTokConfigurations, PinterestConfigurations, or LinkedInConfigurations in the
|
|
243
|
-
* schema reference for available fields per platform.
|
|
244
|
-
*/
|
|
245
|
-
platformSpecificData?: {
|
|
246
|
-
[key: string]: unknown;
|
|
247
|
-
};
|
|
248
|
-
}
|
|
249
|
-
interface MediaItem {
|
|
250
|
-
type: 'image' | 'video' | 'gif';
|
|
251
|
-
url: string;
|
|
252
|
-
/**
|
|
253
|
-
* Thumbnail image URL for video items. Supported on YouTube regular videos (not
|
|
254
|
-
* Shorts). JPEG, PNG, or GIF, max 2 MB, min 640 px wide.
|
|
255
|
-
*/
|
|
256
|
-
thumbnail?: string;
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
export interface PostListParams {
|
|
260
|
-
/**
|
|
261
|
-
* ISO 8601 lower bound on createdAt
|
|
262
|
-
*/
|
|
263
|
-
createdAfter?: string;
|
|
264
|
-
/**
|
|
265
|
-
* ISO 8601 upper bound on createdAt
|
|
266
|
-
*/
|
|
267
|
-
createdBefore?: string;
|
|
268
|
-
/**
|
|
269
|
-
* Page size (max 100)
|
|
270
|
-
*/
|
|
271
|
-
limit?: number;
|
|
272
|
-
/**
|
|
273
|
-
* Number of posts to skip
|
|
274
|
-
*/
|
|
275
|
-
offset?: number;
|
|
276
|
-
/**
|
|
277
|
-
* Filter by platform (repeatable — OR logic)
|
|
278
|
-
*/
|
|
279
|
-
platform?: Array<'twitter' | 'instagram' | 'youtube' | 'tiktok' | 'pinterest' | 'linkedin' | 'bluesky' | 'facebook' | 'threads'>;
|
|
280
|
-
/**
|
|
281
|
-
* Filter to posts targeting an integration bound to this profile. Pass "null"
|
|
282
|
-
* (literal string) to filter to posts whose integrations have no profile.
|
|
283
|
-
*/
|
|
284
|
-
profileId?: string;
|
|
285
|
-
/**
|
|
286
|
-
* ISO 8601 lower bound on scheduledFor
|
|
287
|
-
*/
|
|
288
|
-
scheduledAfter?: string;
|
|
289
|
-
/**
|
|
290
|
-
* ISO 8601 upper bound on scheduledFor
|
|
291
|
-
*/
|
|
292
|
-
scheduledBefore?: string;
|
|
293
|
-
sort?: 'asc' | 'desc';
|
|
294
|
-
status?: 'draft' | 'pending' | 'scheduled' | 'publishing' | 'published' | 'failed' | 'partial';
|
|
295
|
-
}
|
|
296
|
-
export declare namespace Posts {
|
|
297
|
-
export { 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, };
|
|
298
|
-
export { Scheduled as Scheduled, type ScheduledListResponse as ScheduledListResponse, type ScheduledCancelResponse as ScheduledCancelResponse, type ScheduledRescheduleResponse as ScheduledRescheduleResponse, type ScheduledListParams as ScheduledListParams, type ScheduledRescheduleParams as ScheduledRescheduleParams, };
|
|
299
|
-
}
|
|
300
|
-
//# sourceMappingURL=posts.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"posts.d.mts","sourceRoot":"","sources":["../../src/resources/posts/posts.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,YAAY,wBAAoB;AAC5C,OAAO,EACL,SAAS,EACT,uBAAuB,EACvB,mBAAmB,EACnB,qBAAqB,EACrB,yBAAyB,EACzB,2BAA2B,EAC5B,wBAAoB;AACrB,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,KAAM,SAAQ,WAAW;IACpC,SAAS,EAAE,YAAY,CAAC,SAAS,CAA4C;IAE7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K,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;IAEF,OAAO,EACL,SAAS,IAAI,SAAS,EACtB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -1,300 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../core/resource.js";
|
|
2
|
-
import * as ScheduledAPI from "./scheduled.js";
|
|
3
|
-
import { Scheduled, ScheduledCancelResponse, ScheduledListParams, ScheduledListResponse, ScheduledRescheduleParams, ScheduledRescheduleResponse } from "./scheduled.js";
|
|
4
|
-
import { APIPromise } from "../../core/api-promise.js";
|
|
5
|
-
import { RequestOptions } from "../../internal/request-options.js";
|
|
6
|
-
export declare class Posts extends APIResource {
|
|
7
|
-
scheduled: ScheduledAPI.Scheduled;
|
|
8
|
-
/**
|
|
9
|
-
* Publish a post to one or more social media platforms
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```ts
|
|
13
|
-
* const post = await client.posts.create({
|
|
14
|
-
* content: 'Hello world!',
|
|
15
|
-
* platforms: [
|
|
16
|
-
* { platform: 'twitter', accountId: '<your-account-id>' },
|
|
17
|
-
* ],
|
|
18
|
-
* publishNow: true,
|
|
19
|
-
* });
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
create(body: PostCreateParams, options?: RequestOptions): APIPromise<PostCreateResponse>;
|
|
23
|
-
/**
|
|
24
|
-
* Get a single post by ID
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* ```ts
|
|
28
|
-
* const post = await client.posts.retrieve('postId');
|
|
29
|
-
* ```
|
|
30
|
-
*/
|
|
31
|
-
retrieve(postID: string, options?: RequestOptions): APIPromise<PostRetrieveResponse>;
|
|
32
|
-
/**
|
|
33
|
-
* Returns a paginated list of posts. Filter by status, platform (OR logic), and
|
|
34
|
-
* date ranges. Published posts include platformPostUrl per platform.
|
|
35
|
-
*
|
|
36
|
-
* @example
|
|
37
|
-
* ```ts
|
|
38
|
-
* const posts = await client.posts.list();
|
|
39
|
-
* ```
|
|
40
|
-
*/
|
|
41
|
-
list(query?: PostListParams | null | undefined, options?: RequestOptions): APIPromise<PostListResponse>;
|
|
42
|
-
/**
|
|
43
|
-
* Delete a post by ID
|
|
44
|
-
*
|
|
45
|
-
* @example
|
|
46
|
-
* ```ts
|
|
47
|
-
* const post = await client.posts.delete('postId');
|
|
48
|
-
* ```
|
|
49
|
-
*/
|
|
50
|
-
delete(postID: string, options?: RequestOptions): APIPromise<PostDeleteResponse>;
|
|
51
|
-
}
|
|
52
|
-
export type Status = 'draft' | 'pending' | 'scheduled' | 'publishing' | 'published' | 'failed' | 'partial';
|
|
53
|
-
export interface PostCreateResponse {
|
|
54
|
-
platforms: Array<PostCreateResponse.Platform>;
|
|
55
|
-
/**
|
|
56
|
-
* id of the saved Post document
|
|
57
|
-
*/
|
|
58
|
-
postId: string;
|
|
59
|
-
status: 'draft' | 'pending' | 'scheduled' | 'publishing' | 'published' | 'failed' | 'partial';
|
|
60
|
-
/**
|
|
61
|
-
* false only when every platform failed
|
|
62
|
-
*/
|
|
63
|
-
success: boolean;
|
|
64
|
-
/**
|
|
65
|
-
* ISO 8601 datetime the post is scheduled for (only present for scheduled posts)
|
|
66
|
-
*/
|
|
67
|
-
scheduledFor?: string;
|
|
68
|
-
}
|
|
69
|
-
export declare namespace PostCreateResponse {
|
|
70
|
-
interface Platform {
|
|
71
|
-
platform: 'twitter' | 'instagram' | 'youtube' | 'tiktok' | 'pinterest' | 'linkedin' | 'bluesky' | 'facebook' | 'threads';
|
|
72
|
-
success: boolean;
|
|
73
|
-
/**
|
|
74
|
-
* Error message when success is false
|
|
75
|
-
*/
|
|
76
|
-
error?: string;
|
|
77
|
-
/**
|
|
78
|
-
* Direct URL to the published post
|
|
79
|
-
*/
|
|
80
|
-
platformPostUrl?: string;
|
|
81
|
-
/**
|
|
82
|
-
* Warning message when the post published but a non-critical follow-up action
|
|
83
|
-
* failed
|
|
84
|
-
*/
|
|
85
|
-
warningMessage?: string;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
export interface PostRetrieveResponse {
|
|
89
|
-
post: PostRetrieveResponse.Post;
|
|
90
|
-
success: boolean;
|
|
91
|
-
}
|
|
92
|
-
export declare namespace PostRetrieveResponse {
|
|
93
|
-
interface Post {
|
|
94
|
-
content: string;
|
|
95
|
-
createdAt: string;
|
|
96
|
-
crosspostingEnabled: boolean;
|
|
97
|
-
mediaItems: Array<Post.MediaItem>;
|
|
98
|
-
platforms: Array<Post.Platform>;
|
|
99
|
-
/**
|
|
100
|
-
* MongoDB ObjectId of the Post document
|
|
101
|
-
*/
|
|
102
|
-
postId: string;
|
|
103
|
-
rawRequestBody: {
|
|
104
|
-
[key: string]: unknown;
|
|
105
|
-
};
|
|
106
|
-
/**
|
|
107
|
-
* ISO 8601 scheduled datetime
|
|
108
|
-
*/
|
|
109
|
-
scheduledFor: string | null;
|
|
110
|
-
status: 'draft' | 'pending' | 'scheduled' | 'publishing' | 'published' | 'failed' | 'partial';
|
|
111
|
-
timezone: string;
|
|
112
|
-
updatedAt: string;
|
|
113
|
-
}
|
|
114
|
-
namespace Post {
|
|
115
|
-
interface MediaItem {
|
|
116
|
-
filename: string;
|
|
117
|
-
mimeType: string;
|
|
118
|
-
size: number;
|
|
119
|
-
type: 'image' | 'video' | 'gif';
|
|
120
|
-
url: string;
|
|
121
|
-
}
|
|
122
|
-
interface Platform {
|
|
123
|
-
/**
|
|
124
|
-
* Per-platform text override that was used for this platform. Null when the
|
|
125
|
-
* top-level `content` was used.
|
|
126
|
-
*/
|
|
127
|
-
content: string | null;
|
|
128
|
-
errorMessage: string | null;
|
|
129
|
-
platform: 'twitter' | 'instagram' | 'youtube' | 'tiktok' | 'pinterest' | 'linkedin' | 'bluesky' | 'facebook' | 'threads';
|
|
130
|
-
platformPostId: string | null;
|
|
131
|
-
/**
|
|
132
|
-
* Direct URL to the published post
|
|
133
|
-
*/
|
|
134
|
-
platformPostUrl: string | null;
|
|
135
|
-
publishedAt: string | null;
|
|
136
|
-
status: 'draft' | 'pending' | 'scheduled' | 'publishing' | 'published' | 'failed' | 'partial';
|
|
137
|
-
warningMessage: string | null;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
export interface PostListResponse {
|
|
142
|
-
posts: Array<PostListResponse.Post>;
|
|
143
|
-
success: boolean;
|
|
144
|
-
/**
|
|
145
|
-
* Total matched posts across all pages
|
|
146
|
-
*/
|
|
147
|
-
total: number;
|
|
148
|
-
}
|
|
149
|
-
export declare namespace PostListResponse {
|
|
150
|
-
interface Post {
|
|
151
|
-
content: string;
|
|
152
|
-
createdAt: string;
|
|
153
|
-
crosspostingEnabled: boolean;
|
|
154
|
-
mediaItems: Array<Post.MediaItem>;
|
|
155
|
-
platforms: Array<Post.Platform>;
|
|
156
|
-
/**
|
|
157
|
-
* MongoDB ObjectId of the Post document
|
|
158
|
-
*/
|
|
159
|
-
postId: string;
|
|
160
|
-
rawRequestBody: {
|
|
161
|
-
[key: string]: unknown;
|
|
162
|
-
};
|
|
163
|
-
/**
|
|
164
|
-
* ISO 8601 scheduled datetime
|
|
165
|
-
*/
|
|
166
|
-
scheduledFor: string | null;
|
|
167
|
-
status: 'draft' | 'pending' | 'scheduled' | 'publishing' | 'published' | 'failed' | 'partial';
|
|
168
|
-
timezone: string;
|
|
169
|
-
updatedAt: string;
|
|
170
|
-
}
|
|
171
|
-
namespace Post {
|
|
172
|
-
interface MediaItem {
|
|
173
|
-
filename: string;
|
|
174
|
-
mimeType: string;
|
|
175
|
-
size: number;
|
|
176
|
-
type: 'image' | 'video' | 'gif';
|
|
177
|
-
url: string;
|
|
178
|
-
}
|
|
179
|
-
interface Platform {
|
|
180
|
-
/**
|
|
181
|
-
* Per-platform text override that was used for this platform. Null when the
|
|
182
|
-
* top-level `content` was used.
|
|
183
|
-
*/
|
|
184
|
-
content: string | null;
|
|
185
|
-
errorMessage: string | null;
|
|
186
|
-
platform: 'twitter' | 'instagram' | 'youtube' | 'tiktok' | 'pinterest' | 'linkedin' | 'bluesky' | 'facebook' | 'threads';
|
|
187
|
-
platformPostId: string | null;
|
|
188
|
-
/**
|
|
189
|
-
* Direct URL to the published post
|
|
190
|
-
*/
|
|
191
|
-
platformPostUrl: string | null;
|
|
192
|
-
publishedAt: string | null;
|
|
193
|
-
status: 'draft' | 'pending' | 'scheduled' | 'publishing' | 'published' | 'failed' | 'partial';
|
|
194
|
-
warningMessage: string | null;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
export interface PostDeleteResponse {
|
|
199
|
-
success: boolean;
|
|
200
|
-
}
|
|
201
|
-
export interface PostCreateParams {
|
|
202
|
-
/**
|
|
203
|
-
* Post text body
|
|
204
|
-
*/
|
|
205
|
-
content: string;
|
|
206
|
-
/**
|
|
207
|
-
* Target platform accounts to publish to
|
|
208
|
-
*/
|
|
209
|
-
platforms: Array<PostCreateParams.Platform>;
|
|
210
|
-
/**
|
|
211
|
-
* Media attachments (images, videos, GIFs)
|
|
212
|
-
*/
|
|
213
|
-
mediaItems?: Array<PostCreateParams.MediaItem>;
|
|
214
|
-
/**
|
|
215
|
-
* Publish immediately. Required when scheduledFor is omitted.
|
|
216
|
-
*/
|
|
217
|
-
publishNow?: boolean;
|
|
218
|
-
/**
|
|
219
|
-
* ISO 8601 datetime to schedule the post for future publishing
|
|
220
|
-
*/
|
|
221
|
-
scheduledFor?: string;
|
|
222
|
-
/**
|
|
223
|
-
* IANA timezone for the scheduled time (e.g. America/New_York). Defaults to UTC.
|
|
224
|
-
*/
|
|
225
|
-
timezone?: string;
|
|
226
|
-
}
|
|
227
|
-
export declare namespace PostCreateParams {
|
|
228
|
-
interface Platform {
|
|
229
|
-
/**
|
|
230
|
-
* Integration.\_id — find yours via GET /connect/integrations
|
|
231
|
-
*/
|
|
232
|
-
accountId: string;
|
|
233
|
-
platform: 'twitter' | 'instagram' | 'youtube' | 'tiktok' | 'pinterest' | 'linkedin' | 'bluesky' | 'facebook' | 'threads';
|
|
234
|
-
/**
|
|
235
|
-
* Optional per-platform text override. Use when you want to change the text for
|
|
236
|
-
* this platform because different platforms talk differently. When omitted, the
|
|
237
|
-
* top-level `content` is used.
|
|
238
|
-
*/
|
|
239
|
-
content?: string;
|
|
240
|
-
/**
|
|
241
|
-
* Platform-specific options. See TwitterConfigurations, YouTubeConfigurations,
|
|
242
|
-
* TikTokConfigurations, PinterestConfigurations, or LinkedInConfigurations in the
|
|
243
|
-
* schema reference for available fields per platform.
|
|
244
|
-
*/
|
|
245
|
-
platformSpecificData?: {
|
|
246
|
-
[key: string]: unknown;
|
|
247
|
-
};
|
|
248
|
-
}
|
|
249
|
-
interface MediaItem {
|
|
250
|
-
type: 'image' | 'video' | 'gif';
|
|
251
|
-
url: string;
|
|
252
|
-
/**
|
|
253
|
-
* Thumbnail image URL for video items. Supported on YouTube regular videos (not
|
|
254
|
-
* Shorts). JPEG, PNG, or GIF, max 2 MB, min 640 px wide.
|
|
255
|
-
*/
|
|
256
|
-
thumbnail?: string;
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
export interface PostListParams {
|
|
260
|
-
/**
|
|
261
|
-
* ISO 8601 lower bound on createdAt
|
|
262
|
-
*/
|
|
263
|
-
createdAfter?: string;
|
|
264
|
-
/**
|
|
265
|
-
* ISO 8601 upper bound on createdAt
|
|
266
|
-
*/
|
|
267
|
-
createdBefore?: string;
|
|
268
|
-
/**
|
|
269
|
-
* Page size (max 100)
|
|
270
|
-
*/
|
|
271
|
-
limit?: number;
|
|
272
|
-
/**
|
|
273
|
-
* Number of posts to skip
|
|
274
|
-
*/
|
|
275
|
-
offset?: number;
|
|
276
|
-
/**
|
|
277
|
-
* Filter by platform (repeatable — OR logic)
|
|
278
|
-
*/
|
|
279
|
-
platform?: Array<'twitter' | 'instagram' | 'youtube' | 'tiktok' | 'pinterest' | 'linkedin' | 'bluesky' | 'facebook' | 'threads'>;
|
|
280
|
-
/**
|
|
281
|
-
* Filter to posts targeting an integration bound to this profile. Pass "null"
|
|
282
|
-
* (literal string) to filter to posts whose integrations have no profile.
|
|
283
|
-
*/
|
|
284
|
-
profileId?: string;
|
|
285
|
-
/**
|
|
286
|
-
* ISO 8601 lower bound on scheduledFor
|
|
287
|
-
*/
|
|
288
|
-
scheduledAfter?: string;
|
|
289
|
-
/**
|
|
290
|
-
* ISO 8601 upper bound on scheduledFor
|
|
291
|
-
*/
|
|
292
|
-
scheduledBefore?: string;
|
|
293
|
-
sort?: 'asc' | 'desc';
|
|
294
|
-
status?: 'draft' | 'pending' | 'scheduled' | 'publishing' | 'published' | 'failed' | 'partial';
|
|
295
|
-
}
|
|
296
|
-
export declare namespace Posts {
|
|
297
|
-
export { 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, };
|
|
298
|
-
export { Scheduled as Scheduled, type ScheduledListResponse as ScheduledListResponse, type ScheduledCancelResponse as ScheduledCancelResponse, type ScheduledRescheduleResponse as ScheduledRescheduleResponse, type ScheduledListParams as ScheduledListParams, type ScheduledRescheduleParams as ScheduledRescheduleParams, };
|
|
299
|
-
}
|
|
300
|
-
//# sourceMappingURL=posts.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"posts.d.ts","sourceRoot":"","sources":["../../src/resources/posts/posts.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,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