@cjavdev/believe 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/LICENSE +7 -0
- package/README.md +426 -0
- package/api-promise.d.mts +2 -0
- package/api-promise.d.mts.map +1 -0
- package/api-promise.d.ts +2 -0
- package/api-promise.d.ts.map +1 -0
- package/api-promise.js +6 -0
- package/api-promise.js.map +1 -0
- package/api-promise.mjs +2 -0
- package/api-promise.mjs.map +1 -0
- package/client.d.mts +240 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +240 -0
- package/client.d.ts.map +1 -0
- package/client.js +524 -0
- package/client.js.map +1 -0
- package/client.mjs +520 -0
- package/client.mjs.map +1 -0
- package/core/api-promise.d.mts +46 -0
- package/core/api-promise.d.mts.map +1 -0
- package/core/api-promise.d.ts +46 -0
- package/core/api-promise.d.ts.map +1 -0
- package/core/api-promise.js +74 -0
- package/core/api-promise.js.map +1 -0
- package/core/api-promise.mjs +70 -0
- package/core/api-promise.mjs.map +1 -0
- package/core/error.d.mts +46 -0
- package/core/error.d.mts.map +1 -0
- package/core/error.d.ts +46 -0
- package/core/error.d.ts.map +1 -0
- package/core/error.js +113 -0
- package/core/error.js.map +1 -0
- package/core/error.mjs +97 -0
- package/core/error.mjs.map +1 -0
- package/core/pagination.d.mts +62 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +62 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +108 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +102 -0
- package/core/pagination.mjs.map +1 -0
- package/core/resource.d.mts +6 -0
- package/core/resource.d.mts.map +1 -0
- package/core/resource.d.ts +6 -0
- package/core/resource.d.ts.map +1 -0
- package/core/resource.js +11 -0
- package/core/resource.js.map +1 -0
- package/core/resource.mjs +7 -0
- package/core/resource.mjs.map +1 -0
- package/core/uploads.d.mts +3 -0
- package/core/uploads.d.mts.map +1 -0
- package/core/uploads.d.ts +3 -0
- package/core/uploads.d.ts.map +1 -0
- package/core/uploads.js +6 -0
- package/core/uploads.js.map +1 -0
- package/core/uploads.mjs +2 -0
- package/core/uploads.mjs.map +1 -0
- package/error.d.mts +2 -0
- package/error.d.mts.map +1 -0
- package/error.d.ts +2 -0
- package/error.d.ts.map +1 -0
- package/error.js +6 -0
- package/error.js.map +1 -0
- package/error.mjs +2 -0
- package/error.mjs.map +1 -0
- package/index.d.mts +7 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +7 -0
- package/index.d.ts.map +1 -0
- package/index.js +32 -0
- package/index.js.map +1 -0
- package/index.mjs +8 -0
- package/index.mjs.map +1 -0
- package/internal/builtin-types.d.mts +73 -0
- package/internal/builtin-types.d.mts.map +1 -0
- package/internal/builtin-types.d.ts +73 -0
- package/internal/builtin-types.d.ts.map +1 -0
- package/internal/builtin-types.js +4 -0
- package/internal/builtin-types.js.map +1 -0
- package/internal/builtin-types.mjs +3 -0
- package/internal/builtin-types.mjs.map +1 -0
- package/internal/detect-platform.d.mts +15 -0
- package/internal/detect-platform.d.mts.map +1 -0
- package/internal/detect-platform.d.ts +15 -0
- package/internal/detect-platform.d.ts.map +1 -0
- package/internal/detect-platform.js +162 -0
- package/internal/detect-platform.js.map +1 -0
- package/internal/detect-platform.mjs +157 -0
- package/internal/detect-platform.mjs.map +1 -0
- package/internal/errors.d.mts +3 -0
- package/internal/errors.d.mts.map +1 -0
- package/internal/errors.d.ts +3 -0
- package/internal/errors.d.ts.map +1 -0
- package/internal/errors.js +41 -0
- package/internal/errors.js.map +1 -0
- package/internal/errors.mjs +36 -0
- package/internal/errors.mjs.map +1 -0
- package/internal/headers.d.mts +20 -0
- package/internal/headers.d.mts.map +1 -0
- package/internal/headers.d.ts +20 -0
- package/internal/headers.d.ts.map +1 -0
- package/internal/headers.js +79 -0
- package/internal/headers.js.map +1 -0
- package/internal/headers.mjs +74 -0
- package/internal/headers.mjs.map +1 -0
- package/internal/parse.d.mts +12 -0
- package/internal/parse.d.mts.map +1 -0
- package/internal/parse.d.ts +12 -0
- package/internal/parse.d.ts.map +1 -0
- package/internal/parse.js +40 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +37 -0
- package/internal/parse.mjs.map +1 -0
- package/internal/request-options.d.mts +75 -0
- package/internal/request-options.d.mts.map +1 -0
- package/internal/request-options.d.ts +75 -0
- package/internal/request-options.d.ts.map +1 -0
- package/internal/request-options.js +14 -0
- package/internal/request-options.js.map +1 -0
- package/internal/request-options.mjs +10 -0
- package/internal/request-options.mjs.map +1 -0
- package/internal/shim-types.d.mts +17 -0
- package/internal/shim-types.d.mts.map +1 -0
- package/internal/shim-types.d.ts +17 -0
- package/internal/shim-types.d.ts.map +1 -0
- package/internal/shim-types.js +4 -0
- package/internal/shim-types.js.map +1 -0
- package/internal/shim-types.mjs +3 -0
- package/internal/shim-types.mjs.map +1 -0
- package/internal/shims.d.mts +20 -0
- package/internal/shims.d.mts.map +1 -0
- package/internal/shims.d.ts +20 -0
- package/internal/shims.d.ts.map +1 -0
- package/internal/shims.js +92 -0
- package/internal/shims.js.map +1 -0
- package/internal/shims.mjs +85 -0
- package/internal/shims.mjs.map +1 -0
- package/internal/to-file.d.mts +45 -0
- package/internal/to-file.d.mts.map +1 -0
- package/internal/to-file.d.ts +45 -0
- package/internal/to-file.d.ts.map +1 -0
- package/internal/to-file.js +91 -0
- package/internal/to-file.js.map +1 -0
- package/internal/to-file.mjs +88 -0
- package/internal/to-file.mjs.map +1 -0
- package/internal/tslib.js +81 -0
- package/internal/tslib.mjs +17 -0
- package/internal/types.d.mts +69 -0
- package/internal/types.d.mts.map +1 -0
- package/internal/types.d.ts +69 -0
- package/internal/types.d.ts.map +1 -0
- package/internal/types.js +4 -0
- package/internal/types.js.map +1 -0
- package/internal/types.mjs +3 -0
- package/internal/types.mjs.map +1 -0
- package/internal/uploads.d.mts +42 -0
- package/internal/uploads.d.mts.map +1 -0
- package/internal/uploads.d.ts +42 -0
- package/internal/uploads.d.ts.map +1 -0
- package/internal/uploads.js +141 -0
- package/internal/uploads.js.map +1 -0
- package/internal/uploads.mjs +131 -0
- package/internal/uploads.mjs.map +1 -0
- package/internal/utils/base64.d.mts +3 -0
- package/internal/utils/base64.d.mts.map +1 -0
- package/internal/utils/base64.d.ts +3 -0
- package/internal/utils/base64.d.ts.map +1 -0
- package/internal/utils/base64.js +38 -0
- package/internal/utils/base64.js.map +1 -0
- package/internal/utils/base64.mjs +33 -0
- package/internal/utils/base64.mjs.map +1 -0
- package/internal/utils/bytes.d.mts +4 -0
- package/internal/utils/bytes.d.mts.map +1 -0
- package/internal/utils/bytes.d.ts +4 -0
- package/internal/utils/bytes.d.ts.map +1 -0
- package/internal/utils/bytes.js +31 -0
- package/internal/utils/bytes.js.map +1 -0
- package/internal/utils/bytes.mjs +26 -0
- package/internal/utils/bytes.mjs.map +1 -0
- package/internal/utils/env.d.mts +9 -0
- package/internal/utils/env.d.mts.map +1 -0
- package/internal/utils/env.d.ts +9 -0
- package/internal/utils/env.d.ts.map +1 -0
- package/internal/utils/env.js +22 -0
- package/internal/utils/env.js.map +1 -0
- package/internal/utils/env.mjs +18 -0
- package/internal/utils/env.mjs.map +1 -0
- package/internal/utils/log.d.mts +37 -0
- package/internal/utils/log.d.mts.map +1 -0
- package/internal/utils/log.d.ts +37 -0
- package/internal/utils/log.d.ts.map +1 -0
- package/internal/utils/log.js +85 -0
- package/internal/utils/log.js.map +1 -0
- package/internal/utils/log.mjs +79 -0
- package/internal/utils/log.mjs.map +1 -0
- package/internal/utils/path.d.mts +15 -0
- package/internal/utils/path.d.mts.map +1 -0
- package/internal/utils/path.d.ts +15 -0
- package/internal/utils/path.d.ts.map +1 -0
- package/internal/utils/path.js +79 -0
- package/internal/utils/path.js.map +1 -0
- package/internal/utils/path.mjs +74 -0
- package/internal/utils/path.mjs.map +1 -0
- package/internal/utils/sleep.d.mts +2 -0
- package/internal/utils/sleep.d.mts.map +1 -0
- package/internal/utils/sleep.d.ts +2 -0
- package/internal/utils/sleep.d.ts.map +1 -0
- package/internal/utils/sleep.js +7 -0
- package/internal/utils/sleep.js.map +1 -0
- package/internal/utils/sleep.mjs +3 -0
- package/internal/utils/sleep.mjs.map +1 -0
- package/internal/utils/uuid.d.mts +5 -0
- package/internal/utils/uuid.d.mts.map +1 -0
- package/internal/utils/uuid.d.ts +5 -0
- package/internal/utils/uuid.d.ts.map +1 -0
- package/internal/utils/uuid.js +19 -0
- package/internal/utils/uuid.js.map +1 -0
- package/internal/utils/uuid.mjs +15 -0
- package/internal/utils/uuid.mjs.map +1 -0
- package/internal/utils/values.d.mts +18 -0
- package/internal/utils/values.d.mts.map +1 -0
- package/internal/utils/values.d.ts +18 -0
- package/internal/utils/values.d.ts.map +1 -0
- package/internal/utils/values.js +112 -0
- package/internal/utils/values.js.map +1 -0
- package/internal/utils/values.mjs +94 -0
- package/internal/utils/values.mjs.map +1 -0
- package/internal/utils.d.mts +7 -0
- package/internal/utils.d.mts.map +1 -0
- package/internal/utils.d.ts +7 -0
- package/internal/utils.d.ts.map +1 -0
- package/internal/utils.js +11 -0
- package/internal/utils.js.map +1 -0
- package/internal/utils.mjs +8 -0
- package/internal/utils.mjs.map +1 -0
- package/package.json +147 -0
- package/pagination.d.mts +2 -0
- package/pagination.d.mts.map +1 -0
- package/pagination.d.ts +2 -0
- package/pagination.d.ts.map +1 -0
- package/pagination.js +6 -0
- package/pagination.js.map +1 -0
- package/pagination.mjs +2 -0
- package/pagination.mjs.map +1 -0
- package/resource.d.mts +2 -0
- package/resource.d.mts.map +1 -0
- package/resource.d.ts +2 -0
- package/resource.d.ts.map +1 -0
- package/resource.js +6 -0
- package/resource.js.map +1 -0
- package/resource.mjs +2 -0
- package/resource.mjs.map +1 -0
- package/resources/believe.d.mts +65 -0
- package/resources/believe.d.mts.map +1 -0
- package/resources/believe.d.ts +65 -0
- package/resources/believe.d.ts.map +1 -0
- package/resources/believe.js +24 -0
- package/resources/believe.js.map +1 -0
- package/resources/believe.mjs +20 -0
- package/resources/believe.mjs.map +1 -0
- package/resources/biscuits.d.mts +75 -0
- package/resources/biscuits.d.mts.map +1 -0
- package/resources/biscuits.d.ts +75 -0
- package/resources/biscuits.d.ts.map +1 -0
- package/resources/biscuits.js +50 -0
- package/resources/biscuits.js.map +1 -0
- package/resources/biscuits.mjs +46 -0
- package/resources/biscuits.mjs.map +1 -0
- package/resources/characters.d.mts +297 -0
- package/resources/characters.d.mts.map +1 -0
- package/resources/characters.d.ts +297 -0
- package/resources/characters.d.ts.map +1 -0
- package/resources/characters.js +108 -0
- package/resources/characters.js.map +1 -0
- package/resources/characters.mjs +104 -0
- package/resources/characters.mjs.map +1 -0
- package/resources/coaching/coaching.d.mts +10 -0
- package/resources/coaching/coaching.d.mts.map +1 -0
- package/resources/coaching/coaching.d.ts +10 -0
- package/resources/coaching/coaching.d.ts.map +1 -0
- package/resources/coaching/coaching.js +17 -0
- package/resources/coaching/coaching.js.map +1 -0
- package/resources/coaching/coaching.mjs +12 -0
- package/resources/coaching/coaching.mjs.map +1 -0
- package/resources/coaching/index.d.mts +3 -0
- package/resources/coaching/index.d.mts.map +1 -0
- package/resources/coaching/index.d.ts +3 -0
- package/resources/coaching/index.d.ts.map +1 -0
- package/resources/coaching/index.js +9 -0
- package/resources/coaching/index.js.map +1 -0
- package/resources/coaching/index.mjs +4 -0
- package/resources/coaching/index.mjs.map +1 -0
- package/resources/coaching/principles.d.mts +74 -0
- package/resources/coaching/principles.d.mts.map +1 -0
- package/resources/coaching/principles.d.ts +74 -0
- package/resources/coaching/principles.d.ts.map +1 -0
- package/resources/coaching/principles.js +52 -0
- package/resources/coaching/principles.js.map +1 -0
- package/resources/coaching/principles.mjs +48 -0
- package/resources/coaching/principles.mjs.map +1 -0
- package/resources/coaching.d.mts +2 -0
- package/resources/coaching.d.mts.map +1 -0
- package/resources/coaching.d.ts +2 -0
- package/resources/coaching.d.ts.map +1 -0
- package/resources/coaching.js +6 -0
- package/resources/coaching.js.map +1 -0
- package/resources/coaching.mjs +3 -0
- package/resources/coaching.mjs.map +1 -0
- package/resources/conflicts.d.mts +70 -0
- package/resources/conflicts.d.mts.map +1 -0
- package/resources/conflicts.d.ts +70 -0
- package/resources/conflicts.d.ts.map +1 -0
- package/resources/conflicts.js +25 -0
- package/resources/conflicts.js.map +1 -0
- package/resources/conflicts.mjs +21 -0
- package/resources/conflicts.mjs.map +1 -0
- package/resources/episodes.d.mts +288 -0
- package/resources/episodes.d.mts.map +1 -0
- package/resources/episodes.d.ts +288 -0
- package/resources/episodes.d.ts.map +1 -0
- package/resources/episodes.js +128 -0
- package/resources/episodes.js.map +1 -0
- package/resources/episodes.mjs +124 -0
- package/resources/episodes.mjs.map +1 -0
- package/resources/health.d.mts +14 -0
- package/resources/health.d.mts.map +1 -0
- package/resources/health.d.ts +14 -0
- package/resources/health.d.ts.map +1 -0
- package/resources/health.js +15 -0
- package/resources/health.js.map +1 -0
- package/resources/health.mjs +11 -0
- package/resources/health.mjs.map +1 -0
- package/resources/index.d.mts +19 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +19 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +39 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +19 -0
- package/resources/index.mjs.map +1 -0
- package/resources/matches/commentary.d.mts +22 -0
- package/resources/matches/commentary.d.mts.map +1 -0
- package/resources/matches/commentary.d.ts +22 -0
- package/resources/matches/commentary.d.ts.map +1 -0
- package/resources/matches/commentary.js +24 -0
- package/resources/matches/commentary.js.map +1 -0
- package/resources/matches/commentary.mjs +20 -0
- package/resources/matches/commentary.mjs.map +1 -0
- package/resources/matches/index.d.mts +3 -0
- package/resources/matches/index.d.mts.map +1 -0
- package/resources/matches/index.d.ts +3 -0
- package/resources/matches/index.d.ts.map +1 -0
- package/resources/matches/index.js +9 -0
- package/resources/matches/index.js.map +1 -0
- package/resources/matches/index.mjs +4 -0
- package/resources/matches/index.mjs.map +1 -0
- package/resources/matches/matches.d.mts +291 -0
- package/resources/matches/matches.d.mts.map +1 -0
- package/resources/matches/matches.d.ts +291 -0
- package/resources/matches/matches.d.ts.map +1 -0
- package/resources/matches/matches.js +110 -0
- package/resources/matches/matches.js.map +1 -0
- package/resources/matches/matches.mjs +105 -0
- package/resources/matches/matches.mjs.map +1 -0
- package/resources/matches.d.mts +2 -0
- package/resources/matches.d.mts.map +1 -0
- package/resources/matches.d.ts +2 -0
- package/resources/matches.d.ts.map +1 -0
- package/resources/matches.js +6 -0
- package/resources/matches.js.map +1 -0
- package/resources/matches.mjs +3 -0
- package/resources/matches.mjs.map +1 -0
- package/resources/pep-talk.d.mts +62 -0
- package/resources/pep-talk.d.mts.map +1 -0
- package/resources/pep-talk.d.ts +62 -0
- package/resources/pep-talk.d.ts.map +1 -0
- package/resources/pep-talk.js +22 -0
- package/resources/pep-talk.js.map +1 -0
- package/resources/pep-talk.mjs +18 -0
- package/resources/pep-talk.mjs.map +1 -0
- package/resources/press.d.mts +60 -0
- package/resources/press.d.mts.map +1 -0
- package/resources/press.d.ts +60 -0
- package/resources/press.d.ts.map +1 -0
- package/resources/press.js +23 -0
- package/resources/press.js.map +1 -0
- package/resources/press.mjs +19 -0
- package/resources/press.mjs.map +1 -0
- package/resources/quotes.d.mts +287 -0
- package/resources/quotes.d.mts.map +1 -0
- package/resources/quotes.d.ts +287 -0
- package/resources/quotes.d.ts.map +1 -0
- package/resources/quotes.js +129 -0
- package/resources/quotes.js.map +1 -0
- package/resources/quotes.mjs +125 -0
- package/resources/quotes.mjs.map +1 -0
- package/resources/reframe.d.mts +56 -0
- package/resources/reframe.d.mts.map +1 -0
- package/resources/reframe.d.ts +56 -0
- package/resources/reframe.d.ts.map +1 -0
- package/resources/reframe.js +23 -0
- package/resources/reframe.js.map +1 -0
- package/resources/reframe.mjs +19 -0
- package/resources/reframe.mjs.map +1 -0
- package/resources/stream.d.mts +14 -0
- package/resources/stream.d.mts.map +1 -0
- package/resources/stream.d.ts +14 -0
- package/resources/stream.d.ts.map +1 -0
- package/resources/stream.js +15 -0
- package/resources/stream.js.map +1 -0
- package/resources/stream.mjs +11 -0
- package/resources/stream.mjs.map +1 -0
- package/resources/team-members.d.mts +518 -0
- package/resources/team-members.d.mts.map +1 -0
- package/resources/team-members.d.ts +518 -0
- package/resources/team-members.d.ts.map +1 -0
- package/resources/team-members.js +120 -0
- package/resources/team-members.js.map +1 -0
- package/resources/team-members.mjs +116 -0
- package/resources/team-members.mjs.map +1 -0
- package/resources/teams/index.d.mts +3 -0
- package/resources/teams/index.d.mts.map +1 -0
- package/resources/teams/index.d.ts +3 -0
- package/resources/teams/index.d.ts.map +1 -0
- package/resources/teams/index.js +9 -0
- package/resources/teams/index.js.map +1 -0
- package/resources/teams/index.mjs +4 -0
- package/resources/teams/index.mjs.map +1 -0
- package/resources/teams/logo.d.mts +70 -0
- package/resources/teams/logo.d.mts.map +1 -0
- package/resources/teams/logo.d.ts +70 -0
- package/resources/teams/logo.d.ts.map +1 -0
- package/resources/teams/logo.js +59 -0
- package/resources/teams/logo.js.map +1 -0
- package/resources/teams/logo.mjs +55 -0
- package/resources/teams/logo.mjs.map +1 -0
- package/resources/teams/teams.d.mts +326 -0
- package/resources/teams/teams.d.mts.map +1 -0
- package/resources/teams/teams.d.ts +326 -0
- package/resources/teams/teams.d.ts.map +1 -0
- package/resources/teams/teams.js +126 -0
- package/resources/teams/teams.js.map +1 -0
- package/resources/teams/teams.mjs +121 -0
- package/resources/teams/teams.mjs.map +1 -0
- package/resources/teams.d.mts +2 -0
- package/resources/teams.d.mts.map +1 -0
- package/resources/teams.d.ts +2 -0
- package/resources/teams.d.ts.map +1 -0
- package/resources/teams.js +6 -0
- package/resources/teams.js.map +1 -0
- package/resources/teams.mjs +3 -0
- package/resources/teams.mjs.map +1 -0
- package/resources/top-level.d.mts +5 -0
- package/resources/top-level.d.mts.map +1 -0
- package/resources/top-level.d.ts +5 -0
- package/resources/top-level.d.ts.map +1 -0
- package/resources/top-level.js +4 -0
- package/resources/top-level.js.map +1 -0
- package/resources/top-level.mjs +3 -0
- package/resources/top-level.mjs.map +1 -0
- package/resources/version.d.mts +14 -0
- package/resources/version.d.mts.map +1 -0
- package/resources/version.d.ts +14 -0
- package/resources/version.d.ts.map +1 -0
- package/resources/version.js +15 -0
- package/resources/version.js.map +1 -0
- package/resources/version.mjs +11 -0
- package/resources/version.mjs.map +1 -0
- package/resources/webhooks.d.mts +341 -0
- package/resources/webhooks.d.mts.map +1 -0
- package/resources/webhooks.d.ts +341 -0
- package/resources/webhooks.d.ts.map +1 -0
- package/resources/webhooks.js +88 -0
- package/resources/webhooks.js.map +1 -0
- package/resources/webhooks.mjs +84 -0
- package/resources/webhooks.mjs.map +1 -0
- package/resources.d.mts +2 -0
- package/resources.d.mts.map +1 -0
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +5 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/src/api-promise.ts +2 -0
- package/src/client.ts +1057 -0
- package/src/core/README.md +3 -0
- package/src/core/api-promise.ts +92 -0
- package/src/core/error.ts +130 -0
- package/src/core/pagination.ts +176 -0
- package/src/core/resource.ts +11 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -0
- package/src/index.ts +23 -0
- package/src/internal/README.md +3 -0
- package/src/internal/builtin-types.ts +93 -0
- package/src/internal/detect-platform.ts +196 -0
- package/src/internal/errors.ts +33 -0
- package/src/internal/headers.ts +97 -0
- package/src/internal/parse.ts +56 -0
- package/src/internal/request-options.ts +91 -0
- package/src/internal/shim-types.ts +26 -0
- package/src/internal/shims.ts +107 -0
- package/src/internal/to-file.ts +154 -0
- package/src/internal/types.ts +95 -0
- package/src/internal/uploads.ts +187 -0
- package/src/internal/utils/base64.ts +40 -0
- package/src/internal/utils/bytes.ts +32 -0
- package/src/internal/utils/env.ts +18 -0
- package/src/internal/utils/log.ts +126 -0
- package/src/internal/utils/path.ts +88 -0
- package/src/internal/utils/sleep.ts +3 -0
- package/src/internal/utils/uuid.ts +17 -0
- package/src/internal/utils/values.ts +105 -0
- package/src/internal/utils.ts +8 -0
- package/src/lib/.keep +4 -0
- package/src/pagination.ts +2 -0
- package/src/resource.ts +2 -0
- package/src/resources/believe.ts +90 -0
- package/src/resources/biscuits.ts +101 -0
- package/src/resources/characters.ts +401 -0
- package/src/resources/coaching/coaching.ts +25 -0
- package/src/resources/coaching/index.ts +9 -0
- package/src/resources/coaching/principles.ts +103 -0
- package/src/resources/coaching.ts +3 -0
- package/src/resources/conflicts.ts +94 -0
- package/src/resources/episodes.ts +390 -0
- package/src/resources/health.ts +20 -0
- package/src/resources/index.ts +116 -0
- package/src/resources/matches/commentary.ts +29 -0
- package/src/resources/matches/index.ts +16 -0
- package/src/resources/matches/matches.ts +391 -0
- package/src/resources/matches.ts +3 -0
- package/src/resources/pep-talk.ts +80 -0
- package/src/resources/press.ts +76 -0
- package/src/resources/quotes.ts +440 -0
- package/src/resources/reframe.ts +74 -0
- package/src/resources/stream.ts +20 -0
- package/src/resources/team-members.ts +718 -0
- package/src/resources/teams/index.ts +24 -0
- package/src/resources/teams/logo.ts +108 -0
- package/src/resources/teams/teams.ts +460 -0
- package/src/resources/teams.ts +3 -0
- package/src/resources/top-level.ts +7 -0
- package/src/resources/version.ts +20 -0
- package/src/resources/webhooks.ts +425 -0
- package/src/resources.ts +1 -0
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +2 -0
- package/src/version.ts +1 -0
- package/uploads.d.mts +2 -0
- package/uploads.d.mts.map +1 -0
- package/uploads.d.ts +2 -0
- package/uploads.d.ts.map +1 -0
- package/uploads.js +6 -0
- package/uploads.js.map +1 -0
- package/uploads.mjs +2 -0
- package/uploads.mjs.map +1 -0
- package/version.d.mts +2 -0
- package/version.d.mts.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +5 -0
- package/version.js.map +1 -0
- package/version.mjs +2 -0
- package/version.mjs.map +1 -0
package/client.d.mts
ADDED
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
import type { RequestInit, RequestInfo } from "./internal/builtin-types.mjs";
|
|
2
|
+
import type { PromiseOrValue, MergedRequestInit, FinalizedRequestInit } from "./internal/types.mjs";
|
|
3
|
+
export type { Logger, LogLevel } from "./internal/utils/log.mjs";
|
|
4
|
+
import * as Opts from "./internal/request-options.mjs";
|
|
5
|
+
import * as Errors from "./core/error.mjs";
|
|
6
|
+
import * as Pagination from "./core/pagination.mjs";
|
|
7
|
+
import { type SkipLimitPageParams, SkipLimitPageResponse } from "./core/pagination.mjs";
|
|
8
|
+
import * as Uploads from "./core/uploads.mjs";
|
|
9
|
+
import * as API from "./resources/index.mjs";
|
|
10
|
+
import { APIPromise } from "./core/api-promise.mjs";
|
|
11
|
+
import { BelieveResource, BelieveSubmitParams, BelieveSubmitResponse } from "./resources/believe.mjs";
|
|
12
|
+
import { Biscuit, BiscuitListParams, Biscuits, BiscuitsSkipLimitPage } from "./resources/biscuits.mjs";
|
|
13
|
+
import { Character, CharacterCreateParams, CharacterGetQuotesResponse, CharacterListParams, CharacterRole, CharacterUpdateParams, Characters, CharactersSkipLimitPage, EmotionalStats, GrowthArc } from "./resources/characters.mjs";
|
|
14
|
+
import { ConflictResolveParams, ConflictResolveResponse, Conflicts } from "./resources/conflicts.mjs";
|
|
15
|
+
import { Episode, EpisodeCreateParams, EpisodeGetWisdomResponse, EpisodeListBySeasonParams, EpisodeListParams, EpisodeUpdateParams, Episodes, EpisodesSkipLimitPage, PaginatedResponse } from "./resources/episodes.mjs";
|
|
16
|
+
import { Health, HealthCheckResponse } from "./resources/health.mjs";
|
|
17
|
+
import { PepTalk, PepTalkRetrieveParams, PepTalkRetrieveResponse } from "./resources/pep-talk.mjs";
|
|
18
|
+
import { Press, PressSimulateParams, PressSimulateResponse } from "./resources/press.mjs";
|
|
19
|
+
import { PaginatedResponseQuote, Quote, QuoteCreateParams, QuoteGetRandomParams, QuoteListByCharacterParams, QuoteListByThemeParams, QuoteListParams, QuoteMoment, QuoteTheme, QuoteUpdateParams, Quotes, QuotesSkipLimitPage } from "./resources/quotes.mjs";
|
|
20
|
+
import { Reframe, ReframeTransformNegativeThoughtsParams, ReframeTransformNegativeThoughtsResponse } from "./resources/reframe.mjs";
|
|
21
|
+
import { Stream, StreamTestConnectionResponse } from "./resources/stream.mjs";
|
|
22
|
+
import { Coach, CoachSpecialty, CoachesSkipLimitPage, EquipmentManager, MedicalSpecialty, MedicalStaff, Player, PlayersSkipLimitPage, Position, TeamMemberCreateParams, TeamMemberCreateResponse, TeamMemberListCoachesParams, TeamMemberListParams, TeamMemberListPlayersParams, TeamMemberListResponse, TeamMemberListResponsesSkipLimitPage, TeamMemberListStaffParams, TeamMemberListStaffResponse, TeamMemberListStaffResponsesSkipLimitPage, TeamMemberRetrieveResponse, TeamMemberUpdateParams, TeamMemberUpdateResponse, TeamMembers } from "./resources/team-members.mjs";
|
|
23
|
+
import { GetWelcomeResponse } from "./resources/top-level.mjs";
|
|
24
|
+
import { Version, VersionRetrieveResponse } from "./resources/version.mjs";
|
|
25
|
+
import { RegisteredWebhook, WebhookCreateParams, WebhookCreateResponse, WebhookDeleteResponse, WebhookListResponse, WebhookTriggerEventParams, WebhookTriggerEventResponse, Webhooks } from "./resources/webhooks.mjs";
|
|
26
|
+
import { Coaching } from "./resources/coaching/coaching.mjs";
|
|
27
|
+
import { Match, MatchCreateParams, MatchGetLessonResponse, MatchGetTurningPointsResponse, MatchListParams, MatchResult, MatchType, MatchUpdateParams, Matches, MatchesSkipLimitPage, TurningPoint } from "./resources/matches/matches.mjs";
|
|
28
|
+
import { GeoLocation, League, Team, TeamCreateParams, TeamGetCultureResponse, TeamGetRivalsResponse, TeamListLogosResponse, TeamListParams, TeamUpdateParams, TeamValues, Teams, TeamsSkipLimitPage } from "./resources/teams/teams.mjs";
|
|
29
|
+
import { type Fetch } from "./internal/builtin-types.mjs";
|
|
30
|
+
import { HeadersLike, NullableHeaders } from "./internal/headers.mjs";
|
|
31
|
+
import { FinalRequestOptions, RequestOptions } from "./internal/request-options.mjs";
|
|
32
|
+
import { type LogLevel, type Logger } from "./internal/utils/log.mjs";
|
|
33
|
+
export interface ClientOptions {
|
|
34
|
+
/**
|
|
35
|
+
* Defaults to process.env['BELIEVE_API_KEY'].
|
|
36
|
+
*/
|
|
37
|
+
apiKey?: string | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Override the default base URL for the API, e.g., "https://api.example.com/v2/"
|
|
40
|
+
*
|
|
41
|
+
* Defaults to process.env['BELIEVE_BASE_URL'].
|
|
42
|
+
*/
|
|
43
|
+
baseURL?: string | null | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* The maximum amount of time (in milliseconds) that the client should wait for a response
|
|
46
|
+
* from the server before timing out a single request.
|
|
47
|
+
*
|
|
48
|
+
* Note that request timeouts are retried by default, so in a worst-case scenario you may wait
|
|
49
|
+
* much longer than this timeout before the promise succeeds or fails.
|
|
50
|
+
*
|
|
51
|
+
* @unit milliseconds
|
|
52
|
+
*/
|
|
53
|
+
timeout?: number | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* Additional `RequestInit` options to be passed to `fetch` calls.
|
|
56
|
+
* Properties will be overridden by per-request `fetchOptions`.
|
|
57
|
+
*/
|
|
58
|
+
fetchOptions?: MergedRequestInit | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* Specify a custom `fetch` function implementation.
|
|
61
|
+
*
|
|
62
|
+
* If not provided, we expect that `fetch` is defined globally.
|
|
63
|
+
*/
|
|
64
|
+
fetch?: Fetch | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* The maximum number of times that the client will retry a request in case of a
|
|
67
|
+
* temporary failure, like a network error or a 5XX error from the server.
|
|
68
|
+
*
|
|
69
|
+
* @default 2
|
|
70
|
+
*/
|
|
71
|
+
maxRetries?: number | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* Default headers to include with every request to the API.
|
|
74
|
+
*
|
|
75
|
+
* These can be removed in individual requests by explicitly setting the
|
|
76
|
+
* header to `null` in request options.
|
|
77
|
+
*/
|
|
78
|
+
defaultHeaders?: HeadersLike | undefined;
|
|
79
|
+
/**
|
|
80
|
+
* Default query parameters to include with every request to the API.
|
|
81
|
+
*
|
|
82
|
+
* These can be removed in individual requests by explicitly setting the
|
|
83
|
+
* param to `undefined` in request options.
|
|
84
|
+
*/
|
|
85
|
+
defaultQuery?: Record<string, string | undefined> | undefined;
|
|
86
|
+
/**
|
|
87
|
+
* Set the log level.
|
|
88
|
+
*
|
|
89
|
+
* Defaults to process.env['BELIEVE_LOG'] or 'warn' if it isn't set.
|
|
90
|
+
*/
|
|
91
|
+
logLevel?: LogLevel | undefined;
|
|
92
|
+
/**
|
|
93
|
+
* Set the logger.
|
|
94
|
+
*
|
|
95
|
+
* Defaults to globalThis.console.
|
|
96
|
+
*/
|
|
97
|
+
logger?: Logger | undefined;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* API Client for interfacing with the Believe API.
|
|
101
|
+
*/
|
|
102
|
+
export declare class Believe {
|
|
103
|
+
#private;
|
|
104
|
+
apiKey: string;
|
|
105
|
+
baseURL: string;
|
|
106
|
+
maxRetries: number;
|
|
107
|
+
timeout: number;
|
|
108
|
+
logger: Logger;
|
|
109
|
+
logLevel: LogLevel | undefined;
|
|
110
|
+
fetchOptions: MergedRequestInit | undefined;
|
|
111
|
+
private fetch;
|
|
112
|
+
protected idempotencyHeader?: string;
|
|
113
|
+
private _options;
|
|
114
|
+
/**
|
|
115
|
+
* API Client for interfacing with the Believe API.
|
|
116
|
+
*
|
|
117
|
+
* @param {string | undefined} [opts.apiKey=process.env['BELIEVE_API_KEY'] ?? undefined]
|
|
118
|
+
* @param {string} [opts.baseURL=process.env['BELIEVE_BASE_URL'] ?? https://believe.cjav.dev] - Override the default base URL for the API.
|
|
119
|
+
* @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
|
120
|
+
* @param {MergedRequestInit} [opts.fetchOptions] - Additional `RequestInit` options to be passed to `fetch` calls.
|
|
121
|
+
* @param {Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
|
|
122
|
+
* @param {number} [opts.maxRetries=2] - The maximum number of times the client will retry a request.
|
|
123
|
+
* @param {HeadersLike} opts.defaultHeaders - Default headers to include with every request to the API.
|
|
124
|
+
* @param {Record<string, string | undefined>} opts.defaultQuery - Default query parameters to include with every request to the API.
|
|
125
|
+
*/
|
|
126
|
+
constructor({ baseURL, apiKey, ...opts }?: ClientOptions);
|
|
127
|
+
/**
|
|
128
|
+
* Create a new client instance re-using the same options given to the current client with optional overriding.
|
|
129
|
+
*/
|
|
130
|
+
withOptions(options: Partial<ClientOptions>): this;
|
|
131
|
+
/**
|
|
132
|
+
* Get a warm welcome and overview of available endpoints.
|
|
133
|
+
*/
|
|
134
|
+
getWelcome(options?: RequestOptions): APIPromise<unknown>;
|
|
135
|
+
protected defaultQuery(): Record<string, string | undefined> | undefined;
|
|
136
|
+
protected validateHeaders({ values, nulls }: NullableHeaders): void;
|
|
137
|
+
protected authHeaders(opts: FinalRequestOptions): Promise<NullableHeaders | undefined>;
|
|
138
|
+
/**
|
|
139
|
+
* Basic re-implementation of `qs.stringify` for primitive types.
|
|
140
|
+
*/
|
|
141
|
+
protected stringifyQuery(query: Record<string, unknown>): string;
|
|
142
|
+
private getUserAgent;
|
|
143
|
+
protected defaultIdempotencyKey(): string;
|
|
144
|
+
protected makeStatusError(status: number, error: Object, message: string | undefined, headers: Headers): Errors.APIError;
|
|
145
|
+
buildURL(path: string, query: Record<string, unknown> | null | undefined, defaultBaseURL?: string | undefined): string;
|
|
146
|
+
/**
|
|
147
|
+
* Used as a callback for mutating the given `FinalRequestOptions` object.
|
|
148
|
+
*/
|
|
149
|
+
protected prepareOptions(options: FinalRequestOptions): Promise<void>;
|
|
150
|
+
/**
|
|
151
|
+
* Used as a callback for mutating the given `RequestInit` object.
|
|
152
|
+
*
|
|
153
|
+
* This is useful for cases where you want to add certain headers based off of
|
|
154
|
+
* the request properties, e.g. `method` or `url`.
|
|
155
|
+
*/
|
|
156
|
+
protected prepareRequest(request: RequestInit, { url, options }: {
|
|
157
|
+
url: string;
|
|
158
|
+
options: FinalRequestOptions;
|
|
159
|
+
}): Promise<void>;
|
|
160
|
+
get<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
|
|
161
|
+
post<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
|
|
162
|
+
patch<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
|
|
163
|
+
put<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
|
|
164
|
+
delete<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
|
|
165
|
+
private methodRequest;
|
|
166
|
+
request<Rsp>(options: PromiseOrValue<FinalRequestOptions>, remainingRetries?: number | null): APIPromise<Rsp>;
|
|
167
|
+
private makeRequest;
|
|
168
|
+
getAPIList<Item, PageClass extends Pagination.AbstractPage<Item> = Pagination.AbstractPage<Item>>(path: string, Page: new (...args: any[]) => PageClass, opts?: RequestOptions): Pagination.PagePromise<PageClass, Item>;
|
|
169
|
+
requestAPIList<Item = unknown, PageClass extends Pagination.AbstractPage<Item> = Pagination.AbstractPage<Item>>(Page: new (...args: ConstructorParameters<typeof Pagination.AbstractPage>) => PageClass, options: FinalRequestOptions): Pagination.PagePromise<PageClass, Item>;
|
|
170
|
+
fetchWithTimeout(url: RequestInfo, init: RequestInit | undefined, ms: number, controller: AbortController): Promise<Response>;
|
|
171
|
+
private shouldRetry;
|
|
172
|
+
private retryRequest;
|
|
173
|
+
private calculateDefaultRetryTimeoutMillis;
|
|
174
|
+
buildRequest(inputOptions: FinalRequestOptions, { retryCount }?: {
|
|
175
|
+
retryCount?: number;
|
|
176
|
+
}): Promise<{
|
|
177
|
+
req: FinalizedRequestInit;
|
|
178
|
+
url: string;
|
|
179
|
+
timeout: number;
|
|
180
|
+
}>;
|
|
181
|
+
private buildHeaders;
|
|
182
|
+
private buildBody;
|
|
183
|
+
static Believe: typeof Believe;
|
|
184
|
+
static DEFAULT_TIMEOUT: number;
|
|
185
|
+
static BelieveError: typeof Errors.BelieveError;
|
|
186
|
+
static APIError: typeof Errors.APIError;
|
|
187
|
+
static APIConnectionError: typeof Errors.APIConnectionError;
|
|
188
|
+
static APIConnectionTimeoutError: typeof Errors.APIConnectionTimeoutError;
|
|
189
|
+
static APIUserAbortError: typeof Errors.APIUserAbortError;
|
|
190
|
+
static NotFoundError: typeof Errors.NotFoundError;
|
|
191
|
+
static ConflictError: typeof Errors.ConflictError;
|
|
192
|
+
static RateLimitError: typeof Errors.RateLimitError;
|
|
193
|
+
static BadRequestError: typeof Errors.BadRequestError;
|
|
194
|
+
static AuthenticationError: typeof Errors.AuthenticationError;
|
|
195
|
+
static InternalServerError: typeof Errors.InternalServerError;
|
|
196
|
+
static PermissionDeniedError: typeof Errors.PermissionDeniedError;
|
|
197
|
+
static UnprocessableEntityError: typeof Errors.UnprocessableEntityError;
|
|
198
|
+
static toFile: typeof Uploads.toFile;
|
|
199
|
+
characters: API.Characters;
|
|
200
|
+
teams: API.Teams;
|
|
201
|
+
matches: API.Matches;
|
|
202
|
+
episodes: API.Episodes;
|
|
203
|
+
quotes: API.Quotes;
|
|
204
|
+
believe: API.BelieveResource;
|
|
205
|
+
conflicts: API.Conflicts;
|
|
206
|
+
reframe: API.Reframe;
|
|
207
|
+
press: API.Press;
|
|
208
|
+
coaching: API.Coaching;
|
|
209
|
+
biscuits: API.Biscuits;
|
|
210
|
+
pepTalk: API.PepTalk;
|
|
211
|
+
stream: API.Stream;
|
|
212
|
+
teamMembers: API.TeamMembers;
|
|
213
|
+
webhooks: API.Webhooks;
|
|
214
|
+
health: API.Health;
|
|
215
|
+
version: API.Version;
|
|
216
|
+
}
|
|
217
|
+
export declare namespace Believe {
|
|
218
|
+
export type RequestOptions = Opts.RequestOptions;
|
|
219
|
+
export import SkipLimitPage = Pagination.SkipLimitPage;
|
|
220
|
+
export { type SkipLimitPageParams as SkipLimitPageParams, type SkipLimitPageResponse as SkipLimitPageResponse, };
|
|
221
|
+
export { type GetWelcomeResponse as GetWelcomeResponse };
|
|
222
|
+
export { Characters as Characters, type Character as Character, type CharacterRole as CharacterRole, type EmotionalStats as EmotionalStats, type GrowthArc as GrowthArc, type CharacterGetQuotesResponse as CharacterGetQuotesResponse, type CharactersSkipLimitPage as CharactersSkipLimitPage, type CharacterCreateParams as CharacterCreateParams, type CharacterUpdateParams as CharacterUpdateParams, type CharacterListParams as CharacterListParams, };
|
|
223
|
+
export { Teams as Teams, type GeoLocation as GeoLocation, type League as League, type Team as Team, type TeamValues as TeamValues, type TeamGetCultureResponse as TeamGetCultureResponse, type TeamGetRivalsResponse as TeamGetRivalsResponse, type TeamListLogosResponse as TeamListLogosResponse, type TeamsSkipLimitPage as TeamsSkipLimitPage, type TeamCreateParams as TeamCreateParams, type TeamUpdateParams as TeamUpdateParams, type TeamListParams as TeamListParams, };
|
|
224
|
+
export { Matches as Matches, type Match as Match, type MatchResult as MatchResult, type MatchType as MatchType, type TurningPoint as TurningPoint, type MatchGetLessonResponse as MatchGetLessonResponse, type MatchGetTurningPointsResponse as MatchGetTurningPointsResponse, type MatchesSkipLimitPage as MatchesSkipLimitPage, type MatchCreateParams as MatchCreateParams, type MatchUpdateParams as MatchUpdateParams, type MatchListParams as MatchListParams, };
|
|
225
|
+
export { Episodes as Episodes, type Episode as Episode, type PaginatedResponse as PaginatedResponse, type EpisodeGetWisdomResponse as EpisodeGetWisdomResponse, type EpisodesSkipLimitPage as EpisodesSkipLimitPage, type EpisodeCreateParams as EpisodeCreateParams, type EpisodeUpdateParams as EpisodeUpdateParams, type EpisodeListParams as EpisodeListParams, type EpisodeListBySeasonParams as EpisodeListBySeasonParams, };
|
|
226
|
+
export { Quotes as Quotes, type PaginatedResponseQuote as PaginatedResponseQuote, type Quote as Quote, type QuoteMoment as QuoteMoment, type QuoteTheme as QuoteTheme, type QuotesSkipLimitPage as QuotesSkipLimitPage, type QuoteCreateParams as QuoteCreateParams, type QuoteUpdateParams as QuoteUpdateParams, type QuoteListParams as QuoteListParams, type QuoteGetRandomParams as QuoteGetRandomParams, type QuoteListByCharacterParams as QuoteListByCharacterParams, type QuoteListByThemeParams as QuoteListByThemeParams, };
|
|
227
|
+
export { BelieveResource as BelieveResource, type BelieveSubmitResponse as BelieveSubmitResponse, type BelieveSubmitParams as BelieveSubmitParams, };
|
|
228
|
+
export { Conflicts as Conflicts, type ConflictResolveResponse as ConflictResolveResponse, type ConflictResolveParams as ConflictResolveParams, };
|
|
229
|
+
export { Reframe as Reframe, type ReframeTransformNegativeThoughtsResponse as ReframeTransformNegativeThoughtsResponse, type ReframeTransformNegativeThoughtsParams as ReframeTransformNegativeThoughtsParams, };
|
|
230
|
+
export { Press as Press, type PressSimulateResponse as PressSimulateResponse, type PressSimulateParams as PressSimulateParams, };
|
|
231
|
+
export { Coaching as Coaching };
|
|
232
|
+
export { Biscuits as Biscuits, type Biscuit as Biscuit, type BiscuitsSkipLimitPage as BiscuitsSkipLimitPage, type BiscuitListParams as BiscuitListParams, };
|
|
233
|
+
export { PepTalk as PepTalk, type PepTalkRetrieveResponse as PepTalkRetrieveResponse, type PepTalkRetrieveParams as PepTalkRetrieveParams, };
|
|
234
|
+
export { Stream as Stream, type StreamTestConnectionResponse as StreamTestConnectionResponse };
|
|
235
|
+
export { TeamMembers as TeamMembers, type Coach as Coach, type CoachSpecialty as CoachSpecialty, type EquipmentManager as EquipmentManager, type MedicalSpecialty as MedicalSpecialty, type MedicalStaff as MedicalStaff, type Player as Player, type Position as Position, type TeamMemberCreateResponse as TeamMemberCreateResponse, type TeamMemberRetrieveResponse as TeamMemberRetrieveResponse, type TeamMemberUpdateResponse as TeamMemberUpdateResponse, type TeamMemberListResponse as TeamMemberListResponse, type TeamMemberListStaffResponse as TeamMemberListStaffResponse, type TeamMemberListResponsesSkipLimitPage as TeamMemberListResponsesSkipLimitPage, type CoachesSkipLimitPage as CoachesSkipLimitPage, type PlayersSkipLimitPage as PlayersSkipLimitPage, type TeamMemberListStaffResponsesSkipLimitPage as TeamMemberListStaffResponsesSkipLimitPage, type TeamMemberCreateParams as TeamMemberCreateParams, type TeamMemberUpdateParams as TeamMemberUpdateParams, type TeamMemberListParams as TeamMemberListParams, type TeamMemberListCoachesParams as TeamMemberListCoachesParams, type TeamMemberListPlayersParams as TeamMemberListPlayersParams, type TeamMemberListStaffParams as TeamMemberListStaffParams, };
|
|
236
|
+
export { Webhooks as Webhooks, type RegisteredWebhook as RegisteredWebhook, type WebhookCreateResponse as WebhookCreateResponse, type WebhookListResponse as WebhookListResponse, type WebhookDeleteResponse as WebhookDeleteResponse, type WebhookTriggerEventResponse as WebhookTriggerEventResponse, type WebhookCreateParams as WebhookCreateParams, type WebhookTriggerEventParams as WebhookTriggerEventParams, };
|
|
237
|
+
export { Health as Health, type HealthCheckResponse as HealthCheckResponse };
|
|
238
|
+
export { Version as Version, type VersionRetrieveResponse as VersionRetrieveResponse };
|
|
239
|
+
}
|
|
240
|
+
//# sourceMappingURL=client.d.mts.map
|
package/client.d.mts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.mts","sourceRoot":"","sources":["src/client.ts"],"names":[],"mappings":"OAEO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAY;OAC3C,KAAK,EAAc,cAAc,EAAE,iBAAiB,EAAE,oBAAoB,EAAE;YAIvE,EAAE,MAAM,EAAE,QAAQ,EAAE;OAKzB,KAAK,IAAI;OAET,KAAK,MAAM;OACX,KAAK,UAAU;OACf,EAAgB,KAAK,mBAAmB,EAAE,qBAAqB,EAAE;OACjE,KAAK,OAAO;OACZ,KAAK,GAAG;OACR,EAAE,UAAU,EAAE;OACd,EAAE,eAAe,EAAE,mBAAmB,EAAE,qBAAqB,EAAE;OAC/D,EAAE,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,qBAAqB,EAAE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BAAoB,EACjD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;IAEF,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,CAAC;IAE7E,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,KAAK,uBAAuB,IAAI,uBAAuB,EAAE,CAAC;CACxF"}
|
package/client.d.ts
ADDED
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
import type { RequestInit, RequestInfo } from "./internal/builtin-types.js";
|
|
2
|
+
import type { PromiseOrValue, MergedRequestInit, FinalizedRequestInit } from "./internal/types.js";
|
|
3
|
+
export type { Logger, LogLevel } from "./internal/utils/log.js";
|
|
4
|
+
import * as Opts from "./internal/request-options.js";
|
|
5
|
+
import * as Errors from "./core/error.js";
|
|
6
|
+
import * as Pagination from "./core/pagination.js";
|
|
7
|
+
import { type SkipLimitPageParams, SkipLimitPageResponse } from "./core/pagination.js";
|
|
8
|
+
import * as Uploads from "./core/uploads.js";
|
|
9
|
+
import * as API from "./resources/index.js";
|
|
10
|
+
import { APIPromise } from "./core/api-promise.js";
|
|
11
|
+
import { BelieveResource, BelieveSubmitParams, BelieveSubmitResponse } from "./resources/believe.js";
|
|
12
|
+
import { Biscuit, BiscuitListParams, Biscuits, BiscuitsSkipLimitPage } from "./resources/biscuits.js";
|
|
13
|
+
import { Character, CharacterCreateParams, CharacterGetQuotesResponse, CharacterListParams, CharacterRole, CharacterUpdateParams, Characters, CharactersSkipLimitPage, EmotionalStats, GrowthArc } from "./resources/characters.js";
|
|
14
|
+
import { ConflictResolveParams, ConflictResolveResponse, Conflicts } from "./resources/conflicts.js";
|
|
15
|
+
import { Episode, EpisodeCreateParams, EpisodeGetWisdomResponse, EpisodeListBySeasonParams, EpisodeListParams, EpisodeUpdateParams, Episodes, EpisodesSkipLimitPage, PaginatedResponse } from "./resources/episodes.js";
|
|
16
|
+
import { Health, HealthCheckResponse } from "./resources/health.js";
|
|
17
|
+
import { PepTalk, PepTalkRetrieveParams, PepTalkRetrieveResponse } from "./resources/pep-talk.js";
|
|
18
|
+
import { Press, PressSimulateParams, PressSimulateResponse } from "./resources/press.js";
|
|
19
|
+
import { PaginatedResponseQuote, Quote, QuoteCreateParams, QuoteGetRandomParams, QuoteListByCharacterParams, QuoteListByThemeParams, QuoteListParams, QuoteMoment, QuoteTheme, QuoteUpdateParams, Quotes, QuotesSkipLimitPage } from "./resources/quotes.js";
|
|
20
|
+
import { Reframe, ReframeTransformNegativeThoughtsParams, ReframeTransformNegativeThoughtsResponse } from "./resources/reframe.js";
|
|
21
|
+
import { Stream, StreamTestConnectionResponse } from "./resources/stream.js";
|
|
22
|
+
import { Coach, CoachSpecialty, CoachesSkipLimitPage, EquipmentManager, MedicalSpecialty, MedicalStaff, Player, PlayersSkipLimitPage, Position, TeamMemberCreateParams, TeamMemberCreateResponse, TeamMemberListCoachesParams, TeamMemberListParams, TeamMemberListPlayersParams, TeamMemberListResponse, TeamMemberListResponsesSkipLimitPage, TeamMemberListStaffParams, TeamMemberListStaffResponse, TeamMemberListStaffResponsesSkipLimitPage, TeamMemberRetrieveResponse, TeamMemberUpdateParams, TeamMemberUpdateResponse, TeamMembers } from "./resources/team-members.js";
|
|
23
|
+
import { GetWelcomeResponse } from "./resources/top-level.js";
|
|
24
|
+
import { Version, VersionRetrieveResponse } from "./resources/version.js";
|
|
25
|
+
import { RegisteredWebhook, WebhookCreateParams, WebhookCreateResponse, WebhookDeleteResponse, WebhookListResponse, WebhookTriggerEventParams, WebhookTriggerEventResponse, Webhooks } from "./resources/webhooks.js";
|
|
26
|
+
import { Coaching } from "./resources/coaching/coaching.js";
|
|
27
|
+
import { Match, MatchCreateParams, MatchGetLessonResponse, MatchGetTurningPointsResponse, MatchListParams, MatchResult, MatchType, MatchUpdateParams, Matches, MatchesSkipLimitPage, TurningPoint } from "./resources/matches/matches.js";
|
|
28
|
+
import { GeoLocation, League, Team, TeamCreateParams, TeamGetCultureResponse, TeamGetRivalsResponse, TeamListLogosResponse, TeamListParams, TeamUpdateParams, TeamValues, Teams, TeamsSkipLimitPage } from "./resources/teams/teams.js";
|
|
29
|
+
import { type Fetch } from "./internal/builtin-types.js";
|
|
30
|
+
import { HeadersLike, NullableHeaders } from "./internal/headers.js";
|
|
31
|
+
import { FinalRequestOptions, RequestOptions } from "./internal/request-options.js";
|
|
32
|
+
import { type LogLevel, type Logger } from "./internal/utils/log.js";
|
|
33
|
+
export interface ClientOptions {
|
|
34
|
+
/**
|
|
35
|
+
* Defaults to process.env['BELIEVE_API_KEY'].
|
|
36
|
+
*/
|
|
37
|
+
apiKey?: string | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Override the default base URL for the API, e.g., "https://api.example.com/v2/"
|
|
40
|
+
*
|
|
41
|
+
* Defaults to process.env['BELIEVE_BASE_URL'].
|
|
42
|
+
*/
|
|
43
|
+
baseURL?: string | null | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* The maximum amount of time (in milliseconds) that the client should wait for a response
|
|
46
|
+
* from the server before timing out a single request.
|
|
47
|
+
*
|
|
48
|
+
* Note that request timeouts are retried by default, so in a worst-case scenario you may wait
|
|
49
|
+
* much longer than this timeout before the promise succeeds or fails.
|
|
50
|
+
*
|
|
51
|
+
* @unit milliseconds
|
|
52
|
+
*/
|
|
53
|
+
timeout?: number | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* Additional `RequestInit` options to be passed to `fetch` calls.
|
|
56
|
+
* Properties will be overridden by per-request `fetchOptions`.
|
|
57
|
+
*/
|
|
58
|
+
fetchOptions?: MergedRequestInit | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* Specify a custom `fetch` function implementation.
|
|
61
|
+
*
|
|
62
|
+
* If not provided, we expect that `fetch` is defined globally.
|
|
63
|
+
*/
|
|
64
|
+
fetch?: Fetch | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* The maximum number of times that the client will retry a request in case of a
|
|
67
|
+
* temporary failure, like a network error or a 5XX error from the server.
|
|
68
|
+
*
|
|
69
|
+
* @default 2
|
|
70
|
+
*/
|
|
71
|
+
maxRetries?: number | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* Default headers to include with every request to the API.
|
|
74
|
+
*
|
|
75
|
+
* These can be removed in individual requests by explicitly setting the
|
|
76
|
+
* header to `null` in request options.
|
|
77
|
+
*/
|
|
78
|
+
defaultHeaders?: HeadersLike | undefined;
|
|
79
|
+
/**
|
|
80
|
+
* Default query parameters to include with every request to the API.
|
|
81
|
+
*
|
|
82
|
+
* These can be removed in individual requests by explicitly setting the
|
|
83
|
+
* param to `undefined` in request options.
|
|
84
|
+
*/
|
|
85
|
+
defaultQuery?: Record<string, string | undefined> | undefined;
|
|
86
|
+
/**
|
|
87
|
+
* Set the log level.
|
|
88
|
+
*
|
|
89
|
+
* Defaults to process.env['BELIEVE_LOG'] or 'warn' if it isn't set.
|
|
90
|
+
*/
|
|
91
|
+
logLevel?: LogLevel | undefined;
|
|
92
|
+
/**
|
|
93
|
+
* Set the logger.
|
|
94
|
+
*
|
|
95
|
+
* Defaults to globalThis.console.
|
|
96
|
+
*/
|
|
97
|
+
logger?: Logger | undefined;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* API Client for interfacing with the Believe API.
|
|
101
|
+
*/
|
|
102
|
+
export declare class Believe {
|
|
103
|
+
#private;
|
|
104
|
+
apiKey: string;
|
|
105
|
+
baseURL: string;
|
|
106
|
+
maxRetries: number;
|
|
107
|
+
timeout: number;
|
|
108
|
+
logger: Logger;
|
|
109
|
+
logLevel: LogLevel | undefined;
|
|
110
|
+
fetchOptions: MergedRequestInit | undefined;
|
|
111
|
+
private fetch;
|
|
112
|
+
protected idempotencyHeader?: string;
|
|
113
|
+
private _options;
|
|
114
|
+
/**
|
|
115
|
+
* API Client for interfacing with the Believe API.
|
|
116
|
+
*
|
|
117
|
+
* @param {string | undefined} [opts.apiKey=process.env['BELIEVE_API_KEY'] ?? undefined]
|
|
118
|
+
* @param {string} [opts.baseURL=process.env['BELIEVE_BASE_URL'] ?? https://believe.cjav.dev] - Override the default base URL for the API.
|
|
119
|
+
* @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
|
120
|
+
* @param {MergedRequestInit} [opts.fetchOptions] - Additional `RequestInit` options to be passed to `fetch` calls.
|
|
121
|
+
* @param {Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
|
|
122
|
+
* @param {number} [opts.maxRetries=2] - The maximum number of times the client will retry a request.
|
|
123
|
+
* @param {HeadersLike} opts.defaultHeaders - Default headers to include with every request to the API.
|
|
124
|
+
* @param {Record<string, string | undefined>} opts.defaultQuery - Default query parameters to include with every request to the API.
|
|
125
|
+
*/
|
|
126
|
+
constructor({ baseURL, apiKey, ...opts }?: ClientOptions);
|
|
127
|
+
/**
|
|
128
|
+
* Create a new client instance re-using the same options given to the current client with optional overriding.
|
|
129
|
+
*/
|
|
130
|
+
withOptions(options: Partial<ClientOptions>): this;
|
|
131
|
+
/**
|
|
132
|
+
* Get a warm welcome and overview of available endpoints.
|
|
133
|
+
*/
|
|
134
|
+
getWelcome(options?: RequestOptions): APIPromise<unknown>;
|
|
135
|
+
protected defaultQuery(): Record<string, string | undefined> | undefined;
|
|
136
|
+
protected validateHeaders({ values, nulls }: NullableHeaders): void;
|
|
137
|
+
protected authHeaders(opts: FinalRequestOptions): Promise<NullableHeaders | undefined>;
|
|
138
|
+
/**
|
|
139
|
+
* Basic re-implementation of `qs.stringify` for primitive types.
|
|
140
|
+
*/
|
|
141
|
+
protected stringifyQuery(query: Record<string, unknown>): string;
|
|
142
|
+
private getUserAgent;
|
|
143
|
+
protected defaultIdempotencyKey(): string;
|
|
144
|
+
protected makeStatusError(status: number, error: Object, message: string | undefined, headers: Headers): Errors.APIError;
|
|
145
|
+
buildURL(path: string, query: Record<string, unknown> | null | undefined, defaultBaseURL?: string | undefined): string;
|
|
146
|
+
/**
|
|
147
|
+
* Used as a callback for mutating the given `FinalRequestOptions` object.
|
|
148
|
+
*/
|
|
149
|
+
protected prepareOptions(options: FinalRequestOptions): Promise<void>;
|
|
150
|
+
/**
|
|
151
|
+
* Used as a callback for mutating the given `RequestInit` object.
|
|
152
|
+
*
|
|
153
|
+
* This is useful for cases where you want to add certain headers based off of
|
|
154
|
+
* the request properties, e.g. `method` or `url`.
|
|
155
|
+
*/
|
|
156
|
+
protected prepareRequest(request: RequestInit, { url, options }: {
|
|
157
|
+
url: string;
|
|
158
|
+
options: FinalRequestOptions;
|
|
159
|
+
}): Promise<void>;
|
|
160
|
+
get<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
|
|
161
|
+
post<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
|
|
162
|
+
patch<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
|
|
163
|
+
put<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
|
|
164
|
+
delete<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
|
|
165
|
+
private methodRequest;
|
|
166
|
+
request<Rsp>(options: PromiseOrValue<FinalRequestOptions>, remainingRetries?: number | null): APIPromise<Rsp>;
|
|
167
|
+
private makeRequest;
|
|
168
|
+
getAPIList<Item, PageClass extends Pagination.AbstractPage<Item> = Pagination.AbstractPage<Item>>(path: string, Page: new (...args: any[]) => PageClass, opts?: RequestOptions): Pagination.PagePromise<PageClass, Item>;
|
|
169
|
+
requestAPIList<Item = unknown, PageClass extends Pagination.AbstractPage<Item> = Pagination.AbstractPage<Item>>(Page: new (...args: ConstructorParameters<typeof Pagination.AbstractPage>) => PageClass, options: FinalRequestOptions): Pagination.PagePromise<PageClass, Item>;
|
|
170
|
+
fetchWithTimeout(url: RequestInfo, init: RequestInit | undefined, ms: number, controller: AbortController): Promise<Response>;
|
|
171
|
+
private shouldRetry;
|
|
172
|
+
private retryRequest;
|
|
173
|
+
private calculateDefaultRetryTimeoutMillis;
|
|
174
|
+
buildRequest(inputOptions: FinalRequestOptions, { retryCount }?: {
|
|
175
|
+
retryCount?: number;
|
|
176
|
+
}): Promise<{
|
|
177
|
+
req: FinalizedRequestInit;
|
|
178
|
+
url: string;
|
|
179
|
+
timeout: number;
|
|
180
|
+
}>;
|
|
181
|
+
private buildHeaders;
|
|
182
|
+
private buildBody;
|
|
183
|
+
static Believe: typeof Believe;
|
|
184
|
+
static DEFAULT_TIMEOUT: number;
|
|
185
|
+
static BelieveError: typeof Errors.BelieveError;
|
|
186
|
+
static APIError: typeof Errors.APIError;
|
|
187
|
+
static APIConnectionError: typeof Errors.APIConnectionError;
|
|
188
|
+
static APIConnectionTimeoutError: typeof Errors.APIConnectionTimeoutError;
|
|
189
|
+
static APIUserAbortError: typeof Errors.APIUserAbortError;
|
|
190
|
+
static NotFoundError: typeof Errors.NotFoundError;
|
|
191
|
+
static ConflictError: typeof Errors.ConflictError;
|
|
192
|
+
static RateLimitError: typeof Errors.RateLimitError;
|
|
193
|
+
static BadRequestError: typeof Errors.BadRequestError;
|
|
194
|
+
static AuthenticationError: typeof Errors.AuthenticationError;
|
|
195
|
+
static InternalServerError: typeof Errors.InternalServerError;
|
|
196
|
+
static PermissionDeniedError: typeof Errors.PermissionDeniedError;
|
|
197
|
+
static UnprocessableEntityError: typeof Errors.UnprocessableEntityError;
|
|
198
|
+
static toFile: typeof Uploads.toFile;
|
|
199
|
+
characters: API.Characters;
|
|
200
|
+
teams: API.Teams;
|
|
201
|
+
matches: API.Matches;
|
|
202
|
+
episodes: API.Episodes;
|
|
203
|
+
quotes: API.Quotes;
|
|
204
|
+
believe: API.BelieveResource;
|
|
205
|
+
conflicts: API.Conflicts;
|
|
206
|
+
reframe: API.Reframe;
|
|
207
|
+
press: API.Press;
|
|
208
|
+
coaching: API.Coaching;
|
|
209
|
+
biscuits: API.Biscuits;
|
|
210
|
+
pepTalk: API.PepTalk;
|
|
211
|
+
stream: API.Stream;
|
|
212
|
+
teamMembers: API.TeamMembers;
|
|
213
|
+
webhooks: API.Webhooks;
|
|
214
|
+
health: API.Health;
|
|
215
|
+
version: API.Version;
|
|
216
|
+
}
|
|
217
|
+
export declare namespace Believe {
|
|
218
|
+
export type RequestOptions = Opts.RequestOptions;
|
|
219
|
+
export import SkipLimitPage = Pagination.SkipLimitPage;
|
|
220
|
+
export { type SkipLimitPageParams as SkipLimitPageParams, type SkipLimitPageResponse as SkipLimitPageResponse, };
|
|
221
|
+
export { type GetWelcomeResponse as GetWelcomeResponse };
|
|
222
|
+
export { Characters as Characters, type Character as Character, type CharacterRole as CharacterRole, type EmotionalStats as EmotionalStats, type GrowthArc as GrowthArc, type CharacterGetQuotesResponse as CharacterGetQuotesResponse, type CharactersSkipLimitPage as CharactersSkipLimitPage, type CharacterCreateParams as CharacterCreateParams, type CharacterUpdateParams as CharacterUpdateParams, type CharacterListParams as CharacterListParams, };
|
|
223
|
+
export { Teams as Teams, type GeoLocation as GeoLocation, type League as League, type Team as Team, type TeamValues as TeamValues, type TeamGetCultureResponse as TeamGetCultureResponse, type TeamGetRivalsResponse as TeamGetRivalsResponse, type TeamListLogosResponse as TeamListLogosResponse, type TeamsSkipLimitPage as TeamsSkipLimitPage, type TeamCreateParams as TeamCreateParams, type TeamUpdateParams as TeamUpdateParams, type TeamListParams as TeamListParams, };
|
|
224
|
+
export { Matches as Matches, type Match as Match, type MatchResult as MatchResult, type MatchType as MatchType, type TurningPoint as TurningPoint, type MatchGetLessonResponse as MatchGetLessonResponse, type MatchGetTurningPointsResponse as MatchGetTurningPointsResponse, type MatchesSkipLimitPage as MatchesSkipLimitPage, type MatchCreateParams as MatchCreateParams, type MatchUpdateParams as MatchUpdateParams, type MatchListParams as MatchListParams, };
|
|
225
|
+
export { Episodes as Episodes, type Episode as Episode, type PaginatedResponse as PaginatedResponse, type EpisodeGetWisdomResponse as EpisodeGetWisdomResponse, type EpisodesSkipLimitPage as EpisodesSkipLimitPage, type EpisodeCreateParams as EpisodeCreateParams, type EpisodeUpdateParams as EpisodeUpdateParams, type EpisodeListParams as EpisodeListParams, type EpisodeListBySeasonParams as EpisodeListBySeasonParams, };
|
|
226
|
+
export { Quotes as Quotes, type PaginatedResponseQuote as PaginatedResponseQuote, type Quote as Quote, type QuoteMoment as QuoteMoment, type QuoteTheme as QuoteTheme, type QuotesSkipLimitPage as QuotesSkipLimitPage, type QuoteCreateParams as QuoteCreateParams, type QuoteUpdateParams as QuoteUpdateParams, type QuoteListParams as QuoteListParams, type QuoteGetRandomParams as QuoteGetRandomParams, type QuoteListByCharacterParams as QuoteListByCharacterParams, type QuoteListByThemeParams as QuoteListByThemeParams, };
|
|
227
|
+
export { BelieveResource as BelieveResource, type BelieveSubmitResponse as BelieveSubmitResponse, type BelieveSubmitParams as BelieveSubmitParams, };
|
|
228
|
+
export { Conflicts as Conflicts, type ConflictResolveResponse as ConflictResolveResponse, type ConflictResolveParams as ConflictResolveParams, };
|
|
229
|
+
export { Reframe as Reframe, type ReframeTransformNegativeThoughtsResponse as ReframeTransformNegativeThoughtsResponse, type ReframeTransformNegativeThoughtsParams as ReframeTransformNegativeThoughtsParams, };
|
|
230
|
+
export { Press as Press, type PressSimulateResponse as PressSimulateResponse, type PressSimulateParams as PressSimulateParams, };
|
|
231
|
+
export { Coaching as Coaching };
|
|
232
|
+
export { Biscuits as Biscuits, type Biscuit as Biscuit, type BiscuitsSkipLimitPage as BiscuitsSkipLimitPage, type BiscuitListParams as BiscuitListParams, };
|
|
233
|
+
export { PepTalk as PepTalk, type PepTalkRetrieveResponse as PepTalkRetrieveResponse, type PepTalkRetrieveParams as PepTalkRetrieveParams, };
|
|
234
|
+
export { Stream as Stream, type StreamTestConnectionResponse as StreamTestConnectionResponse };
|
|
235
|
+
export { TeamMembers as TeamMembers, type Coach as Coach, type CoachSpecialty as CoachSpecialty, type EquipmentManager as EquipmentManager, type MedicalSpecialty as MedicalSpecialty, type MedicalStaff as MedicalStaff, type Player as Player, type Position as Position, type TeamMemberCreateResponse as TeamMemberCreateResponse, type TeamMemberRetrieveResponse as TeamMemberRetrieveResponse, type TeamMemberUpdateResponse as TeamMemberUpdateResponse, type TeamMemberListResponse as TeamMemberListResponse, type TeamMemberListStaffResponse as TeamMemberListStaffResponse, type TeamMemberListResponsesSkipLimitPage as TeamMemberListResponsesSkipLimitPage, type CoachesSkipLimitPage as CoachesSkipLimitPage, type PlayersSkipLimitPage as PlayersSkipLimitPage, type TeamMemberListStaffResponsesSkipLimitPage as TeamMemberListStaffResponsesSkipLimitPage, type TeamMemberCreateParams as TeamMemberCreateParams, type TeamMemberUpdateParams as TeamMemberUpdateParams, type TeamMemberListParams as TeamMemberListParams, type TeamMemberListCoachesParams as TeamMemberListCoachesParams, type TeamMemberListPlayersParams as TeamMemberListPlayersParams, type TeamMemberListStaffParams as TeamMemberListStaffParams, };
|
|
236
|
+
export { Webhooks as Webhooks, type RegisteredWebhook as RegisteredWebhook, type WebhookCreateResponse as WebhookCreateResponse, type WebhookListResponse as WebhookListResponse, type WebhookDeleteResponse as WebhookDeleteResponse, type WebhookTriggerEventResponse as WebhookTriggerEventResponse, type WebhookCreateParams as WebhookCreateParams, type WebhookTriggerEventParams as WebhookTriggerEventParams, };
|
|
237
|
+
export { Health as Health, type HealthCheckResponse as HealthCheckResponse };
|
|
238
|
+
export { Version as Version, type VersionRetrieveResponse as VersionRetrieveResponse };
|
|
239
|
+
}
|
|
240
|
+
//# sourceMappingURL=client.d.ts.map
|
package/client.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["src/client.ts"],"names":[],"mappings":"OAEO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAY;OAC3C,KAAK,EAAc,cAAc,EAAE,iBAAiB,EAAE,oBAAoB,EAAE;YAIvE,EAAE,MAAM,EAAE,QAAQ,EAAE;OAKzB,KAAK,IAAI;OAET,KAAK,MAAM;OACX,KAAK,UAAU;OACf,EAAgB,KAAK,mBAAmB,EAAE,qBAAqB,EAAE;OACjE,KAAK,OAAO;OACZ,KAAK,GAAG;OACR,EAAE,UAAU,EAAE;OACd,EAAE,eAAe,EAAE,mBAAmB,EAAE,qBAAqB,EAAE;OAC/D,EAAE,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,qBAAqB,EAAE;OAC/D,EACL,SAAS,EACT,qBAAqB,EACrB,0BAA0B,EAC1B,mBAAmB,EACnB,aAAa,EACb,qBAAqB,EACrB,UAAU,EACV,uBAAuB,EACvB,cAAc,EACd,SAAS,EACV;OACM,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,SAAS,EAAE;OAC7D,EACL,OAAO,EACP,mBAAmB,EACnB,wBAAwB,EACxB,yBAAyB,EACzB,iBAAiB,EACjB,mBAAmB,EACnB,QAAQ,EACR,qBAAqB,EACrB,iBAAiB,EAClB;OACM,EAAE,MAAM,EAAE,mBAAmB,EAAE;OAC/B,EAAE,OAAO,EAAE,qBAAqB,EAAE,uBAAuB,EAAE;OAC3D,EAAE,KAAK,EAAE,mBAAmB,EAAE,qBAAqB,EAAE;OACrD,EACL,sBAAsB,EACtB,KAAK,EACL,iBAAiB,EACjB,oBAAoB,EACpB,0BAA0B,EAC1B,sBAAsB,EACtB,eAAe,EACf,WAAW,EACX,UAAU,EACV,iBAAiB,EACjB,MAAM,EACN,mBAAmB,EACpB;OACM,EACL,OAAO,EACP,sCAAsC,EACtC,wCA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