@openmeter/sdk 1.0.0-beta.6 → 1.0.0-beta.62

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.
Files changed (60) hide show
  1. package/README.md +76 -1
  2. package/dist/cjs/clients/client.js +194 -0
  3. package/dist/cjs/clients/client.js.map +1 -0
  4. package/dist/cjs/clients/event.js +137 -0
  5. package/dist/cjs/clients/event.js.map +1 -0
  6. package/dist/cjs/clients/meter.js +139 -0
  7. package/dist/cjs/clients/meter.js.map +1 -0
  8. package/dist/cjs/clients/portal.js +109 -0
  9. package/dist/cjs/clients/portal.js.map +1 -0
  10. package/dist/cjs/clients/subject.js +141 -0
  11. package/dist/cjs/clients/subject.js.map +1 -0
  12. package/dist/cjs/index.js +21 -0
  13. package/dist/cjs/index.js.map +1 -0
  14. package/dist/cjs/schemas/openapi.js +7 -0
  15. package/dist/cjs/schemas/openapi.js.map +1 -0
  16. package/dist/cjs/test/agent.js +266 -0
  17. package/dist/cjs/test/agent.js.map +1 -0
  18. package/dist/cjs/test/mocks.js +44 -0
  19. package/dist/cjs/test/mocks.js.map +1 -0
  20. package/dist/cjs/tsconfig.cjs.tsbuildinfo +1 -0
  21. package/dist/esm/clients/client.js +191 -0
  22. package/dist/esm/clients/client.js.map +1 -0
  23. package/dist/esm/clients/event.js +131 -0
  24. package/dist/esm/clients/event.js.map +1 -0
  25. package/dist/esm/clients/meter.js +136 -0
  26. package/dist/esm/clients/meter.js.map +1 -0
  27. package/dist/esm/clients/portal.js +106 -0
  28. package/dist/esm/clients/portal.js.map +1 -0
  29. package/dist/esm/clients/subject.js +138 -0
  30. package/dist/esm/clients/subject.js.map +1 -0
  31. package/dist/esm/index.js +16 -0
  32. package/dist/esm/index.js.map +1 -0
  33. package/dist/{schemas → esm/schemas}/openapi.js +1 -0
  34. package/dist/esm/schemas/openapi.js.map +1 -0
  35. package/dist/{test → esm/test}/agent.js +123 -31
  36. package/dist/esm/test/agent.js.map +1 -0
  37. package/dist/esm/test/mocks.js +41 -0
  38. package/dist/esm/test/mocks.js.map +1 -0
  39. package/dist/esm/tsconfig.esm.tsbuildinfo +1 -0
  40. package/dist/{clients → types/clients}/client.d.ts +2 -3
  41. package/dist/{clients → types/clients}/event.d.ts +16 -2
  42. package/dist/{clients → types/clients}/meter.d.ts +12 -32
  43. package/dist/types/clients/portal.d.ts +22 -0
  44. package/dist/types/clients/subject.d.ts +27 -0
  45. package/dist/{index.d.ts → types/index.d.ts} +6 -2
  46. package/dist/types/schemas/openapi.d.ts +990 -0
  47. package/dist/{test → types/test}/mocks.d.ts +4 -1
  48. package/index.ts +8 -7
  49. package/package.json +37 -33
  50. package/tsconfig.base.json +24 -0
  51. package/tsconfig.cjs.json +8 -0
  52. package/tsconfig.esm.json +8 -0
  53. package/dist/clients/client.js +0 -104
  54. package/dist/clients/event.js +0 -39
  55. package/dist/clients/meter.js +0 -79
  56. package/dist/index.js +0 -11
  57. package/dist/schemas/openapi.d.ts +0 -505
  58. package/dist/test/mocks.js +0 -21
  59. package/dist/tsconfig.tsbuildinfo +0 -1
  60. /package/dist/{test → types/test}/agent.d.ts +0 -0
@@ -0,0 +1 @@
1
+ {"program":{"fileNames":["../../node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.d.ts","../../node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.dom.d.ts","../../node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../../node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.scripthost.d.ts","../../node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2017.date.d.ts","../../node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2020.date.d.ts","../../node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2020.number.d.ts","../../node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.decorators.d.ts","../../node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../node_modules/.pnpm/undici@6.13.0/node_modules/undici/types/header.d.ts","../../node_modules/.pnpm/undici@6.13.0/node_modules/undici/types/readable.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/assert.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/assert/strict.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/header.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/readable.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/file.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/fetch.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/formdata.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/connector.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/client.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/errors.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/dispatcher.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/global-dispatcher.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/global-origin.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/pool-stats.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/pool.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/handlers.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/balanced-pool.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/agent.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/mock-interceptor.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/mock-agent.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/mock-client.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/mock-pool.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/mock-errors.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/proxy-agent.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/api.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/cookies.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/patch.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/filereader.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/diagnostics-channel.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/websocket.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/content-type.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/cache.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/interceptors.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/index.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/globals.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/async_hooks.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/buffer.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/child_process.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/cluster.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/console.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/constants.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/crypto.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/dgram.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/diagnostics_channel.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/dns.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/dns/promises.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/domain.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/dom-events.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/events.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/fs.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/fs/promises.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/http.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/http2.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/https.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/inspector.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/module.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/net.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/os.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/path.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/perf_hooks.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/process.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/punycode.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/querystring.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/readline.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/readline/promises.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/repl.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/sea.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/stream.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/stream/promises.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/stream/consumers.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/stream/web.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/string_decoder.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/test.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/timers.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/timers/promises.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/tls.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/trace_events.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/tty.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/url.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/util.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/v8.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/vm.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/wasi.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/worker_threads.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/zlib.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/globals.global.d.ts","../../node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/index.d.ts","../../node_modules/.pnpm/undici@6.13.0/node_modules/undici/types/file.d.ts","../../node_modules/.pnpm/undici@6.13.0/node_modules/undici/types/fetch.d.ts","../../node_modules/.pnpm/undici@6.13.0/node_modules/undici/types/formdata.d.ts","../../node_modules/.pnpm/undici@6.13.0/node_modules/undici/types/connector.d.ts","../../node_modules/.pnpm/undici@6.13.0/node_modules/undici/types/client.d.ts","../../node_modules/.pnpm/undici@6.13.0/node_modules/undici/types/errors.d.ts","../../node_modules/.pnpm/undici@6.13.0/node_modules/undici/types/dispatcher.d.ts","../../node_modules/.pnpm/undici@6.13.0/node_modules/undici/types/global-dispatcher.d.ts","../../node_modules/.pnpm/undici@6.13.0/node_modules/undici/types/global-origin.d.ts","../../node_modules/.pnpm/undici@6.13.0/node_modules/undici/types/pool-stats.d.ts","../../node_modules/.pnpm/undici@6.13.0/node_modules/undici/types/pool.d.ts","../../node_modules/.pnpm/undici@6.13.0/node_modules/undici/types/handlers.d.ts","../../node_modules/.pnpm/undici@6.13.0/node_modules/undici/types/balanced-pool.d.ts","../../node_modules/.pnpm/undici@6.13.0/node_modules/undici/types/agent.d.ts","../../node_modules/.pnpm/undici@6.13.0/node_modules/undici/types/mock-interceptor.d.ts","../../node_modules/.pnpm/undici@6.13.0/node_modules/undici/types/mock-agent.d.ts","../../node_modules/.pnpm/undici@6.13.0/node_modules/undici/types/mock-client.d.ts","../../node_modules/.pnpm/undici@6.13.0/node_modules/undici/types/mock-pool.d.ts","../../node_modules/.pnpm/undici@6.13.0/node_modules/undici/types/mock-errors.d.ts","../../node_modules/.pnpm/undici@6.13.0/node_modules/undici/types/proxy-agent.d.ts","../../node_modules/.pnpm/undici@6.13.0/node_modules/undici/types/retry-handler.d.ts","../../node_modules/.pnpm/undici@6.13.0/node_modules/undici/types/retry-agent.d.ts","../../node_modules/.pnpm/undici@6.13.0/node_modules/undici/types/api.d.ts","../../node_modules/.pnpm/undici@6.13.0/node_modules/undici/types/util.d.ts","../../node_modules/.pnpm/undici@6.13.0/node_modules/undici/types/cookies.d.ts","../../node_modules/.pnpm/undici@6.13.0/node_modules/undici/types/patch.d.ts","../../node_modules/.pnpm/undici@6.13.0/node_modules/undici/types/websocket.d.ts","../../node_modules/.pnpm/undici@6.13.0/node_modules/undici/types/eventsource.d.ts","../../node_modules/.pnpm/undici@6.13.0/node_modules/undici/types/filereader.d.ts","../../node_modules/.pnpm/undici@6.13.0/node_modules/undici/types/diagnostics-channel.d.ts","../../node_modules/.pnpm/undici@6.13.0/node_modules/undici/types/content-type.d.ts","../../node_modules/.pnpm/undici@6.13.0/node_modules/undici/types/cache.d.ts","../../node_modules/.pnpm/undici@6.13.0/node_modules/undici/types/interceptors.d.ts","../../node_modules/.pnpm/undici@6.13.0/node_modules/undici/types/index.d.ts","../../node_modules/.pnpm/undici@6.13.0/node_modules/undici/index.d.ts","../../schemas/openapi.ts","../../clients/client.ts","../../clients/event.ts","../../clients/meter.ts","../../clients/portal.ts","../../clients/subject.ts","../../index.ts","../../test/mocks.ts","../../test/agent.ts","../../node_modules/@types/chai/index.d.ts","../../node_modules/@types/chai-subset/index.d.ts","../../node_modules/.pnpm/@types+eslint@8.56.7/node_modules/@types/eslint/helpers.d.ts","../../node_modules/.pnpm/@types+estree@1.0.5/node_modules/@types/estree/index.d.ts","../../node_modules/.pnpm/@types+json-schema@7.0.15/node_modules/@types/json-schema/index.d.ts","../../node_modules/.pnpm/@types+eslint@8.56.7/node_modules/@types/eslint/index.d.ts","../../node_modules/@types/estree/index.d.ts","../../node_modules/@types/json-schema/index.d.ts","../../node_modules/@types/json5/index.d.ts","../../node_modules/.pnpm/form-data@4.0.0/node_modules/form-data/index.d.ts","../../node_modules/.pnpm/@types+node-fetch@2.6.11/node_modules/@types/node-fetch/externals.d.ts","../../node_modules/.pnpm/@types+node-fetch@2.6.11/node_modules/@types/node-fetch/index.d.ts","../../node_modules/@types/semver/classes/semver.d.ts","../../node_modules/@types/semver/functions/parse.d.ts","../../node_modules/@types/semver/functions/valid.d.ts","../../node_modules/@types/semver/functions/clean.d.ts","../../node_modules/@types/semver/functions/inc.d.ts","../../node_modules/@types/semver/functions/diff.d.ts","../../node_modules/@types/semver/functions/major.d.ts","../../node_modules/@types/semver/functions/minor.d.ts","../../node_modules/@types/semver/functions/patch.d.ts","../../node_modules/@types/semver/functions/prerelease.d.ts","../../node_modules/@types/semver/functions/compare.d.ts","../../node_modules/@types/semver/functions/rcompare.d.ts","../../node_modules/@types/semver/functions/compare-loose.d.ts","../../node_modules/@types/semver/functions/compare-build.d.ts","../../node_modules/@types/semver/functions/sort.d.ts","../../node_modules/@types/semver/functions/rsort.d.ts","../../node_modules/@types/semver/functions/gt.d.ts","../../node_modules/@types/semver/functions/lt.d.ts","../../node_modules/@types/semver/functions/eq.d.ts","../../node_modules/@types/semver/functions/neq.d.ts","../../node_modules/@types/semver/functions/gte.d.ts","../../node_modules/@types/semver/functions/lte.d.ts","../../node_modules/@types/semver/functions/cmp.d.ts","../../node_modules/@types/semver/functions/coerce.d.ts","../../node_modules/@types/semver/classes/comparator.d.ts","../../node_modules/@types/semver/classes/range.d.ts","../../node_modules/@types/semver/functions/satisfies.d.ts","../../node_modules/@types/semver/ranges/max-satisfying.d.ts","../../node_modules/@types/semver/ranges/min-satisfying.d.ts","../../node_modules/@types/semver/ranges/to-comparators.d.ts","../../node_modules/@types/semver/ranges/min-version.d.ts","../../node_modules/@types/semver/ranges/valid.d.ts","../../node_modules/@types/semver/ranges/outside.d.ts","../../node_modules/@types/semver/ranges/gtr.d.ts","../../node_modules/@types/semver/ranges/ltr.d.ts","../../node_modules/@types/semver/ranges/intersects.d.ts","../../node_modules/@types/semver/ranges/simplify.d.ts","../../node_modules/@types/semver/ranges/subset.d.ts","../../node_modules/@types/semver/internals/identifiers.d.ts","../../node_modules/@types/semver/index.d.ts"],"fileInfos":["a7297ff837fcdf174a9524925966429eb8e5feecc2cc55cc06574e6b092c1eaa",{"version":"824cb491a40f7e8fdeb56f1df5edf91b23f3e3ee6b4cde84d4a99be32338faee","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4",{"version":"87d693a4920d794a73384b3c779cadcb8548ac6945aa7a925832fe2418c9527a","affectsGlobalScope":true},{"version":"80e18897e5884b6723488d4f5652167e7bb5024f946743134ecc4aa4ee731f89","affectsGlobalScope":true},{"version":"cd034f499c6cdca722b60c04b5b1b78e058487a7085a8e0d6fb50809947ee573","affectsGlobalScope":true},{"version":"138fb588d26538783b78d1e3b2c2cc12d55840b97bf5e08bca7f7a174fbe2f17","affectsGlobalScope":true},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"bc47685641087c015972a3f072480889f0d6c65515f12bd85222f49a98952ed7","affectsGlobalScope":true},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true},{"version":"ea011c76963fb15ef1cdd7ce6a6808b46322c527de2077b6cfdf23ae6f5f9ec7","affectsGlobalScope":true},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true},{"version":"bb42a7797d996412ecdc5b2787720de477103a0b2e53058569069a0e2bae6c7e","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"b541a838a13f9234aba650a825393ffc2292dc0fc87681a5d81ef0c96d281e7a","affectsGlobalScope":true},{"version":"b20fe0eca9a4e405f1a5ae24a2b3290b37cf7f21eba6cbe4fc3fab979237d4f3","affectsGlobalScope":true},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"49ed889be54031e1044af0ad2c603d627b8bda8b50c1a68435fe85583901d072","affectsGlobalScope":true},{"version":"e93d098658ce4f0c8a0779e6cab91d0259efb88a318137f686ad76f8410ca270","affectsGlobalScope":true},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"5e07ed3809d48205d5b985642a59f2eba47c402374a7cf8006b686f79efadcbd","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"8073890e29d2f46fdbc19b8d6d2eb9ea58db9a2052f8640af20baff9afbc8640","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"13f6e6380c78e15e140243dc4be2fa546c287c6d61f4729bc2dd7cf449605471","affectsGlobalScope":true},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","24bd580b5743dc56402c440dc7f9a4f5d592ad7a419f25414d37a7bfe11e342b","acdc9fb9638a235a69bd270003d8db4d6153ada2b7ccbea741ade36b295e431e","7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","7180c03fd3cb6e22f911ce9ba0f8a7008b1a6ddbe88ccf16a9c8140ef9ac1686","25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","e1fe364d212ad705390e470e95456f973615cdc9b47ff8a784bf76d0a79c1d43","4065cd8350cefa78940000727268c1b1b3d7e0f62d9a6bdd77f7257249119c74","c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","55d4a96aa276405a667fe01dc77b9d89d5b438afad718cf022001343cff0528f","1366065539380033f7b84c8ff61e282a35b320c6f9469e56a2bc583dea835b1a","756cfefefbc5171418bf0721e70246ab65e703c925fc30d31e48f96c92857789","fc71aa1feec05e1d952ffb59719745b1f93dd02825eadc7ad325a19523ffb728","385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","f31c217decc495df6811063a784b2ffe8abe17f34d71d073d214386f1cbdfd46","9f0c15f55eca5df6bcf43e4059769bba55d88b72df73df9d6dc0dfeb535f1b0b","7fd1a3857ec2fbc394e4b26c145d4bd32880aa7468ef17d267a9afe27fe6b580","21878c0606d3408f160ea4c8038aabfbce17967f228488359369239c62e67a40","d1bb5eecd03b3fd7e2300e28a3d564297e1c35e6488c189cf86ee0d61a236dd4","c97a3ee60dca82fc98cd4938f8898340a2bb34e5c05aa945707aa91d0c43ca9d","006083d3647da6f61a4b64a8d750c56b384d3ce6f664a285a3898b6476054f6e","c630e2127cb5c4252e085198667ca6af26a4712267a12c279cc4355ec2a7958a","47bad74119226f5b892012e4ea3020f96a97b77e1d7139150d02abe1033f7968","2ca1f858ae614c94d5d2cb7ae3eb54267e7e13502ee2f1cc78fa6dd019c31030","d29d0574b5adcbd3a148c0ca8fd2cd947ab1d0ce90b7ff9088fefef349d795e4","8a5ecb562532c1f7eb7b6800c3ae8feaadeb3fbcae9dcab1c422b684998bc82c","56f7e2f3af7beab83a75ae8aba9a8e516032ada4863169f963d16e783e2e851b","e53a3c2a9f624d90f24bf4588aacd223e7bec1b9d0d479b68d2f4a9e6011147f","e14f482595a106973a0005415ac305b3b7c2011c170d6f51e3a7e6f3cd2a4f07","7bf358a0241d49b740df9165710dbba954a0848c3ca60c62d815357e1956f308","e72644c36217f8fc747fdab950af5c2c258ea22c01e15cc3940ddd79c2ffe6f5","2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","659c6beb47346e430ff7374d6314a01dd01e5cf57efcde813d12e78b32d36120","8353075cccfa8989f662d2bf0ee193f66311e15998722dc223a5ad3ad8909baa","d8239cdcb289e6e60c257c9c96cc5642bc077632d65cd5aeb85b907cf7093108",{"version":"a14ed46fa3f5ffc7a8336b497cd07b45c2084213aaca933a22443fcb2eef0d07","affectsGlobalScope":true},"cce1f5f86974c1e916ec4a8cab6eec9aa8e31e8148845bf07fbaa8e1d97b1a2c",{"version":"7fd7fcbf021a5845bdd9397d4649fcf2fe17152d2098140fc723099a215d19ad","affectsGlobalScope":true},"df3389f71a71a38bc931aaf1ef97a65fada98f0a27f19dd12f8b8de2b0f4e461","d69a3298a197fe5d59edba0ec23b4abf2c8e7b8c6718eac97833633cd664e4c9",{"version":"a9544f6f8af0d046565e8dde585502698ebc99eef28b715bad7c2bded62e4a32","affectsGlobalScope":true},"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb",{"version":"8b809082dfeffc8cc4f3b9c59f55c0ff52ba12f5ae0766cb5c35deee83b8552e","affectsGlobalScope":true},"bd3f5d05b6b5e4bfcea7739a45f3ffb4a7f4a3442ba7baf93e0200799285b8f1","4c775c2fccabf49483c03cd5e3673f87c1ffb6079d98e7b81089c3def79e29c6","d4f9d3ae2fe1ae199e1c832cca2c44f45e0b305dfa2808afdd51249b6f4a5163","7525257b4aa35efc7a1bbc00f205a9a96c4e4ab791da90db41b77938c4e0c18e","b7fe70be794e13d1b7940e318b8770cd1fb3eced7707805318a2e3aaac2c3e9e",{"version":"ee1ee365d88c4c6c0c0a5a5701d66ebc27ccd0bcfcfaa482c6e2e7fe7b98edf7","affectsGlobalScope":true},{"version":"9c611eff81287837680c1f4496daf9e737d6f3a1ff17752207814b8f8e1265af","affectsGlobalScope":true},"fe1fd6afdfe77976d4c702f3746c05fb05a7e566845c890e0e970fe9376d6a90","b5d4e3e524f2eead4519c8e819eaf7fa44a27c22418eff1b7b2d0ebc5fdc510d","afb1701fd4be413a8a5a88df6befdd4510c30a31372c07a4138facf61594c66d","9bd8e5984676cf28ebffcc65620b4ab5cb38ab2ec0aac0825df8568856895653","396a8939b5e177542bdf9b5262b4eee85d29851b2d57681fa9d7eae30e225830","5e8dc64e7e68b2b3ea52ed685cf85239e0d5fb9df31aabc94370c6bc7e19077b",{"version":"ea455cc68871b049bcecd9f56d4cf27b852d6dafd5e3b54468ca87cc11604e4d","affectsGlobalScope":true},"c07146dbbbd8b347241b5df250a51e48f2d7bef19b1e187b1a3f20c849988ff1","45b1053e691c5af9bfe85060a3e1542835f8d84a7e6e2e77ca305251eda0cb3c","0f05c06ff6196958d76b865ae17245b52d8fe01773626ac3c43214a2458ea7b7",{"version":"ae5507fc333d637dec9f37c6b3f4d423105421ea2820a64818de55db85214d66","affectsGlobalScope":true},{"version":"46755a4afc53df75f0bfce72259fb971daac826b0cdd8c4eaccad2755a817403","affectsGlobalScope":true},"8abd0566d2854c4bd1c5e48e05df5c74927187f1541e6770001d9637ac41542e","54e854615c4eafbdd3fd7688bd02a3aafd0ccf0e87c98f79d3e9109f047ce6b8","d8dba11dc34d50cb4202de5effa9a1b296d7a2f4a029eec871f894bddfb6430d","8b71dd18e7e63b6f991b511a201fad7c3bf8d1e0dd98acb5e3d844f335a73634","01d8e1419c84affad359cc240b2b551fb9812b450b4d3d456b64cda8102d4f60","9eece5e586312581ccd106d4853e861aaaa1a39f8e3ea672b8c3847eedd12f6e","8221b00f271cf7f535a8eeec03b0f80f0929c7a16116e2d2df089b41066de69b","269929a24b2816343a178008ac9ae9248304d92a8ba8e233055e0ed6dbe6ef71","93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","7fa32887f8a97909fca35ebba3740f8caf8df146618d8fff957a3f89f67a2f6a","9a9634296cca836c3308923ba7aa094fa6ed76bb1e366d8ddcf5c65888ab1024",{"version":"bddce945d552a963c9733db106b17a25474eefcab7fc990157a2134ef55d4954","affectsGlobalScope":true},{"version":"7052b7b0c3829df3b4985bab2fd74531074b4835d5a7b263b75c82f0916ad62f","affectsGlobalScope":true},"aa34c3aa493d1c699601027c441b9664547c3024f9dbab1639df7701d63d18fa","4b55240c2a03b2c71e98a7fc528b16136faa762211c92e781a01c37821915ea6","7c651f8dce91a927ab62925e73f190763574c46098f2b11fb8ddc1b147a6709a","7440ab60f4cb031812940cc38166b8bb6fbf2540cfe599f87c41c08011f0c1df",{"version":"94c086dff8dbc5998749326bc69b520e8e4273fb5b7b58b50e0210e0885dfcde","affectsGlobalScope":true},{"version":"f5b5dc128973498b75f52b1b8c2d5f8629869104899733ae485100c2309b4c12","affectsGlobalScope":true},"ebe5facd12fd7745cda5f4bc3319f91fb29dc1f96e57e9c6f8b260a7cc5b67ee","79bad8541d5779c85e82a9fb119c1fe06af77a71cc40f869d62ad379473d4b75","21c56c6e8eeacef15f63f373a29fab6a2b36e4705be7a528aae8c51469e2737b",{"version":"629d20681ca284d9e38c0a019f647108f5fe02f9c59ac164d56f5694fc3faf4d","affectsGlobalScope":true},"e7dbf5716d76846c7522e910896c5747b6df1abd538fee8f5291bdc843461795",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"a42be67ed1ddaec743582f41fc219db96a1b69719fccac6d1464321178d610fc","25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","34b4f256dd3c591cb7c9e96a763d79d54b69d417709b9015dcec3ac5583eec73","3e4825171442666d31c845aeb47fcd34b62e14041bb353ae2b874285d78482aa","c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","e9775e97ac4877aebf963a0289c81abe76d1ec9a2a7778dbe637e5151f25c5f3","57386628c539248e4f428d5308a69f98f4a6a3cd42a053f017d9dd3fd5a43bc5","cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","3a84b7cb891141824bd00ef8a50b6a44596aded4075da937f180c90e362fe5f6","13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","8b9bf58d580d9b36ab2f23178c88757ce7cc6830ccbdd09e8a76f4cb1bc0fcf7","0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","7782678102bd835ef2c54330ee16c31388e51dfd9ca535b47f6fd8f3d6e07993","89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","e53a3c2a9f624d90f24bf4588aacd223e7bec1b9d0d479b68d2f4a9e6011147f","24b8685c62562f5d98615c5a0c1d05f297cf5065f15246edfe99e81ec4c0e011","1a42891defae8cec268a4f8903140dbf0d214c0cf9ed8fdc1eb6c25e5b3e9a5c","339dc5265ee5ed92e536a93a04c4ebbc2128f45eeec6ed29f379e0085283542c","4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","d32275be3546f252e3ad33976caf8c5e842c09cb87d468cb40d5f4cf092d1acc","37e97c64b890352421ccb29cd8ede863774df8f03763416f6a572093f6058284","299fd0c281633d8dbfbe5f44c5f2850fe37392da6fd3b9cca3cb4e10cda16432",{"version":"8e30805d00f4c4c5e3fbe546863f04bdec5d37812706620d7d6adba0f74c4f59","signature":"71d7e8ed05903ee9229c0a5a70d04b531b5bd25d7b81e8b0af6367b329a30523"},{"version":"ea22ffe08697e085e4a5aba8b5558298c83640a050abd54a6aab8969bed1d16a","signature":"1a96b80be650fd5bcf5ad9a91a8a06f7796bf8d8d71bb461592bdf05b4ada746"},{"version":"87edb38c81c5a31a44739df1a5b12ea66fd0a2ceaf4c72171279fa620f296c68","signature":"573233088dd99f425b672231abb3f3ab3b7a8a01d050931447fc7a840fe6ac54"},{"version":"35e05f5b0dcd81dbb291ef84d44da32be5fa9c8a8fe51f35368f3f9ac3d8f36e","signature":"6e5de733114a660d3a3c692b9d8593959ca8cda5aa4c1eebb955fdde7f734ee4"},{"version":"88f99415f6b9fe25c841eeefe85c79ebd203a17ac984bb97f507e90f18409cef","signature":"0e6bb49d6702d46bfa799e3536e269b2fb2d5a8d2f9a277debbec0cad0508ee3"},{"version":"458a992b6fe83595cfdcb0e9ce3ec213bff00b314bf73762ba1a9165bf4384d8","signature":"d1694bd78a031d03885e6b233a61b1122ea1c38ecdad0a5e82e480d0637c0b31"},{"version":"891e82155f94136e04a5208dd816d1a3bb233e304fa154545cadf02d8cc56ffc","signature":"e6ae58f34da0ff0b4b1b04347cd367f45c9e662578a42356f6ebd1647805e908"},{"version":"a309648baf0396b9c9b55515485dc9255bdb52a15e65142c55772946ee4b2ca5","signature":"7223735f63ff40dee205d9e574eb3218d04ae77f2e15022427c17d4a3946459d"},{"version":"395961ef4c40cfd7bca473e1c17de7a664e0a2d5d397f959bd406e2fd478786d","signature":"034fd5b38e44b4302935037f69d3888fdeb7a15bfebf5ee33a375cf4d92823ed"},{"version":"c3bc5d095c3c22fd20b5a6550b9c9a6d56c3ffbb87ef057ccce7764b6bed4428","affectsGlobalScope":true},{"version":"f4c0db3a49cea9babd5d224ba14243a6a6119bf65a65198994033aaea3a60a71","affectsGlobalScope":true},{"version":"64d4b35c5456adf258d2cf56c341e203a073253f229ef3208fc0d5020253b241","affectsGlobalScope":true},"ee7d8894904b465b072be0d2e4b45cf6b887cdba16a467645c4e200982ece7ea","f3d8c757e148ad968f0d98697987db363070abada5f503da3c06aefd9d4248c1","042633127c7595f5d198bca8ff3051203fe29f49460d0ed1d82a1179fc9805bd","bee89e1eb6425eb49894f3f25e4562dc2564e84e5aa7610b7e13d8ecddf8f5db","dca41e86e89dfb2e85e6935260250f02eb6683b86c2fa16bec729ddd1bcd9b4b","96d14f21b7652903852eef49379d04dbda28c16ed36468f8c9fa08f7c14c9538","736097ddbb2903bef918bb3b5811ef1c9c5656f2a73bd39b22a91b9cc2525e50","4340936f4e937c452ae783514e7c7bbb7fc06d0c97993ff4865370d0962bb9cf","5fc6e6b8232254d80ed6b802372dba7f426f0a596f5fe26b7773acfdc8232926","2b93035328f7778d200252681c1d86285d501ed424825a18f81e4c3028aa51d9","2ac9c8332c5f8510b8bdd571f8271e0f39b0577714d5e95c1e79a12b2616f069","42c21aa963e7b86fa00801d96e88b36803188018d5ad91db2a9101bccd40b3ff","d31eb848cdebb4c55b4893b335a7c0cca95ad66dee13cbb7d0893810c0a9c301","55e103448f452988dbdf65e293607c77fb91a967744bad2a72f1a36765e7e88d","7a9e0a564fee396cacf706523b5aeed96e04c6b871a8bebefad78499fbffc5bc","906c751ef5822ec0dadcea2f0e9db64a33fb4ee926cc9f7efa38afe5d5371b2a","5387c049e9702f2d2d7ece1a74836a14b47fbebe9bbeb19f94c580a37c855351","c68391fb9efad5d99ff332c65b1606248c4e4a9f1dd9a087204242b56c7126d6","e9cf02252d3a0ced987d24845dcb1f11c1be5541f17e5daa44c6de2d18138d0c","e8b02b879754d85f48489294f99147aeccc352c760d95a6fe2b6e49cd400b2fe","9f6908ab3d8a86c68b86e38578afc7095114e66b2fc36a2a96e9252aac3998e0","0eedb2344442b143ddcd788f87096961cd8572b64f10b4afc3356aa0460171c6","71405cc70f183d029cc5018375f6c35117ffdaf11846c35ebf85ee3956b1b2a6","c68baff4d8ba346130e9753cefe2e487a16731bf17e05fdacc81e8c9a26aae9d","2cd15528d8bb5d0453aa339b4b52e0696e8b07e790c153831c642c3dea5ac8af","479d622e66283ffa9883fbc33e441f7fc928b2277ff30aacbec7b7761b4e9579","ade307876dc5ca267ca308d09e737b611505e015c535863f22420a11fffc1c54","f8cdefa3e0dee639eccbe9794b46f90291e5fd3989fcba60d2f08fde56179fb9","86c5a62f99aac7053976e317dbe9acb2eaf903aaf3d2e5bb1cafe5c2df7b37a8","2b300954ce01a8343866f737656e13243e86e5baef51bd0631b21dcef1f6e954","a2d409a9ffd872d6b9d78ead00baa116bbc73cfa959fce9a2f29d3227876b2a1","b288936f560cd71f4a6002953290de9ff8dfbfbf37f5a9391be5c83322324898","61178a781ef82e0ff54f9430397e71e8f365fc1e3725e0e5346f2de7b0d50dfa","6a6ccb37feb3aad32d9be026a3337db195979cd5727a616fc0f557e974101a54","c649ea79205c029a02272ef55b7ab14ada0903db26144d2205021f24727ac7a3","38e2b02897c6357bbcff729ef84c736727b45cc152abe95a7567caccdfad2a1d","d6610ea7e0b1a7686dba062a1e5544dd7d34140f4545305b7c6afaebfb348341","3dee35db743bdba2c8d19aece7ac049bde6fa587e195d86547c882784e6ba34c","b15e55c5fa977c2f25ca0b1db52cfa2d1fd4bf0baf90a8b90d4a7678ca462ff1","f41d30972724714763a2698ae949fbc463afb203b5fa7c4ad7e4de0871129a17","843dd7b6a7c6269fd43827303f5cbe65c1fecabc30b4670a50d5a15d57daeeb9","f06d8b8567ee9fd799bf7f806efe93b67683ef24f4dea5b23ef12edff4434d9d","6017384f697ff38bc3ef6a546df5b230c3c31329db84cbfe686c83bec011e2b2","e1a5b30d9248549ca0c0bb1d653bafae20c64c4aa5928cc4cd3017b55c2177b0","a593632d5878f17295bd53e1c77f27bf4c15212822f764a2bfc1702f4b413fa0","a868a534ba1c2ca9060b8a13b0ffbbbf78b4be7b0ff80d8c75b02773f7192c29","da7545aba8f54a50fde23e2ede00158dc8112560d934cee58098dfb03aae9b9d","34baf65cfee92f110d6653322e2120c2d368ee64b3c7981dff08ed105c4f19b0","a1a261624efb3a00ff346b13580f70f3463b8cdcc58b60f5793ff11785d52cab"],"root":[[174,182]],"options":{"allowJs":true,"allowSyntheticDefaultImports":true,"declaration":true,"declarationDir":"../types","emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"module":1,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":true},"fileIdsList":[[103,173,174],[93,174,175],[174,175],[175,176,177,178,179],[185,186,187],[103,130,138,192,193],[52],[87],[88,93,122],[89,100,101,108,119,130],[89,90,100,108],[91,131],[92,93,101,109],[93,119,127],[94,96,100,108],[87,95],[96,97],[100],[98,100],[87,100],[100,101,102,119,130],[100,101,102,115,119,122],[85,88,135],[96,100,103,108,119,130],[100,101,103,104,108,119,127,130],[103,105,119,127,130],[52,53,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137],[100,106],[107,130,135],[96,100,108,119],[109],[110],[87,111],[112,129,135],[113],[114],[100,115,116],[115,117,131,133],[88,100,119,120,121,122],[88,119,121],[119,120],[122],[123],[87,119],[100,125,126],[125,126],[93,108,119,127],[128],[108,129],[88,103,114,130],[93,131],[119,132],[107,133],[134],[88,93,100,102,111,119,130,133,135],[119,136],[103,119,138],[62,66,130],[62,119,130],[57],[59,62,127,130],[108,127],[138],[57,138],[59,62,108,130],[54,55,58,61,88,100,119,130],[54,60],[58,62,88,122,130,138],[88,138],[78,88,138],[56,57,138],[62],[56,57,58,59,60,61,62,63,64,66,67,68,69,70,71,72,73,74,75,76,77,79,80,81,82,83,84],[62,69,70],[60,62,70,71],[61],[54,57,62],[62,66,70,71],[66],[60,62,65,130],[54,59,60,62,66,69],[88,119],[57,62,78,88,135,138],[172],[130,145,149],[119,130,145],[140],[127,130,142,145],[138,140],[108,130,142,145],[50,51,88,100,119,130,141,144],[50,143],[164,165],[88,122,130,138,141,145],[88,138,164],[138,139,140],[145],[139,140,141,142,143,144,145,146,147,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,165,166,167,168,169,170,171],[145,152,153],[143,145,153,154],[144],[50,140,145],[145,149,153,154],[149],[130,143,145,148],[50,142,145,152],[50,142,145,152,159],[88,135,138,140,145,164],[183],[195,234],[195,219,234],[234],[195],[195,220,234],[195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233],[220,234],[173,181],[179,180],[173]],"referencedMap":[[175,1],[176,2],[177,3],[178,3],[179,3],[180,4],[188,5],[194,6],[52,7],[53,7],[87,8],[88,9],[89,10],[90,11],[91,12],[92,13],[93,14],[94,15],[95,16],[96,17],[97,17],[99,18],[98,19],[100,20],[101,21],[102,22],[86,23],[103,24],[104,25],[105,26],[138,27],[106,28],[107,29],[108,30],[109,31],[110,32],[111,33],[112,34],[113,35],[114,36],[115,37],[116,37],[117,38],[119,39],[121,40],[120,41],[122,42],[123,43],[124,44],[125,45],[126,46],[127,47],[128,48],[129,49],[130,50],[131,51],[132,52],[133,53],[134,54],[135,55],[136,56],[192,57],[69,58],[76,59],[68,58],[83,60],[60,61],[59,62],[82,63],[77,64],[80,65],[62,66],[61,67],[57,68],[56,69],[79,70],[58,71],[63,72],[67,72],[85,73],[84,72],[71,74],[72,75],[74,76],[70,77],[73,78],[78,63],[65,79],[66,80],[75,81],[55,82],[81,83],[173,84],[152,85],[161,86],[151,85],[170,87],[143,88],[142,62],[169,63],[163,89],[168,90],[145,91],[144,92],[166,93],[140,94],[139,69],[167,95],[141,96],[146,97],[150,97],[172,98],[171,97],[154,99],[155,100],[157,101],[153,102],[156,103],[164,63],[148,104],[149,105],[158,106],[51,82],[160,107],[159,97],[165,108],[184,109],[219,110],[220,111],[195,112],[198,112],[217,110],[218,110],[208,110],[207,113],[205,110],[200,110],[213,110],[211,110],[215,110],[199,110],[212,110],[216,110],[201,110],[202,110],[214,110],[196,110],[203,110],[204,110],[206,110],[210,110],[221,114],[209,110],[197,110],[234,115],[228,114],[230,116],[229,114],[222,114],[223,114],[225,114],[227,114],[231,116],[232,116],[224,116],[226,116],[182,117],[181,118]],"exportedModulesMap":[[175,1],[176,3],[177,3],[178,3],[179,3],[180,4],[188,5],[194,6],[52,7],[53,7],[87,8],[88,9],[89,10],[90,11],[91,12],[92,13],[93,14],[94,15],[95,16],[96,17],[97,17],[99,18],[98,19],[100,20],[101,21],[102,22],[86,23],[103,24],[104,25],[105,26],[138,27],[106,28],[107,29],[108,30],[109,31],[110,32],[111,33],[112,34],[113,35],[114,36],[115,37],[116,37],[117,38],[119,39],[121,40],[120,41],[122,42],[123,43],[124,44],[125,45],[126,46],[127,47],[128,48],[129,49],[130,50],[131,51],[132,52],[133,53],[134,54],[135,55],[136,56],[192,57],[69,58],[76,59],[68,58],[83,60],[60,61],[59,62],[82,63],[77,64],[80,65],[62,66],[61,67],[57,68],[56,69],[79,70],[58,71],[63,72],[67,72],[85,73],[84,72],[71,74],[72,75],[74,76],[70,77],[73,78],[78,63],[65,79],[66,80],[75,81],[55,82],[81,83],[173,84],[152,85],[161,86],[151,85],[170,87],[143,88],[142,62],[169,63],[163,89],[168,90],[145,91],[144,92],[166,93],[140,94],[139,69],[167,95],[141,96],[146,97],[150,97],[172,98],[171,97],[154,99],[155,100],[157,101],[153,102],[156,103],[164,63],[148,104],[149,105],[158,106],[51,82],[160,107],[159,97],[165,108],[184,109],[219,110],[220,111],[195,112],[198,112],[217,110],[218,110],[208,110],[207,113],[205,110],[200,110],[213,110],[211,110],[215,110],[199,110],[212,110],[216,110],[201,110],[202,110],[214,110],[196,110],[203,110],[204,110],[206,110],[210,110],[221,114],[209,110],[197,110],[234,115],[228,114],[230,116],[229,114],[222,114],[223,114],[225,114],[227,114],[231,116],[232,116],[224,116],[226,116],[182,119],[181,118]],"semanticDiagnosticsPerFile":[175,176,177,178,179,180,185,188,186,187,193,194,52,53,87,88,89,90,91,92,93,94,95,96,97,99,98,100,101,102,86,137,103,104,105,138,106,107,108,109,110,111,112,113,114,115,116,117,118,119,121,120,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,192,1,48,49,9,13,12,3,14,15,16,17,18,19,20,21,4,22,5,23,27,24,25,26,28,29,30,6,31,32,33,34,7,38,35,36,37,39,8,40,45,46,41,42,43,44,2,47,11,10,69,76,68,83,60,59,82,77,80,62,61,57,56,79,58,63,64,67,54,85,84,71,72,74,70,73,78,65,66,75,55,81,173,152,161,151,170,143,142,169,163,168,145,144,166,140,139,167,141,146,147,150,50,172,171,154,155,157,153,156,164,148,149,158,51,160,159,162,165,184,183,189,190,191,219,220,195,198,217,218,208,207,205,200,213,211,215,199,212,216,201,202,214,196,203,204,206,210,221,209,197,234,233,228,230,229,222,223,225,227,231,232,224,226,174,182,181]},"version":"5.4.5"}
@@ -0,0 +1,191 @@
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
+ extendStatics(d, b);
12
+ function __() { this.constructor = d; }
13
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
+ };
15
+ })();
16
+ var __assign = (this && this.__assign) || function () {
17
+ __assign = Object.assign || function(t) {
18
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
19
+ s = arguments[i];
20
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
21
+ t[p] = s[p];
22
+ }
23
+ return t;
24
+ };
25
+ return __assign.apply(this, arguments);
26
+ };
27
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
28
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
29
+ return new (P || (P = Promise))(function (resolve, reject) {
30
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
31
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
32
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
33
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
34
+ });
35
+ };
36
+ var __generator = (this && this.__generator) || function (thisArg, body) {
37
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
38
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
39
+ function verb(n) { return function (v) { return step([n, v]); }; }
40
+ function step(op) {
41
+ if (f) throw new TypeError("Generator is already executing.");
42
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
43
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
44
+ if (y = 0, t) op = [op[0] & 2, t.value];
45
+ switch (op[0]) {
46
+ case 0: case 1: t = op; break;
47
+ case 4: _.label++; return { value: op[1], done: false };
48
+ case 5: _.label++; y = op[1]; op = [0]; continue;
49
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
50
+ default:
51
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
52
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
53
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
54
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
55
+ if (t[2]) _.ops.pop();
56
+ _.trys.pop(); continue;
57
+ }
58
+ op = body.call(thisArg, _);
59
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
60
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
61
+ }
62
+ };
63
+ import { request } from 'undici';
64
+ var BaseClient = /** @class */ (function () {
65
+ function BaseClient(config) {
66
+ this.config = config;
67
+ }
68
+ BaseClient.prototype.request = function (_a) {
69
+ return __awaiter(this, arguments, void 0, function (_b) {
70
+ var url, reqHeaders, reqOpts, resp, problem;
71
+ var path = _b.path, method = _b.method, searchParams = _b.searchParams, headers = _b.headers, body = _b.body, options = _b.options;
72
+ return __generator(this, function (_c) {
73
+ switch (_c.label) {
74
+ case 0:
75
+ url = this.getUrl(path, searchParams);
76
+ reqHeaders = __assign(__assign(__assign(__assign({ Accept: 'application/json' }, headers), this.getAuthHeaders()), this.config.headers), options === null || options === void 0 ? void 0 : options.headers);
77
+ reqOpts = {
78
+ method: method,
79
+ headers: reqHeaders,
80
+ };
81
+ // Optional body
82
+ if (body) {
83
+ if (!reqHeaders['Content-Type'] && !reqHeaders['content-type']) {
84
+ throw new Error('Content Type is required with body');
85
+ }
86
+ reqOpts.body = body;
87
+ }
88
+ return [4 /*yield*/, request(url, reqOpts)
89
+ // Error handling
90
+ ];
91
+ case 1:
92
+ resp = _c.sent();
93
+ if (!(resp.statusCode > 399)) return [3 /*break*/, 4];
94
+ if (!(resp.headers['content-type'] === 'application/problem+json')) return [3 /*break*/, 3];
95
+ return [4 /*yield*/, resp.body.json()];
96
+ case 2:
97
+ problem = (_c.sent());
98
+ throw new HttpError({
99
+ statusCode: resp.statusCode,
100
+ problem: problem,
101
+ });
102
+ case 3:
103
+ // Requests can fail before API, in this case we only have a status code
104
+ throw new HttpError({
105
+ statusCode: resp.statusCode,
106
+ });
107
+ case 4:
108
+ // Response parsing
109
+ if (resp.statusCode === 204 || resp.headers['content-length'] === '0') {
110
+ return [2 /*return*/, undefined];
111
+ }
112
+ if (!(resp.headers['content-type'] === 'application/json')) return [3 /*break*/, 6];
113
+ return [4 /*yield*/, resp.body.json()];
114
+ case 5: return [2 /*return*/, (_c.sent())];
115
+ case 6:
116
+ if (!resp.headers['content-type']) {
117
+ throw new Error('Missing content type');
118
+ }
119
+ throw new Error("Unknown content type: ".concat(resp.headers['content-type']));
120
+ }
121
+ });
122
+ });
123
+ };
124
+ BaseClient.prototype.getUrl = function (path, searchParams) {
125
+ var qs = searchParams ? searchParams.toString() : '';
126
+ qs = qs.length > 0 ? "?".concat(qs) : '';
127
+ var url = new URL("".concat(path).concat(qs), this.config.baseUrl);
128
+ return url;
129
+ };
130
+ BaseClient.prototype.getAuthHeaders = function () {
131
+ if (this.config.token) {
132
+ return {
133
+ authorization: "Bearer ".concat(this.config.token),
134
+ };
135
+ }
136
+ if (this.config.username && this.config.password) {
137
+ var encoded = Buffer.from("".concat(this.config.username, ":").concat(this.config.password)).toString('base64');
138
+ return {
139
+ authorization: "Basic ".concat(encoded),
140
+ };
141
+ }
142
+ return {};
143
+ };
144
+ BaseClient.toURLSearchParams = function (params) {
145
+ var searchParams = new URLSearchParams();
146
+ var _loop_1 = function (key, value) {
147
+ if (value === undefined) {
148
+ return "continue";
149
+ }
150
+ if (Array.isArray(value)) {
151
+ for (var _c = 0, value_1 = value; _c < value_1.length; _c++) {
152
+ var item = value_1[_c];
153
+ searchParams.append(key, item);
154
+ }
155
+ }
156
+ else if (value instanceof Date) {
157
+ searchParams.append(key, value.toISOString());
158
+ }
159
+ else if (typeof value === 'object') {
160
+ Object.entries(value).forEach(function (_a) {
161
+ var k = _a[0], v = _a[1];
162
+ searchParams.append("".concat(key, "[").concat(k, "]"), v);
163
+ });
164
+ }
165
+ else {
166
+ searchParams.append(key, value.toString());
167
+ }
168
+ };
169
+ for (var _i = 0, _a = Object.entries(params); _i < _a.length; _i++) {
170
+ var _b = _a[_i], key = _b[0], value = _b[1];
171
+ _loop_1(key, value);
172
+ }
173
+ return searchParams;
174
+ };
175
+ return BaseClient;
176
+ }());
177
+ export { BaseClient };
178
+ var HttpError = /** @class */ (function (_super) {
179
+ __extends(HttpError, _super);
180
+ function HttpError(_a) {
181
+ var statusCode = _a.statusCode, problem = _a.problem;
182
+ var _this = _super.call(this, (problem === null || problem === void 0 ? void 0 : problem.type) || 'unexpected status code') || this;
183
+ _this.name = 'HttpError';
184
+ _this.statusCode = statusCode;
185
+ _this.problem = problem;
186
+ return _this;
187
+ }
188
+ return HttpError;
189
+ }(Error));
190
+ export { HttpError };
191
+ //# sourceMappingURL=client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../../../clients/client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EAAc,OAAO,EAAE,MAAM,QAAQ,CAAA;AAuB5C;IAGE,oBAAY,MAAuB;QACjC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAEe,4BAAO,GAAvB;4DAA2B,EAc1B;;gBAbC,IAAI,UAAA,EACJ,MAAM,YAAA,EACN,YAAY,kBAAA,EACZ,OAAO,aAAA,EACP,IAAI,UAAA,EACJ,OAAO,aAAA;;;;wBAUD,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,YAAY,CAAC,CAAA;wBAGrC,UAAU,yCACd,MAAM,EAAE,kBAAkB,IACvB,OAAO,GACP,IAAI,CAAC,cAAc,EAAE,GACrB,IAAI,CAAC,MAAM,CAAC,OAAO,GACnB,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CACpB,CAAA;wBACK,OAAO,GAAyB;4BACpC,MAAM,QAAA;4BACN,OAAO,EAAE,UAAU;yBACpB,CAAA;wBAED,gBAAgB;wBAChB,IAAI,IAAI,EAAE,CAAC;4BACT,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC,EAAE,CAAC;gCAC/D,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAA;4BACvD,CAAC;4BAED,OAAO,CAAC,IAAI,GAAG,IAAI,CAAA;wBACrB,CAAC;wBAEY,qBAAM,OAAO,CAAC,GAAG,EAAE,OAAO,CAAC;4BAExC,iBA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+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
+ extendStatics(d, b);
12
+ function __() { this.constructor = d; }
13
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
+ };
15
+ })();
16
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
17
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
18
+ return new (P || (P = Promise))(function (resolve, reject) {
19
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
20
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
21
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
22
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
23
+ });
24
+ };
25
+ var __generator = (this && this.__generator) || function (thisArg, body) {
26
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
27
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
28
+ function verb(n) { return function (v) { return step([n, v]); }; }
29
+ function step(op) {
30
+ if (f) throw new TypeError("Generator is already executing.");
31
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
32
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
33
+ if (y = 0, t) op = [op[0] & 2, t.value];
34
+ switch (op[0]) {
35
+ case 0: case 1: t = op; break;
36
+ case 4: _.label++; return { value: op[1], done: false };
37
+ case 5: _.label++; y = op[1]; op = [0]; continue;
38
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
39
+ default:
40
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
41
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
42
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
43
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
44
+ if (t[2]) _.ops.pop();
45
+ _.trys.pop(); continue;
46
+ }
47
+ op = body.call(thisArg, _);
48
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
49
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
50
+ }
51
+ };
52
+ import crypto from 'crypto';
53
+ import { BaseClient } from './client.js';
54
+ var EventsClient = /** @class */ (function (_super) {
55
+ __extends(EventsClient, _super);
56
+ function EventsClient(config) {
57
+ return _super.call(this, config) || this;
58
+ }
59
+ /**
60
+ * Ingest usage event in a CloudEvents format
61
+ * @see https://cloudevents.io
62
+ */
63
+ EventsClient.prototype.ingest = function (usageEvent, options) {
64
+ return __awaiter(this, void 0, void 0, function () {
65
+ var isBatch, cloudEvents, contentType, body;
66
+ return __generator(this, function (_a) {
67
+ switch (_a.label) {
68
+ case 0:
69
+ isBatch = Array.isArray(usageEvent);
70
+ cloudEvents = (isBatch ? usageEvent : [usageEvent]).map(function (ev) {
71
+ var _a, _b, _c, _d;
72
+ // Validate content type
73
+ if (ev.datacontenttype &&
74
+ ev.datacontenttype !== 'application/json') {
75
+ throw new TypeError("Unsupported datacontenttype: ".concat(ev.datacontenttype));
76
+ }
77
+ // We default where we can to lower the barrier to use CloudEvents
78
+ var cloudEvent = {
79
+ specversion: (_a = ev.specversion) !== null && _a !== void 0 ? _a : '1.0',
80
+ id: (_b = ev.id) !== null && _b !== void 0 ? _b : crypto.randomUUID(),
81
+ source: (_c = ev.source) !== null && _c !== void 0 ? _c : '@openmeter/sdk',
82
+ type: ev.type,
83
+ subject: ev.subject,
84
+ time: (_d = ev.time) === null || _d === void 0 ? void 0 : _d.toISOString(),
85
+ datacontenttype: ev.datacontenttype,
86
+ dataschema: ev.dataschema,
87
+ data: ev.data,
88
+ };
89
+ return cloudEvent;
90
+ });
91
+ contentType = isBatch ? 'application/cloudevents-batch+json' : 'application/cloudevents+json';
92
+ body = isBatch ? JSON.stringify(cloudEvents) : JSON.stringify(cloudEvents[0]);
93
+ return [4 /*yield*/, this.request({
94
+ path: '/api/v1/events',
95
+ method: 'POST',
96
+ body: body,
97
+ headers: {
98
+ 'Content-Type': contentType,
99
+ },
100
+ options: options,
101
+ })];
102
+ case 1:
103
+ // Making Request
104
+ return [2 /*return*/, _a.sent()];
105
+ }
106
+ });
107
+ });
108
+ };
109
+ /**
110
+ * List raw events
111
+ */
112
+ EventsClient.prototype.list = function (params, options) {
113
+ return __awaiter(this, void 0, void 0, function () {
114
+ var searchParams;
115
+ return __generator(this, function (_a) {
116
+ searchParams = params
117
+ ? BaseClient.toURLSearchParams(params)
118
+ : undefined;
119
+ return [2 /*return*/, this.request({
120
+ method: 'GET',
121
+ path: "/api/v1/events",
122
+ searchParams: searchParams,
123
+ options: options,
124
+ })];
125
+ });
126
+ });
127
+ };
128
+ return EventsClient;
129
+ }(BaseClient));
130
+ export { EventsClient };
131
+ //# sourceMappingURL=event.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event.js","sourceRoot":"","sources":["../../../clients/event.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,MAAM,MAAM,QAAQ,CAAA;AAE3B,OAAO,EAAkB,UAAU,EAAmB,MAAM,aAAa,CAAA;AAuEzE;IAAkC,gCAAU;IAC1C,sBAAY,MAAuB;QACjC,OAAA,MAAK,YAAC,MAAM,CAAC,SAAA;IACf,CAAC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G5E,qBAAM,IAAI,CAAC,OAAO,CAAC;gCACxB,IAAI,EAAE,gBAAgB;gCACtB,MAAM,EAAE,MAAM;gCACd,IAAI,MAAA;gCACJ,OAAO,EAAE;oCACP,cAAc,EAAE,WAAW;iCAC5B;gCACD,OAAO,SAAA;6BACR,CAAC,EAAA;;oBATF,iBAAiB;oBACjB,sBAAO,SAQL,EAAA;;;;KACH;IAED;;OAEG;IACU,2BAAI,GAAjB,UACE,MAA0B,EAC1B,OAAwB;;;;gBAElB,YAAY,GAAG,MAAM;oBACzB,CAAC,CAAC,UAAU,CAAC,iBAAiB,CAAC,MAAM,CAAC;oBACtC,CAAC,CAAC,SAAS,CAAA;gBACb,sBAAO,IAAI,CAAC,OAAO,CAAkB;wBACnC,MAAM,EAAE,KAAK;wBACb,IAAI,EAAE,gBAAgB;wBACtB,YAAY,cAAA;wBACZ,OAAO,SAAA;qBACR,CAAC,EAAA;;;KACH;IACH,mBAAC;AAAD,CAAC,AAzED,CAAkC,UAAU,GAyE3C"}
@@ -0,0 +1,136 @@
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
+ extendStatics(d, b);
12
+ function __() { this.constructor = d; }
13
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
+ };
15
+ })();
16
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
17
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
18
+ return new (P || (P = Promise))(function (resolve, reject) {
19
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
20
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
21
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
22
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
23
+ });
24
+ };
25
+ var __generator = (this && this.__generator) || function (thisArg, body) {
26
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
27
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
28
+ function verb(n) { return function (v) { return step([n, v]); }; }
29
+ function step(op) {
30
+ if (f) throw new TypeError("Generator is already executing.");
31
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
32
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
33
+ if (y = 0, t) op = [op[0] & 2, t.value];
34
+ switch (op[0]) {
35
+ case 0: case 1: t = op; break;
36
+ case 4: _.label++; return { value: op[1], done: false };
37
+ case 5: _.label++; y = op[1]; op = [0]; continue;
38
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
39
+ default:
40
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
41
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
42
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
43
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
44
+ if (t[2]) _.ops.pop();
45
+ _.trys.pop(); continue;
46
+ }
47
+ op = body.call(thisArg, _);
48
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
49
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
50
+ }
51
+ };
52
+ import { BaseClient } from './client.js';
53
+ export var WindowSize;
54
+ (function (WindowSize) {
55
+ WindowSize["MINUTE"] = "MINUTE";
56
+ WindowSize["HOUR"] = "HOUR";
57
+ WindowSize["DAY"] = "DAY";
58
+ })(WindowSize || (WindowSize = {}));
59
+ export var MeterAggregation;
60
+ (function (MeterAggregation) {
61
+ MeterAggregation["SUM"] = "SUM";
62
+ MeterAggregation["COUNT"] = "COUNT";
63
+ MeterAggregation["AVG"] = "AVG";
64
+ MeterAggregation["MIN"] = "MIN";
65
+ MeterAggregation["MAX"] = "MAX";
66
+ })(MeterAggregation || (MeterAggregation = {}));
67
+ var MetersClient = /** @class */ (function (_super) {
68
+ __extends(MetersClient, _super);
69
+ function MetersClient(config) {
70
+ return _super.call(this, config) || this;
71
+ }
72
+ /**
73
+ * Get one meter by slug
74
+ */
75
+ MetersClient.prototype.get = function (slug, options) {
76
+ return __awaiter(this, void 0, void 0, function () {
77
+ return __generator(this, function (_a) {
78
+ return [2 /*return*/, this.request({
79
+ method: 'GET',
80
+ path: "/api/v1/meters/".concat(slug),
81
+ options: options,
82
+ })];
83
+ });
84
+ });
85
+ };
86
+ /**
87
+ * List meters
88
+ */
89
+ MetersClient.prototype.list = function (options) {
90
+ return __awaiter(this, void 0, void 0, function () {
91
+ return __generator(this, function (_a) {
92
+ return [2 /*return*/, this.request({
93
+ method: 'GET',
94
+ path: "/api/v1/meters",
95
+ options: options,
96
+ })];
97
+ });
98
+ });
99
+ };
100
+ /**
101
+ * Query a meter
102
+ */
103
+ MetersClient.prototype.query = function (slug, params, options) {
104
+ return __awaiter(this, void 0, void 0, function () {
105
+ var searchParams;
106
+ return __generator(this, function (_a) {
107
+ searchParams = params
108
+ ? BaseClient.toURLSearchParams(params)
109
+ : undefined;
110
+ return [2 /*return*/, this.request({
111
+ method: 'GET',
112
+ path: "/api/v1/meters/".concat(slug, "/query"),
113
+ searchParams: searchParams,
114
+ options: options,
115
+ })];
116
+ });
117
+ });
118
+ };
119
+ /**
120
+ * List subjects of a meter
121
+ */
122
+ MetersClient.prototype.subjects = function (slug, options) {
123
+ return __awaiter(this, void 0, void 0, function () {
124
+ return __generator(this, function (_a) {
125
+ return [2 /*return*/, this.request({
126
+ method: 'GET',
127
+ path: "/api/v1/meters/".concat(slug, "/subjects"),
128
+ options: options,
129
+ })];
130
+ });
131
+ });
132
+ };
133
+ return MetersClient;
134
+ }(BaseClient));
135
+ export { MetersClient };
136
+ //# sourceMappingURL=meter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meter.js","sourceRoot":"","sources":["../../../clients/meter.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EAAE,UAAU,EAAmC,MAAM,aAAa,CAAA;AAEzE,MAAM,CAAN,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,+BAAiB,CAAA;IACjB,2BAAa,CAAA;IACb,yBAAW,CAAA;AACb,CAAC,EAJW,UAAU,KAAV,UAAU,QAIrB;AAED,MAAM,CAAN,IAAY,gBAMX;AAND,WAAY,gBAAgB;IAC1B,+BAAW,CAAA;IACX,mCAAe,CAAA;IACf,+BAAW,CAAA;IACX,+BAAW,CAAA;IACX,+BAAW,CAAA;AACb,CAAC,EANW,gBAAgB,KAAhB,gBAAgB,QAM3B;AAgDD;IAAkC,gCAAU;IAC1C,sBAAY,MAAuB;QACjC,OAAA,MAAK,YAAC,MAAM,CAAC,SAAA;IACf,CAAC;IAED;;OAEG;IACU,0BAAG,GAAhB,UAAiB,IAAY,EAAE,OAAwB;;;gBACrD,sBAAO,IAAI,CAAC,OAAO,CAAQ;wBACzB,MAAM,EAAE,KAAK;wBACb,IAAI,EAAE,yBAAkB,IAAI,CAAE;wBAC9B,OAAO,SAAA;qBACR,CAAC,EAAA;;;KACH;IAED;;OAEG;IACU,2BAAI,GAAjB,UAAkB,OAAwB;;;gBACxC,sBAAO,IAAI,CAAC,OAAO,CAAU;wBAC3B,MAAM,EAAE,KAA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