@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,108 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { SDKOptions } from "../lib/config.js";
|
|
6
|
+
import { RequestInput } from "../lib/http.js";
|
|
7
|
+
import { RetryConfig } from "../lib/retries.js";
|
|
8
|
+
import { SecurityState } from "../lib/security.js";
|
|
9
|
+
|
|
10
|
+
export type HookContext = {
|
|
11
|
+
baseURL: string | URL;
|
|
12
|
+
operationID: string;
|
|
13
|
+
oAuth2Scopes: string[] | null;
|
|
14
|
+
securitySource?: any | (() => Promise<any>);
|
|
15
|
+
retryConfig: RetryConfig;
|
|
16
|
+
resolvedSecurity: SecurityState | null;
|
|
17
|
+
options: SDKOptions;
|
|
18
|
+
timeoutMs?: number;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export type Awaitable<T> = T | Promise<T>;
|
|
22
|
+
|
|
23
|
+
export type BeforeCreateRequestContext = HookContext & {};
|
|
24
|
+
export type BeforeRequestContext = HookContext & {};
|
|
25
|
+
export type AfterSuccessContext = HookContext & {};
|
|
26
|
+
export type AfterErrorContext = HookContext & {};
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* SDKInitHook is called when the SDK is initializing. The
|
|
30
|
+
* hook can return a new baseURL and HTTP client to be used by the SDK.
|
|
31
|
+
*/
|
|
32
|
+
export interface SDKInitHook {
|
|
33
|
+
sdkInit: (opts: SDKOptions) => SDKOptions;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface BeforeCreateRequestHook {
|
|
37
|
+
/**
|
|
38
|
+
* A hook that is called before the SDK creates a `Request` object. The hook
|
|
39
|
+
* can modify how a request is constructed since certain modifications, like
|
|
40
|
+
* changing the request URL, cannot be done on a request object directly.
|
|
41
|
+
*/
|
|
42
|
+
beforeCreateRequest: (
|
|
43
|
+
hookCtx: BeforeCreateRequestContext,
|
|
44
|
+
input: RequestInput,
|
|
45
|
+
) => RequestInput;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export interface BeforeRequestHook {
|
|
49
|
+
/**
|
|
50
|
+
* A hook that is called before the SDK sends a request. The hook can
|
|
51
|
+
* introduce instrumentation code such as logging, tracing and metrics or
|
|
52
|
+
* replace the request before it is sent or throw an error to stop the
|
|
53
|
+
* request from being sent.
|
|
54
|
+
*/
|
|
55
|
+
beforeRequest: (
|
|
56
|
+
hookCtx: BeforeRequestContext,
|
|
57
|
+
request: Request,
|
|
58
|
+
) => Awaitable<Request>;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export interface AfterSuccessHook {
|
|
62
|
+
/**
|
|
63
|
+
* A hook that is called after the SDK receives a response. The hook can
|
|
64
|
+
* introduce instrumentation code such as logging, tracing and metrics or
|
|
65
|
+
* modify the response before it is handled or throw an error to stop the
|
|
66
|
+
* response from being handled.
|
|
67
|
+
*/
|
|
68
|
+
afterSuccess: (
|
|
69
|
+
hookCtx: AfterSuccessContext,
|
|
70
|
+
response: Response,
|
|
71
|
+
) => Awaitable<Response>;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export interface AfterErrorHook {
|
|
75
|
+
/**
|
|
76
|
+
* A hook that is called after the SDK encounters an error, or a
|
|
77
|
+
* non-successful response. The hook can introduce instrumentation code such
|
|
78
|
+
* as logging, tracing and metrics or modify the response or error values.
|
|
79
|
+
*/
|
|
80
|
+
afterError: (
|
|
81
|
+
hookCtx: AfterErrorContext,
|
|
82
|
+
response: Response | null,
|
|
83
|
+
error: unknown,
|
|
84
|
+
) => Awaitable<{
|
|
85
|
+
response: Response | null;
|
|
86
|
+
error: unknown;
|
|
87
|
+
}>;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export interface Hooks {
|
|
91
|
+
/** Registers a hook to be used by the SDK for initialization event. */
|
|
92
|
+
registerSDKInitHook(hook: SDKInitHook): void;
|
|
93
|
+
/** Registers a hook to be used by the SDK for to modify `Request` construction. */
|
|
94
|
+
registerBeforeCreateRequestHook(hook: BeforeCreateRequestHook): void;
|
|
95
|
+
/** Registers a hook to be used by the SDK for the before request event. */
|
|
96
|
+
registerBeforeRequestHook(hook: BeforeRequestHook): void;
|
|
97
|
+
/** Registers a hook to be used by the SDK for the after success event. */
|
|
98
|
+
registerAfterSuccessHook(hook: AfterSuccessHook): void;
|
|
99
|
+
/** Registers a hook to be used by the SDK for the after error event. */
|
|
100
|
+
registerAfterErrorHook(hook: AfterErrorHook): void;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export type Hook =
|
|
104
|
+
| SDKInitHook
|
|
105
|
+
| BeforeCreateRequestHook
|
|
106
|
+
| BeforeRequestHook
|
|
107
|
+
| AfterSuccessHook
|
|
108
|
+
| AfterErrorHook;
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
export * from "./lib/config.js";
|
|
6
|
+
export * as files from "./lib/files.js";
|
|
7
|
+
export { HTTPClient } from "./lib/http.js";
|
|
8
|
+
export type { Fetcher, HTTPClientOptions } from "./lib/http.js";
|
|
9
|
+
export * from "./sdk/sdk.js";
|
|
@@ -0,0 +1,39 @@
|
|
|
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 function bytesToBase64(u8arr: Uint8Array): string {
|
|
8
|
+
return btoa(String.fromCodePoint(...u8arr));
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export function bytesFromBase64(encoded: string): Uint8Array {
|
|
12
|
+
return Uint8Array.from(atob(encoded), (c) => c.charCodeAt(0));
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export function stringToBytes(str: string): Uint8Array {
|
|
16
|
+
return new TextEncoder().encode(str);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export function stringFromBytes(u8arr: Uint8Array): string {
|
|
20
|
+
return new TextDecoder().decode(u8arr);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export function stringToBase64(str: string): string {
|
|
24
|
+
return bytesToBase64(stringToBytes(str));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export function stringFromBase64(b64str: string): string {
|
|
28
|
+
return stringFromBytes(bytesFromBase64(b64str));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export const zodOutbound = z.union([
|
|
32
|
+
z.custom<Uint8Array>(x => x instanceof Uint8Array),
|
|
33
|
+
z.pipe(z.string(), z.transform(stringToBytes)),
|
|
34
|
+
]);
|
|
35
|
+
|
|
36
|
+
export const zodInbound = z.union([
|
|
37
|
+
z.custom<Uint8Array>(x => x instanceof Uint8Array),
|
|
38
|
+
z.pipe(z.string(), z.transform(bytesFromBase64)),
|
|
39
|
+
]);
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { HTTPClient } from "./http.js";
|
|
6
|
+
import { Logger } from "./logger.js";
|
|
7
|
+
import { RetryConfig } from "./retries.js";
|
|
8
|
+
import { Params, pathToFunc } from "./url.js";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Contains the list of servers available to the SDK
|
|
12
|
+
*/
|
|
13
|
+
export const ServerList = [
|
|
14
|
+
/**
|
|
15
|
+
* Local Development Server
|
|
16
|
+
*/
|
|
17
|
+
"http://localhost:5000/api/v1",
|
|
18
|
+
] as const;
|
|
19
|
+
|
|
20
|
+
export type SDKOptions = {
|
|
21
|
+
bearerAuth?: string | (() => Promise<string>) | undefined;
|
|
22
|
+
|
|
23
|
+
httpClient?: HTTPClient;
|
|
24
|
+
/**
|
|
25
|
+
* Allows overriding the default server used by the SDK
|
|
26
|
+
*/
|
|
27
|
+
serverIdx?: number | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Allows overriding the default server URL used by the SDK
|
|
30
|
+
*/
|
|
31
|
+
serverURL?: string | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Allows overriding the default user agent used by the SDK
|
|
34
|
+
*/
|
|
35
|
+
userAgent?: string | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* Allows overriding the default retry config used by the SDK
|
|
38
|
+
*/
|
|
39
|
+
retryConfig?: RetryConfig;
|
|
40
|
+
timeoutMs?: number;
|
|
41
|
+
debugLogger?: Logger;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
45
|
+
let serverURL = options.serverURL;
|
|
46
|
+
|
|
47
|
+
const params: Params = {};
|
|
48
|
+
|
|
49
|
+
if (!serverURL) {
|
|
50
|
+
const serverIdx = options.serverIdx ?? 0;
|
|
51
|
+
if (serverIdx < 0 || serverIdx >= ServerList.length) {
|
|
52
|
+
throw new Error(`Invalid server index ${serverIdx}`);
|
|
53
|
+
}
|
|
54
|
+
serverURL = ServerList[serverIdx] || "";
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
const u = pathToFunc(serverURL)(params);
|
|
58
|
+
return new URL(u);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export const SDK_METADATA = {
|
|
62
|
+
language: "typescript",
|
|
63
|
+
openapiDocVersion: "1.0.0",
|
|
64
|
+
sdkVersion: "0.0.1",
|
|
65
|
+
genVersion: "2.911.0",
|
|
66
|
+
userAgent: "speakeasy-sdk/typescript 0.0.1 2.911.0 1.0.0 openapi",
|
|
67
|
+
} as const;
|