@openmeter/sdk 1.0.0-beta.2 → 1.0.0-beta.4

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.
@@ -28,7 +28,7 @@ export declare class BaseClient {
28
28
  }): Promise<T>;
29
29
  protected getUrl(path: string, searchParams?: URLSearchParams): import("url").URL;
30
30
  protected getAuthHeaders(): IncomingHttpHeaders;
31
- protected static toURLSearchParams(params: Record<string, string | number | Date | string[]>): URLSearchParams;
31
+ protected static toURLSearchParams(params: Record<string, string | number | Date | string[] | undefined>): URLSearchParams;
32
32
  }
33
33
  export declare class HttpError extends Error {
34
34
  statusCode: number;
@@ -42,7 +42,7 @@ export class BaseClient {
42
42
  });
43
43
  }
44
44
  // Response parsing
45
- if (resp.statusCode === 204) {
45
+ if (resp.statusCode === 204 || resp.headers['content-length'] === '0') {
46
46
  return undefined;
47
47
  }
48
48
  if (resp.headers['content-type'] === 'application/json') {
@@ -76,6 +76,9 @@ export class BaseClient {
76
76
  static toURLSearchParams(params) {
77
77
  const searchParams = new URLSearchParams();
78
78
  for (const [key, value] of Object.entries(params)) {
79
+ if (value === undefined) {
80
+ continue;
81
+ }
79
82
  if (Array.isArray(value)) {
80
83
  searchParams.append(key, value.join(','));
81
84
  }
@@ -256,7 +256,7 @@ export interface operations {
256
256
  };
257
257
  responses: {
258
258
  /** @description OK */
259
- 200: {
259
+ 204: {
260
260
  content: never;
261
261
  };
262
262
  400: components["responses"]["BadRequestProblemResponse"];
@@ -1 +1 @@
1
- {"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.es2021.d.ts","../node_modules/typescript/lib/lib.es2022.d.ts","../node_modules/typescript/lib/lib.es2023.d.ts","../node_modules/typescript/lib/lib.esnext.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/typescript/lib/lib.es2021.promise.d.ts","../node_modules/typescript/lib/lib.es2021.string.d.ts","../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../node_modules/typescript/lib/lib.es2021.intl.d.ts","../node_modules/typescript/lib/lib.es2022.array.d.ts","../node_modules/typescript/lib/lib.es2022.error.d.ts","../node_modules/typescript/lib/lib.es2022.intl.d.ts","../node_modules/typescript/lib/lib.es2022.object.d.ts","../node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2022.string.d.ts","../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../node_modules/typescript/lib/lib.es2023.array.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/typescript/lib/lib.decorators.d.ts","../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../node_modules/undici/types/header.d.ts","../node_modules/undici/types/readable.d.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/assert/strict.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/dns/promises.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/dom-events.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/readline/promises.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/stream/promises.d.ts","../node_modules/@types/node/stream/consumers.d.ts","../node_modules/@types/node/stream/web.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/test.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/timers/promises.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/globals.global.d.ts","../node_modules/@types/node/index.d.ts","../node_modules/undici/types/file.d.ts","../node_modules/undici/types/fetch.d.ts","../node_modules/undici/types/formdata.d.ts","../node_modules/undici/types/connector.d.ts","../node_modules/undici/types/client.d.ts","../node_modules/undici/types/errors.d.ts","../node_modules/undici/types/dispatcher.d.ts","../node_modules/undici/types/global-dispatcher.d.ts","../node_modules/undici/types/global-origin.d.ts","../node_modules/undici/types/pool-stats.d.ts","../node_modules/undici/types/pool.d.ts","../node_modules/undici/types/handlers.d.ts","../node_modules/undici/types/balanced-pool.d.ts","../node_modules/undici/types/agent.d.ts","../node_modules/undici/types/mock-interceptor.d.ts","../node_modules/undici/types/mock-agent.d.ts","../node_modules/undici/types/mock-client.d.ts","../node_modules/undici/types/mock-pool.d.ts","../node_modules/undici/types/mock-errors.d.ts","../node_modules/undici/types/proxy-agent.d.ts","../node_modules/undici/types/api.d.ts","../node_modules/undici/types/cookies.d.ts","../node_modules/undici/types/patch.d.ts","../node_modules/undici/types/filereader.d.ts","../node_modules/undici/types/diagnostics-channel.d.ts","../node_modules/undici/types/websocket.d.ts","../node_modules/undici/types/content-type.d.ts","../node_modules/undici/types/cache.d.ts","../node_modules/undici/types/interceptors.d.ts","../node_modules/undici/index.d.ts","../schemas/openapi.ts","../clients/client.ts","../clients/event.ts","../clients/meter.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/@types/eslint/helpers.d.ts","../node_modules/@types/estree/index.d.ts","../node_modules/@types/json-schema/index.d.ts","../node_modules/@types/eslint/index.d.ts","../node_modules/@types/json5/index.d.ts","../node_modules/@types/node-fetch/node_modules/form-data/index.d.ts","../node_modules/@types/node-fetch/externals.d.ts","../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":[{"version":"f59215c5f1d886b05395ee7aca73e0ac69ddfad2843aa88530e797879d511bad","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","dc48272d7c333ccf58034c0026162576b7d50ea0e69c3b9292f803fc20720fd5","27147504487dc1159369da4f4da8a26406364624fa9bc3db632f7d94a5bae2c3","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","5514e54f17d6d74ecefedc73c504eadffdeda79c7ea205cf9febead32d45c4bc","f4e736d6c8d69ae5b3ab0ddfcaa3dc365c3e76909d6660af5b4e979b3934ac20","eeeb3aca31fbadef8b82502484499dfd1757204799a6f5b33116201c810676ec",{"version":"9d9885c728913c1d16e0d2831b40341d6ad9a0ceecaabc55209b306ad9c736a5","affectsGlobalScope":true},{"version":"17bea081b9c0541f39dd1ae9bc8c78bdd561879a682e60e2f25f688c0ecab248","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"ab22100fdd0d24cfc2cc59d0a00fc8cf449830d9c4030dc54390a46bd562e929","affectsGlobalScope":true},{"version":"f7bd636ae3a4623c503359ada74510c4005df5b36de7f23e1db8a5c543fd176b","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"0c20f4d2358eb679e4ae8a4432bdd96c857a2960fd6800b21ec4008ec59d60ea","affectsGlobalScope":true},{"version":"36ae84ccc0633f7c0787bc6108386c8b773e95d3b052d9464a99cd9b8795fbec","affectsGlobalScope":true},{"version":"82d0d8e269b9eeac02c3bd1c9e884e85d483fcb2cd168bccd6bc54df663da031","affectsGlobalScope":true},{"version":"b8deab98702588840be73d67f02412a2d45a417a3c097b2e96f7f3a42ac483d1","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"376d554d042fb409cb55b5cbaf0b2b4b7e669619493c5d18d5fa8bd67273f82a","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"c4138a3dd7cd6cf1f363ca0f905554e8d81b45844feea17786cdf1626cb8ea06","affectsGlobalScope":true},{"version":"6ff3e2452b055d8f0ec026511c6582b55d935675af67cdb67dd1dc671e8065df","affectsGlobalScope":true},{"version":"03de17b810f426a2f47396b0b99b53a82c1b60e9cba7a7edda47f9bb077882f4","affectsGlobalScope":true},{"version":"8184c6ddf48f0c98429326b428478ecc6143c27f79b79e85740f17e6feb090f1","affectsGlobalScope":true},{"version":"261c4d2cf86ac5a89ad3fb3fafed74cbb6f2f7c1d139b0540933df567d64a6ca","affectsGlobalScope":true},{"version":"6af1425e9973f4924fca986636ac19a0cf9909a7e0d9d3009c349e6244e957b6","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"15a630d6817718a2ddd7088c4f83e4673fde19fa992d2eae2cf51132a302a5d3","affectsGlobalScope":true},{"version":"f06948deb2a51aae25184561c9640fb66afeddb34531a9212d011792b1d19e0a","affectsGlobalScope":true},{"version":"01e0ee7e1f661acedb08b51f8a9b7d7f959e9cdb6441360f06522cc3aea1bf2e","affectsGlobalScope":true},{"version":"ac17a97f816d53d9dd79b0d235e1c0ed54a8cc6a0677e9a3d61efb480b2a3e4e","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"ec0104fee478075cb5171e5f4e3f23add8e02d845ae0165bfa3f1099241fa2aa","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"9cc66b0513ad41cb5f5372cca86ef83a0d37d1c1017580b7dace3ea5661836df","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"709efdae0cb5df5f49376cde61daacc95cdd44ae4671da13a540da5088bf3f30","affectsGlobalScope":true},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true},{"version":"61ed9b6d07af959e745fb11f9593ecd743b279418cc8a99448ea3cd5f3b3eb22","affectsGlobalScope":true},{"version":"038a2f66a34ee7a9c2fbc3584c8ab43dff2995f8c68e3f566f4c300d2175e31e","affectsGlobalScope":true},{"version":"4fa6ed14e98aa80b91f61b9805c653ee82af3502dc21c9da5268d3857772ca05","affectsGlobalScope":true},{"version":"f5c92f2c27b06c1a41b88f6db8299205aee52c2a2943f7ed29bd585977f254e8","affectsGlobalScope":true},{"version":"930b0e15811f84e203d3c23508674d5ded88266df4b10abee7b31b2ac77632d2","affectsGlobalScope":true},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true},{"version":"b9ea5778ff8b50d7c04c9890170db34c26a5358cccba36844fe319f50a43a61a","affectsGlobalScope":true},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true},{"version":"50d53ccd31f6667aff66e3d62adf948879a3a16f05d89882d1188084ee415bbc","affectsGlobalScope":true},{"version":"25de46552b782d43cb7284df22fe2a265de387cf0248b747a7a1b647d81861f6","affectsGlobalScope":true},{"version":"307c8b7ebbd7f23a92b73a4c6c0a697beca05b06b036c23a34553e5fe65e4fdc","affectsGlobalScope":true},{"version":"189c0703923150aa30673fa3de411346d727cc44a11c75d05d7cf9ef095daa22","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","7180c03fd3cb6e22f911ce9ba0f8a7008b1a6ddbe88ccf16a9c8140ef9ac1686","587f13f1e8157bd8cec0adda0de4ef558bb8573daa9d518d1e2af38e87ecc91f","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"d32f90e6cf32e99c86009b5f79fa50bc750fe54e17137d9bb029c377a2822ee2","affectsGlobalScope":true},"7a435e0c814f58f23e9a0979045ec0ef5909aac95a70986e8bcce30c27dff228",{"version":"c81c51f43e343b6d89114b17341fb9d381c4ccbb25e0ee77532376052c801ba7","affectsGlobalScope":true},"3dd49afd822c82b63b3905a13e22240f34cf367aea4f4dd0e6564f4bddcb8370","57135ce61976a8b1dadd01bb412406d1805b90db6e8ecb726d0d78e0b5f76050",{"version":"49479e21a040c0177d1b1bc05a124c0383df7a08a0726ad4d9457619642e875a","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","f302f3a47d7758f67f2afc753b9375d6504dde05d2e6ecdb1df50abbb131fc89","93db4c949a785a3dbef7f5e08523be538e468c580dd276178b818e761b3b68cd","5b1c0a23f464f894e7c2b2b6c56df7b9afa60ed48c5345f8618d389a636b2108","be2b092f2765222757c6441b86c53a5ea8dfed47bbc43eab4c5fe37942c866b3","8e6b05abc98adba15e1ac78e137c64576c74002e301d682e66feb77a23907ab8","1ca735bb3d407b2af4fbee7665f3a0a83be52168c728cc209755060ba7ed67bd",{"version":"6b526a5ec4a401ca7c26cfe6a48e641d8f30af76673bad3b06a1b4504594a960","affectsGlobalScope":true},{"version":"6e335a70826a634c5a1a1fa36a2dacbf3712ef2be7a517540ae1de8a1e8ea4f6","affectsGlobalScope":true},"7a2ba0c9af860ac3e77b35ed01fd96d15986f17aa22fe40f188ae556fb1070df","df8529626079d6f9d5d3cd7b6fb7db9cda5a3118d383d8cd46c52aadb59593e7","55709608060f77965c270ac10ac646286589f1bd1cb174fff1778a2dd9a7ef31","3122a3f1136508a27a229e0e4e2848299028300ffa11d0cdfe99df90c492fe20","42b40e40f2a358cda332456214fad311e1806a6abf3cebaaac72496e07556642","354612fe1d49ecc9551ea3a27d94eef2887b64ef4a71f72ca444efe0f2f0ba80",{"version":"ac0c77cd7db52b3c278bdd1452ce754014835493d05b84535f46854fdc2063b2","affectsGlobalScope":true},"fe6dba0e8c69f2b244e3da38e53dd2cc9e51b2543e647e805396af73006613f7","5e2b91328a540a0933ab5c2203f4358918e6f0fe7505d22840a891a6117735f1","3abc3512fa04aa0230f59ea1019311fd8667bd935d28306311dccc8b17e79d5d",{"version":"5810080a0da989a944d3b691b7b479a4a13c75947fb538abb8070710baa5ccee","affectsGlobalScope":true},{"version":"19da7150ca062323b1db6311a6ef058c9b0a39cc64d836b5e9b75d301869653b","affectsGlobalScope":true},"1349077576abb41f0e9c78ec30762ff75b710208aff77f5fdcc6a8c8ce6289dd","e2ce82603102b5c0563f59fb40314cc1ff95a4d521a66ad14146e130ea80d89c","a3e0395220255a350aa9c6d56f882bfcb5b85c19fddf5419ec822cf22246a26d","c27b01e8ddff5cd280711af5e13aecd9a3228d1c256ea797dd64f8fdec5f7df5","898840e876dfd21843db9f2aa6ae38ba2eab550eb780ff62b894b9fbfebfae6b","8bbe7e6c5844e38754c041b52e3d90f7bbd5a0d60739daf30805c92e4f0c65c6","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff","785e5be57d4f20f290a20e7b0c6263f6c57fd6e51283050756cef07d6d651c68","44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","164deb2409ac5f4da3cd139dbcee7f7d66753d90363a4d7e2db8d8874f272270",{"version":"99822adc2defda34dc1b28b727577ec7c098d878d713157dbe90d212c6bf5e58","affectsGlobalScope":true},{"version":"8a985c7d30aea82342d5017730b546bb2b734fe37a2684ca55d4734deb019d58","affectsGlobalScope":true},"ad08154d9602429522cac965a715fde27d421d69b24756c5d291877dda75353e","5bc85813bfcb6907cc3a960fec8734a29d7884e0e372515147720c5991b8bc22","812b25f798033c202baedf386a1ccc41f9191b122f089bffd10fdccce99fba11","993325544790073f77e945bee046d53988c0bc3ac5695c9cf8098166feb82661",{"version":"4d06f3abc2a6aae86f1be39e397372f74fb6e7964f594d645926b4a3419cc15d","affectsGlobalScope":true},{"version":"0e08c360c9b5961ecb0537b703e253842b3ded53151ee07024148219b61a8baf","affectsGlobalScope":true},"2ce2210032ccaff7710e2abf6a722e62c54960458e73e356b6a365c93ab6ca66","92db194ef7d208d5e4b6242a3434573fd142a621ff996d84cc9dbba3553277d0","16a3080e885ed52d4017c902227a8d0d8daf723d062bec9e45627c6fdcd6699b",{"version":"0bd9543cd8fc0959c76fb8f4f5a26626c2ed62ef4be98fd857bce268066db0a2","affectsGlobalScope":true},"1ca6858a0cbcd74d7db72d7b14c5360a928d1d16748a55ecfa6bfaff8b83071b",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"4905d61a3e1e9b12e12dbf8660fc8d2f085734da6da8d725f395bf41a04853d6","25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","54cb85a47d760da1c13c00add10d26b5118280d44d58e6908d8e89abbd9d7725","3e4825171442666d31c845aeb47fcd34b62e14041bb353ae2b874285d78482aa","adda9e3915c6bf15e360356a41d950881a51dbe44f9a6088155836b040820663","4bbbb97e15ac9616ba78725207dbb9a9d9438b8bfa184b65d70112b30ca516ad","e9775e97ac4877aebf963a0289c81abe76d1ec9a2a7778dbe637e5151f25c5f3","1bd99228e651f639fe9df587bafa0b148f1a306b4e7b460376c510db02073eb1","cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","db3435f3525cd785bf21ec6769bf8da7e8a776be1a99e2e7efb5f244a2ef5fee","c3b170c45fc031db31f782e612adf7314b167e60439d304b49e704010e7bafe5","40383ebef22b943d503c6ce2cb2e060282936b952a01bea5f9f493d5fb487cc7","80ad053918e96087d9da8d092ff9f90520c9fc199c8bfd9340266dd8f38f364e","3a84b7cb891141824bd00ef8a50b6a44596aded4075da937f180c90e362fe5f6","13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","33203609eba548914dc83ddf6cadbc0bcb6e8ef89f6d648ca0908ae887f9fcc5","0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","e53a3c2a9f624d90f24bf4588aacd223e7bec1b9d0d479b68d2f4a9e6011147f","339dc5265ee5ed92e536a93a04c4ebbc2128f45eeec6ed29f379e0085283542c","9f0a92164925aa37d4a5d9dd3e0134cff8177208dba55fd2310cd74beea40ee2","8bfdb79bf1a9d435ec48d9372dc93291161f152c0865b81fc0b2694aedb4578d","2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","d32275be3546f252e3ad33976caf8c5e842c09cb87d468cb40d5f4cf092d1acc","9d2ebbab3db7e91d5c2eee84685f083e7e4c08df5f2f4b1df2f55f645983b751",{"version":"de1444e653a573e317587796555089f46b93b86ab0548ddb7a52e6c626b0ee9b","signature":"251f776f818ba92a0321286f846a8804d0d2dbc134f0120c718c51eb019885f4"},{"version":"0c444d553a747cab05f54dfcdbfd3b9290899d907e1ff3a41355da7c18b3e205","signature":"4c9c1b1f1cea50c1caad50b629e148907f5113336581aa6feb7e071c41c3d2d6"},{"version":"b77267f7d512c8907f62385d4026e6d0fe910ca969ea307a5b082727796bac88","signature":"58641dadb14bb103c9c1698e12793672a83a10ea16bc3233b471f02c2b2bbf86"},{"version":"723606d1752ea8e7f10bd098b2d9fbd9fc66a9e89226462d7dd0a350566814a1","signature":"70801bf6a8c0af00d101e2cfd60e9337e197ff3fb2391780a89b6126281c492d"},{"version":"1e3c9e61b17033b45368b1f2c6c027b78d87fefb5d5ae7aaab51d95af1b624ca","signature":"a2f908045e736468d8739c0ffac376530c052f56374a1bc82541bc41c2fe32bc"},{"version":"67502f9fce1bd8df61e11c504d4c1403c6d82feafe7c3db23b37b828baf8b64c","signature":"28b476282d034db3369ee11b90c5870b37ae156a523f80098c81cc0786cc899f"},{"version":"8451db8c7b7c168c0826ee34fe84376c2f922a0ee4b60aef3d505fe434a9b898","signature":"034fd5b38e44b4302935037f69d3888fdeb7a15bfebf5ee33a375cf4d92823ed"},{"version":"c3bc5d095c3c22fd20b5a6550b9c9a6d56c3ffbb87ef057ccce7764b6bed4428","affectsGlobalScope":true},{"version":"f4c0db3a49cea9babd5d224ba14243a6a6119bf65a65198994033aaea3a60a71","affectsGlobalScope":true},{"version":"64d4b35c5456adf258d2cf56c341e203a073253f229ef3208fc0d5020253b241","affectsGlobalScope":true},"bee89e1eb6425eb49894f3f25e4562dc2564e84e5aa7610b7e13d8ecddf8f5db","dca41e86e89dfb2e85e6935260250f02eb6683b86c2fa16bec729ddd1bcd9b4b","38130105639567286970d255e8f246dea9518995a8061208bfd728dfa57bb9c6","96d14f21b7652903852eef49379d04dbda28c16ed36468f8c9fa08f7c14c9538","736097ddbb2903bef918bb3b5811ef1c9c5656f2a73bd39b22a91b9cc2525e50","626bccaba2f61f03abe558a39501631565389a748bc47dd52b305c80176333c1","3663d1b50f356656a314e5df169bb51cb9d5fd75905fa703f75db6bb32030568","2b93035328f7778d200252681c1d86285d501ed424825a18f81e4c3028aa51d9","2ac9c8332c5f8510b8bdd571f8271e0f39b0577714d5e95c1e79a12b2616f069","42c21aa963e7b86fa00801d96e88b36803188018d5ad91db2a9101bccd40b3ff","d31eb848cdebb4c55b4893b335a7c0cca95ad66dee13cbb7d0893810c0a9c301","b9f96255e1048ed2ea33ec553122716f0e57fc1c3ad778e9aa15f5b46547bd23","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":[[146,152]],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"module":99,"outDir":"./","skipLibCheck":true,"strict":true,"target":9},"fileIdsList":[[81,108,145,146],[71,108,146,147],[108,146,147],[108,147,148,149],[108,153],[108],[108,155,156,157],[81,107,108,115,160,161],[81,96,108,115],[62,108],[65,108],[66,71,99,108],[67,78,79,86,96,107,108],[67,68,78,86,108],[69,108],[70,71,79,87,108],[71,96,104,108],[72,74,78,86,108],[73,108],[74,75,108],[78,108],[76,78,108],[78,79,80,96,107,108],[78,79,80,93,96,99,108],[108,112],[74,78,81,86,96,107,108],[78,79,81,82,86,96,104,107,108],[81,83,96,104,107,108],[62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,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],[78,84,108],[85,107,108],[74,78,86,96,108],[87,108],[88,108],[65,89,108],[90,106,108,112],[91,108],[92,108],[78,93,94,108],[93,95,108,110],[66,78,96,97,98,99,108],[66,96,98,108],[96,97,108],[99,108],[100,108],[65,96,108],[78,102,103,108],[102,103,108],[71,86,96,104,108],[105,108],[86,106,108],[66,81,92,107,108],[71,108],[96,108,109],[108,110],[108,111],[66,71,78,80,89,96,107,108,110,112],[96,108,113],[108,163,202],[108,163,187,202],[108,202],[108,163],[108,163,188,202],[108,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201],[108,188,202],[108,116,117,118,119,120,121,122,123,124,126,127,128,129,130,131,132,133,134,135,136,137,139,140,141,142,143,144],[107,108,122,126],[96,107,108,122],[108,117],[104,107,108,119,122],[86,104,108],[108,115],[108,115,117],[86,107,108,119,122],[60,61,66,78,96,107,108,118,121],[60,108,120],[66,99,107,108,115,118,122],[66,108,115],[66,108,115,138],[108,115,116,117],[108,122],[108,122,129,130],[108,120,122,130,131],[108,121],[60,108,117,122],[108,122,126,130,131],[108,126],[107,108,120,122,125],[60,108,119,120,122,126,129],[66,96,108],[66,108,112,115,117,122,138],[108,145,151],[108,150],[81,107,145,146],[147],[146,147],[147,148,149],[145],[150]],"referencedMap":[[147,1],[148,2],[149,3],[150,4],[154,5],[153,6],[155,6],[158,7],[156,6],[157,6],[159,6],[161,6],[162,8],[160,9],[62,10],[63,10],[65,11],[66,12],[67,13],[68,14],[69,15],[70,16],[71,17],[72,18],[73,19],[74,20],[75,20],[77,21],[76,22],[78,21],[79,23],[80,24],[64,25],[114,6],[81,26],[82,27],[83,28],[115,29],[84,30],[85,31],[86,32],[87,33],[88,34],[89,35],[90,36],[91,37],[92,38],[93,39],[94,39],[95,40],[96,41],[98,42],[97,43],[99,44],[100,45],[101,46],[102,47],[103,48],[104,49],[105,50],[106,51],[107,52],[108,53],[109,54],[110,55],[111,56],[112,57],[113,58],[187,59],[188,60],[163,61],[166,61],[185,59],[186,59],[176,59],[175,62],[173,59],[168,59],[181,59],[179,59],[183,59],[167,59],[180,59],[184,59],[169,59],[170,59],[182,59],[164,59],[171,59],[172,59],[174,59],[178,59],[189,63],[177,59],[165,59],[202,64],[201,6],[196,63],[198,65],[197,63],[190,63],[191,63],[193,63],[195,63],[199,65],[200,65],[192,65],[194,65],[58,6],[59,6],[13,6],[12,6],[2,6],[14,6],[15,6],[16,6],[17,6],[18,6],[19,6],[20,6],[21,6],[3,6],[4,6],[25,6],[22,6],[23,6],[24,6],[26,6],[27,6],[28,6],[5,6],[29,6],[30,6],[31,6],[32,6],[6,6],[36,6],[33,6],[34,6],[35,6],[37,6],[7,6],[38,6],[43,6],[44,6],[39,6],[40,6],[41,6],[42,6],[8,6],[48,6],[45,6],[46,6],[47,6],[49,6],[9,6],[50,6],[51,6],[52,6],[55,6],[53,6],[54,6],[56,6],[10,6],[1,6],[11,6],[57,6],[145,66],[129,67],[136,68],[128,67],[143,69],[120,70],[119,71],[142,72],[137,73],[140,74],[122,75],[121,76],[117,77],[116,78],[139,79],[118,80],[123,81],[124,6],[127,81],[60,6],[144,81],[131,82],[132,83],[134,84],[130,85],[133,86],[138,72],[125,87],[126,88],[135,89],[61,90],[141,91],[146,6],[152,92],[151,93]],"exportedModulesMap":[[147,94],[148,95],[149,96],[150,97],[154,5],[153,6],[155,6],[158,7],[156,6],[157,6],[159,6],[161,6],[162,8],[160,9],[62,10],[63,10],[65,11],[66,12],[67,13],[68,14],[69,15],[70,16],[71,17],[72,18],[73,19],[74,20],[75,20],[77,21],[76,22],[78,21],[79,23],[80,24],[64,25],[114,6],[81,26],[82,27],[83,28],[115,29],[84,30],[85,31],[86,32],[87,33],[88,34],[89,35],[90,36],[91,37],[92,38],[93,39],[94,39],[95,40],[96,41],[98,42],[97,43],[99,44],[100,45],[101,46],[102,47],[103,48],[104,49],[105,50],[106,51],[107,52],[108,53],[109,54],[110,55],[111,56],[112,57],[113,58],[187,59],[188,60],[163,61],[166,61],[185,59],[186,59],[176,59],[175,62],[173,59],[168,59],[181,59],[179,59],[183,59],[167,59],[180,59],[184,59],[169,59],[170,59],[182,59],[164,59],[171,59],[172,59],[174,59],[178,59],[189,63],[177,59],[165,59],[202,64],[201,6],[196,63],[198,65],[197,63],[190,63],[191,63],[193,63],[195,63],[199,65],[200,65],[192,65],[194,65],[58,6],[59,6],[13,6],[12,6],[2,6],[14,6],[15,6],[16,6],[17,6],[18,6],[19,6],[20,6],[21,6],[3,6],[4,6],[25,6],[22,6],[23,6],[24,6],[26,6],[27,6],[28,6],[5,6],[29,6],[30,6],[31,6],[32,6],[6,6],[36,6],[33,6],[34,6],[35,6],[37,6],[7,6],[38,6],[43,6],[44,6],[39,6],[40,6],[41,6],[42,6],[8,6],[48,6],[45,6],[46,6],[47,6],[49,6],[9,6],[50,6],[51,6],[52,6],[55,6],[53,6],[54,6],[56,6],[10,6],[1,6],[11,6],[57,6],[145,66],[129,67],[136,68],[128,67],[143,69],[120,70],[119,71],[142,72],[137,73],[140,74],[122,75],[121,76],[117,77],[116,78],[139,79],[118,80],[123,81],[124,6],[127,81],[60,6],[144,81],[131,82],[132,83],[134,84],[130,85],[133,86],[138,72],[125,87],[126,88],[135,89],[61,90],[141,91],[152,98],[151,99]],"semanticDiagnosticsPerFile":[147,148,149,150,154,153,155,158,156,157,159,161,162,160,62,63,65,66,67,68,69,70,71,72,73,74,75,77,76,78,79,80,64,114,81,82,83,115,84,85,86,87,88,89,90,91,92,93,94,95,96,98,97,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,187,188,163,166,185,186,176,175,173,168,181,179,183,167,180,184,169,170,182,164,171,172,174,178,189,177,165,202,201,196,198,197,190,191,193,195,199,200,192,194,58,59,13,12,2,14,15,16,17,18,19,20,21,3,4,25,22,23,24,26,27,28,5,29,30,31,32,6,36,33,34,35,37,7,38,43,44,39,40,41,42,8,48,45,46,47,49,9,50,51,52,55,53,54,56,10,1,11,57,145,129,136,128,143,120,119,142,137,140,122,121,117,116,139,118,123,124,127,60,144,131,132,134,130,133,138,125,126,135,61,141,146,152,151]},"version":"5.1.6"}
1
+ {"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.es2021.d.ts","../node_modules/typescript/lib/lib.es2022.d.ts","../node_modules/typescript/lib/lib.es2023.d.ts","../node_modules/typescript/lib/lib.esnext.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/typescript/lib/lib.es2021.promise.d.ts","../node_modules/typescript/lib/lib.es2021.string.d.ts","../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../node_modules/typescript/lib/lib.es2021.intl.d.ts","../node_modules/typescript/lib/lib.es2022.array.d.ts","../node_modules/typescript/lib/lib.es2022.error.d.ts","../node_modules/typescript/lib/lib.es2022.intl.d.ts","../node_modules/typescript/lib/lib.es2022.object.d.ts","../node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2022.string.d.ts","../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../node_modules/typescript/lib/lib.es2023.array.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/typescript/lib/lib.decorators.d.ts","../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../node_modules/undici/types/header.d.ts","../node_modules/undici/types/readable.d.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/assert/strict.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/dns/promises.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/dom-events.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/readline/promises.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/stream/promises.d.ts","../node_modules/@types/node/stream/consumers.d.ts","../node_modules/@types/node/stream/web.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/test.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/timers/promises.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/globals.global.d.ts","../node_modules/@types/node/index.d.ts","../node_modules/undici/types/file.d.ts","../node_modules/undici/types/fetch.d.ts","../node_modules/undici/types/formdata.d.ts","../node_modules/undici/types/connector.d.ts","../node_modules/undici/types/client.d.ts","../node_modules/undici/types/errors.d.ts","../node_modules/undici/types/dispatcher.d.ts","../node_modules/undici/types/global-dispatcher.d.ts","../node_modules/undici/types/global-origin.d.ts","../node_modules/undici/types/pool-stats.d.ts","../node_modules/undici/types/pool.d.ts","../node_modules/undici/types/handlers.d.ts","../node_modules/undici/types/balanced-pool.d.ts","../node_modules/undici/types/agent.d.ts","../node_modules/undici/types/mock-interceptor.d.ts","../node_modules/undici/types/mock-agent.d.ts","../node_modules/undici/types/mock-client.d.ts","../node_modules/undici/types/mock-pool.d.ts","../node_modules/undici/types/mock-errors.d.ts","../node_modules/undici/types/proxy-agent.d.ts","../node_modules/undici/types/api.d.ts","../node_modules/undici/types/cookies.d.ts","../node_modules/undici/types/patch.d.ts","../node_modules/undici/types/filereader.d.ts","../node_modules/undici/types/diagnostics-channel.d.ts","../node_modules/undici/types/websocket.d.ts","../node_modules/undici/types/content-type.d.ts","../node_modules/undici/types/cache.d.ts","../node_modules/undici/types/interceptors.d.ts","../node_modules/undici/index.d.ts","../schemas/openapi.ts","../clients/client.ts","../clients/event.ts","../clients/meter.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/@types/eslint/helpers.d.ts","../node_modules/@types/estree/index.d.ts","../node_modules/@types/json-schema/index.d.ts","../node_modules/@types/eslint/index.d.ts","../node_modules/@types/json5/index.d.ts","../node_modules/@types/node-fetch/node_modules/form-data/index.d.ts","../node_modules/@types/node-fetch/externals.d.ts","../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":[{"version":"f59215c5f1d886b05395ee7aca73e0ac69ddfad2843aa88530e797879d511bad","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","dc48272d7c333ccf58034c0026162576b7d50ea0e69c3b9292f803fc20720fd5","27147504487dc1159369da4f4da8a26406364624fa9bc3db632f7d94a5bae2c3","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","5514e54f17d6d74ecefedc73c504eadffdeda79c7ea205cf9febead32d45c4bc","f4e736d6c8d69ae5b3ab0ddfcaa3dc365c3e76909d6660af5b4e979b3934ac20","eeeb3aca31fbadef8b82502484499dfd1757204799a6f5b33116201c810676ec",{"version":"9d9885c728913c1d16e0d2831b40341d6ad9a0ceecaabc55209b306ad9c736a5","affectsGlobalScope":true},{"version":"17bea081b9c0541f39dd1ae9bc8c78bdd561879a682e60e2f25f688c0ecab248","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"ab22100fdd0d24cfc2cc59d0a00fc8cf449830d9c4030dc54390a46bd562e929","affectsGlobalScope":true},{"version":"f7bd636ae3a4623c503359ada74510c4005df5b36de7f23e1db8a5c543fd176b","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"0c20f4d2358eb679e4ae8a4432bdd96c857a2960fd6800b21ec4008ec59d60ea","affectsGlobalScope":true},{"version":"36ae84ccc0633f7c0787bc6108386c8b773e95d3b052d9464a99cd9b8795fbec","affectsGlobalScope":true},{"version":"82d0d8e269b9eeac02c3bd1c9e884e85d483fcb2cd168bccd6bc54df663da031","affectsGlobalScope":true},{"version":"b8deab98702588840be73d67f02412a2d45a417a3c097b2e96f7f3a42ac483d1","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"376d554d042fb409cb55b5cbaf0b2b4b7e669619493c5d18d5fa8bd67273f82a","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"c4138a3dd7cd6cf1f363ca0f905554e8d81b45844feea17786cdf1626cb8ea06","affectsGlobalScope":true},{"version":"6ff3e2452b055d8f0ec026511c6582b55d935675af67cdb67dd1dc671e8065df","affectsGlobalScope":true},{"version":"03de17b810f426a2f47396b0b99b53a82c1b60e9cba7a7edda47f9bb077882f4","affectsGlobalScope":true},{"version":"8184c6ddf48f0c98429326b428478ecc6143c27f79b79e85740f17e6feb090f1","affectsGlobalScope":true},{"version":"261c4d2cf86ac5a89ad3fb3fafed74cbb6f2f7c1d139b0540933df567d64a6ca","affectsGlobalScope":true},{"version":"6af1425e9973f4924fca986636ac19a0cf9909a7e0d9d3009c349e6244e957b6","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"15a630d6817718a2ddd7088c4f83e4673fde19fa992d2eae2cf51132a302a5d3","affectsGlobalScope":true},{"version":"f06948deb2a51aae25184561c9640fb66afeddb34531a9212d011792b1d19e0a","affectsGlobalScope":true},{"version":"01e0ee7e1f661acedb08b51f8a9b7d7f959e9cdb6441360f06522cc3aea1bf2e","affectsGlobalScope":true},{"version":"ac17a97f816d53d9dd79b0d235e1c0ed54a8cc6a0677e9a3d61efb480b2a3e4e","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"ec0104fee478075cb5171e5f4e3f23add8e02d845ae0165bfa3f1099241fa2aa","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"9cc66b0513ad41cb5f5372cca86ef83a0d37d1c1017580b7dace3ea5661836df","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"709efdae0cb5df5f49376cde61daacc95cdd44ae4671da13a540da5088bf3f30","affectsGlobalScope":true},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true},{"version":"61ed9b6d07af959e745fb11f9593ecd743b279418cc8a99448ea3cd5f3b3eb22","affectsGlobalScope":true},{"version":"038a2f66a34ee7a9c2fbc3584c8ab43dff2995f8c68e3f566f4c300d2175e31e","affectsGlobalScope":true},{"version":"4fa6ed14e98aa80b91f61b9805c653ee82af3502dc21c9da5268d3857772ca05","affectsGlobalScope":true},{"version":"f5c92f2c27b06c1a41b88f6db8299205aee52c2a2943f7ed29bd585977f254e8","affectsGlobalScope":true},{"version":"930b0e15811f84e203d3c23508674d5ded88266df4b10abee7b31b2ac77632d2","affectsGlobalScope":true},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true},{"version":"b9ea5778ff8b50d7c04c9890170db34c26a5358cccba36844fe319f50a43a61a","affectsGlobalScope":true},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true},{"version":"50d53ccd31f6667aff66e3d62adf948879a3a16f05d89882d1188084ee415bbc","affectsGlobalScope":true},{"version":"25de46552b782d43cb7284df22fe2a265de387cf0248b747a7a1b647d81861f6","affectsGlobalScope":true},{"version":"307c8b7ebbd7f23a92b73a4c6c0a697beca05b06b036c23a34553e5fe65e4fdc","affectsGlobalScope":true},{"version":"189c0703923150aa30673fa3de411346d727cc44a11c75d05d7cf9ef095daa22","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","7180c03fd3cb6e22f911ce9ba0f8a7008b1a6ddbe88ccf16a9c8140ef9ac1686","587f13f1e8157bd8cec0adda0de4ef558bb8573daa9d518d1e2af38e87ecc91f","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"d32f90e6cf32e99c86009b5f79fa50bc750fe54e17137d9bb029c377a2822ee2","affectsGlobalScope":true},"7a435e0c814f58f23e9a0979045ec0ef5909aac95a70986e8bcce30c27dff228",{"version":"c81c51f43e343b6d89114b17341fb9d381c4ccbb25e0ee77532376052c801ba7","affectsGlobalScope":true},"3dd49afd822c82b63b3905a13e22240f34cf367aea4f4dd0e6564f4bddcb8370","57135ce61976a8b1dadd01bb412406d1805b90db6e8ecb726d0d78e0b5f76050",{"version":"49479e21a040c0177d1b1bc05a124c0383df7a08a0726ad4d9457619642e875a","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","f302f3a47d7758f67f2afc753b9375d6504dde05d2e6ecdb1df50abbb131fc89","93db4c949a785a3dbef7f5e08523be538e468c580dd276178b818e761b3b68cd","5b1c0a23f464f894e7c2b2b6c56df7b9afa60ed48c5345f8618d389a636b2108","be2b092f2765222757c6441b86c53a5ea8dfed47bbc43eab4c5fe37942c866b3","8e6b05abc98adba15e1ac78e137c64576c74002e301d682e66feb77a23907ab8","1ca735bb3d407b2af4fbee7665f3a0a83be52168c728cc209755060ba7ed67bd",{"version":"6b526a5ec4a401ca7c26cfe6a48e641d8f30af76673bad3b06a1b4504594a960","affectsGlobalScope":true},{"version":"6e335a70826a634c5a1a1fa36a2dacbf3712ef2be7a517540ae1de8a1e8ea4f6","affectsGlobalScope":true},"7a2ba0c9af860ac3e77b35ed01fd96d15986f17aa22fe40f188ae556fb1070df","df8529626079d6f9d5d3cd7b6fb7db9cda5a3118d383d8cd46c52aadb59593e7","55709608060f77965c270ac10ac646286589f1bd1cb174fff1778a2dd9a7ef31","3122a3f1136508a27a229e0e4e2848299028300ffa11d0cdfe99df90c492fe20","42b40e40f2a358cda332456214fad311e1806a6abf3cebaaac72496e07556642","354612fe1d49ecc9551ea3a27d94eef2887b64ef4a71f72ca444efe0f2f0ba80",{"version":"ac0c77cd7db52b3c278bdd1452ce754014835493d05b84535f46854fdc2063b2","affectsGlobalScope":true},"fe6dba0e8c69f2b244e3da38e53dd2cc9e51b2543e647e805396af73006613f7","5e2b91328a540a0933ab5c2203f4358918e6f0fe7505d22840a891a6117735f1","3abc3512fa04aa0230f59ea1019311fd8667bd935d28306311dccc8b17e79d5d",{"version":"5810080a0da989a944d3b691b7b479a4a13c75947fb538abb8070710baa5ccee","affectsGlobalScope":true},{"version":"19da7150ca062323b1db6311a6ef058c9b0a39cc64d836b5e9b75d301869653b","affectsGlobalScope":true},"1349077576abb41f0e9c78ec30762ff75b710208aff77f5fdcc6a8c8ce6289dd","e2ce82603102b5c0563f59fb40314cc1ff95a4d521a66ad14146e130ea80d89c","a3e0395220255a350aa9c6d56f882bfcb5b85c19fddf5419ec822cf22246a26d","c27b01e8ddff5cd280711af5e13aecd9a3228d1c256ea797dd64f8fdec5f7df5","898840e876dfd21843db9f2aa6ae38ba2eab550eb780ff62b894b9fbfebfae6b","8bbe7e6c5844e38754c041b52e3d90f7bbd5a0d60739daf30805c92e4f0c65c6","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff","785e5be57d4f20f290a20e7b0c6263f6c57fd6e51283050756cef07d6d651c68","44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","164deb2409ac5f4da3cd139dbcee7f7d66753d90363a4d7e2db8d8874f272270",{"version":"99822adc2defda34dc1b28b727577ec7c098d878d713157dbe90d212c6bf5e58","affectsGlobalScope":true},{"version":"8a985c7d30aea82342d5017730b546bb2b734fe37a2684ca55d4734deb019d58","affectsGlobalScope":true},"ad08154d9602429522cac965a715fde27d421d69b24756c5d291877dda75353e","5bc85813bfcb6907cc3a960fec8734a29d7884e0e372515147720c5991b8bc22","812b25f798033c202baedf386a1ccc41f9191b122f089bffd10fdccce99fba11","993325544790073f77e945bee046d53988c0bc3ac5695c9cf8098166feb82661",{"version":"4d06f3abc2a6aae86f1be39e397372f74fb6e7964f594d645926b4a3419cc15d","affectsGlobalScope":true},{"version":"0e08c360c9b5961ecb0537b703e253842b3ded53151ee07024148219b61a8baf","affectsGlobalScope":true},"2ce2210032ccaff7710e2abf6a722e62c54960458e73e356b6a365c93ab6ca66","92db194ef7d208d5e4b6242a3434573fd142a621ff996d84cc9dbba3553277d0","16a3080e885ed52d4017c902227a8d0d8daf723d062bec9e45627c6fdcd6699b",{"version":"0bd9543cd8fc0959c76fb8f4f5a26626c2ed62ef4be98fd857bce268066db0a2","affectsGlobalScope":true},"1ca6858a0cbcd74d7db72d7b14c5360a928d1d16748a55ecfa6bfaff8b83071b",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"4905d61a3e1e9b12e12dbf8660fc8d2f085734da6da8d725f395bf41a04853d6","25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","54cb85a47d760da1c13c00add10d26b5118280d44d58e6908d8e89abbd9d7725","3e4825171442666d31c845aeb47fcd34b62e14041bb353ae2b874285d78482aa","adda9e3915c6bf15e360356a41d950881a51dbe44f9a6088155836b040820663","4bbbb97e15ac9616ba78725207dbb9a9d9438b8bfa184b65d70112b30ca516ad","e9775e97ac4877aebf963a0289c81abe76d1ec9a2a7778dbe637e5151f25c5f3","1bd99228e651f639fe9df587bafa0b148f1a306b4e7b460376c510db02073eb1","cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","db3435f3525cd785bf21ec6769bf8da7e8a776be1a99e2e7efb5f244a2ef5fee","c3b170c45fc031db31f782e612adf7314b167e60439d304b49e704010e7bafe5","40383ebef22b943d503c6ce2cb2e060282936b952a01bea5f9f493d5fb487cc7","80ad053918e96087d9da8d092ff9f90520c9fc199c8bfd9340266dd8f38f364e","3a84b7cb891141824bd00ef8a50b6a44596aded4075da937f180c90e362fe5f6","13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","33203609eba548914dc83ddf6cadbc0bcb6e8ef89f6d648ca0908ae887f9fcc5","0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","e53a3c2a9f624d90f24bf4588aacd223e7bec1b9d0d479b68d2f4a9e6011147f","339dc5265ee5ed92e536a93a04c4ebbc2128f45eeec6ed29f379e0085283542c","9f0a92164925aa37d4a5d9dd3e0134cff8177208dba55fd2310cd74beea40ee2","8bfdb79bf1a9d435ec48d9372dc93291161f152c0865b81fc0b2694aedb4578d","2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","d32275be3546f252e3ad33976caf8c5e842c09cb87d468cb40d5f4cf092d1acc","9d2ebbab3db7e91d5c2eee84685f083e7e4c08df5f2f4b1df2f55f645983b751",{"version":"70a659a45fd953f7c6a2648732b5931b02b872f46d4da6800e427f981da95148","signature":"d1a181f1276739ba17f94a354386ec2e1192d23943dace1709dcb52d27307493"},{"version":"a87e3b6074dcd76874b7eb25989d0f67f263285d1243fe3427dded55963a804d","signature":"ec4270094791bf578af8f738257bdeeedaab66f32720fb5196e8685ec06759ee"},{"version":"b77267f7d512c8907f62385d4026e6d0fe910ca969ea307a5b082727796bac88","signature":"58641dadb14bb103c9c1698e12793672a83a10ea16bc3233b471f02c2b2bbf86"},{"version":"723606d1752ea8e7f10bd098b2d9fbd9fc66a9e89226462d7dd0a350566814a1","signature":"70801bf6a8c0af00d101e2cfd60e9337e197ff3fb2391780a89b6126281c492d"},{"version":"1e3c9e61b17033b45368b1f2c6c027b78d87fefb5d5ae7aaab51d95af1b624ca","signature":"a2f908045e736468d8739c0ffac376530c052f56374a1bc82541bc41c2fe32bc"},{"version":"67502f9fce1bd8df61e11c504d4c1403c6d82feafe7c3db23b37b828baf8b64c","signature":"28b476282d034db3369ee11b90c5870b37ae156a523f80098c81cc0786cc899f"},{"version":"8451db8c7b7c168c0826ee34fe84376c2f922a0ee4b60aef3d505fe434a9b898","signature":"034fd5b38e44b4302935037f69d3888fdeb7a15bfebf5ee33a375cf4d92823ed"},{"version":"c3bc5d095c3c22fd20b5a6550b9c9a6d56c3ffbb87ef057ccce7764b6bed4428","affectsGlobalScope":true},{"version":"f4c0db3a49cea9babd5d224ba14243a6a6119bf65a65198994033aaea3a60a71","affectsGlobalScope":true},{"version":"64d4b35c5456adf258d2cf56c341e203a073253f229ef3208fc0d5020253b241","affectsGlobalScope":true},"bee89e1eb6425eb49894f3f25e4562dc2564e84e5aa7610b7e13d8ecddf8f5db","dca41e86e89dfb2e85e6935260250f02eb6683b86c2fa16bec729ddd1bcd9b4b","38130105639567286970d255e8f246dea9518995a8061208bfd728dfa57bb9c6","96d14f21b7652903852eef49379d04dbda28c16ed36468f8c9fa08f7c14c9538","736097ddbb2903bef918bb3b5811ef1c9c5656f2a73bd39b22a91b9cc2525e50","626bccaba2f61f03abe558a39501631565389a748bc47dd52b305c80176333c1","3663d1b50f356656a314e5df169bb51cb9d5fd75905fa703f75db6bb32030568","2b93035328f7778d200252681c1d86285d501ed424825a18f81e4c3028aa51d9","2ac9c8332c5f8510b8bdd571f8271e0f39b0577714d5e95c1e79a12b2616f069","42c21aa963e7b86fa00801d96e88b36803188018d5ad91db2a9101bccd40b3ff","d31eb848cdebb4c55b4893b335a7c0cca95ad66dee13cbb7d0893810c0a9c301","b9f96255e1048ed2ea33ec553122716f0e57fc1c3ad778e9aa15f5b46547bd23","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":[[146,152]],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"module":99,"outDir":"./","skipLibCheck":true,"strict":true,"target":9},"fileIdsList":[[81,108,145,146],[71,108,146,147],[108,146,147],[108,147,148,149],[108,153],[108],[108,155,156,157],[81,107,108,115,160,161],[81,96,108,115],[62,108],[65,108],[66,71,99,108],[67,78,79,86,96,107,108],[67,68,78,86,108],[69,108],[70,71,79,87,108],[71,96,104,108],[72,74,78,86,108],[73,108],[74,75,108],[78,108],[76,78,108],[78,79,80,96,107,108],[78,79,80,93,96,99,108],[108,112],[74,78,81,86,96,107,108],[78,79,81,82,86,96,104,107,108],[81,83,96,104,107,108],[62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,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],[78,84,108],[85,107,108],[74,78,86,96,108],[87,108],[88,108],[65,89,108],[90,106,108,112],[91,108],[92,108],[78,93,94,108],[93,95,108,110],[66,78,96,97,98,99,108],[66,96,98,108],[96,97,108],[99,108],[100,108],[65,96,108],[78,102,103,108],[102,103,108],[71,86,96,104,108],[105,108],[86,106,108],[66,81,92,107,108],[71,108],[96,108,109],[108,110],[108,111],[66,71,78,80,89,96,107,108,110,112],[96,108,113],[108,163,202],[108,163,187,202],[108,202],[108,163],[108,163,188,202],[108,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201],[108,188,202],[108,116,117,118,119,120,121,122,123,124,126,127,128,129,130,131,132,133,134,135,136,137,139,140,141,142,143,144],[107,108,122,126],[96,107,108,122],[108,117],[104,107,108,119,122],[86,104,108],[108,115],[108,115,117],[86,107,108,119,122],[60,61,66,78,96,107,108,118,121],[60,108,120],[66,99,107,108,115,118,122],[66,108,115],[66,108,115,138],[108,115,116,117],[108,122],[108,122,129,130],[108,120,122,130,131],[108,121],[60,108,117,122],[108,122,126,130,131],[108,126],[107,108,120,122,125],[60,108,119,120,122,126,129],[66,96,108],[66,108,112,115,117,122,138],[108,145,151],[108,150],[81,107,145,146],[147],[146,147],[147,148,149],[145],[150]],"referencedMap":[[147,1],[148,2],[149,3],[150,4],[154,5],[153,6],[155,6],[158,7],[156,6],[157,6],[159,6],[161,6],[162,8],[160,9],[62,10],[63,10],[65,11],[66,12],[67,13],[68,14],[69,15],[70,16],[71,17],[72,18],[73,19],[74,20],[75,20],[77,21],[76,22],[78,21],[79,23],[80,24],[64,25],[114,6],[81,26],[82,27],[83,28],[115,29],[84,30],[85,31],[86,32],[87,33],[88,34],[89,35],[90,36],[91,37],[92,38],[93,39],[94,39],[95,40],[96,41],[98,42],[97,43],[99,44],[100,45],[101,46],[102,47],[103,48],[104,49],[105,50],[106,51],[107,52],[108,53],[109,54],[110,55],[111,56],[112,57],[113,58],[187,59],[188,60],[163,61],[166,61],[185,59],[186,59],[176,59],[175,62],[173,59],[168,59],[181,59],[179,59],[183,59],[167,59],[180,59],[184,59],[169,59],[170,59],[182,59],[164,59],[171,59],[172,59],[174,59],[178,59],[189,63],[177,59],[165,59],[202,64],[201,6],[196,63],[198,65],[197,63],[190,63],[191,63],[193,63],[195,63],[199,65],[200,65],[192,65],[194,65],[58,6],[59,6],[13,6],[12,6],[2,6],[14,6],[15,6],[16,6],[17,6],[18,6],[19,6],[20,6],[21,6],[3,6],[4,6],[25,6],[22,6],[23,6],[24,6],[26,6],[27,6],[28,6],[5,6],[29,6],[30,6],[31,6],[32,6],[6,6],[36,6],[33,6],[34,6],[35,6],[37,6],[7,6],[38,6],[43,6],[44,6],[39,6],[40,6],[41,6],[42,6],[8,6],[48,6],[45,6],[46,6],[47,6],[49,6],[9,6],[50,6],[51,6],[52,6],[55,6],[53,6],[54,6],[56,6],[10,6],[1,6],[11,6],[57,6],[145,66],[129,67],[136,68],[128,67],[143,69],[120,70],[119,71],[142,72],[137,73],[140,74],[122,75],[121,76],[117,77],[116,78],[139,79],[118,80],[123,81],[124,6],[127,81],[60,6],[144,81],[131,82],[132,83],[134,84],[130,85],[133,86],[138,72],[125,87],[126,88],[135,89],[61,90],[141,91],[146,6],[152,92],[151,93]],"exportedModulesMap":[[147,94],[148,95],[149,96],[150,97],[154,5],[153,6],[155,6],[158,7],[156,6],[157,6],[159,6],[161,6],[162,8],[160,9],[62,10],[63,10],[65,11],[66,12],[67,13],[68,14],[69,15],[70,16],[71,17],[72,18],[73,19],[74,20],[75,20],[77,21],[76,22],[78,21],[79,23],[80,24],[64,25],[114,6],[81,26],[82,27],[83,28],[115,29],[84,30],[85,31],[86,32],[87,33],[88,34],[89,35],[90,36],[91,37],[92,38],[93,39],[94,39],[95,40],[96,41],[98,42],[97,43],[99,44],[100,45],[101,46],[102,47],[103,48],[104,49],[105,50],[106,51],[107,52],[108,53],[109,54],[110,55],[111,56],[112,57],[113,58],[187,59],[188,60],[163,61],[166,61],[185,59],[186,59],[176,59],[175,62],[173,59],[168,59],[181,59],[179,59],[183,59],[167,59],[180,59],[184,59],[169,59],[170,59],[182,59],[164,59],[171,59],[172,59],[174,59],[178,59],[189,63],[177,59],[165,59],[202,64],[201,6],[196,63],[198,65],[197,63],[190,63],[191,63],[193,63],[195,63],[199,65],[200,65],[192,65],[194,65],[58,6],[59,6],[13,6],[12,6],[2,6],[14,6],[15,6],[16,6],[17,6],[18,6],[19,6],[20,6],[21,6],[3,6],[4,6],[25,6],[22,6],[23,6],[24,6],[26,6],[27,6],[28,6],[5,6],[29,6],[30,6],[31,6],[32,6],[6,6],[36,6],[33,6],[34,6],[35,6],[37,6],[7,6],[38,6],[43,6],[44,6],[39,6],[40,6],[41,6],[42,6],[8,6],[48,6],[45,6],[46,6],[47,6],[49,6],[9,6],[50,6],[51,6],[52,6],[55,6],[53,6],[54,6],[56,6],[10,6],[1,6],[11,6],[57,6],[145,66],[129,67],[136,68],[128,67],[143,69],[120,70],[119,71],[142,72],[137,73],[140,74],[122,75],[121,76],[117,77],[116,78],[139,79],[118,80],[123,81],[124,6],[127,81],[60,6],[144,81],[131,82],[132,83],[134,84],[130,85],[133,86],[138,72],[125,87],[126,88],[135,89],[61,90],[141,91],[152,98],[151,99]],"semanticDiagnosticsPerFile":[147,148,149,150,154,153,155,158,156,157,159,161,162,160,62,63,65,66,67,68,69,70,71,72,73,74,75,77,76,78,79,80,64,114,81,82,83,115,84,85,86,87,88,89,90,91,92,93,94,95,96,98,97,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,187,188,163,166,185,186,176,175,173,168,181,179,183,167,180,184,169,170,182,164,171,172,174,178,189,177,165,202,201,196,198,197,190,191,193,195,199,200,192,194,58,59,13,12,2,14,15,16,17,18,19,20,21,3,4,25,22,23,24,26,27,28,5,29,30,31,32,6,36,33,34,35,37,7,38,43,44,39,40,41,42,8,48,45,46,47,49,9,50,51,52,55,53,54,56,10,1,11,57,145,129,136,128,143,120,119,142,137,140,122,121,117,116,139,118,123,124,127,60,144,131,132,134,130,133,138,125,126,135,61,141,146,152,151]},"version":"5.1.6"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmeter/sdk",
3
- "version": "1.0.0-beta.2",
3
+ "version": "1.0.0-beta.4",
4
4
  "description": "Client for OpenMeter: Real-Time and Scalable Usage Metering",
5
5
  "license": "Apache 2.0",
6
6
  "homepage": "https://openmeter.io",
package/clients/client.ts DELETED
@@ -1,153 +0,0 @@
1
- import { IncomingHttpHeaders } from 'http'
2
- import { Dispatcher, request } from 'undici'
3
- import { components } from '../schemas/openapi.js'
4
-
5
- export type OpenMeterConfig = {
6
- baseUrl: string
7
- token?: string
8
- username?: string
9
- password?: string
10
- headers?: IncomingHttpHeaders
11
- }
12
-
13
- export type RequestOptions = {
14
- headers?: IncomingHttpHeaders
15
- }
16
-
17
- export type Problem = components['schemas']['Problem']
18
-
19
- type UndiciRequestOptions = { dispatcher?: Dispatcher } & Omit<Dispatcher.RequestOptions, 'origin' | 'path' | 'method'> & Partial<Pick<Dispatcher.RequestOptions, 'method'>>
20
-
21
- export class BaseClient {
22
- protected config: OpenMeterConfig
23
-
24
- constructor(config: OpenMeterConfig) {
25
- this.config = config
26
- }
27
-
28
- protected async request<T>({
29
- path,
30
- method,
31
- searchParams,
32
- headers,
33
- body,
34
- options
35
- }: {
36
- path: string
37
- method: Dispatcher.HttpMethod,
38
- searchParams?: URLSearchParams,
39
- headers?: IncomingHttpHeaders,
40
- body?: string | Buffer | Uint8Array,
41
- options?: RequestOptions
42
- }): Promise<T> {
43
- // Building URL
44
- const url = this.getUrl(path, searchParams)
45
-
46
- // Request options
47
- const reqHeaders: IncomingHttpHeaders = {
48
- Accept: 'application/json',
49
- ...headers,
50
- ...this.getAuthHeaders(),
51
- ...this.config.headers,
52
- ...options?.headers,
53
- }
54
- const reqOpts: UndiciRequestOptions = {
55
- method,
56
- headers: reqHeaders
57
- }
58
-
59
- // Optional body
60
- if (body) {
61
- if (!reqHeaders['Content-Type'] && !reqHeaders['content-type']) {
62
- throw new Error('Content Type is required with body')
63
- }
64
-
65
- reqOpts.body = body
66
- }
67
-
68
- const resp = await request(url, reqOpts)
69
-
70
- // Error handling
71
- if (resp.statusCode > 399) {
72
- if (resp.headers['content-type'] === 'application/problem+json') {
73
- const problem = await resp.body.json() as Problem
74
- throw new HttpError({
75
- statusCode: resp.statusCode,
76
- problem,
77
- })
78
- }
79
-
80
- // Requests can fail before API, in this case we only have a status code
81
- throw new HttpError({
82
- statusCode: resp.statusCode,
83
- })
84
- }
85
-
86
- // Response parsing
87
- if (resp.statusCode === 204) {
88
- return undefined as unknown as T
89
- }
90
- if (resp.headers['content-type'] === 'application/json') {
91
- return await resp.body.json() as T
92
- }
93
- if (!resp.headers['content-type']) {
94
- throw new Error('Missing content type')
95
- }
96
-
97
- throw new Error(`Unknown content type: ${resp.headers['content-type']}`)
98
- }
99
-
100
- protected getUrl(path: string, searchParams?: URLSearchParams) {
101
- let qs = searchParams ? searchParams.toString() : ''
102
- qs = qs.length > 0 ? `?${qs}` : ''
103
- const url = new URL(`${path}${qs}`, this.config.baseUrl)
104
- return url
105
- }
106
-
107
- protected getAuthHeaders(): IncomingHttpHeaders {
108
- if (this.config.token) {
109
- return {
110
- authorization: `Bearer ${this.config.token} `,
111
- }
112
- }
113
-
114
- if (this.config.username && this.config.password) {
115
- const encoded = Buffer.from(
116
- `${this.config.username}:${this.config.password} `
117
- ).toString('base64')
118
- return {
119
- authorization: `Basic ${encoded} `,
120
- }
121
- }
122
-
123
- return {}
124
- }
125
-
126
- protected static toURLSearchParams(params: Record<string, string | number | Date | string[]>): URLSearchParams {
127
- const searchParams = new URLSearchParams()
128
-
129
- for (const [key, value] of Object.entries(params)) {
130
- if (Array.isArray(value)) {
131
- searchParams.append(key, value.join(','))
132
- } else if (value instanceof Date) {
133
- searchParams.append(key, value.toISOString())
134
- } else {
135
- searchParams.append(key, value.toString())
136
- }
137
- }
138
-
139
- return searchParams
140
- }
141
- }
142
-
143
- export class HttpError extends Error {
144
- public statusCode: number
145
- public problem?: Problem
146
-
147
- constructor({ statusCode, problem }: { statusCode: number; problem?: Problem }) {
148
- super(problem?.type || 'unexpected status code')
149
- this.name = 'HttpError'
150
- this.statusCode = statusCode
151
- this.problem = problem
152
- }
153
- }
package/clients/event.ts DELETED
@@ -1,109 +0,0 @@
1
- import crypto from 'crypto'
2
- import { components } from '../schemas/openapi.js'
3
- import { RequestOptions, BaseClient, OpenMeterConfig } from './client.js'
4
-
5
- // We export Event instead
6
- type CloudEvents = components['schemas']['Event']
7
-
8
- /**
9
- * Usage Event
10
- */
11
- export type Event = {
12
- /**
13
- * @description The version of the CloudEvents specification which the event uses.
14
- * @example 1.0
15
- */
16
- specversion?: string
17
- /**
18
- * @description Unique identifier for the event, defaults to uuid v4.
19
- * @example "5c10fade-1c9e-4d6c-8275-c52c36731d3c"
20
- */
21
- id?: string
22
- /**
23
- * Format: uri-reference
24
- * @description Identifies the context in which an event happened, defaults to: @openmeter/sdk
25
- * @example services/service-0
26
- */
27
- source?: string
28
- /**
29
- * @description Describes the type of event related to the originating occurrence.
30
- * @example "api_request"
31
- */
32
- type: string
33
- /**
34
- * @description Describes the subject of the event in the context of the event producer (identified by source).
35
- * @example "customer_id"
36
- */
37
- subject: string
38
- /**
39
- * Format: date-time
40
- * @description Date of when the occurrence happened.
41
- * @example new Date('2023-01-01T01:01:01.001Z')
42
- */
43
- time?: Date
44
- /**
45
- * Format: uri
46
- * @description Identifies the schema that data adheres to.
47
- */
48
- dataschema?: string
49
- /**
50
- * @description Content type of the data value. Must adhere to RFC 2046 format.
51
- * @example application/json
52
- * @enum {string|null}
53
- */
54
- datacontenttype?: 'application/json'
55
- /**
56
- * @description The event payload.
57
- * @example {
58
- * "duration_ms": "12",
59
- * "path": "/hello"
60
- * }
61
- */
62
- data: Record<string, string | number | Record<string, string | number>>
63
- }
64
-
65
- export class EventsClient extends BaseClient {
66
- constructor(config: OpenMeterConfig) {
67
- super(config)
68
- }
69
-
70
- /**
71
- * Ingest usage event in a CloudEvents format
72
- * @see https://cloudevents.io
73
- */
74
- public async ingest(
75
- usageEvent: Event,
76
- options?: RequestOptions
77
- ): Promise<void> {
78
- if (usageEvent.datacontenttype && usageEvent.datacontenttype !== 'application/json') {
79
- throw new TypeError(
80
- `Unsupported datacontenttype: ${usageEvent.datacontenttype}`
81
- )
82
- }
83
-
84
- // We default where we can to lower the barrier to use CloudEvents
85
- const body: CloudEvents = {
86
- specversion: usageEvent.specversion ?? '1.0',
87
- id: usageEvent.id ?? crypto.randomUUID(),
88
- source: usageEvent.source ?? '@openmeter/sdk',
89
- type: usageEvent.type,
90
- subject: usageEvent.subject,
91
- time: usageEvent.time?.toISOString(),
92
- datacontenttype: usageEvent.datacontenttype,
93
- dataschema: usageEvent.dataschema,
94
- data: usageEvent.data
95
- }
96
-
97
- // Making Request
98
- return await this.request({
99
- path: '/api/v1/events',
100
- method: 'POST',
101
- body: JSON.stringify(body),
102
- headers: {
103
- 'Content-Type': 'application/cloudevents+json',
104
- },
105
- options
106
- })
107
- }
108
- }
109
-
package/clients/meter.ts DELETED
@@ -1,84 +0,0 @@
1
- import { paths, components } from '../schemas/openapi.js'
2
- import { BaseClient, OpenMeterConfig, RequestOptions } from './client.js'
3
-
4
- export enum WindowSize {
5
- MINUTE = 'MINUTE',
6
- HOUR = 'HOUR',
7
- DAY = 'DAY'
8
- }
9
-
10
- export enum MeterAggregation {
11
- SUM = 'SUM',
12
- COUNT = 'COUNT',
13
- AVG = 'AVG',
14
- MIN = 'MIN',
15
- MAX = 'MAX',
16
- }
17
-
18
- export type MeterQueryParams = {
19
- subject?: string
20
- /**
21
- * @description Start date.
22
- * Must be aligned with the window size.
23
- * Inclusive.
24
- */
25
- from?: Date
26
- /**
27
- * @description End date.
28
- * Must be aligned with the window size.
29
- * Inclusive.
30
- */
31
- to?: Date
32
- /** @description If not specified, a single usage aggregate will be returned for the entirety of the specified period for each subject and group. */
33
- windowSize?: WindowSizeType
34
- /** @description If not specified a single aggregate will be returned for each subject and time window. */
35
- groupBy?: string[]
36
- }
37
-
38
- export type MeterQueryResponse = paths['/api/v1/meters/{meterIdOrSlug}/values']['get']['responses']['200']['content']['application/json']
39
-
40
- export type MeterValue = components['schemas']['MeterValue']
41
- export type Meter = components['schemas']['Meter']
42
- export type WindowSizeType = components['schemas']['WindowSize']
43
-
44
- export class MetersClient extends BaseClient {
45
- constructor(config: OpenMeterConfig) {
46
- super(config)
47
- }
48
-
49
- /**
50
- * Get one meter by slug
51
- */
52
- public async get(slug: string, options?: RequestOptions): Promise<Meter> {
53
- return this.request<Meter>({
54
- method: 'GET',
55
- path: `/api/v1/meters/${slug}`,
56
- options,
57
- })
58
- }
59
-
60
- /**
61
- * List meters
62
- */
63
- public async list(options?: RequestOptions): Promise<Meter[]> {
64
- return this.request<Meter[]>({
65
- method: 'GET',
66
- path: `/api/v1/meters`,
67
- options,
68
- })
69
- }
70
-
71
- /**
72
- * Get aggregated values of a meter
73
- */
74
- public async values(slug: string, params?: MeterQueryParams, options?: RequestOptions): Promise<MeterQueryResponse> {
75
- const searchParams = params ? BaseClient.toURLSearchParams(params) : undefined
76
- return this.request<MeterQueryResponse>({
77
- method: 'GET',
78
- path: `/api/v1/meters/${slug}/values`,
79
- searchParams,
80
- options,
81
- })
82
- }
83
- }
84
-
@@ -1,421 +0,0 @@
1
- /**
2
- * This file was auto-generated by openapi-typescript.
3
- * Do not make direct changes to the file.
4
- */
5
-
6
-
7
- export interface paths {
8
- "/api/v1/events": {
9
- /** @description Ingest events */
10
- post: operations["ingestEvents"];
11
- };
12
- "/api/v1/meters": {
13
- /** @description List meters */
14
- get: operations["listMeters"];
15
- /** @description Create meter */
16
- post: operations["createMeter"];
17
- };
18
- "/api/v1/meters/{meterIdOrSlug}": {
19
- /** @description Get meter by slugs */
20
- get: operations["getMeter"];
21
- /** @description Delete meter by slug */
22
- delete: operations["deleteMeter"];
23
- };
24
- "/api/v1/meters/{meterIdOrSlug}/values": {
25
- /** @description Get meter values */
26
- get: operations["getMeterValues"];
27
- };
28
- "/api/v1/namespaces": {
29
- /** @description Create namespace */
30
- post: operations["createNamespace"];
31
- };
32
- }
33
-
34
- export type webhooks = Record<string, never>;
35
-
36
- export interface components {
37
- schemas: {
38
- /**
39
- * @description A Problem Details object (RFC 7807)
40
- * @example {
41
- * "type": "urn:problem-type:bad-request",
42
- * "title": "Bad Request",
43
- * "status": 400,
44
- * "detail": "header Content-Type has unexpected value \"application/xml\"",
45
- * "instance": "urn:request:local/JMOlctsKV8-000001"
46
- * }
47
- */
48
- Problem: {
49
- /**
50
- * Format: uri
51
- * @description Type contains a URI that identifies the problem type.
52
- * @example urn:problem-type:bad-request
53
- */
54
- type: string;
55
- /**
56
- * @description A a short, human-readable summary of the problem type.
57
- * @example Bad Request
58
- */
59
- title: string;
60
- /**
61
- * Format: int32
62
- * @description The HTTP status code generated by the origin server for this occurrence of the problem.
63
- * @example 400
64
- */
65
- status: number;
66
- /**
67
- * @description A human-readable explanation specific to this occurrence of the problem.
68
- * @example header Content-Type has unexpected value \"application/xml\"
69
- */
70
- detail: string;
71
- /**
72
- * Format: uri
73
- * @description A URI reference that identifies the specific occurrence of the problem.
74
- * @example urn:request:local/JMOlctsKV8-000001
75
- */
76
- instance?: string;
77
- [key: string]: unknown;
78
- };
79
- /** @description CloudEvents Specification JSON Schema */
80
- Event: {
81
- /**
82
- * @description Identifies the event.
83
- * @example 5c10fade-1c9e-4d6c-8275-c52c36731d3c
84
- */
85
- id: string;
86
- /**
87
- * Format: uri-reference
88
- * @description Identifies the context in which an event happened.
89
- * @example services/service-0
90
- */
91
- source: string;
92
- /**
93
- * @description The version of the CloudEvents specification which the event uses.
94
- * @example 1.0
95
- */
96
- specversion: string;
97
- /**
98
- * @description Describes the type of event related to the originating occurrence.
99
- * @example api_request
100
- */
101
- type: string;
102
- /**
103
- * @description Content type of the data value. Must adhere to RFC 2046 format.
104
- * @example application/json
105
- * @enum {string|null}
106
- */
107
- datacontenttype?: "application/json" | null;
108
- /**
109
- * Format: uri
110
- * @description Identifies the schema that data adheres to.
111
- */
112
- dataschema?: string | null;
113
- /**
114
- * @description Describes the subject of the event in the context of the event producer (identified by source).
115
- * @example customer_id
116
- */
117
- subject: string;
118
- /**
119
- * Format: date-time
120
- * @description Timestamp of when the occurrence happened. Must adhere to RFC 3339.
121
- * @example 2023-01-01T01:01:01.001Z
122
- */
123
- time?: string | null;
124
- /**
125
- * @description The event payload.
126
- * @example {
127
- * "duration_ms": "12",
128
- * "path": "/hello"
129
- * }
130
- */
131
- data?: {
132
- [key: string]: unknown;
133
- };
134
- };
135
- Meter: {
136
- /**
137
- * @description A unique identifier for the meter.
138
- * @example 01G65Z755AFWAKHE12NY0CQ9FH
139
- */
140
- id?: string;
141
- /**
142
- * @description A unique identifier for the meter.
143
- * @example my-meter
144
- */
145
- slug: string;
146
- /**
147
- * @description A description of the meter.
148
- * @example My Meter Description
149
- */
150
- description?: string | null;
151
- aggregation: components["schemas"]["MeterAggregation"];
152
- /**
153
- * @description The event type to aggregate.
154
- * @example api_request
155
- */
156
- eventType: string;
157
- /**
158
- * @description JSONPath expression to extract the value from the event data.
159
- * @example $.duration_ms
160
- */
161
- valueProperty: string;
162
- /**
163
- * @description Named JSONPath expressions to extract the group by values from the event data.
164
- * @example {
165
- * "duration_ms": "$.duration_ms",
166
- * "path": "$.path"
167
- * }
168
- */
169
- groupBy?: {
170
- [key: string]: string;
171
- };
172
- windowSize: components["schemas"]["WindowSize"];
173
- };
174
- /**
175
- * @description The aggregation type to use for the meter.
176
- * @enum {string}
177
- */
178
- MeterAggregation: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX";
179
- /** @enum {string} */
180
- WindowSize: "MINUTE" | "HOUR" | "DAY";
181
- MeterValue: {
182
- /** @description The subject of the meter value. */
183
- subject?: string;
184
- /** Format: date-time */
185
- windowStart: string;
186
- /** Format: date-time */
187
- windowEnd: string;
188
- value: number;
189
- groupBy?: {
190
- [key: string]: string;
191
- } | null;
192
- };
193
- IdOrSlug: string;
194
- Namespace: {
195
- /**
196
- * @description A namespace
197
- * @example my-namesapce
198
- */
199
- namespace: string;
200
- };
201
- };
202
- responses: {
203
- /** @description Bad Request */
204
- BadRequestProblemResponse: {
205
- content: {
206
- "application/problem+json": components["schemas"]["Problem"];
207
- };
208
- };
209
- /** @description Method not allowed, feature not supported */
210
- MethodNotAllowedProblemResponse: {
211
- content: {
212
- "application/problem+json": components["schemas"]["Problem"];
213
- };
214
- };
215
- /** @description Not Found */
216
- NotFoundProblemResponse: {
217
- content: {
218
- "application/problem+json": components["schemas"]["Problem"];
219
- };
220
- };
221
- /** @description Not Implemented */
222
- NotImplementedProblemResponse: {
223
- content: {
224
- "application/problem+json": components["schemas"]["Problem"];
225
- };
226
- };
227
- /** @description Unexpected error */
228
- UnexpectedProblemResponse: {
229
- content: {
230
- "application/problem+json": components["schemas"]["Problem"];
231
- };
232
- };
233
- };
234
- parameters: {
235
- /** @description A unique identifier for the meter. */
236
- meterIdOrSlug: components["schemas"]["IdOrSlug"];
237
- /**
238
- * @description Optional namespace
239
- * @default default
240
- */
241
- namespaceParam?: string;
242
- };
243
- requestBodies: never;
244
- headers: never;
245
- pathItems: never;
246
- }
247
-
248
- export type external = Record<string, never>;
249
-
250
- export interface operations {
251
-
252
- /** @description Ingest events */
253
- ingestEvents: {
254
- parameters: {
255
- header?: {
256
- "OM-Namespace"?: components["parameters"]["namespaceParam"];
257
- };
258
- };
259
- requestBody: {
260
- content: {
261
- "application/cloudevents+json": components["schemas"]["Event"];
262
- };
263
- };
264
- responses: {
265
- /** @description OK */
266
- 200: {
267
- content: never;
268
- };
269
- 400: components["responses"]["BadRequestProblemResponse"];
270
- default: components["responses"]["UnexpectedProblemResponse"];
271
- };
272
- };
273
- /** @description List meters */
274
- listMeters: {
275
- parameters: {
276
- header?: {
277
- "OM-Namespace"?: components["parameters"]["namespaceParam"];
278
- };
279
- };
280
- responses: {
281
- /** @description Meters response */
282
- 200: {
283
- content: {
284
- "application/json": components["schemas"]["Meter"][];
285
- };
286
- };
287
- default: components["responses"]["UnexpectedProblemResponse"];
288
- };
289
- };
290
- /** @description Create meter */
291
- createMeter: {
292
- parameters: {
293
- header?: {
294
- "OM-Namespace"?: components["parameters"]["namespaceParam"];
295
- };
296
- };
297
- requestBody: {
298
- content: {
299
- "application/json": components["schemas"]["Meter"];
300
- };
301
- };
302
- responses: {
303
- /** @description Created */
304
- 201: {
305
- content: {
306
- "application/json": components["schemas"]["Meter"];
307
- };
308
- };
309
- 400: components["responses"]["BadRequestProblemResponse"];
310
- 501: components["responses"]["NotImplementedProblemResponse"];
311
- default: components["responses"]["UnexpectedProblemResponse"];
312
- };
313
- };
314
- /** @description Get meter by slugs */
315
- getMeter: {
316
- parameters: {
317
- header?: {
318
- "OM-Namespace"?: components["parameters"]["namespaceParam"];
319
- };
320
- path: {
321
- meterIdOrSlug: components["parameters"]["meterIdOrSlug"];
322
- };
323
- };
324
- responses: {
325
- /** @description OK */
326
- 200: {
327
- content: {
328
- "application/json": components["schemas"]["Meter"];
329
- };
330
- };
331
- 404: components["responses"]["NotFoundProblemResponse"];
332
- default: components["responses"]["UnexpectedProblemResponse"];
333
- };
334
- };
335
- /** @description Delete meter by slug */
336
- deleteMeter: {
337
- parameters: {
338
- header?: {
339
- "OM-Namespace"?: components["parameters"]["namespaceParam"];
340
- };
341
- path: {
342
- meterIdOrSlug: components["parameters"]["meterIdOrSlug"];
343
- };
344
- };
345
- responses: {
346
- /** @description No Content */
347
- 204: {
348
- content: never;
349
- };
350
- 404: components["responses"]["NotFoundProblemResponse"];
351
- 501: components["responses"]["NotImplementedProblemResponse"];
352
- default: components["responses"]["UnexpectedProblemResponse"];
353
- };
354
- };
355
- /** @description Get meter values */
356
- getMeterValues: {
357
- parameters: {
358
- query?: {
359
- subject?: string;
360
- /**
361
- * @description Start date-time in RFC 3339 format.
362
- * Must be aligned with the window size.
363
- * Inclusive.
364
- */
365
- from?: string;
366
- /**
367
- * @description End date-time in RFC 3339 format.
368
- * Must be aligned with the window size.
369
- * Inclusive.
370
- */
371
- to?: string;
372
- /** @description If not specified, a single usage aggregate will be returned for the entirety of the specified period for each subject and group. */
373
- windowSize?: components["schemas"]["WindowSize"];
374
- /**
375
- * @description If not specified, OpenMeter will use the default aggregation type.
376
- * As OpenMeter stores aggregates defined by meter config, passing a different aggregate can lead to inaccurate results.
377
- * For example getting the MIN of SUMs.
378
- */
379
- aggregation?: components["schemas"]["MeterAggregation"];
380
- /** @description If not specified a single aggregate will be returned for each subject and time window. */
381
- groupBy?: string;
382
- };
383
- header?: {
384
- "OM-Namespace"?: components["parameters"]["namespaceParam"];
385
- };
386
- path: {
387
- meterIdOrSlug: components["parameters"]["meterIdOrSlug"];
388
- };
389
- };
390
- responses: {
391
- /** @description OK */
392
- 200: {
393
- content: {
394
- "application/json": {
395
- windowSize?: components["schemas"]["WindowSize"];
396
- data: components["schemas"]["MeterValue"][];
397
- };
398
- };
399
- };
400
- 400: components["responses"]["BadRequestProblemResponse"];
401
- default: components["responses"]["UnexpectedProblemResponse"];
402
- };
403
- };
404
- /** @description Create namespace */
405
- createNamespace: {
406
- requestBody: {
407
- content: {
408
- "application/json": components["schemas"]["Namespace"];
409
- };
410
- };
411
- responses: {
412
- /** @description Created */
413
- 201: {
414
- content: {
415
- "application/json": components["schemas"]["Namespace"];
416
- };
417
- };
418
- default: components["responses"]["UnexpectedProblemResponse"];
419
- };
420
- };
421
- }