@aurora-interactive/fankare-api-sdk 0.0.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/FUNCTIONS.md +90 -0
- package/README.md +455 -0
- package/RUNTIMES.md +48 -0
- package/esm/core.d.ts +10 -0
- package/esm/core.d.ts.map +1 -0
- package/esm/core.js +13 -0
- package/esm/core.js.map +1 -0
- package/esm/funcs/authentication-login-user.d.ts +15 -0
- package/esm/funcs/authentication-login-user.d.ts.map +1 -0
- package/esm/funcs/authentication-login-user.js +78 -0
- package/esm/funcs/authentication-login-user.js.map +1 -0
- package/esm/funcs/authentication-register-user.d.ts +14 -0
- package/esm/funcs/authentication-register-user.d.ts.map +1 -0
- package/esm/funcs/authentication-register-user.js +77 -0
- package/esm/funcs/authentication-register-user.js.map +1 -0
- package/esm/funcs/custom-lists-add-list-member.d.ts +14 -0
- package/esm/funcs/custom-lists-add-list-member.d.ts.map +1 -0
- package/esm/funcs/custom-lists-add-list-member.js +87 -0
- package/esm/funcs/custom-lists-add-list-member.js.map +1 -0
- package/esm/funcs/custom-lists-create-list.d.ts +15 -0
- package/esm/funcs/custom-lists-create-list.d.ts.map +1 -0
- package/esm/funcs/custom-lists-create-list.js +78 -0
- package/esm/funcs/custom-lists-create-list.js.map +1 -0
- package/esm/funcs/custom-lists-get-list-members.d.ts +14 -0
- package/esm/funcs/custom-lists-get-list-members.d.ts.map +1 -0
- package/esm/funcs/custom-lists-get-list-members.js +86 -0
- package/esm/funcs/custom-lists-get-list-members.js.map +1 -0
- package/esm/funcs/custom-lists-get-lists.d.ts +14 -0
- package/esm/funcs/custom-lists-get-lists.d.ts.map +1 -0
- package/esm/funcs/custom-lists-get-lists.js +67 -0
- package/esm/funcs/custom-lists-get-lists.js.map +1 -0
- package/esm/funcs/custom-lists-remove-list-member.d.ts +13 -0
- package/esm/funcs/custom-lists-remove-list-member.d.ts.map +1 -0
- package/esm/funcs/custom-lists-remove-list-member.js +90 -0
- package/esm/funcs/custom-lists-remove-list-member.js.map +1 -0
- package/esm/funcs/posts-create-post.d.ts +18 -0
- package/esm/funcs/posts-create-post.d.ts.map +1 -0
- package/esm/funcs/posts-create-post.js +81 -0
- package/esm/funcs/posts-create-post.js.map +1 -0
- package/esm/funcs/posts-get-feed.d.ts +17 -0
- package/esm/funcs/posts-get-feed.d.ts.map +1 -0
- package/esm/funcs/posts-get-feed.js +88 -0
- package/esm/funcs/posts-get-feed.js.map +1 -0
- package/esm/funcs/posts-get-list-feed.d.ts +14 -0
- package/esm/funcs/posts-get-list-feed.d.ts.map +1 -0
- package/esm/funcs/posts-get-list-feed.js +91 -0
- package/esm/funcs/posts-get-list-feed.js.map +1 -0
- package/esm/funcs/subscriptions-subscribe-to-user.d.ts +13 -0
- package/esm/funcs/subscriptions-subscribe-to-user.d.ts.map +1 -0
- package/esm/funcs/subscriptions-subscribe-to-user.js +85 -0
- package/esm/funcs/subscriptions-subscribe-to-user.js.map +1 -0
- package/esm/funcs/subscriptions-unsubscribe-from-user.d.ts +13 -0
- package/esm/funcs/subscriptions-unsubscribe-from-user.d.ts.map +1 -0
- package/esm/funcs/subscriptions-unsubscribe-from-user.js +85 -0
- package/esm/funcs/subscriptions-unsubscribe-from-user.js.map +1 -0
- package/esm/hooks/hooks.d.ts +25 -0
- package/esm/hooks/hooks.d.ts.map +1 -0
- package/esm/hooks/hooks.js +80 -0
- package/esm/hooks/hooks.js.map +1 -0
- package/esm/hooks/index.d.ts +3 -0
- package/esm/hooks/index.d.ts.map +1 -0
- package/esm/hooks/index.js +6 -0
- package/esm/hooks/index.js.map +1 -0
- package/esm/hooks/types.d.ts +77 -0
- package/esm/hooks/types.d.ts.map +1 -0
- package/esm/hooks/types.js +5 -0
- package/esm/hooks/types.js.map +1 -0
- package/esm/index.d.ts +6 -0
- package/esm/index.d.ts.map +1 -0
- package/esm/index.js +8 -0
- package/esm/index.js.map +1 -0
- package/esm/lib/base64.d.ts +10 -0
- package/esm/lib/base64.d.ts.map +1 -0
- package/esm/lib/base64.js +31 -0
- package/esm/lib/base64.js.map +1 -0
- package/esm/lib/config.d.ts +38 -0
- package/esm/lib/config.d.ts.map +1 -0
- package/esm/lib/config.js +34 -0
- package/esm/lib/config.js.map +1 -0
- package/esm/lib/encodings.d.ts +54 -0
- package/esm/lib/encodings.d.ts.map +1 -0
- package/esm/lib/encodings.js +391 -0
- package/esm/lib/encodings.js.map +1 -0
- package/esm/lib/files.d.ts +26 -0
- package/esm/lib/files.d.ts.map +1 -0
- package/esm/lib/files.js +91 -0
- package/esm/lib/files.js.map +1 -0
- package/esm/lib/http.d.ts +67 -0
- package/esm/lib/http.d.ts.map +1 -0
- package/esm/lib/http.js +209 -0
- package/esm/lib/http.js.map +1 -0
- package/esm/lib/logger.d.ts +6 -0
- package/esm/lib/logger.d.ts.map +1 -0
- package/esm/lib/logger.js +5 -0
- package/esm/lib/logger.js.map +1 -0
- package/esm/lib/matchers.d.ts +59 -0
- package/esm/lib/matchers.d.ts.map +1 -0
- package/esm/lib/matchers.js +202 -0
- package/esm/lib/matchers.js.map +1 -0
- package/esm/lib/primitives.d.ts +27 -0
- package/esm/lib/primitives.d.ts.map +1 -0
- package/esm/lib/primitives.js +120 -0
- package/esm/lib/primitives.js.map +1 -0
- package/esm/lib/retries.d.ts +38 -0
- package/esm/lib/retries.d.ts.map +1 -0
- package/esm/lib/retries.js +157 -0
- package/esm/lib/retries.js.map +1 -0
- package/esm/lib/schemas.d.ts +21 -0
- package/esm/lib/schemas.d.ts.map +1 -0
- package/esm/lib/schemas.js +57 -0
- package/esm/lib/schemas.js.map +1 -0
- package/esm/lib/sdks.d.ts +63 -0
- package/esm/lib/sdks.d.ts.map +1 -0
- package/esm/lib/sdks.js +290 -0
- package/esm/lib/sdks.js.map +1 -0
- package/esm/lib/security.d.ts +83 -0
- package/esm/lib/security.d.ts.map +1 -0
- package/esm/lib/security.js +148 -0
- package/esm/lib/security.js.map +1 -0
- package/esm/lib/url.d.ts +5 -0
- package/esm/lib/url.d.ts.map +1 -0
- package/esm/lib/url.js +24 -0
- package/esm/lib/url.js.map +1 -0
- package/esm/models/create-post-request.d.ts +22 -0
- package/esm/models/create-post-request.d.ts.map +1 -0
- package/esm/models/create-post-request.js +19 -0
- package/esm/models/create-post-request.js.map +1 -0
- package/esm/models/custom-list.d.ts +12 -0
- package/esm/models/custom-list.d.ts.map +1 -0
- package/esm/models/custom-list.js +17 -0
- package/esm/models/custom-list.js.map +1 -0
- package/esm/models/errors/fankare-sdk-default-error.d.ts +10 -0
- package/esm/models/errors/fankare-sdk-default-error.d.ts.map +1 -0
- package/esm/models/errors/fankare-sdk-default-error.js +30 -0
- package/esm/models/errors/fankare-sdk-default-error.js.map +1 -0
- package/esm/models/errors/fankare-sdk-error.d.ts +19 -0
- package/esm/models/errors/fankare-sdk-error.d.ts.map +1 -0
- package/esm/models/errors/fankare-sdk-error.js +26 -0
- package/esm/models/errors/fankare-sdk-error.js.map +1 -0
- package/esm/models/errors/http-client-errors.d.ts +44 -0
- package/esm/models/errors/http-client-errors.d.ts.map +1 -0
- package/esm/models/errors/http-client-errors.js +56 -0
- package/esm/models/errors/http-client-errors.js.map +1 -0
- package/esm/models/errors/index.d.ts +6 -0
- package/esm/models/errors/index.d.ts.map +1 -0
- package/esm/models/errors/index.js +9 -0
- package/esm/models/errors/index.js.map +1 -0
- package/esm/models/errors/response-validation-error.d.ts +26 -0
- package/esm/models/errors/response-validation-error.d.ts.map +1 -0
- package/esm/models/errors/response-validation-error.js +37 -0
- package/esm/models/errors/response-validation-error.js.map +1 -0
- package/esm/models/errors/sdk-validation-error.d.ts +21 -0
- package/esm/models/errors/sdk-validation-error.d.ts.map +1 -0
- package/esm/models/errors/sdk-validation-error.js +52 -0
- package/esm/models/errors/sdk-validation-error.js.map +1 -0
- package/esm/models/index.d.ts +8 -0
- package/esm/models/index.d.ts.map +1 -0
- package/esm/models/index.js +11 -0
- package/esm/models/index.js.map +1 -0
- package/esm/models/login-request.d.ts +14 -0
- package/esm/models/login-request.d.ts.map +1 -0
- package/esm/models/login-request.js +13 -0
- package/esm/models/login-request.js.map +1 -0
- package/esm/models/operations/add-list-member.d.ts +24 -0
- package/esm/models/operations/add-list-member.d.ts.map +1 -0
- package/esm/models/operations/add-list-member.js +20 -0
- package/esm/models/operations/add-list-member.js.map +1 -0
- package/esm/models/operations/create-list.d.ts +12 -0
- package/esm/models/operations/create-list.d.ts.map +1 -0
- package/esm/models/operations/create-list.js +12 -0
- package/esm/models/operations/create-list.js.map +1 -0
- package/esm/models/operations/create-post.d.ts +17 -0
- package/esm/models/operations/create-post.d.ts.map +1 -0
- package/esm/models/operations/create-post.js +15 -0
- package/esm/models/operations/create-post.js.map +1 -0
- package/esm/models/operations/get-feed.d.ts +30 -0
- package/esm/models/operations/get-feed.d.ts.map +1 -0
- package/esm/models/operations/get-feed.js +24 -0
- package/esm/models/operations/get-feed.js.map +1 -0
- package/esm/models/operations/get-list-feed.d.ts +14 -0
- package/esm/models/operations/get-list-feed.d.ts.map +1 -0
- package/esm/models/operations/get-list-feed.js +13 -0
- package/esm/models/operations/get-list-feed.js.map +1 -0
- package/esm/models/operations/get-list-members.d.ts +12 -0
- package/esm/models/operations/get-list-members.d.ts.map +1 -0
- package/esm/models/operations/get-list-members.js +12 -0
- package/esm/models/operations/get-list-members.js.map +1 -0
- package/esm/models/operations/index.d.ts +11 -0
- package/esm/models/operations/index.d.ts.map +1 -0
- package/esm/models/operations/index.js +14 -0
- package/esm/models/operations/index.js.map +1 -0
- package/esm/models/operations/login-user.d.ts +18 -0
- package/esm/models/operations/login-user.d.ts.map +1 -0
- package/esm/models/operations/login-user.js +16 -0
- package/esm/models/operations/login-user.js.map +1 -0
- package/esm/models/operations/remove-list-member.d.ts +17 -0
- package/esm/models/operations/remove-list-member.d.ts.map +1 -0
- package/esm/models/operations/remove-list-member.js +13 -0
- package/esm/models/operations/remove-list-member.js.map +1 -0
- package/esm/models/operations/subscribe-to-user.d.ts +15 -0
- package/esm/models/operations/subscribe-to-user.d.ts.map +1 -0
- package/esm/models/operations/subscribe-to-user.js +12 -0
- package/esm/models/operations/subscribe-to-user.js.map +1 -0
- package/esm/models/operations/unsubscribe-from-user.d.ts +15 -0
- package/esm/models/operations/unsubscribe-from-user.d.ts.map +1 -0
- package/esm/models/operations/unsubscribe-from-user.js +12 -0
- package/esm/models/operations/unsubscribe-from-user.js.map +1 -0
- package/esm/models/post.d.ts +44 -0
- package/esm/models/post.d.ts.map +1 -0
- package/esm/models/post.js +38 -0
- package/esm/models/post.js.map +1 -0
- package/esm/models/register-request.d.ts +16 -0
- package/esm/models/register-request.d.ts.map +1 -0
- package/esm/models/register-request.js +14 -0
- package/esm/models/register-request.js.map +1 -0
- package/esm/models/security.d.ts +12 -0
- package/esm/models/security.d.ts.map +1 -0
- package/esm/models/security.js +17 -0
- package/esm/models/security.js.map +1 -0
- package/esm/models/user.d.ts +13 -0
- package/esm/models/user.d.ts.map +1 -0
- package/esm/models/user.js +17 -0
- package/esm/models/user.js.map +1 -0
- package/esm/sdk/authentication.d.ts +14 -0
- package/esm/sdk/authentication.d.ts.map +1 -0
- package/esm/sdk/authentication.js +22 -0
- package/esm/sdk/authentication.js.map +1 -0
- package/esm/sdk/custom-lists.d.ts +26 -0
- package/esm/sdk/custom-lists.d.ts.map +1 -0
- package/esm/sdk/custom-lists.js +43 -0
- package/esm/sdk/custom-lists.js.map +1 -0
- package/esm/sdk/index.d.ts +2 -0
- package/esm/sdk/index.d.ts.map +1 -0
- package/esm/sdk/index.js +5 -0
- package/esm/sdk/index.js.map +1 -0
- package/esm/sdk/posts.d.ts +24 -0
- package/esm/sdk/posts.d.ts.map +1 -0
- package/esm/sdk/posts.js +35 -0
- package/esm/sdk/posts.js.map +1 -0
- package/esm/sdk/sdk.d.ts +16 -0
- package/esm/sdk/sdk.d.ts.map +1 -0
- package/esm/sdk/sdk.js +27 -0
- package/esm/sdk/sdk.js.map +1 -0
- package/esm/sdk/subscriptions.d.ts +12 -0
- package/esm/sdk/subscriptions.d.ts.map +1 -0
- package/esm/sdk/subscriptions.js +22 -0
- package/esm/sdk/subscriptions.js.map +1 -0
- package/esm/types/async.d.ts +23 -0
- package/esm/types/async.d.ts.map +1 -0
- package/esm/types/async.js +28 -0
- package/esm/types/async.js.map +1 -0
- package/esm/types/blobs.d.ts +4 -0
- package/esm/types/blobs.d.ts.map +1 -0
- package/esm/types/blobs.js +25 -0
- package/esm/types/blobs.js.map +1 -0
- package/esm/types/const-date-time.d.ts +3 -0
- package/esm/types/const-date-time.d.ts.map +1 -0
- package/esm/types/const-date-time.js +10 -0
- package/esm/types/const-date-time.js.map +1 -0
- package/esm/types/default-to-zero-value.d.ts +12 -0
- package/esm/types/default-to-zero-value.d.ts.map +1 -0
- package/esm/types/default-to-zero-value.js +31 -0
- package/esm/types/default-to-zero-value.js.map +1 -0
- package/esm/types/enums.d.ts +9 -0
- package/esm/types/enums.d.ts.map +1 -0
- package/esm/types/enums.js +27 -0
- package/esm/types/enums.js.map +1 -0
- package/esm/types/fp.d.ts +31 -0
- package/esm/types/fp.d.ts.map +1 -0
- package/esm/types/fp.js +31 -0
- package/esm/types/fp.js.map +1 -0
- package/esm/types/index.d.ts +10 -0
- package/esm/types/index.d.ts.map +1 -0
- package/esm/types/index.js +10 -0
- package/esm/types/index.js.map +1 -0
- package/esm/types/operations.d.ts +27 -0
- package/esm/types/operations.d.ts.map +1 -0
- package/esm/types/operations.js +77 -0
- package/esm/types/operations.js.map +1 -0
- package/esm/types/primitives.d.ts +9 -0
- package/esm/types/primitives.d.ts.map +1 -0
- package/esm/types/primitives.js +109 -0
- package/esm/types/primitives.js.map +1 -0
- package/esm/types/rfcdate.d.ts +21 -0
- package/esm/types/rfcdate.d.ts.map +1 -0
- package/esm/types/rfcdate.js +43 -0
- package/esm/types/rfcdate.js.map +1 -0
- package/esm/types/smart-union.d.ts +7 -0
- package/esm/types/smart-union.d.ts.map +1 -0
- package/esm/types/smart-union.js +117 -0
- package/esm/types/smart-union.js.map +1 -0
- package/esm/types/streams.d.ts +2 -0
- package/esm/types/streams.d.ts.map +1 -0
- package/esm/types/streams.js +15 -0
- package/esm/types/streams.js.map +1 -0
- package/esm/types/unrecognized.d.ts +16 -0
- package/esm/types/unrecognized.d.ts.map +1 -0
- package/esm/types/unrecognized.js +31 -0
- package/esm/types/unrecognized.js.map +1 -0
- package/examples/authenticationRegisterUser.example.ts +29 -0
- package/examples/node_modules/@types/node/assert/strict.d.ts +8 -0
- package/examples/node_modules/@types/node/assert.d.ts +1062 -0
- package/examples/node_modules/@types/node/async_hooks.d.ts +605 -0
- package/examples/node_modules/@types/node/buffer.buffer.d.ts +471 -0
- package/examples/node_modules/@types/node/buffer.d.ts +1936 -0
- package/examples/node_modules/@types/node/child_process.d.ts +1475 -0
- package/examples/node_modules/@types/node/cluster.d.ts +577 -0
- package/examples/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
- package/examples/node_modules/@types/node/compatibility/index.d.ts +9 -0
- package/examples/node_modules/@types/node/compatibility/indexable.d.ts +20 -0
- package/examples/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
- package/examples/node_modules/@types/node/console.d.ts +452 -0
- package/examples/node_modules/@types/node/constants.d.ts +21 -0
- package/examples/node_modules/@types/node/crypto.d.ts +4590 -0
- package/examples/node_modules/@types/node/dgram.d.ts +597 -0
- package/examples/node_modules/@types/node/diagnostics_channel.d.ts +578 -0
- package/examples/node_modules/@types/node/dns/promises.d.ts +479 -0
- package/examples/node_modules/@types/node/dns.d.ts +871 -0
- package/examples/node_modules/@types/node/domain.d.ts +170 -0
- package/examples/node_modules/@types/node/events.d.ts +977 -0
- package/examples/node_modules/@types/node/fs/promises.d.ts +1270 -0
- package/examples/node_modules/@types/node/fs.d.ts +4375 -0
- package/examples/node_modules/@types/node/globals.d.ts +172 -0
- package/examples/node_modules/@types/node/globals.typedarray.d.ts +38 -0
- package/examples/node_modules/@types/node/http.d.ts +2049 -0
- package/examples/node_modules/@types/node/http2.d.ts +2712 -0
- package/examples/node_modules/@types/node/https.d.ts +578 -0
- package/examples/node_modules/@types/node/index.d.ts +93 -0
- package/examples/node_modules/@types/node/inspector.generated.d.ts +3966 -0
- package/examples/node_modules/@types/node/module.d.ts +539 -0
- package/examples/node_modules/@types/node/net.d.ts +1031 -0
- package/examples/node_modules/@types/node/os.d.ts +506 -0
- package/examples/node_modules/@types/node/path.d.ts +200 -0
- package/examples/node_modules/@types/node/perf_hooks.d.ts +961 -0
- package/examples/node_modules/@types/node/process.d.ts +1961 -0
- package/examples/node_modules/@types/node/punycode.d.ts +117 -0
- package/examples/node_modules/@types/node/querystring.d.ts +152 -0
- package/examples/node_modules/@types/node/readline/promises.d.ts +162 -0
- package/examples/node_modules/@types/node/readline.d.ts +589 -0
- package/examples/node_modules/@types/node/repl.d.ts +430 -0
- package/examples/node_modules/@types/node/sea.d.ts +153 -0
- package/examples/node_modules/@types/node/stream/consumers.d.ts +38 -0
- package/examples/node_modules/@types/node/stream/promises.d.ts +90 -0
- package/examples/node_modules/@types/node/stream/web.d.ts +533 -0
- package/examples/node_modules/@types/node/stream.d.ts +1698 -0
- package/examples/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/examples/node_modules/@types/node/test.d.ts +1787 -0
- package/examples/node_modules/@types/node/timers/promises.d.ts +108 -0
- package/examples/node_modules/@types/node/timers.d.ts +286 -0
- package/examples/node_modules/@types/node/tls.d.ts +1259 -0
- package/examples/node_modules/@types/node/trace_events.d.ts +197 -0
- package/examples/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +468 -0
- package/examples/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +34 -0
- package/examples/node_modules/@types/node/ts5.6/index.d.ts +93 -0
- package/examples/node_modules/@types/node/tty.d.ts +208 -0
- package/examples/node_modules/@types/node/url.d.ts +964 -0
- package/examples/node_modules/@types/node/util.d.ts +2331 -0
- package/examples/node_modules/@types/node/v8.d.ts +809 -0
- package/examples/node_modules/@types/node/vm.d.ts +1001 -0
- package/examples/node_modules/@types/node/wasi.d.ts +181 -0
- package/examples/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
- package/examples/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
- package/examples/node_modules/@types/node/web-globals/events.d.ts +97 -0
- package/examples/node_modules/@types/node/web-globals/fetch.d.ts +55 -0
- package/examples/node_modules/@types/node/worker_threads.d.ts +715 -0
- package/examples/node_modules/@types/node/zlib.d.ts +598 -0
- package/examples/node_modules/dotenv/config.d.ts +1 -0
- package/examples/node_modules/dotenv/config.js +9 -0
- package/examples/node_modules/dotenv/lib/cli-options.js +17 -0
- package/examples/node_modules/dotenv/lib/env-options.js +28 -0
- package/examples/node_modules/dotenv/lib/main.d.ts +162 -0
- package/examples/node_modules/dotenv/lib/main.js +386 -0
- package/examples/node_modules/esbuild/install.js +300 -0
- package/examples/node_modules/esbuild/lib/main.d.ts +716 -0
- package/examples/node_modules/esbuild/lib/main.js +2532 -0
- package/examples/node_modules/fsevents/fsevents.d.ts +46 -0
- package/examples/node_modules/fsevents/fsevents.js +83 -0
- package/examples/node_modules/tsx/dist/cjs/api/index.mjs +1 -0
- package/examples/node_modules/tsx/dist/cjs/index.mjs +1 -0
- package/examples/node_modules/tsx/dist/cli.mjs +55 -0
- package/examples/node_modules/tsx/dist/client-D_mPDF5S.mjs +1 -0
- package/examples/node_modules/tsx/dist/esm/api/index.mjs +1 -0
- package/examples/node_modules/tsx/dist/esm/index.mjs +1 -0
- package/examples/node_modules/tsx/dist/get-pipe-path-_tAJyU_v.mjs +1 -0
- package/examples/node_modules/tsx/dist/index-XurvG3JN.mjs +14 -0
- package/examples/node_modules/tsx/dist/index-gbaejti9.mjs +1 -0
- package/examples/node_modules/tsx/dist/lexer-DQCqS3nf.mjs +3 -0
- package/examples/node_modules/tsx/dist/loader.mjs +1 -0
- package/examples/node_modules/tsx/dist/node-features-B9BBLzwu.mjs +1 -0
- package/examples/node_modules/tsx/dist/package-Bj47PlGH.mjs +1 -0
- package/examples/node_modules/tsx/dist/patch-repl.mjs +1 -0
- package/examples/node_modules/tsx/dist/preflight.mjs +1 -0
- package/examples/node_modules/tsx/dist/register-BnTWPeIB.mjs +10 -0
- package/examples/node_modules/tsx/dist/register-CqMfTiWi.mjs +2 -0
- package/examples/node_modules/tsx/dist/repl.mjs +3 -0
- package/examples/node_modules/tsx/dist/require-DzmC1hVr.mjs +1 -0
- package/examples/node_modules/tsx/dist/suppress-warnings.mjs +1 -0
- package/examples/node_modules/tsx/dist/temporary-directory-BDDVQOvU.mjs +1 -0
- package/examples/node_modules/tsx/dist/types-Cxp8y2TL.d.ts +5 -0
- package/examples/node_modules/undici-types/agent.d.ts +31 -0
- package/examples/node_modules/undici-types/api.d.ts +43 -0
- package/examples/node_modules/undici-types/balanced-pool.d.ts +29 -0
- package/examples/node_modules/undici-types/cache.d.ts +36 -0
- package/examples/node_modules/undici-types/client.d.ts +108 -0
- package/examples/node_modules/undici-types/connector.d.ts +34 -0
- package/examples/node_modules/undici-types/content-type.d.ts +21 -0
- package/examples/node_modules/undici-types/cookies.d.ts +28 -0
- package/examples/node_modules/undici-types/diagnostics-channel.d.ts +66 -0
- package/examples/node_modules/undici-types/dispatcher.d.ts +256 -0
- package/examples/node_modules/undici-types/env-http-proxy-agent.d.ts +21 -0
- package/examples/node_modules/undici-types/errors.d.ts +149 -0
- package/examples/node_modules/undici-types/eventsource.d.ts +61 -0
- package/examples/node_modules/undici-types/fetch.d.ts +209 -0
- package/examples/node_modules/undici-types/file.d.ts +39 -0
- package/examples/node_modules/undici-types/filereader.d.ts +54 -0
- package/examples/node_modules/undici-types/formdata.d.ts +108 -0
- package/examples/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/examples/node_modules/undici-types/global-origin.d.ts +7 -0
- package/examples/node_modules/undici-types/handlers.d.ts +15 -0
- package/examples/node_modules/undici-types/header.d.ts +4 -0
- package/examples/node_modules/undici-types/index.d.ts +71 -0
- package/examples/node_modules/undici-types/interceptors.d.ts +17 -0
- package/examples/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/examples/node_modules/undici-types/mock-client.d.ts +25 -0
- package/examples/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/examples/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/examples/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/examples/node_modules/undici-types/patch.d.ts +33 -0
- package/examples/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/examples/node_modules/undici-types/pool.d.ts +39 -0
- package/examples/node_modules/undici-types/proxy-agent.d.ts +28 -0
- package/examples/node_modules/undici-types/readable.d.ts +65 -0
- package/examples/node_modules/undici-types/retry-agent.d.ts +8 -0
- package/examples/node_modules/undici-types/retry-handler.d.ts +116 -0
- package/examples/node_modules/undici-types/util.d.ts +18 -0
- package/examples/node_modules/undici-types/webidl.d.ts +228 -0
- package/examples/node_modules/undici-types/websocket.d.ts +150 -0
- package/jsr.json +27 -0
- package/package.json +62 -0
- package/src/core.ts +13 -0
- package/src/funcs/authentication-login-user.ts +161 -0
- package/src/funcs/authentication-register-user.ts +160 -0
- package/src/funcs/custom-lists-add-list-member.ts +174 -0
- package/src/funcs/custom-lists-create-list.ts +161 -0
- package/src/funcs/custom-lists-get-list-members.ts +170 -0
- package/src/funcs/custom-lists-get-lists.ts +142 -0
- package/src/funcs/custom-lists-remove-list-member.ts +179 -0
- package/src/funcs/posts-create-post.ts +164 -0
- package/src/funcs/posts-get-feed.ts +177 -0
- package/src/funcs/posts-get-list-feed.ts +179 -0
- package/src/funcs/subscriptions-subscribe-to-user.ts +169 -0
- package/src/funcs/subscriptions-unsubscribe-from-user.ts +170 -0
- package/src/hooks/hooks.ts +129 -0
- package/src/hooks/index.ts +6 -0
- package/src/hooks/types.ts +108 -0
- package/src/index.ts +9 -0
- package/src/lib/base64.ts +39 -0
- package/src/lib/config.ts +67 -0
- package/src/lib/encodings.ts +529 -0
- package/src/lib/files.ts +104 -0
- package/src/lib/http.ts +323 -0
- package/src/lib/logger.ts +9 -0
- package/src/lib/matchers.ts +353 -0
- package/src/lib/primitives.ts +166 -0
- package/src/lib/retries.ts +226 -0
- package/src/lib/schemas.ts +94 -0
- package/src/lib/sdks.ts +438 -0
- package/src/lib/security.ts +274 -0
- package/src/lib/url.ts +35 -0
- package/src/models/create-post-request.ts +47 -0
- package/src/models/custom-list.ts +33 -0
- package/src/models/errors/fankare-sdk-default-error.ts +40 -0
- package/src/models/errors/fankare-sdk-error.ts +35 -0
- package/src/models/errors/http-client-errors.ts +62 -0
- package/src/models/errors/index.ts +9 -0
- package/src/models/errors/response-validation-error.ts +50 -0
- package/src/models/errors/sdk-validation-error.ts +54 -0
- package/src/models/index.ts +11 -0
- package/src/models/login-request.ts +29 -0
- package/src/models/operations/add-list-member.ts +58 -0
- package/src/models/operations/create-list.ts +30 -0
- package/src/models/operations/create-post.ts +39 -0
- package/src/models/operations/get-feed.ts +64 -0
- package/src/models/operations/get-list-feed.ts +33 -0
- package/src/models/operations/get-list-members.ts +30 -0
- package/src/models/operations/index.ts +14 -0
- package/src/models/operations/login-user.ts +40 -0
- package/src/models/operations/remove-list-member.ts +36 -0
- package/src/models/operations/subscribe-to-user.ts +33 -0
- package/src/models/operations/unsubscribe-from-user.ts +33 -0
- package/src/models/post.ts +77 -0
- package/src/models/register-request.ts +34 -0
- package/src/models/security.ts +34 -0
- package/src/models/user.ts +34 -0
- package/src/sdk/authentication.ts +40 -0
- package/src/sdk/custom-lists.ts +87 -0
- package/src/sdk/index.ts +5 -0
- package/src/sdk/posts.ts +65 -0
- package/src/sdk/sdk.ts +31 -0
- package/src/sdk/subscriptions.ts +38 -0
- package/src/types/async.ts +69 -0
- package/src/types/blobs.ts +33 -0
- package/src/types/const-date-time.ts +15 -0
- package/src/types/default-to-zero-value.ts +33 -0
- package/src/types/enums.ts +45 -0
- package/src/types/fp.ts +50 -0
- package/src/types/index.ts +13 -0
- package/src/types/operations.ts +105 -0
- package/src/types/primitives.ts +140 -0
- package/src/types/rfcdate.ts +54 -0
- package/src/types/smart-union.ts +153 -0
- package/src/types/streams.ts +21 -0
- package/src/types/unrecognized.ts +35 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import * as types from "../../types/primitives.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
10
|
+
import * as models from "../index.js";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Authentication successful
|
|
14
|
+
*/
|
|
15
|
+
export type LoginUserResponse = {
|
|
16
|
+
/**
|
|
17
|
+
* JWT Access Token
|
|
18
|
+
*/
|
|
19
|
+
token?: string | undefined;
|
|
20
|
+
user?: models.User | undefined;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const LoginUserResponse$inboundSchema: z.ZodMiniType<
|
|
25
|
+
LoginUserResponse,
|
|
26
|
+
unknown
|
|
27
|
+
> = z.object({
|
|
28
|
+
token: types.optional(types.string()),
|
|
29
|
+
user: types.optional(models.User$inboundSchema),
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
export function loginUserResponseFromJSON(
|
|
33
|
+
jsonString: string,
|
|
34
|
+
): SafeParseResult<LoginUserResponse, SDKValidationError> {
|
|
35
|
+
return safeParse(
|
|
36
|
+
jsonString,
|
|
37
|
+
(x) => LoginUserResponse$inboundSchema.parse(JSON.parse(x)),
|
|
38
|
+
`Failed to parse 'LoginUserResponse' from JSON`,
|
|
39
|
+
);
|
|
40
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
|
|
7
|
+
export type RemoveListMemberRequest = {
|
|
8
|
+
listId: number;
|
|
9
|
+
/**
|
|
10
|
+
* The ID of the member user to drop from the grouping
|
|
11
|
+
*/
|
|
12
|
+
userId: number;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export type RemoveListMemberRequest$Outbound = {
|
|
17
|
+
listId: number;
|
|
18
|
+
userId: number;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const RemoveListMemberRequest$outboundSchema: z.ZodMiniType<
|
|
23
|
+
RemoveListMemberRequest$Outbound,
|
|
24
|
+
RemoveListMemberRequest
|
|
25
|
+
> = z.object({
|
|
26
|
+
listId: z.int(),
|
|
27
|
+
userId: z.int(),
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
export function removeListMemberRequestToJSON(
|
|
31
|
+
removeListMemberRequest: RemoveListMemberRequest,
|
|
32
|
+
): string {
|
|
33
|
+
return JSON.stringify(
|
|
34
|
+
RemoveListMemberRequest$outboundSchema.parse(removeListMemberRequest),
|
|
35
|
+
);
|
|
36
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
|
|
7
|
+
export type SubscribeToUserRequest = {
|
|
8
|
+
/**
|
|
9
|
+
* The ID of the user to subscribe to
|
|
10
|
+
*/
|
|
11
|
+
userId: number;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export type SubscribeToUserRequest$Outbound = {
|
|
16
|
+
userId: number;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const SubscribeToUserRequest$outboundSchema: z.ZodMiniType<
|
|
21
|
+
SubscribeToUserRequest$Outbound,
|
|
22
|
+
SubscribeToUserRequest
|
|
23
|
+
> = z.object({
|
|
24
|
+
userId: z.int(),
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
export function subscribeToUserRequestToJSON(
|
|
28
|
+
subscribeToUserRequest: SubscribeToUserRequest,
|
|
29
|
+
): string {
|
|
30
|
+
return JSON.stringify(
|
|
31
|
+
SubscribeToUserRequest$outboundSchema.parse(subscribeToUserRequest),
|
|
32
|
+
);
|
|
33
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
|
|
7
|
+
export type UnsubscribeFromUserRequest = {
|
|
8
|
+
/**
|
|
9
|
+
* The ID of the user to unsubscribe from
|
|
10
|
+
*/
|
|
11
|
+
userId: number;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export type UnsubscribeFromUserRequest$Outbound = {
|
|
16
|
+
userId: number;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const UnsubscribeFromUserRequest$outboundSchema: z.ZodMiniType<
|
|
21
|
+
UnsubscribeFromUserRequest$Outbound,
|
|
22
|
+
UnsubscribeFromUserRequest
|
|
23
|
+
> = z.object({
|
|
24
|
+
userId: z.int(),
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
export function unsubscribeFromUserRequestToJSON(
|
|
28
|
+
unsubscribeFromUserRequest: UnsubscribeFromUserRequest,
|
|
29
|
+
): string {
|
|
30
|
+
return JSON.stringify(
|
|
31
|
+
UnsubscribeFromUserRequest$outboundSchema.parse(unsubscribeFromUserRequest),
|
|
32
|
+
);
|
|
33
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import * as openEnums from "../types/enums.js";
|
|
8
|
+
import { OpenEnum } from "../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
10
|
+
import * as types from "../types/primitives.js";
|
|
11
|
+
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
12
|
+
|
|
13
|
+
export const PostMediaType = {
|
|
14
|
+
Image: "IMAGE",
|
|
15
|
+
Video: "VIDEO",
|
|
16
|
+
} as const;
|
|
17
|
+
export type PostMediaType = OpenEnum<typeof PostMediaType>;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* The processing lifecycle phase managed by the Python transcoder workers.
|
|
21
|
+
*/
|
|
22
|
+
export const Status = {
|
|
23
|
+
Processing: "PROCESSING",
|
|
24
|
+
Ready: "READY",
|
|
25
|
+
Failed: "FAILED",
|
|
26
|
+
} as const;
|
|
27
|
+
/**
|
|
28
|
+
* The processing lifecycle phase managed by the Python transcoder workers.
|
|
29
|
+
*/
|
|
30
|
+
export type Status = OpenEnum<typeof Status>;
|
|
31
|
+
|
|
32
|
+
export type Post = {
|
|
33
|
+
id?: number | undefined;
|
|
34
|
+
userId?: number | undefined;
|
|
35
|
+
caption?: string | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* Fully resolved asset URI served out of SeaweedFS mapping
|
|
38
|
+
*/
|
|
39
|
+
mediaUrl?: string | undefined;
|
|
40
|
+
mediaType?: PostMediaType | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* The processing lifecycle phase managed by the Python transcoder workers.
|
|
43
|
+
*/
|
|
44
|
+
status?: Status | undefined;
|
|
45
|
+
createdAt?: Date | undefined;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
/** @internal */
|
|
49
|
+
export const PostMediaType$inboundSchema: z.ZodMiniType<
|
|
50
|
+
PostMediaType,
|
|
51
|
+
unknown
|
|
52
|
+
> = openEnums.inboundSchema(PostMediaType);
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export const Status$inboundSchema: z.ZodMiniType<Status, unknown> = openEnums
|
|
56
|
+
.inboundSchema(Status);
|
|
57
|
+
|
|
58
|
+
/** @internal */
|
|
59
|
+
export const Post$inboundSchema: z.ZodMiniType<Post, unknown> = z.object({
|
|
60
|
+
id: types.optional(types.number()),
|
|
61
|
+
userId: types.optional(types.number()),
|
|
62
|
+
caption: types.optional(types.string()),
|
|
63
|
+
mediaUrl: types.optional(types.string()),
|
|
64
|
+
mediaType: types.optional(PostMediaType$inboundSchema),
|
|
65
|
+
status: types.optional(Status$inboundSchema),
|
|
66
|
+
createdAt: types.optional(types.date()),
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
export function postFromJSON(
|
|
70
|
+
jsonString: string,
|
|
71
|
+
): SafeParseResult<Post, SDKValidationError> {
|
|
72
|
+
return safeParse(
|
|
73
|
+
jsonString,
|
|
74
|
+
(x) => Post$inboundSchema.parse(JSON.parse(x)),
|
|
75
|
+
`Failed to parse 'Post' from JSON`,
|
|
76
|
+
);
|
|
77
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
|
|
7
|
+
export type RegisterRequest = {
|
|
8
|
+
username: string;
|
|
9
|
+
password: string;
|
|
10
|
+
displayName?: string | undefined;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
/** @internal */
|
|
14
|
+
export type RegisterRequest$Outbound = {
|
|
15
|
+
username: string;
|
|
16
|
+
password: string;
|
|
17
|
+
displayName?: string | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const RegisterRequest$outboundSchema: z.ZodMiniType<
|
|
22
|
+
RegisterRequest$Outbound,
|
|
23
|
+
RegisterRequest
|
|
24
|
+
> = z.object({
|
|
25
|
+
username: z.string(),
|
|
26
|
+
password: z.string(),
|
|
27
|
+
displayName: z.optional(z.string()),
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
export function registerRequestToJSON(
|
|
31
|
+
registerRequest: RegisterRequest,
|
|
32
|
+
): string {
|
|
33
|
+
return JSON.stringify(RegisterRequest$outboundSchema.parse(registerRequest));
|
|
34
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
|
|
8
|
+
export type Security = {
|
|
9
|
+
bearerAuth: string;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
/** @internal */
|
|
13
|
+
export type Security$Outbound = {
|
|
14
|
+
BearerAuth: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const Security$outboundSchema: z.ZodMiniType<
|
|
19
|
+
Security$Outbound,
|
|
20
|
+
Security
|
|
21
|
+
> = z.pipe(
|
|
22
|
+
z.object({
|
|
23
|
+
bearerAuth: z.string(),
|
|
24
|
+
}),
|
|
25
|
+
z.transform((v) => {
|
|
26
|
+
return remap$(v, {
|
|
27
|
+
bearerAuth: "BearerAuth",
|
|
28
|
+
});
|
|
29
|
+
}),
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
export function securityToJSON(security: Security): string {
|
|
33
|
+
return JSON.stringify(Security$outboundSchema.parse(security));
|
|
34
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
8
|
+
import * as types from "../types/primitives.js";
|
|
9
|
+
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
10
|
+
|
|
11
|
+
export type User = {
|
|
12
|
+
id?: number | undefined;
|
|
13
|
+
username?: string | undefined;
|
|
14
|
+
displayName?: string | undefined;
|
|
15
|
+
createdAt?: Date | undefined;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const User$inboundSchema: z.ZodMiniType<User, unknown> = z.object({
|
|
20
|
+
id: types.optional(types.number()),
|
|
21
|
+
username: types.optional(types.string()),
|
|
22
|
+
displayName: types.optional(types.string()),
|
|
23
|
+
createdAt: types.optional(types.date()),
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
export function userFromJSON(
|
|
27
|
+
jsonString: string,
|
|
28
|
+
): SafeParseResult<User, SDKValidationError> {
|
|
29
|
+
return safeParse(
|
|
30
|
+
jsonString,
|
|
31
|
+
(x) => User$inboundSchema.parse(JSON.parse(x)),
|
|
32
|
+
`Failed to parse 'User' from JSON`,
|
|
33
|
+
);
|
|
34
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { authenticationLoginUser } from "../funcs/authentication-login-user.js";
|
|
6
|
+
import { authenticationRegisterUser } from "../funcs/authentication-register-user.js";
|
|
7
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
8
|
+
import * as models from "../models/index.js";
|
|
9
|
+
import * as operations from "../models/operations/index.js";
|
|
10
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
11
|
+
|
|
12
|
+
export class Authentication extends ClientSDK {
|
|
13
|
+
/**
|
|
14
|
+
* Register a new user
|
|
15
|
+
*/
|
|
16
|
+
async registerUser(
|
|
17
|
+
request: models.RegisterRequest,
|
|
18
|
+
options?: RequestOptions,
|
|
19
|
+
): Promise<models.User> {
|
|
20
|
+
return unwrapAsync(authenticationRegisterUser(
|
|
21
|
+
this,
|
|
22
|
+
request,
|
|
23
|
+
options,
|
|
24
|
+
));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Authenticate user and receive a token
|
|
29
|
+
*/
|
|
30
|
+
async loginUser(
|
|
31
|
+
request: models.LoginRequest,
|
|
32
|
+
options?: RequestOptions,
|
|
33
|
+
): Promise<operations.LoginUserResponse> {
|
|
34
|
+
return unwrapAsync(authenticationLoginUser(
|
|
35
|
+
this,
|
|
36
|
+
request,
|
|
37
|
+
options,
|
|
38
|
+
));
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { customListsAddListMember } from "../funcs/custom-lists-add-list-member.js";
|
|
6
|
+
import { customListsCreateList } from "../funcs/custom-lists-create-list.js";
|
|
7
|
+
import { customListsGetListMembers } from "../funcs/custom-lists-get-list-members.js";
|
|
8
|
+
import { customListsGetLists } from "../funcs/custom-lists-get-lists.js";
|
|
9
|
+
import { customListsRemoveListMember } from "../funcs/custom-lists-remove-list-member.js";
|
|
10
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import * as models from "../models/index.js";
|
|
12
|
+
import * as operations from "../models/operations/index.js";
|
|
13
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
14
|
+
|
|
15
|
+
export class CustomLists extends ClientSDK {
|
|
16
|
+
/**
|
|
17
|
+
* Get all custom lists created by the user
|
|
18
|
+
*/
|
|
19
|
+
async getLists(
|
|
20
|
+
options?: RequestOptions,
|
|
21
|
+
): Promise<Array<models.CustomList>> {
|
|
22
|
+
return unwrapAsync(customListsGetLists(
|
|
23
|
+
this,
|
|
24
|
+
options,
|
|
25
|
+
));
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Create a new custom grouping list
|
|
30
|
+
*/
|
|
31
|
+
async createList(
|
|
32
|
+
request: operations.CreateListRequest,
|
|
33
|
+
options?: RequestOptions,
|
|
34
|
+
): Promise<models.CustomList> {
|
|
35
|
+
return unwrapAsync(customListsCreateList(
|
|
36
|
+
this,
|
|
37
|
+
request,
|
|
38
|
+
options,
|
|
39
|
+
));
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Get all members belonging to a custom list
|
|
44
|
+
*/
|
|
45
|
+
async getListMembers(
|
|
46
|
+
listId: number,
|
|
47
|
+
options?: RequestOptions,
|
|
48
|
+
): Promise<Array<models.User>> {
|
|
49
|
+
return unwrapAsync(customListsGetListMembers(
|
|
50
|
+
this,
|
|
51
|
+
listId,
|
|
52
|
+
options,
|
|
53
|
+
));
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Add a user to a custom list
|
|
58
|
+
*/
|
|
59
|
+
async addListMember(
|
|
60
|
+
listId: number,
|
|
61
|
+
body: operations.AddListMemberRequestBody,
|
|
62
|
+
options?: RequestOptions,
|
|
63
|
+
): Promise<void> {
|
|
64
|
+
return unwrapAsync(customListsAddListMember(
|
|
65
|
+
this,
|
|
66
|
+
listId,
|
|
67
|
+
body,
|
|
68
|
+
options,
|
|
69
|
+
));
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Remove a user from a custom list
|
|
74
|
+
*/
|
|
75
|
+
async removeListMember(
|
|
76
|
+
listId: number,
|
|
77
|
+
userId: number,
|
|
78
|
+
options?: RequestOptions,
|
|
79
|
+
): Promise<void> {
|
|
80
|
+
return unwrapAsync(customListsRemoveListMember(
|
|
81
|
+
this,
|
|
82
|
+
listId,
|
|
83
|
+
userId,
|
|
84
|
+
options,
|
|
85
|
+
));
|
|
86
|
+
}
|
|
87
|
+
}
|
package/src/sdk/index.ts
ADDED
package/src/sdk/posts.ts
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { postsCreatePost } from "../funcs/posts-create-post.js";
|
|
6
|
+
import { postsGetFeed } from "../funcs/posts-get-feed.js";
|
|
7
|
+
import { postsGetListFeed } from "../funcs/posts-get-list-feed.js";
|
|
8
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
9
|
+
import * as models from "../models/index.js";
|
|
10
|
+
import * as operations from "../models/operations/index.js";
|
|
11
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
12
|
+
|
|
13
|
+
export class Posts extends ClientSDK {
|
|
14
|
+
/**
|
|
15
|
+
* Get the consolidated timeline feed
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* Retrieves posts from users the current authenticated user is subscribed to.
|
|
19
|
+
*/
|
|
20
|
+
async getFeed(
|
|
21
|
+
limit?: number | undefined,
|
|
22
|
+
cursor?: string | undefined,
|
|
23
|
+
options?: RequestOptions,
|
|
24
|
+
): Promise<operations.GetFeedResponse> {
|
|
25
|
+
return unwrapAsync(postsGetFeed(
|
|
26
|
+
this,
|
|
27
|
+
limit,
|
|
28
|
+
cursor,
|
|
29
|
+
options,
|
|
30
|
+
));
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Create a placeholder post meta and request an upload slot
|
|
35
|
+
*
|
|
36
|
+
* @remarks
|
|
37
|
+
* Returns a destination URL to upload the raw multimedia asset directly to SeaweedFS via presigned routing.
|
|
38
|
+
*/
|
|
39
|
+
async createPost(
|
|
40
|
+
request: models.CreatePostRequest,
|
|
41
|
+
options?: RequestOptions,
|
|
42
|
+
): Promise<operations.CreatePostResponse> {
|
|
43
|
+
return unwrapAsync(postsCreatePost(
|
|
44
|
+
this,
|
|
45
|
+
request,
|
|
46
|
+
options,
|
|
47
|
+
));
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Get a timeline filtered strictly by members of this list
|
|
52
|
+
*/
|
|
53
|
+
async getListFeed(
|
|
54
|
+
listId: number,
|
|
55
|
+
limit?: number | undefined,
|
|
56
|
+
options?: RequestOptions,
|
|
57
|
+
): Promise<Array<models.Post>> {
|
|
58
|
+
return unwrapAsync(postsGetListFeed(
|
|
59
|
+
this,
|
|
60
|
+
listId,
|
|
61
|
+
limit,
|
|
62
|
+
options,
|
|
63
|
+
));
|
|
64
|
+
}
|
|
65
|
+
}
|
package/src/sdk/sdk.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { ClientSDK } from "../lib/sdks.js";
|
|
6
|
+
import { Authentication } from "./authentication.js";
|
|
7
|
+
import { CustomLists } from "./custom-lists.js";
|
|
8
|
+
import { Posts } from "./posts.js";
|
|
9
|
+
import { Subscriptions } from "./subscriptions.js";
|
|
10
|
+
|
|
11
|
+
export class FankareSDK extends ClientSDK {
|
|
12
|
+
private _authentication?: Authentication;
|
|
13
|
+
get authentication(): Authentication {
|
|
14
|
+
return (this._authentication ??= new Authentication(this._options));
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
private _subscriptions?: Subscriptions;
|
|
18
|
+
get subscriptions(): Subscriptions {
|
|
19
|
+
return (this._subscriptions ??= new Subscriptions(this._options));
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
private _posts?: Posts;
|
|
23
|
+
get posts(): Posts {
|
|
24
|
+
return (this._posts ??= new Posts(this._options));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
private _customLists?: CustomLists;
|
|
28
|
+
get customLists(): CustomLists {
|
|
29
|
+
return (this._customLists ??= new CustomLists(this._options));
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { subscriptionsSubscribeToUser } from "../funcs/subscriptions-subscribe-to-user.js";
|
|
6
|
+
import { subscriptionsUnsubscribeFromUser } from "../funcs/subscriptions-unsubscribe-from-user.js";
|
|
7
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
8
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
9
|
+
|
|
10
|
+
export class Subscriptions extends ClientSDK {
|
|
11
|
+
/**
|
|
12
|
+
* Subscribe to a user's feed
|
|
13
|
+
*/
|
|
14
|
+
async subscribeToUser(
|
|
15
|
+
userId: number,
|
|
16
|
+
options?: RequestOptions,
|
|
17
|
+
): Promise<void> {
|
|
18
|
+
return unwrapAsync(subscriptionsSubscribeToUser(
|
|
19
|
+
this,
|
|
20
|
+
userId,
|
|
21
|
+
options,
|
|
22
|
+
));
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Unsubscribe from a user's feed
|
|
27
|
+
*/
|
|
28
|
+
async unsubscribeFromUser(
|
|
29
|
+
userId: number,
|
|
30
|
+
options?: RequestOptions,
|
|
31
|
+
): Promise<void> {
|
|
32
|
+
return unwrapAsync(subscriptionsUnsubscribeFromUser(
|
|
33
|
+
this,
|
|
34
|
+
userId,
|
|
35
|
+
options,
|
|
36
|
+
));
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
export type APICall =
|
|
6
|
+
| {
|
|
7
|
+
status: "complete";
|
|
8
|
+
request: Request;
|
|
9
|
+
response: Response;
|
|
10
|
+
}
|
|
11
|
+
| {
|
|
12
|
+
status: "request-error";
|
|
13
|
+
request: Request;
|
|
14
|
+
response?: undefined;
|
|
15
|
+
}
|
|
16
|
+
| {
|
|
17
|
+
status: "invalid";
|
|
18
|
+
request?: undefined;
|
|
19
|
+
response?: undefined;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export class APIPromise<T> implements Promise<T> {
|
|
23
|
+
readonly #promise: Promise<[T, APICall]>;
|
|
24
|
+
#unwrapped: Promise<T> | null;
|
|
25
|
+
|
|
26
|
+
readonly [Symbol.toStringTag] = "APIPromise";
|
|
27
|
+
|
|
28
|
+
constructor(p: [T, APICall] | Promise<[T, APICall]>) {
|
|
29
|
+
this.#promise = p instanceof Promise ? p : Promise.resolve(p);
|
|
30
|
+
this.#unwrapped = p instanceof Promise ? null : Promise.resolve(p[0]);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
#getUnwrapped(): Promise<T> {
|
|
34
|
+
return (this.#unwrapped ??= this.#promise.then(([value]) => value));
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
then<TResult1 = T, TResult2 = never>(
|
|
38
|
+
onfulfilled?:
|
|
39
|
+
| ((value: T) => TResult1 | PromiseLike<TResult1>)
|
|
40
|
+
| null
|
|
41
|
+
| undefined,
|
|
42
|
+
onrejected?:
|
|
43
|
+
| ((reason: any) => TResult2 | PromiseLike<TResult2>)
|
|
44
|
+
| null
|
|
45
|
+
| undefined,
|
|
46
|
+
): Promise<TResult1 | TResult2> {
|
|
47
|
+
return this.#promise.then(
|
|
48
|
+
onfulfilled ? ([value]) => onfulfilled(value) : void 0,
|
|
49
|
+
onrejected,
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
catch<TResult = never>(
|
|
54
|
+
onrejected?:
|
|
55
|
+
| ((reason: any) => TResult | PromiseLike<TResult>)
|
|
56
|
+
| null
|
|
57
|
+
| undefined,
|
|
58
|
+
): Promise<T | TResult> {
|
|
59
|
+
return this.#getUnwrapped().catch(onrejected);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
finally(onfinally?: (() => void) | null | undefined): Promise<T> {
|
|
63
|
+
return this.#getUnwrapped().finally(onfinally);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
$inspect(): Promise<[T, APICall]> {
|
|
67
|
+
return this.#promise;
|
|
68
|
+
}
|
|
69
|
+
}
|