@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
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { PagePromise, SkipLimitPage, type SkipLimitPageParams } from "../core/pagination.js";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
5
|
+
export declare class Quotes extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Add a new memorable quote to the collection.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const quote = await client.quotes.create({
|
|
12
|
+
* character_id: 'ted-lasso',
|
|
13
|
+
* context:
|
|
14
|
+
* "Ted's first team meeting, revealing his coaching philosophy",
|
|
15
|
+
* moment_type: 'locker_room',
|
|
16
|
+
* text: 'I believe in believe.',
|
|
17
|
+
* theme: 'belief',
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
create(body: QuoteCreateParams, options?: RequestOptions): APIPromise<Quote>;
|
|
22
|
+
/**
|
|
23
|
+
* Retrieve a specific quote by its ID.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* const quote = await client.quotes.retrieve('quote_id');
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
retrieve(quoteID: string, options?: RequestOptions): APIPromise<Quote>;
|
|
31
|
+
/**
|
|
32
|
+
* Update specific fields of an existing quote.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```ts
|
|
36
|
+
* const quote = await client.quotes.update('quote_id');
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
update(quoteID: string, body: QuoteUpdateParams, options?: RequestOptions): APIPromise<Quote>;
|
|
40
|
+
/**
|
|
41
|
+
* Get a paginated list of all memorable Ted Lasso quotes with optional filtering.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```ts
|
|
45
|
+
* // Automatically fetches more pages as needed.
|
|
46
|
+
* for await (const quote of client.quotes.list()) {
|
|
47
|
+
* // ...
|
|
48
|
+
* }
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
list(query?: QuoteListParams | null | undefined, options?: RequestOptions): PagePromise<QuotesSkipLimitPage, Quote>;
|
|
52
|
+
/**
|
|
53
|
+
* Remove a quote from the collection.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* await client.quotes.delete('quote_id');
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
delete(quoteID: string, options?: RequestOptions): APIPromise<void>;
|
|
61
|
+
/**
|
|
62
|
+
* Get a random Ted Lasso quote, optionally filtered.
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* ```ts
|
|
66
|
+
* const quote = await client.quotes.getRandom();
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
69
|
+
getRandom(query?: QuoteGetRandomParams | null | undefined, options?: RequestOptions): APIPromise<Quote>;
|
|
70
|
+
/**
|
|
71
|
+
* Get a paginated list of quotes from a specific character.
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* ```ts
|
|
75
|
+
* // Automatically fetches more pages as needed.
|
|
76
|
+
* for await (const quote of client.quotes.listByCharacter(
|
|
77
|
+
* 'character_id',
|
|
78
|
+
* )) {
|
|
79
|
+
* // ...
|
|
80
|
+
* }
|
|
81
|
+
* ```
|
|
82
|
+
*/
|
|
83
|
+
listByCharacter(characterID: string, query?: QuoteListByCharacterParams | null | undefined, options?: RequestOptions): PagePromise<QuotesSkipLimitPage, Quote>;
|
|
84
|
+
/**
|
|
85
|
+
* Get a paginated list of quotes related to a specific theme.
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* ```ts
|
|
89
|
+
* // Automatically fetches more pages as needed.
|
|
90
|
+
* for await (const quote of client.quotes.listByTheme(
|
|
91
|
+
* 'belief',
|
|
92
|
+
* )) {
|
|
93
|
+
* // ...
|
|
94
|
+
* }
|
|
95
|
+
* ```
|
|
96
|
+
*/
|
|
97
|
+
listByTheme(theme: QuoteTheme, query?: QuoteListByThemeParams | null | undefined, options?: RequestOptions): PagePromise<QuotesSkipLimitPage, Quote>;
|
|
98
|
+
}
|
|
99
|
+
export type QuotesSkipLimitPage = SkipLimitPage<Quote>;
|
|
100
|
+
export interface PaginatedResponseQuote {
|
|
101
|
+
data: Array<Quote>;
|
|
102
|
+
/**
|
|
103
|
+
* Whether there are more items after this page.
|
|
104
|
+
*/
|
|
105
|
+
has_more: boolean;
|
|
106
|
+
limit: number;
|
|
107
|
+
/**
|
|
108
|
+
* Current page number (1-indexed, for display purposes).
|
|
109
|
+
*/
|
|
110
|
+
page: number;
|
|
111
|
+
/**
|
|
112
|
+
* Total number of pages.
|
|
113
|
+
*/
|
|
114
|
+
pages: number;
|
|
115
|
+
skip: number;
|
|
116
|
+
total: number;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Full quote model with ID.
|
|
120
|
+
*/
|
|
121
|
+
export interface Quote {
|
|
122
|
+
/**
|
|
123
|
+
* Unique identifier
|
|
124
|
+
*/
|
|
125
|
+
id: string;
|
|
126
|
+
/**
|
|
127
|
+
* ID of the character who said it
|
|
128
|
+
*/
|
|
129
|
+
character_id: string;
|
|
130
|
+
/**
|
|
131
|
+
* Context in which the quote was said
|
|
132
|
+
*/
|
|
133
|
+
context: string;
|
|
134
|
+
/**
|
|
135
|
+
* Type of moment when the quote was said
|
|
136
|
+
*/
|
|
137
|
+
moment_type: QuoteMoment;
|
|
138
|
+
/**
|
|
139
|
+
* The quote text
|
|
140
|
+
*/
|
|
141
|
+
text: string;
|
|
142
|
+
/**
|
|
143
|
+
* Primary theme of the quote
|
|
144
|
+
*/
|
|
145
|
+
theme: QuoteTheme;
|
|
146
|
+
/**
|
|
147
|
+
* Episode where the quote appears
|
|
148
|
+
*/
|
|
149
|
+
episode_id?: string | null;
|
|
150
|
+
/**
|
|
151
|
+
* Whether this quote is humorous
|
|
152
|
+
*/
|
|
153
|
+
is_funny?: boolean;
|
|
154
|
+
/**
|
|
155
|
+
* Whether this quote is inspirational
|
|
156
|
+
*/
|
|
157
|
+
is_inspirational?: boolean;
|
|
158
|
+
/**
|
|
159
|
+
* Popularity/virality score (0-100)
|
|
160
|
+
*/
|
|
161
|
+
popularity_score?: number | null;
|
|
162
|
+
/**
|
|
163
|
+
* Additional themes
|
|
164
|
+
*/
|
|
165
|
+
secondary_themes?: Array<QuoteTheme>;
|
|
166
|
+
/**
|
|
167
|
+
* Number of times shared on social media
|
|
168
|
+
*/
|
|
169
|
+
times_shared?: number | null;
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Types of moments when quotes occur.
|
|
173
|
+
*/
|
|
174
|
+
export type QuoteMoment = 'halftime_speech' | 'press_conference' | 'locker_room' | 'training' | 'biscuits_with_boss' | 'pub' | 'one_on_one' | 'celebration' | 'crisis' | 'casual' | 'confrontation';
|
|
175
|
+
/**
|
|
176
|
+
* Themes that quotes can be categorized under.
|
|
177
|
+
*/
|
|
178
|
+
export type QuoteTheme = 'belief' | 'teamwork' | 'curiosity' | 'kindness' | 'resilience' | 'vulnerability' | 'growth' | 'humor' | 'wisdom' | 'leadership' | 'love' | 'forgiveness' | 'philosophy' | 'romance' | 'cultural-pride' | 'cultural-differences' | 'antagonism' | 'celebration' | 'identity' | 'isolation' | 'power' | 'sacrifice' | 'standards' | 'confidence' | 'conflict' | 'honesty' | 'integrity';
|
|
179
|
+
export interface QuoteCreateParams {
|
|
180
|
+
/**
|
|
181
|
+
* ID of the character who said it
|
|
182
|
+
*/
|
|
183
|
+
character_id: string;
|
|
184
|
+
/**
|
|
185
|
+
* Context in which the quote was said
|
|
186
|
+
*/
|
|
187
|
+
context: string;
|
|
188
|
+
/**
|
|
189
|
+
* Type of moment when the quote was said
|
|
190
|
+
*/
|
|
191
|
+
moment_type: QuoteMoment;
|
|
192
|
+
/**
|
|
193
|
+
* The quote text
|
|
194
|
+
*/
|
|
195
|
+
text: string;
|
|
196
|
+
/**
|
|
197
|
+
* Primary theme of the quote
|
|
198
|
+
*/
|
|
199
|
+
theme: QuoteTheme;
|
|
200
|
+
/**
|
|
201
|
+
* Episode where the quote appears
|
|
202
|
+
*/
|
|
203
|
+
episode_id?: string | null;
|
|
204
|
+
/**
|
|
205
|
+
* Whether this quote is humorous
|
|
206
|
+
*/
|
|
207
|
+
is_funny?: boolean;
|
|
208
|
+
/**
|
|
209
|
+
* Whether this quote is inspirational
|
|
210
|
+
*/
|
|
211
|
+
is_inspirational?: boolean;
|
|
212
|
+
/**
|
|
213
|
+
* Popularity/virality score (0-100)
|
|
214
|
+
*/
|
|
215
|
+
popularity_score?: number | null;
|
|
216
|
+
/**
|
|
217
|
+
* Additional themes
|
|
218
|
+
*/
|
|
219
|
+
secondary_themes?: Array<QuoteTheme>;
|
|
220
|
+
/**
|
|
221
|
+
* Number of times shared on social media
|
|
222
|
+
*/
|
|
223
|
+
times_shared?: number | null;
|
|
224
|
+
}
|
|
225
|
+
export interface QuoteUpdateParams {
|
|
226
|
+
character_id?: string | null;
|
|
227
|
+
context?: string | null;
|
|
228
|
+
episode_id?: string | null;
|
|
229
|
+
is_funny?: boolean | null;
|
|
230
|
+
is_inspirational?: boolean | null;
|
|
231
|
+
/**
|
|
232
|
+
* Types of moments when quotes occur.
|
|
233
|
+
*/
|
|
234
|
+
moment_type?: QuoteMoment | null;
|
|
235
|
+
popularity_score?: number | null;
|
|
236
|
+
secondary_themes?: Array<QuoteTheme> | null;
|
|
237
|
+
text?: string | null;
|
|
238
|
+
/**
|
|
239
|
+
* Themes that quotes can be categorized under.
|
|
240
|
+
*/
|
|
241
|
+
theme?: QuoteTheme | null;
|
|
242
|
+
times_shared?: number | null;
|
|
243
|
+
}
|
|
244
|
+
export interface QuoteListParams extends SkipLimitPageParams {
|
|
245
|
+
/**
|
|
246
|
+
* Filter by character
|
|
247
|
+
*/
|
|
248
|
+
character_id?: string | null;
|
|
249
|
+
/**
|
|
250
|
+
* Filter funny quotes
|
|
251
|
+
*/
|
|
252
|
+
funny?: boolean | null;
|
|
253
|
+
/**
|
|
254
|
+
* Filter inspirational quotes
|
|
255
|
+
*/
|
|
256
|
+
inspirational?: boolean | null;
|
|
257
|
+
/**
|
|
258
|
+
* Types of moments when quotes occur.
|
|
259
|
+
*/
|
|
260
|
+
moment_type?: QuoteMoment | null;
|
|
261
|
+
/**
|
|
262
|
+
* Themes that quotes can be categorized under.
|
|
263
|
+
*/
|
|
264
|
+
theme?: QuoteTheme | null;
|
|
265
|
+
}
|
|
266
|
+
export interface QuoteGetRandomParams {
|
|
267
|
+
/**
|
|
268
|
+
* Filter by character
|
|
269
|
+
*/
|
|
270
|
+
character_id?: string | null;
|
|
271
|
+
/**
|
|
272
|
+
* Filter inspirational quotes
|
|
273
|
+
*/
|
|
274
|
+
inspirational?: boolean | null;
|
|
275
|
+
/**
|
|
276
|
+
* Themes that quotes can be categorized under.
|
|
277
|
+
*/
|
|
278
|
+
theme?: QuoteTheme | null;
|
|
279
|
+
}
|
|
280
|
+
export interface QuoteListByCharacterParams extends SkipLimitPageParams {
|
|
281
|
+
}
|
|
282
|
+
export interface QuoteListByThemeParams extends SkipLimitPageParams {
|
|
283
|
+
}
|
|
284
|
+
export declare namespace Quotes {
|
|
285
|
+
export { 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, };
|
|
286
|
+
}
|
|
287
|
+
//# sourceMappingURL=quotes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quotes.d.ts","sourceRoot":"","sources":["../src/resources/quotes.ts"],"names":[],"mappings":"OAE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UAAU,IAAI,UAAU,EAC7B,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Quotes = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../core/pagination.js");
|
|
7
|
+
const headers_1 = require("../internal/headers.js");
|
|
8
|
+
const path_1 = require("../internal/utils/path.js");
|
|
9
|
+
class Quotes extends resource_1.APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Add a new memorable quote to the collection.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const quote = await client.quotes.create({
|
|
16
|
+
* character_id: 'ted-lasso',
|
|
17
|
+
* context:
|
|
18
|
+
* "Ted's first team meeting, revealing his coaching philosophy",
|
|
19
|
+
* moment_type: 'locker_room',
|
|
20
|
+
* text: 'I believe in believe.',
|
|
21
|
+
* theme: 'belief',
|
|
22
|
+
* });
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
create(body, options) {
|
|
26
|
+
return this._client.post('/quotes', { body, ...options });
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Retrieve a specific quote by its ID.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* const quote = await client.quotes.retrieve('quote_id');
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
retrieve(quoteID, options) {
|
|
37
|
+
return this._client.get((0, path_1.path) `/quotes/${quoteID}`, options);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Update specific fields of an existing quote.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```ts
|
|
44
|
+
* const quote = await client.quotes.update('quote_id');
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
update(quoteID, body, options) {
|
|
48
|
+
return this._client.patch((0, path_1.path) `/quotes/${quoteID}`, { body, ...options });
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Get a paginated list of all memorable Ted Lasso quotes with optional filtering.
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```ts
|
|
55
|
+
* // Automatically fetches more pages as needed.
|
|
56
|
+
* for await (const quote of client.quotes.list()) {
|
|
57
|
+
* // ...
|
|
58
|
+
* }
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
list(query = {}, options) {
|
|
62
|
+
return this._client.getAPIList('/quotes', (pagination_1.SkipLimitPage), { query, ...options });
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Remove a quote from the collection.
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* ```ts
|
|
69
|
+
* await client.quotes.delete('quote_id');
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
72
|
+
delete(quoteID, options) {
|
|
73
|
+
return this._client.delete((0, path_1.path) `/quotes/${quoteID}`, {
|
|
74
|
+
...options,
|
|
75
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Get a random Ted Lasso quote, optionally filtered.
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* ```ts
|
|
83
|
+
* const quote = await client.quotes.getRandom();
|
|
84
|
+
* ```
|
|
85
|
+
*/
|
|
86
|
+
getRandom(query = {}, options) {
|
|
87
|
+
return this._client.get('/quotes/random', { query, ...options });
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Get a paginated list of quotes from a specific character.
|
|
91
|
+
*
|
|
92
|
+
* @example
|
|
93
|
+
* ```ts
|
|
94
|
+
* // Automatically fetches more pages as needed.
|
|
95
|
+
* for await (const quote of client.quotes.listByCharacter(
|
|
96
|
+
* 'character_id',
|
|
97
|
+
* )) {
|
|
98
|
+
* // ...
|
|
99
|
+
* }
|
|
100
|
+
* ```
|
|
101
|
+
*/
|
|
102
|
+
listByCharacter(characterID, query = {}, options) {
|
|
103
|
+
return this._client.getAPIList((0, path_1.path) `/quotes/characters/${characterID}`, (pagination_1.SkipLimitPage), {
|
|
104
|
+
query,
|
|
105
|
+
...options,
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Get a paginated list of quotes related to a specific theme.
|
|
110
|
+
*
|
|
111
|
+
* @example
|
|
112
|
+
* ```ts
|
|
113
|
+
* // Automatically fetches more pages as needed.
|
|
114
|
+
* for await (const quote of client.quotes.listByTheme(
|
|
115
|
+
* 'belief',
|
|
116
|
+
* )) {
|
|
117
|
+
* // ...
|
|
118
|
+
* }
|
|
119
|
+
* ```
|
|
120
|
+
*/
|
|
121
|
+
listByTheme(theme, query = {}, options) {
|
|
122
|
+
return this._client.getAPIList((0, path_1.path) `/quotes/themes/${theme}`, (pagination_1.SkipLimitPage), {
|
|
123
|
+
query,
|
|
124
|
+
...options,
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
exports.Quotes = Quotes;
|
|
129
|
+
//# sourceMappingURL=quotes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quotes.js","sourceRoot":"","sources":["../src/resources/quotes.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAA0F;AAC1F,oDAAmD;AAEnD,oDAA8C;AAE9C,MAAa,MAAO,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,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnE,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,eAAe,CACb,WAAmB,EACnB,QAAuD,EAAE,EACzD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAA,WAAI,EAAA,sBAAsB,WAAW,EAAE,EAAE,CAAA,0BAAoB,CAAA,EAAE;YAC5F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,WAAW,CACT,KAAiB,EACjB,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAA,WAAI,EAAA,kBAAkB,KAAK,EAAE,EAAE,CAAA,0BAAoB,CAAA,EAAE;YAClF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AA3ID,wBA2IC"}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { SkipLimitPage } from "../core/pagination.mjs";
|
|
4
|
+
import { buildHeaders } from "../internal/headers.mjs";
|
|
5
|
+
import { path } from "../internal/utils/path.mjs";
|
|
6
|
+
export class Quotes extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Add a new memorable quote to the collection.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const quote = await client.quotes.create({
|
|
13
|
+
* character_id: 'ted-lasso',
|
|
14
|
+
* context:
|
|
15
|
+
* "Ted's first team meeting, revealing his coaching philosophy",
|
|
16
|
+
* moment_type: 'locker_room',
|
|
17
|
+
* text: 'I believe in believe.',
|
|
18
|
+
* theme: 'belief',
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
create(body, options) {
|
|
23
|
+
return this._client.post('/quotes', { body, ...options });
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Retrieve a specific quote by its ID.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const quote = await client.quotes.retrieve('quote_id');
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
retrieve(quoteID, options) {
|
|
34
|
+
return this._client.get(path `/quotes/${quoteID}`, options);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Update specific fields of an existing quote.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```ts
|
|
41
|
+
* const quote = await client.quotes.update('quote_id');
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
update(quoteID, body, options) {
|
|
45
|
+
return this._client.patch(path `/quotes/${quoteID}`, { body, ...options });
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Get a paginated list of all memorable Ted Lasso quotes with optional filtering.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```ts
|
|
52
|
+
* // Automatically fetches more pages as needed.
|
|
53
|
+
* for await (const quote of client.quotes.list()) {
|
|
54
|
+
* // ...
|
|
55
|
+
* }
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
list(query = {}, options) {
|
|
59
|
+
return this._client.getAPIList('/quotes', (SkipLimitPage), { query, ...options });
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Remove a quote from the collection.
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* ```ts
|
|
66
|
+
* await client.quotes.delete('quote_id');
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
69
|
+
delete(quoteID, options) {
|
|
70
|
+
return this._client.delete(path `/quotes/${quoteID}`, {
|
|
71
|
+
...options,
|
|
72
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Get a random Ted Lasso quote, optionally filtered.
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* ```ts
|
|
80
|
+
* const quote = await client.quotes.getRandom();
|
|
81
|
+
* ```
|
|
82
|
+
*/
|
|
83
|
+
getRandom(query = {}, options) {
|
|
84
|
+
return this._client.get('/quotes/random', { query, ...options });
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Get a paginated list of quotes from a specific character.
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* ```ts
|
|
91
|
+
* // Automatically fetches more pages as needed.
|
|
92
|
+
* for await (const quote of client.quotes.listByCharacter(
|
|
93
|
+
* 'character_id',
|
|
94
|
+
* )) {
|
|
95
|
+
* // ...
|
|
96
|
+
* }
|
|
97
|
+
* ```
|
|
98
|
+
*/
|
|
99
|
+
listByCharacter(characterID, query = {}, options) {
|
|
100
|
+
return this._client.getAPIList(path `/quotes/characters/${characterID}`, (SkipLimitPage), {
|
|
101
|
+
query,
|
|
102
|
+
...options,
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Get a paginated list of quotes related to a specific theme.
|
|
107
|
+
*
|
|
108
|
+
* @example
|
|
109
|
+
* ```ts
|
|
110
|
+
* // Automatically fetches more pages as needed.
|
|
111
|
+
* for await (const quote of client.quotes.listByTheme(
|
|
112
|
+
* 'belief',
|
|
113
|
+
* )) {
|
|
114
|
+
* // ...
|
|
115
|
+
* }
|
|
116
|
+
* ```
|
|
117
|
+
*/
|
|
118
|
+
listByTheme(theme, query = {}, options) {
|
|
119
|
+
return this._client.getAPIList(path `/quotes/themes/${theme}`, (SkipLimitPage), {
|
|
120
|
+
query,
|
|
121
|
+
...options,
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
//# sourceMappingURL=quotes.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quotes.mjs","sourceRoot":"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D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,SAAS,CACP,QAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnE,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,eAAe,CACb,WAAmB,EACnB,QAAuD,EAAE,EACzD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAA,sBAAsB,WAAW,EAAE,EAAE,CAAA,aAAoB,CAAA,EAAE;YAC5F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,WAAW,CACT,KAAiB,EACjB,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAA,kBAAkB,KAAK,EAAE,EAAE,CAAA,aAAoB,CAAA,EAAE;YAClF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
+
export declare class Reframe extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Transform negative thoughts into positive perspectives with Ted's help.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const response =
|
|
11
|
+
* await client.reframe.transformNegativeThoughts({
|
|
12
|
+
* negative_thought: "I'm not good enough for this job.",
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
transformNegativeThoughts(body: ReframeTransformNegativeThoughtsParams, options?: RequestOptions): APIPromise<ReframeTransformNegativeThoughtsResponse>;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Reframed perspective response.
|
|
20
|
+
*/
|
|
21
|
+
export interface ReframeTransformNegativeThoughtsResponse {
|
|
22
|
+
/**
|
|
23
|
+
* A daily affirmation to practice
|
|
24
|
+
*/
|
|
25
|
+
daily_affirmation: string;
|
|
26
|
+
/**
|
|
27
|
+
* The original negative thought
|
|
28
|
+
*/
|
|
29
|
+
original_thought: string;
|
|
30
|
+
/**
|
|
31
|
+
* The thought reframed positively
|
|
32
|
+
*/
|
|
33
|
+
reframed_thought: string;
|
|
34
|
+
/**
|
|
35
|
+
* Ted's take on this thought
|
|
36
|
+
*/
|
|
37
|
+
ted_perspective: string;
|
|
38
|
+
/**
|
|
39
|
+
* Dr. Sharon's therapeutic insight
|
|
40
|
+
*/
|
|
41
|
+
dr_sharon_insight?: string | null;
|
|
42
|
+
}
|
|
43
|
+
export interface ReframeTransformNegativeThoughtsParams {
|
|
44
|
+
/**
|
|
45
|
+
* The negative thought to reframe
|
|
46
|
+
*/
|
|
47
|
+
negative_thought: string;
|
|
48
|
+
/**
|
|
49
|
+
* Is this a recurring thought?
|
|
50
|
+
*/
|
|
51
|
+
recurring?: boolean;
|
|
52
|
+
}
|
|
53
|
+
export declare namespace Reframe {
|
|
54
|
+
export { type ReframeTransformNegativeThoughtsResponse as ReframeTransformNegativeThoughtsResponse, type ReframeTransformNegativeThoughtsParams as ReframeTransformNegativeThoughtsParams, };
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=reframe.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reframe.d.mts","sourceRoot":"","sources":["../src/resources/reframe.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;OAUG;IACH,yBAAyB,CACvB,IAAI,EAAE,sCAAsC,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wCAAwC,CAAC;CAGxD;AAED;;GAEG;AACH,MAAM,WAAW,wCAAwC;IACvD;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACnC;AAED,MAAM,WAAW,sCAAsC;IACrD;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,wCAAwC,IAAI,wCAAwC,EACzF,KAAK,sCAAsC,IAAI,sCAAsC,GACtF,CAAC;CACH"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
+
export declare class Reframe extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Transform negative thoughts into positive perspectives with Ted's help.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const response =
|
|
11
|
+
* await client.reframe.transformNegativeThoughts({
|
|
12
|
+
* negative_thought: "I'm not good enough for this job.",
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
transformNegativeThoughts(body: ReframeTransformNegativeThoughtsParams, options?: RequestOptions): APIPromise<ReframeTransformNegativeThoughtsResponse>;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Reframed perspective response.
|
|
20
|
+
*/
|
|
21
|
+
export interface ReframeTransformNegativeThoughtsResponse {
|
|
22
|
+
/**
|
|
23
|
+
* A daily affirmation to practice
|
|
24
|
+
*/
|
|
25
|
+
daily_affirmation: string;
|
|
26
|
+
/**
|
|
27
|
+
* The original negative thought
|
|
28
|
+
*/
|
|
29
|
+
original_thought: string;
|
|
30
|
+
/**
|
|
31
|
+
* The thought reframed positively
|
|
32
|
+
*/
|
|
33
|
+
reframed_thought: string;
|
|
34
|
+
/**
|
|
35
|
+
* Ted's take on this thought
|
|
36
|
+
*/
|
|
37
|
+
ted_perspective: string;
|
|
38
|
+
/**
|
|
39
|
+
* Dr. Sharon's therapeutic insight
|
|
40
|
+
*/
|
|
41
|
+
dr_sharon_insight?: string | null;
|
|
42
|
+
}
|
|
43
|
+
export interface ReframeTransformNegativeThoughtsParams {
|
|
44
|
+
/**
|
|
45
|
+
* The negative thought to reframe
|
|
46
|
+
*/
|
|
47
|
+
negative_thought: string;
|
|
48
|
+
/**
|
|
49
|
+
* Is this a recurring thought?
|
|
50
|
+
*/
|
|
51
|
+
recurring?: boolean;
|
|
52
|
+
}
|
|
53
|
+
export declare namespace Reframe {
|
|
54
|
+
export { type ReframeTransformNegativeThoughtsResponse as ReframeTransformNegativeThoughtsResponse, type ReframeTransformNegativeThoughtsParams as ReframeTransformNegativeThoughtsParams, };
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=reframe.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reframe.d.ts","sourceRoot":"","sources":["../src/resources/reframe.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;OAUG;IACH,yBAAyB,CACvB,IAAI,EAAE,sCAAsC,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wCAAwC,CAAC;CAGxD;AAED;;GAEG;AACH,MAAM,WAAW,wCAAwC;IACvD;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACnC;AAED,MAAM,WAAW,sCAAsC;IACrD;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,wCAAwC,IAAI,wCAAwC,EACzF,KAAK,sCAAsC,IAAI,sCAAsC,GACtF,CAAC;CACH"}
|