@whop/sdk 0.0.1-canary.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 +108 -0
- package/LICENSE +201 -0
- package/README.md +399 -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 +316 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +316 -0
- package/client.d.ts.map +1 -0
- package/client.js +536 -0
- package/client.js.map +1 -0
- package/client.mjs +532 -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 +58 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +58 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +101 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +95 -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 +35 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +32 -0
- package/internal/parse.mjs.map +1 -0
- package/internal/qs/formats.d.mts +7 -0
- package/internal/qs/formats.d.mts.map +1 -0
- package/internal/qs/formats.d.ts +7 -0
- package/internal/qs/formats.d.ts.map +1 -0
- package/internal/qs/formats.js +13 -0
- package/internal/qs/formats.js.map +1 -0
- package/internal/qs/formats.mjs +9 -0
- package/internal/qs/formats.mjs.map +1 -0
- package/internal/qs/index.d.mts +10 -0
- package/internal/qs/index.d.mts.map +1 -0
- package/internal/qs/index.d.ts +10 -0
- package/internal/qs/index.d.ts.map +1 -0
- package/internal/qs/index.js +14 -0
- package/internal/qs/index.js.map +1 -0
- package/internal/qs/index.mjs +10 -0
- package/internal/qs/index.mjs.map +1 -0
- package/internal/qs/stringify.d.mts +3 -0
- package/internal/qs/stringify.d.mts.map +1 -0
- package/internal/qs/stringify.d.ts +3 -0
- package/internal/qs/stringify.d.ts.map +1 -0
- package/internal/qs/stringify.js +277 -0
- package/internal/qs/stringify.js.map +1 -0
- package/internal/qs/stringify.mjs +274 -0
- package/internal/qs/stringify.mjs.map +1 -0
- package/internal/qs/types.d.mts +57 -0
- package/internal/qs/types.d.mts.map +1 -0
- package/internal/qs/types.d.ts +57 -0
- package/internal/qs/types.d.ts.map +1 -0
- package/internal/qs/types.js +3 -0
- package/internal/qs/types.js.map +1 -0
- package/internal/qs/types.mjs +2 -0
- package/internal/qs/types.mjs.map +1 -0
- package/internal/qs/utils.d.mts +15 -0
- package/internal/qs/utils.d.mts.map +1 -0
- package/internal/qs/utils.d.ts +15 -0
- package/internal/qs/utils.d.ts.map +1 -0
- package/internal/qs/utils.js +230 -0
- package/internal/qs/utils.js.map +1 -0
- package/internal/qs/utils.mjs +217 -0
- package/internal/qs/utils.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/lib/verify-user-token.d.mts +21 -0
- package/lib/verify-user-token.d.mts.map +1 -0
- package/lib/verify-user-token.d.ts +21 -0
- package/lib/verify-user-token.d.ts.map +1 -0
- package/lib/verify-user-token.js +69 -0
- package/lib/verify-user-token.js.map +1 -0
- package/lib/verify-user-token.mjs +64 -0
- package/lib/verify-user-token.mjs.map +1 -0
- package/package.json +160 -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/app-builds.d.mts +196 -0
- package/resources/app-builds.d.mts.map +1 -0
- package/resources/app-builds.d.ts +196 -0
- package/resources/app-builds.d.ts.map +1 -0
- package/resources/app-builds.js +84 -0
- package/resources/app-builds.js.map +1 -0
- package/resources/app-builds.mjs +80 -0
- package/resources/app-builds.mjs.map +1 -0
- package/resources/apps.d.mts +279 -0
- package/resources/apps.d.mts.map +1 -0
- package/resources/apps.d.ts +279 -0
- package/resources/apps.d.ts.map +1 -0
- package/resources/apps.js +77 -0
- package/resources/apps.js.map +1 -0
- package/resources/apps.mjs +73 -0
- package/resources/apps.mjs.map +1 -0
- package/resources/authorized-users.d.mts +136 -0
- package/resources/authorized-users.d.mts.map +1 -0
- package/resources/authorized-users.d.ts +136 -0
- package/resources/authorized-users.d.ts.map +1 -0
- package/resources/authorized-users.js +36 -0
- package/resources/authorized-users.js.map +1 -0
- package/resources/authorized-users.mjs +32 -0
- package/resources/authorized-users.mjs.map +1 -0
- package/resources/chat-channels.d.mts +158 -0
- package/resources/chat-channels.d.mts.map +1 -0
- package/resources/chat-channels.d.ts +158 -0
- package/resources/chat-channels.d.ts.map +1 -0
- package/resources/chat-channels.js +66 -0
- package/resources/chat-channels.js.map +1 -0
- package/resources/chat-channels.mjs +62 -0
- package/resources/chat-channels.mjs.map +1 -0
- package/resources/checkout-configurations.d.mts +319 -0
- package/resources/checkout-configurations.d.mts.map +1 -0
- package/resources/checkout-configurations.d.ts +319 -0
- package/resources/checkout-configurations.d.ts.map +1 -0
- package/resources/checkout-configurations.js +66 -0
- package/resources/checkout-configurations.js.map +1 -0
- package/resources/checkout-configurations.mjs +62 -0
- package/resources/checkout-configurations.mjs.map +1 -0
- package/resources/companies.d.mts +15 -0
- package/resources/companies.d.mts.map +1 -0
- package/resources/companies.d.ts +15 -0
- package/resources/companies.d.ts.map +1 -0
- package/resources/companies.js +20 -0
- package/resources/companies.js.map +1 -0
- package/resources/companies.mjs +16 -0
- package/resources/companies.mjs.map +1 -0
- package/resources/course-lesson-interactions.d.mts +61 -0
- package/resources/course-lesson-interactions.d.mts.map +1 -0
- package/resources/course-lesson-interactions.d.ts +61 -0
- package/resources/course-lesson-interactions.d.ts.map +1 -0
- package/resources/course-lesson-interactions.js +33 -0
- package/resources/course-lesson-interactions.js.map +1 -0
- package/resources/course-lesson-interactions.mjs +29 -0
- package/resources/course-lesson-interactions.mjs.map +1 -0
- package/resources/entries.d.mts +169 -0
- package/resources/entries.d.mts.map +1 -0
- package/resources/entries.d.ts +169 -0
- package/resources/entries.d.ts.map +1 -0
- package/resources/entries.js +55 -0
- package/resources/entries.js.map +1 -0
- package/resources/entries.mjs +51 -0
- package/resources/entries.mjs.map +1 -0
- package/resources/experiences.d.mts +277 -0
- package/resources/experiences.d.mts.map +1 -0
- package/resources/experiences.d.ts +277 -0
- package/resources/experiences.d.ts.map +1 -0
- package/resources/experiences.js +128 -0
- package/resources/experiences.js.map +1 -0
- package/resources/experiences.mjs +124 -0
- package/resources/experiences.mjs.map +1 -0
- package/resources/forum-posts.d.mts +242 -0
- package/resources/forum-posts.d.mts.map +1 -0
- package/resources/forum-posts.d.ts +242 -0
- package/resources/forum-posts.d.ts.map +1 -0
- package/resources/forum-posts.js +63 -0
- package/resources/forum-posts.js.map +1 -0
- package/resources/forum-posts.mjs +59 -0
- package/resources/forum-posts.mjs.map +1 -0
- package/resources/index.d.mts +25 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +25 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +53 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +26 -0
- package/resources/index.mjs.map +1 -0
- package/resources/invoices.d.mts +296 -0
- package/resources/invoices.d.mts.map +1 -0
- package/resources/invoices.d.ts +296 -0
- package/resources/invoices.d.ts.map +1 -0
- package/resources/invoices.js +88 -0
- package/resources/invoices.js.map +1 -0
- package/resources/invoices.mjs +84 -0
- package/resources/invoices.mjs.map +1 -0
- package/resources/ledger-accounts.d.mts +116 -0
- package/resources/ledger-accounts.d.mts.map +1 -0
- package/resources/ledger-accounts.d.ts +116 -0
- package/resources/ledger-accounts.d.ts.map +1 -0
- package/resources/ledger-accounts.js +20 -0
- package/resources/ledger-accounts.js.map +1 -0
- package/resources/ledger-accounts.mjs +16 -0
- package/resources/ledger-accounts.mjs.map +1 -0
- package/resources/memberships.d.mts +287 -0
- package/resources/memberships.d.mts.map +1 -0
- package/resources/memberships.d.ts +287 -0
- package/resources/memberships.d.ts.map +1 -0
- package/resources/memberships.js +76 -0
- package/resources/memberships.js.map +1 -0
- package/resources/memberships.mjs +72 -0
- package/resources/memberships.mjs.map +1 -0
- package/resources/messages.d.mts +245 -0
- package/resources/messages.d.mts.map +1 -0
- package/resources/messages.d.ts +245 -0
- package/resources/messages.d.ts.map +1 -0
- package/resources/messages.js +41 -0
- package/resources/messages.js.map +1 -0
- package/resources/messages.mjs +37 -0
- package/resources/messages.mjs.map +1 -0
- package/resources/payments.d.mts +472 -0
- package/resources/payments.d.mts.map +1 -0
- package/resources/payments.d.ts +472 -0
- package/resources/payments.d.ts.map +1 -0
- package/resources/payments.js +129 -0
- package/resources/payments.js.map +1 -0
- package/resources/payments.mjs +125 -0
- package/resources/payments.mjs.map +1 -0
- package/resources/plans.d.mts +479 -0
- package/resources/plans.d.mts.map +1 -0
- package/resources/plans.d.ts +479 -0
- package/resources/plans.d.ts.map +1 -0
- package/resources/plans.js +104 -0
- package/resources/plans.js.map +1 -0
- package/resources/plans.mjs +100 -0
- package/resources/plans.mjs.map +1 -0
- package/resources/products.d.mts +425 -0
- package/resources/products.d.mts.map +1 -0
- package/resources/products.d.ts +425 -0
- package/resources/products.d.ts.map +1 -0
- package/resources/products.js +102 -0
- package/resources/products.js.map +1 -0
- package/resources/products.mjs +98 -0
- package/resources/products.mjs.map +1 -0
- package/resources/reactions.d.mts +105 -0
- package/resources/reactions.d.mts.map +1 -0
- package/resources/reactions.d.ts +105 -0
- package/resources/reactions.d.ts.map +1 -0
- package/resources/reactions.js +41 -0
- package/resources/reactions.js.map +1 -0
- package/resources/reactions.mjs +37 -0
- package/resources/reactions.mjs.map +1 -0
- package/resources/shared.d.mts +2309 -0
- package/resources/shared.d.mts.map +1 -0
- package/resources/shared.d.ts +2309 -0
- package/resources/shared.d.ts.map +1 -0
- package/resources/shared.js +4 -0
- package/resources/shared.js.map +1 -0
- package/resources/shared.mjs +3 -0
- package/resources/shared.mjs.map +1 -0
- package/resources/shipments.d.mts +159 -0
- package/resources/shipments.d.mts.map +1 -0
- package/resources/shipments.d.ts +159 -0
- package/resources/shipments.d.ts.map +1 -0
- package/resources/shipments.js +68 -0
- package/resources/shipments.js.map +1 -0
- package/resources/shipments.mjs +64 -0
- package/resources/shipments.mjs.map +1 -0
- package/resources/support-channels.d.mts +151 -0
- package/resources/support-channels.d.mts.map +1 -0
- package/resources/support-channels.d.ts +151 -0
- package/resources/support-channels.d.ts.map +1 -0
- package/resources/support-channels.js +69 -0
- package/resources/support-channels.js.map +1 -0
- package/resources/support-channels.mjs +65 -0
- package/resources/support-channels.mjs.map +1 -0
- package/resources/transfers.d.mts +158 -0
- package/resources/transfers.d.mts.map +1 -0
- package/resources/transfers.d.ts +158 -0
- package/resources/transfers.d.ts.map +1 -0
- package/resources/transfers.js +66 -0
- package/resources/transfers.js.map +1 -0
- package/resources/transfers.mjs +62 -0
- package/resources/transfers.mjs.map +1 -0
- package/resources/users.d.mts +58 -0
- package/resources/users.d.mts.map +1 -0
- package/resources/users.d.ts +58 -0
- package/resources/users.d.ts.map +1 -0
- package/resources/users.js +23 -0
- package/resources/users.js.map +1 -0
- package/resources/users.mjs +19 -0
- package/resources/users.mjs.map +1 -0
- package/resources/webhooks.d.mts +101 -0
- package/resources/webhooks.d.mts.map +1 -0
- package/resources/webhooks.d.ts +101 -0
- package/resources/webhooks.d.ts.map +1 -0
- package/resources/webhooks.js +20 -0
- package/resources/webhooks.js.map +1 -0
- package/resources/webhooks.mjs +16 -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 +1197 -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 +161 -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 +50 -0
- package/src/internal/qs/LICENSE.md +13 -0
- package/src/internal/qs/README.md +3 -0
- package/src/internal/qs/formats.ts +10 -0
- package/src/internal/qs/index.ts +13 -0
- package/src/internal/qs/stringify.ts +385 -0
- package/src/internal/qs/types.ts +71 -0
- package/src/internal/qs/utils.ts +265 -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/lib/verify-user-token.ts +121 -0
- package/src/pagination.ts +2 -0
- package/src/resource.ts +2 -0
- package/src/resources/app-builds.ts +242 -0
- package/src/resources/apps.ts +355 -0
- package/src/resources/authorized-users.ts +177 -0
- package/src/resources/chat-channels.ts +207 -0
- package/src/resources/checkout-configurations.ts +397 -0
- package/src/resources/companies.ts +20 -0
- package/src/resources/course-lesson-interactions.ts +85 -0
- package/src/resources/entries.ts +216 -0
- package/src/resources/experiences.ts +349 -0
- package/src/resources/forum-posts.ts +298 -0
- package/src/resources/index.ts +158 -0
- package/src/resources/invoices.ts +363 -0
- package/src/resources/ledger-accounts.ts +141 -0
- package/src/resources/memberships.ts +378 -0
- package/src/resources/messages.ts +303 -0
- package/src/resources/payments.ts +585 -0
- package/src/resources/plans.ts +594 -0
- package/src/resources/products.ts +527 -0
- package/src/resources/reactions.ts +139 -0
- package/src/resources/shared.ts +3086 -0
- package/src/resources/shipments.ts +200 -0
- package/src/resources/support-channels.ts +193 -0
- package/src/resources/transfers.ts +200 -0
- package/src/resources/users.ts +84 -0
- package/src/resources/webhooks.ts +144 -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,59 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { CursorPage } from "../core/pagination.mjs";
|
|
4
|
+
import { path } from "../internal/utils/path.mjs";
|
|
5
|
+
export class ForumPosts extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Create a new forum post
|
|
8
|
+
*
|
|
9
|
+
* Required permissions:
|
|
10
|
+
*
|
|
11
|
+
* - `forum:post:create`
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const forumPost = await client.forumPosts.create({
|
|
16
|
+
* experience_id: 'exp_xxxxxxxxxxxxxx',
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
create(body, options) {
|
|
21
|
+
return this._client.post('/forum_posts', { body, ...options });
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Retrieves a forum post by ID
|
|
25
|
+
*
|
|
26
|
+
* Required permissions:
|
|
27
|
+
*
|
|
28
|
+
* - `forum:read`
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```ts
|
|
32
|
+
* const forumPost = await client.forumPosts.retrieve('id');
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
retrieve(id, options) {
|
|
36
|
+
return this._client.get(path `/forum_posts/${id}`, options);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Lists forum posts
|
|
40
|
+
*
|
|
41
|
+
* Required permissions:
|
|
42
|
+
*
|
|
43
|
+
* - `forum:read`
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```ts
|
|
47
|
+
* // Automatically fetches more pages as needed.
|
|
48
|
+
* for await (const forumPostListResponse of client.forumPosts.list(
|
|
49
|
+
* { experience_id: 'exp_xxxxxxxxxxxxxx' },
|
|
50
|
+
* )) {
|
|
51
|
+
* // ...
|
|
52
|
+
* }
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
list(query, options) {
|
|
56
|
+
return this._client.getAPIList('/forum_posts', (CursorPage), { query, ...options });
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=forum-posts.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"forum-posts.mjs","sourceRoot":"","sources":["../src/resources/forum-posts.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAA2B,EAAE,OAAwB;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;IAED;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,gBAAgB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,IAAI,CACF,KAA0B,EAC1B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,cAAc,EAAE,CAAA,UAAiC,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3G,CAAC;CACF"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export * from "./shared.mjs";
|
|
2
|
+
export { AppBuilds, type AppBuildListResponse, type AppBuildCreateParams, type AppBuildListParams, type AppBuildListResponsesCursorPage, } from "./app-builds.mjs";
|
|
3
|
+
export { Apps, type AppListResponse, type AppCreateParams, type AppUpdateParams, type AppListParams, type AppListResponsesCursorPage, } from "./apps.mjs";
|
|
4
|
+
export { AuthorizedUsers, type AuthorizedUserRetrieveResponse, type AuthorizedUserListResponse, type AuthorizedUserListParams, type AuthorizedUserListResponsesCursorPage, } from "./authorized-users.mjs";
|
|
5
|
+
export { ChatChannels, type ChatChannelListResponse, type ChatChannelUpdateParams, type ChatChannelListParams, type ChatChannelListResponsesCursorPage, } from "./chat-channels.mjs";
|
|
6
|
+
export { CheckoutConfigurations, type CheckoutConfigurationListResponse, type CheckoutConfigurationCreateParams, type CheckoutConfigurationListParams, type CheckoutConfigurationListResponsesCursorPage, } from "./checkout-configurations.mjs";
|
|
7
|
+
export { Companies } from "./companies.mjs";
|
|
8
|
+
export { CourseLessonInteractions, type CourseLessonInteractionListParams, } from "./course-lesson-interactions.mjs";
|
|
9
|
+
export { Entries, type EntryListResponse, type EntryApproveResponse, type EntryListParams, type EntryListResponsesCursorPage, } from "./entries.mjs";
|
|
10
|
+
export { Experiences, type ExperienceListResponse, type ExperienceDeleteResponse, type ExperienceCreateParams, type ExperienceUpdateParams, type ExperienceListParams, type ExperienceAttachParams, type ExperienceDetachParams, type ExperienceListResponsesCursorPage, } from "./experiences.mjs";
|
|
11
|
+
export { ForumPosts, type ForumPostListResponse, type ForumPostCreateParams, type ForumPostListParams, type ForumPostListResponsesCursorPage, } from "./forum-posts.mjs";
|
|
12
|
+
export { Invoices, type InvoiceCreateResponse, type InvoiceVoidResponse, type InvoiceCreateParams, type InvoiceListParams, } from "./invoices.mjs";
|
|
13
|
+
export { LedgerAccounts, type LedgerAccountRetrieveResponse } from "./ledger-accounts.mjs";
|
|
14
|
+
export { Memberships, type MembershipListResponse, type MembershipUpdateParams, type MembershipListParams, type MembershipCancelParams, type MembershipPauseParams, type MembershipListResponsesCursorPage, } from "./memberships.mjs";
|
|
15
|
+
export { Messages, type MessageListResponse, type MessageCreateParams, type MessageListParams, type MessageListResponsesCursorPage, } from "./messages.mjs";
|
|
16
|
+
export { Payments, type PaymentListResponse, type PaymentListParams, type PaymentRefundParams, type PaymentListResponsesCursorPage, } from "./payments.mjs";
|
|
17
|
+
export { Plans, type PlanListResponse, type PlanDeleteResponse, type PlanCreateParams, type PlanUpdateParams, type PlanListParams, type PlanListResponsesCursorPage, } from "./plans.mjs";
|
|
18
|
+
export { Products, type ProductDeleteResponse, type ProductCreateParams, type ProductUpdateParams, type ProductListParams, } from "./products.mjs";
|
|
19
|
+
export { Reactions, type ReactionListResponse, type ReactionCreateParams, type ReactionListParams, type ReactionListResponsesCursorPage, } from "./reactions.mjs";
|
|
20
|
+
export { Shipments, type ShipmentListResponse, type ShipmentCreateParams, type ShipmentListParams, type ShipmentListResponsesCursorPage, } from "./shipments.mjs";
|
|
21
|
+
export { SupportChannels, type SupportChannelListResponse, type SupportChannelCreateParams, type SupportChannelListParams, type SupportChannelListResponsesCursorPage, } from "./support-channels.mjs";
|
|
22
|
+
export { Transfers, type TransferListResponse, type TransferCreateParams, type TransferListParams, type TransferListResponsesCursorPage, } from "./transfers.mjs";
|
|
23
|
+
export { Users, type UserRetrieveResponse, type UserCheckAccessResponse, type UserCheckAccessParams, } from "./users.mjs";
|
|
24
|
+
export { Webhooks, type InvoiceCreatedWebhookEvent, type InvoicePaidWebhookEvent, type InvoicePastDueWebhookEvent, type InvoiceVoidedWebhookEvent, type UnwrapWebhookEvent, } from "./webhooks.mjs";
|
|
25
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,EACL,SAAS,EACT,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,+BAA+B,GACrC;OACM,EACL,IAAI,EACJ,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,0BAA0B,GAChC;OACM,EACL,eAAe,EACf,KAAK,8BAA8B,EACnC,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,qCAAqC,GAC3C;OACM,EACL,YAAY,EACZ,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,kCAAkC,GACxC;OACM,EACL,sBAAsB,EACtB,KAAK,iCAAiC,EACtC,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,EACpC,KAAK,4CAA4C,GAClD;OACM,EAAE,SAAS,EAAE;OACb,EACL,wBAAwB,EACxB,KAAK,iCAAiC,GACvC;OACM,EACL,OAAO,EACP,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,4BAA4B,G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B,KAAK,+BAA+B,GACrC;OACM,EACL,eAAe,EACf,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,qCAAqC,GAC3C;OACM,EACL,SAAS,EACT,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,+BAA+B,GACrC;OACM,EACL,KAAK,EACL,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,GAC3B;OACM,EACL,QAAQ,EACR,KAAK,0BAA0B,EAC/B,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,EAC/B,KAAK,yBAAyB,EAC9B,KAAK,kBAAkB,GACxB"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export * from "./shared.js";
|
|
2
|
+
export { AppBuilds, type AppBuildListResponse, type AppBuildCreateParams, type AppBuildListParams, type AppBuildListResponsesCursorPage, } from "./app-builds.js";
|
|
3
|
+
export { Apps, type AppListResponse, type AppCreateParams, type AppUpdateParams, type AppListParams, type AppListResponsesCursorPage, } from "./apps.js";
|
|
4
|
+
export { AuthorizedUsers, type AuthorizedUserRetrieveResponse, type AuthorizedUserListResponse, type AuthorizedUserListParams, type AuthorizedUserListResponsesCursorPage, } from "./authorized-users.js";
|
|
5
|
+
export { ChatChannels, type ChatChannelListResponse, type ChatChannelUpdateParams, type ChatChannelListParams, type ChatChannelListResponsesCursorPage, } from "./chat-channels.js";
|
|
6
|
+
export { CheckoutConfigurations, type CheckoutConfigurationListResponse, type CheckoutConfigurationCreateParams, type CheckoutConfigurationListParams, type CheckoutConfigurationListResponsesCursorPage, } from "./checkout-configurations.js";
|
|
7
|
+
export { Companies } from "./companies.js";
|
|
8
|
+
export { CourseLessonInteractions, type CourseLessonInteractionListParams, } from "./course-lesson-interactions.js";
|
|
9
|
+
export { Entries, type EntryListResponse, type EntryApproveResponse, type EntryListParams, type EntryListResponsesCursorPage, } from "./entries.js";
|
|
10
|
+
export { Experiences, type ExperienceListResponse, type ExperienceDeleteResponse, type ExperienceCreateParams, type ExperienceUpdateParams, type ExperienceListParams, type ExperienceAttachParams, type ExperienceDetachParams, type ExperienceListResponsesCursorPage, } from "./experiences.js";
|
|
11
|
+
export { ForumPosts, type ForumPostListResponse, type ForumPostCreateParams, type ForumPostListParams, type ForumPostListResponsesCursorPage, } from "./forum-posts.js";
|
|
12
|
+
export { Invoices, type InvoiceCreateResponse, type InvoiceVoidResponse, type InvoiceCreateParams, type InvoiceListParams, } from "./invoices.js";
|
|
13
|
+
export { LedgerAccounts, type LedgerAccountRetrieveResponse } from "./ledger-accounts.js";
|
|
14
|
+
export { Memberships, type MembershipListResponse, type MembershipUpdateParams, type MembershipListParams, type MembershipCancelParams, type MembershipPauseParams, type MembershipListResponsesCursorPage, } from "./memberships.js";
|
|
15
|
+
export { Messages, type MessageListResponse, type MessageCreateParams, type MessageListParams, type MessageListResponsesCursorPage, } from "./messages.js";
|
|
16
|
+
export { Payments, type PaymentListResponse, type PaymentListParams, type PaymentRefundParams, type PaymentListResponsesCursorPage, } from "./payments.js";
|
|
17
|
+
export { Plans, type PlanListResponse, type PlanDeleteResponse, type PlanCreateParams, type PlanUpdateParams, type PlanListParams, type PlanListResponsesCursorPage, } from "./plans.js";
|
|
18
|
+
export { Products, type ProductDeleteResponse, type ProductCreateParams, type ProductUpdateParams, type ProductListParams, } from "./products.js";
|
|
19
|
+
export { Reactions, type ReactionListResponse, type ReactionCreateParams, type ReactionListParams, type ReactionListResponsesCursorPage, } from "./reactions.js";
|
|
20
|
+
export { Shipments, type ShipmentListResponse, type ShipmentCreateParams, type ShipmentListParams, type ShipmentListResponsesCursorPage, } from "./shipments.js";
|
|
21
|
+
export { SupportChannels, type SupportChannelListResponse, type SupportChannelCreateParams, type SupportChannelListParams, type SupportChannelListResponsesCursorPage, } from "./support-channels.js";
|
|
22
|
+
export { Transfers, type TransferListResponse, type TransferCreateParams, type TransferListParams, type TransferListResponsesCursorPage, } from "./transfers.js";
|
|
23
|
+
export { Users, type UserRetrieveResponse, type UserCheckAccessResponse, type UserCheckAccessParams, } from "./users.js";
|
|
24
|
+
export { Webhooks, type InvoiceCreatedWebhookEvent, type InvoicePaidWebhookEvent, type InvoicePastDueWebhookEvent, type InvoiceVoidedWebhookEvent, type UnwrapWebhookEvent, } from "./webhooks.js";
|
|
25
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,EACL,SAAS,EACT,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,+BAA+B,GACrC;OACM,EACL,IAAI,EACJ,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,0BAA0B,GAChC;OACM,EACL,eAAe,EACf,KAAK,8BAA8B,EACnC,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,qCAAqC,GAC3C;OACM,EACL,YAAY,EACZ,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,kCAAkC,GACxC;OACM,EACL,sBAAsB,EACtB,KAAK,iCAAiC,EACtC,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,EACpC,KAAK,4CAA4C,GAClD;OACM,EAAE,SAAS,EAAE;OACb,EACL,wBAAwB,EACxB,KAAK,iCAAiC,GACvC;OACM,EACL,OAAO,EACP,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,4BAA4B,GAClC;OACM,EACL,WAAW,EACX,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,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oB,EACzB,KAAK,kBAAkB,EACvB,KAAK,+BAA+B,GACrC;OACM,EACL,KAAK,EACL,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,GAC3B;OACM,EACL,QAAQ,EACR,KAAK,0BAA0B,EAC/B,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,EAC/B,KAAK,yBAAyB,EAC9B,KAAK,kBAAkB,GACxB"}
|
|
@@ -0,0 +1,53 @@
|
|
|
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.Webhooks = exports.Users = exports.Transfers = exports.SupportChannels = exports.Shipments = exports.Reactions = exports.Products = exports.Plans = exports.Payments = exports.Messages = exports.Memberships = exports.LedgerAccounts = exports.Invoices = exports.ForumPosts = exports.Experiences = exports.Entries = exports.CourseLessonInteractions = exports.Companies = exports.CheckoutConfigurations = exports.ChatChannels = exports.AuthorizedUsers = exports.Apps = exports.AppBuilds = void 0;
|
|
5
|
+
const tslib_1 = require("../internal/tslib.js");
|
|
6
|
+
tslib_1.__exportStar(require("./shared.js"), exports);
|
|
7
|
+
var app_builds_1 = require("./app-builds.js");
|
|
8
|
+
Object.defineProperty(exports, "AppBuilds", { enumerable: true, get: function () { return app_builds_1.AppBuilds; } });
|
|
9
|
+
var apps_1 = require("./apps.js");
|
|
10
|
+
Object.defineProperty(exports, "Apps", { enumerable: true, get: function () { return apps_1.Apps; } });
|
|
11
|
+
var authorized_users_1 = require("./authorized-users.js");
|
|
12
|
+
Object.defineProperty(exports, "AuthorizedUsers", { enumerable: true, get: function () { return authorized_users_1.AuthorizedUsers; } });
|
|
13
|
+
var chat_channels_1 = require("./chat-channels.js");
|
|
14
|
+
Object.defineProperty(exports, "ChatChannels", { enumerable: true, get: function () { return chat_channels_1.ChatChannels; } });
|
|
15
|
+
var checkout_configurations_1 = require("./checkout-configurations.js");
|
|
16
|
+
Object.defineProperty(exports, "CheckoutConfigurations", { enumerable: true, get: function () { return checkout_configurations_1.CheckoutConfigurations; } });
|
|
17
|
+
var companies_1 = require("./companies.js");
|
|
18
|
+
Object.defineProperty(exports, "Companies", { enumerable: true, get: function () { return companies_1.Companies; } });
|
|
19
|
+
var course_lesson_interactions_1 = require("./course-lesson-interactions.js");
|
|
20
|
+
Object.defineProperty(exports, "CourseLessonInteractions", { enumerable: true, get: function () { return course_lesson_interactions_1.CourseLessonInteractions; } });
|
|
21
|
+
var entries_1 = require("./entries.js");
|
|
22
|
+
Object.defineProperty(exports, "Entries", { enumerable: true, get: function () { return entries_1.Entries; } });
|
|
23
|
+
var experiences_1 = require("./experiences.js");
|
|
24
|
+
Object.defineProperty(exports, "Experiences", { enumerable: true, get: function () { return experiences_1.Experiences; } });
|
|
25
|
+
var forum_posts_1 = require("./forum-posts.js");
|
|
26
|
+
Object.defineProperty(exports, "ForumPosts", { enumerable: true, get: function () { return forum_posts_1.ForumPosts; } });
|
|
27
|
+
var invoices_1 = require("./invoices.js");
|
|
28
|
+
Object.defineProperty(exports, "Invoices", { enumerable: true, get: function () { return invoices_1.Invoices; } });
|
|
29
|
+
var ledger_accounts_1 = require("./ledger-accounts.js");
|
|
30
|
+
Object.defineProperty(exports, "LedgerAccounts", { enumerable: true, get: function () { return ledger_accounts_1.LedgerAccounts; } });
|
|
31
|
+
var memberships_1 = require("./memberships.js");
|
|
32
|
+
Object.defineProperty(exports, "Memberships", { enumerable: true, get: function () { return memberships_1.Memberships; } });
|
|
33
|
+
var messages_1 = require("./messages.js");
|
|
34
|
+
Object.defineProperty(exports, "Messages", { enumerable: true, get: function () { return messages_1.Messages; } });
|
|
35
|
+
var payments_1 = require("./payments.js");
|
|
36
|
+
Object.defineProperty(exports, "Payments", { enumerable: true, get: function () { return payments_1.Payments; } });
|
|
37
|
+
var plans_1 = require("./plans.js");
|
|
38
|
+
Object.defineProperty(exports, "Plans", { enumerable: true, get: function () { return plans_1.Plans; } });
|
|
39
|
+
var products_1 = require("./products.js");
|
|
40
|
+
Object.defineProperty(exports, "Products", { enumerable: true, get: function () { return products_1.Products; } });
|
|
41
|
+
var reactions_1 = require("./reactions.js");
|
|
42
|
+
Object.defineProperty(exports, "Reactions", { enumerable: true, get: function () { return reactions_1.Reactions; } });
|
|
43
|
+
var shipments_1 = require("./shipments.js");
|
|
44
|
+
Object.defineProperty(exports, "Shipments", { enumerable: true, get: function () { return shipments_1.Shipments; } });
|
|
45
|
+
var support_channels_1 = require("./support-channels.js");
|
|
46
|
+
Object.defineProperty(exports, "SupportChannels", { enumerable: true, get: function () { return support_channels_1.SupportChannels; } });
|
|
47
|
+
var transfers_1 = require("./transfers.js");
|
|
48
|
+
Object.defineProperty(exports, "Transfers", { enumerable: true, get: function () { return transfers_1.Transfers; } });
|
|
49
|
+
var users_1 = require("./users.js");
|
|
50
|
+
Object.defineProperty(exports, "Users", { enumerable: true, get: function () { return users_1.Users; } });
|
|
51
|
+
var webhooks_1 = require("./webhooks.js");
|
|
52
|
+
Object.defineProperty(exports, "Webhooks", { enumerable: true, get: function () { return webhooks_1.Webhooks; } });
|
|
53
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,sDAAyB;AACzB,8CAMsB;AALpB,uGAAA,SAAS,OAAA;AAMX,kCAOgB;AANd,4FAAA,IAAI,OAAA;AAON,0DAM4B;AAL1B,mHAAA,eAAe,OAAA;AAMjB,oDAMyB;AALvB,6GAAA,YAAY,OAAA;AAMd,wEAMmC;AALjC,iIAAA,sBAAsB,OAAA;AAMxB,4CAAwC;AAA/B,sGAAA,SAAS,OAAA;AAClB,8EAGsC;AAFpC,sIAAA,wBAAwB,OAAA;AAG1B,wCAMmB;AALjB,kGAAA,OAAO,OAAA;AAMT,gDAUuB;AATrB,0GAAA,WAAW,OAAA;AAUb,gDAMuB;AALrB,yGAAA,UAAU,OAAA;AAMZ,0CAMoB;AALlB,oGAAA,QAAQ,OAAA;AAMV,wDAAuF;AAA9E,iHAAA,cAAc,OAAA;AACvB,gDAQuB;AAPrB,0GAAA,WAAW,OAAA;AAQb,0CAMoB;AALlB,oGAAA,QAAQ,OAAA;AAMV,0CAMoB;AALlB,oGAAA,QAAQ,OAAA;AAMV,oCAQiB;AAPf,8FAAA,KAAK,OAAA;AAQP,0CAMoB;AALlB,oGAAA,QAAQ,OAAA;AAMV,4CAMqB;AALnB,sGAAA,SAAS,OAAA;AAMX,4CAMqB;AALnB,sGAAA,SAAS,OAAA;AAMX,0DAM4B;AAL1B,mHAAA,eAAe,OAAA;AAMjB,4CAMqB;AALnB,sGAAA,SAAS,OAAA;AAMX,oCAKiB;AAJf,8FAAA,KAAK,OAAA;AAKP,0CAOoB;AANlB,oGAAA,QAAQ,OAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
export * from "./shared.mjs";
|
|
3
|
+
export { AppBuilds, } from "./app-builds.mjs";
|
|
4
|
+
export { Apps, } from "./apps.mjs";
|
|
5
|
+
export { AuthorizedUsers, } from "./authorized-users.mjs";
|
|
6
|
+
export { ChatChannels, } from "./chat-channels.mjs";
|
|
7
|
+
export { CheckoutConfigurations, } from "./checkout-configurations.mjs";
|
|
8
|
+
export { Companies } from "./companies.mjs";
|
|
9
|
+
export { CourseLessonInteractions, } from "./course-lesson-interactions.mjs";
|
|
10
|
+
export { Entries, } from "./entries.mjs";
|
|
11
|
+
export { Experiences, } from "./experiences.mjs";
|
|
12
|
+
export { ForumPosts, } from "./forum-posts.mjs";
|
|
13
|
+
export { Invoices, } from "./invoices.mjs";
|
|
14
|
+
export { LedgerAccounts } from "./ledger-accounts.mjs";
|
|
15
|
+
export { Memberships, } from "./memberships.mjs";
|
|
16
|
+
export { Messages, } from "./messages.mjs";
|
|
17
|
+
export { Payments, } from "./payments.mjs";
|
|
18
|
+
export { Plans, } from "./plans.mjs";
|
|
19
|
+
export { Products, } from "./products.mjs";
|
|
20
|
+
export { Reactions, } from "./reactions.mjs";
|
|
21
|
+
export { Shipments, } from "./shipments.mjs";
|
|
22
|
+
export { SupportChannels, } from "./support-channels.mjs";
|
|
23
|
+
export { Transfers, } from "./transfers.mjs";
|
|
24
|
+
export { Users, } from "./users.mjs";
|
|
25
|
+
export { Webhooks, } from "./webhooks.mjs";
|
|
26
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,EACL,SAAS,GAKV;OACM,EACL,IAAI,GAML;OACM,EACL,eAAe,GAKhB;OACM,EACL,YAAY,GAKb;OACM,EACL,sBAAsB,GAKvB;OACM,EAAE,SAAS,EAAE;OACb,EACL,wBAAwB,GAEzB;OACM,EACL,OAAO,GAKR;OACM,EACL,WAAW,GASZ;OACM,EACL,UAAU,GAKX;OACM,EACL,QAAQ,GAKT;OACM,EAAE,cAAc,EAAsC;OACtD,EACL,WAAW,GAOZ;OACM,EACL,QAAQ,GAKT;OACM,EACL,QAAQ,GAKT;OACM,EACL,KAAK,GAON;OACM,EACL,QAAQ,GAKT;OACM,EACL,SAAS,GAKV;OACM,EACL,SAAS,GAKV;OACM,EACL,eAAe,GAKhB;OACM,EACL,SAAS,GAKV;OACM,EACL,KAAK,GAIN;OACM,EACL,QAAQ,GAMT"}
|
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import * as Shared from "./shared.mjs";
|
|
3
|
+
import { InvoiceListItemsCursorPage } from "./shared.mjs";
|
|
4
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
5
|
+
import { type CursorPageParams, PagePromise } from "../core/pagination.mjs";
|
|
6
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
7
|
+
export declare class Invoices extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Creates an invoice
|
|
10
|
+
*
|
|
11
|
+
* Required permissions:
|
|
12
|
+
*
|
|
13
|
+
* - `invoice:create`
|
|
14
|
+
* - `plan:basic:read`
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* const invoice = await client.invoices.create({
|
|
19
|
+
* collection_method: 'send_invoice',
|
|
20
|
+
* company_id: 'biz_xxxxxxxxxxxxxx',
|
|
21
|
+
* due_date: '2023-12-01T05:00:00.401Z',
|
|
22
|
+
* plan: {},
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
create(body: InvoiceCreateParams, options?: RequestOptions): APIPromise<InvoiceCreateResponse>;
|
|
27
|
+
/**
|
|
28
|
+
* Retrieves an invoice by ID or token
|
|
29
|
+
*
|
|
30
|
+
* Required permissions:
|
|
31
|
+
*
|
|
32
|
+
* - `invoice:basic:read`
|
|
33
|
+
* - `plan:basic:read`
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* const invoice = await client.invoices.retrieve(
|
|
38
|
+
* 'inv_xxxxxxxxxxxxxx',
|
|
39
|
+
* );
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<Shared.Invoice>;
|
|
43
|
+
/**
|
|
44
|
+
* Lists invoices
|
|
45
|
+
*
|
|
46
|
+
* Required permissions:
|
|
47
|
+
*
|
|
48
|
+
* - `invoice:basic:read`
|
|
49
|
+
* - `plan:basic:read`
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* ```ts
|
|
53
|
+
* // Automatically fetches more pages as needed.
|
|
54
|
+
* for await (const invoiceListItem of client.invoices.list({
|
|
55
|
+
* company_id: 'biz_xxxxxxxxxxxxxx',
|
|
56
|
+
* })) {
|
|
57
|
+
* // ...
|
|
58
|
+
* }
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
list(query: InvoiceListParams, options?: RequestOptions): PagePromise<InvoiceListItemsCursorPage, Shared.InvoiceListItem>;
|
|
62
|
+
/**
|
|
63
|
+
* Void an invoice
|
|
64
|
+
*
|
|
65
|
+
* Required permissions:
|
|
66
|
+
*
|
|
67
|
+
* - `invoice:update`
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* ```ts
|
|
71
|
+
* const response = await client.invoices.void(
|
|
72
|
+
* 'inv_xxxxxxxxxxxxxx',
|
|
73
|
+
* );
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
76
|
+
void(id: string, options?: RequestOptions): APIPromise<InvoiceVoidResponse>;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Autogenerated return type of CreateInvoice.
|
|
80
|
+
*/
|
|
81
|
+
export interface InvoiceCreateResponse {
|
|
82
|
+
/**
|
|
83
|
+
* The ID of the checkout job that was created for this invoice.
|
|
84
|
+
*/
|
|
85
|
+
checkout_job_id: string | null;
|
|
86
|
+
/**
|
|
87
|
+
* The invoice that was created for this invoice.
|
|
88
|
+
*/
|
|
89
|
+
invoice: Shared.Invoice;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Represents `true` or `false` values.
|
|
93
|
+
*/
|
|
94
|
+
export type InvoiceVoidResponse = boolean;
|
|
95
|
+
export interface InvoiceCreateParams {
|
|
96
|
+
/**
|
|
97
|
+
* The method of collection for this invoice. If using charge_automatically, you
|
|
98
|
+
* must provide a payment_token.
|
|
99
|
+
*/
|
|
100
|
+
collection_method: Shared.CollectionMethod;
|
|
101
|
+
/**
|
|
102
|
+
* The company ID to create this invoice for.
|
|
103
|
+
*/
|
|
104
|
+
company_id: string;
|
|
105
|
+
/**
|
|
106
|
+
* The date the invoice is due, if applicable.
|
|
107
|
+
*/
|
|
108
|
+
due_date: string;
|
|
109
|
+
/**
|
|
110
|
+
* The properties of the plan to create for this invoice.
|
|
111
|
+
*/
|
|
112
|
+
plan: InvoiceCreateParams.Plan;
|
|
113
|
+
/**
|
|
114
|
+
* Whether or not to charge the customer a buyer fee.
|
|
115
|
+
*/
|
|
116
|
+
charge_buyer_fee?: boolean | null;
|
|
117
|
+
/**
|
|
118
|
+
* The name of the customer to create this invoice for. This is required if you
|
|
119
|
+
* want to create an invoice for a customer who does not have a member of your
|
|
120
|
+
* company yet.
|
|
121
|
+
*/
|
|
122
|
+
customer_name?: string | null;
|
|
123
|
+
/**
|
|
124
|
+
* The email address to create this invoice for. This is required if you want to
|
|
125
|
+
* create an invoice for a user who does not have a member of your company yet.
|
|
126
|
+
*/
|
|
127
|
+
email_address?: string | null;
|
|
128
|
+
/**
|
|
129
|
+
* The member ID to create this invoice for. Include this if you want to create an
|
|
130
|
+
* invoice for an existing member. If you do not have a member ID, you must provide
|
|
131
|
+
* an email_address and customer_name.
|
|
132
|
+
*/
|
|
133
|
+
member_id?: string | null;
|
|
134
|
+
/**
|
|
135
|
+
* The payment token ID to use for this invoice. If using charge_automatically, you
|
|
136
|
+
* must provide a payment_token.
|
|
137
|
+
*/
|
|
138
|
+
payment_token_id?: string | null;
|
|
139
|
+
/**
|
|
140
|
+
* The properties of the product to create for this invoice. Include this if you
|
|
141
|
+
* want to create an invoice for a new product.
|
|
142
|
+
*/
|
|
143
|
+
product?: InvoiceCreateParams.Product | null;
|
|
144
|
+
/**
|
|
145
|
+
* The product ID to create this invoice for. Include this if you want to create an
|
|
146
|
+
* invoice for an existing product.
|
|
147
|
+
*/
|
|
148
|
+
product_id?: string | null;
|
|
149
|
+
}
|
|
150
|
+
export declare namespace InvoiceCreateParams {
|
|
151
|
+
/**
|
|
152
|
+
* The properties of the plan to create for this invoice.
|
|
153
|
+
*/
|
|
154
|
+
interface Plan {
|
|
155
|
+
/**
|
|
156
|
+
* The interval at which the plan charges (renewal plans).
|
|
157
|
+
*/
|
|
158
|
+
billing_period?: number | null;
|
|
159
|
+
/**
|
|
160
|
+
* An array of custom field objects.
|
|
161
|
+
*/
|
|
162
|
+
custom_fields?: Array<Plan.CustomField> | null;
|
|
163
|
+
/**
|
|
164
|
+
* The description of the plan.
|
|
165
|
+
*/
|
|
166
|
+
description?: string | null;
|
|
167
|
+
/**
|
|
168
|
+
* The interval at which the plan charges (expiration plans).
|
|
169
|
+
*/
|
|
170
|
+
expiration_days?: number | null;
|
|
171
|
+
/**
|
|
172
|
+
* An additional amount charged upon first purchase.
|
|
173
|
+
*/
|
|
174
|
+
initial_price?: number | null;
|
|
175
|
+
/**
|
|
176
|
+
* A personal description or notes section for the business.
|
|
177
|
+
*/
|
|
178
|
+
internal_notes?: string | null;
|
|
179
|
+
/**
|
|
180
|
+
* The type of plan that can be attached to an access pass
|
|
181
|
+
*/
|
|
182
|
+
plan_type?: Shared.PlanType | null;
|
|
183
|
+
/**
|
|
184
|
+
* The methods of how a plan can be released.
|
|
185
|
+
*/
|
|
186
|
+
release_method?: Shared.ReleaseMethod | null;
|
|
187
|
+
/**
|
|
188
|
+
* The amount the customer is charged every billing period.
|
|
189
|
+
*/
|
|
190
|
+
renewal_price?: number | null;
|
|
191
|
+
/**
|
|
192
|
+
* The number of free trial days added before a renewal plan.
|
|
193
|
+
*/
|
|
194
|
+
trial_period_days?: number | null;
|
|
195
|
+
/**
|
|
196
|
+
* Visibility of a resource
|
|
197
|
+
*/
|
|
198
|
+
visibility?: Shared.Visibility | null;
|
|
199
|
+
}
|
|
200
|
+
namespace Plan {
|
|
201
|
+
interface CustomField {
|
|
202
|
+
/**
|
|
203
|
+
* The type of the custom field.
|
|
204
|
+
*/
|
|
205
|
+
field_type: 'text';
|
|
206
|
+
/**
|
|
207
|
+
* The name of the custom field.
|
|
208
|
+
*/
|
|
209
|
+
name: string;
|
|
210
|
+
/**
|
|
211
|
+
* The ID of the custom field (if being updated)
|
|
212
|
+
*/
|
|
213
|
+
id?: string | null;
|
|
214
|
+
/**
|
|
215
|
+
* The order of the field.
|
|
216
|
+
*/
|
|
217
|
+
order?: number | null;
|
|
218
|
+
/**
|
|
219
|
+
* The placeholder value of the field.
|
|
220
|
+
*/
|
|
221
|
+
placeholder?: string | null;
|
|
222
|
+
/**
|
|
223
|
+
* Whether or not the field is required.
|
|
224
|
+
*/
|
|
225
|
+
required?: boolean | null;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* The properties of the product to create for this invoice. Include this if you
|
|
230
|
+
* want to create an invoice for a new product.
|
|
231
|
+
*/
|
|
232
|
+
interface Product {
|
|
233
|
+
/**
|
|
234
|
+
* The title of the product.
|
|
235
|
+
*/
|
|
236
|
+
title: string;
|
|
237
|
+
/**
|
|
238
|
+
* The ID of the product tax code to apply to this product.
|
|
239
|
+
*/
|
|
240
|
+
product_tax_code_id?: string | null;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
export interface InvoiceListParams extends CursorPageParams {
|
|
244
|
+
/**
|
|
245
|
+
* The ID of the company to list invoices for
|
|
246
|
+
*/
|
|
247
|
+
company_id: string;
|
|
248
|
+
/**
|
|
249
|
+
* Returns the elements in the list that come before the specified cursor.
|
|
250
|
+
*/
|
|
251
|
+
before?: string | null;
|
|
252
|
+
/**
|
|
253
|
+
* The direction of the sort.
|
|
254
|
+
*/
|
|
255
|
+
direction?: Shared.Direction | null;
|
|
256
|
+
/**
|
|
257
|
+
* The filters to apply to the invoices
|
|
258
|
+
*/
|
|
259
|
+
filters?: InvoiceListParams.Filters | null;
|
|
260
|
+
/**
|
|
261
|
+
* Returns the first _n_ elements from the list.
|
|
262
|
+
*/
|
|
263
|
+
first?: number | null;
|
|
264
|
+
/**
|
|
265
|
+
* Returns the last _n_ elements from the list.
|
|
266
|
+
*/
|
|
267
|
+
last?: number | null;
|
|
268
|
+
/**
|
|
269
|
+
* Which columns can be used to sort.
|
|
270
|
+
*/
|
|
271
|
+
order?: 'id' | 'created_at' | 'due_date' | null;
|
|
272
|
+
}
|
|
273
|
+
export declare namespace InvoiceListParams {
|
|
274
|
+
/**
|
|
275
|
+
* The filters to apply to the invoices
|
|
276
|
+
*/
|
|
277
|
+
interface Filters {
|
|
278
|
+
/**
|
|
279
|
+
* The access pass IDs to filter the invoices by
|
|
280
|
+
*/
|
|
281
|
+
access_pass_ids?: Array<string> | null;
|
|
282
|
+
/**
|
|
283
|
+
* The collection methods to filter the invoices by
|
|
284
|
+
*/
|
|
285
|
+
collection_methods?: Array<Shared.CollectionMethod> | null;
|
|
286
|
+
/**
|
|
287
|
+
* The statuses to filter the invoices by
|
|
288
|
+
*/
|
|
289
|
+
statuses?: Array<Shared.InvoiceStatus> | null;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
export declare namespace Invoices {
|
|
293
|
+
export { type InvoiceCreateResponse as InvoiceCreateResponse, type InvoiceVoidResponse as InvoiceVoidResponse, type InvoiceCreateParams as InvoiceCreateParams, type InvoiceListParams as InvoiceListParams, };
|
|
294
|
+
}
|
|
295
|
+
export { type InvoiceListItemsCursorPage };
|
|
296
|
+
//# sourceMappingURL=invoices.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoices.d.mts","sourceRoot":"","sources":["../src/resources/invoices.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,0BAA0B,EAAE;OAC9B,EAAE,UAAU,EAAE;OACd,EAAc,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAI9F;;;;;;;;;;;;;;OAcG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,OA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