{"name":"@apollo/usage-reporting-protobuf","version":"4.1.2","description":"Protobuf format for Apollo usage reporting","type":"module","exports":{".":{"types":{"require":"./generated/cjs/protobuf.d.ts","default":"./generated/esm/protobuf.d.ts"},"import":"./generated/esm/protobuf.js","require":"./generated/cjs/protobuf.js"}},"main":"generated/cjs/protobuf.js","module":"generated/esm/protobuf.js","types":"generated/esm/protobuf.d.ts","scripts":{"generate":"rm -rf generated && mkdir -p generated/{esm,cjs} && npm run pbjs-cjs && npm run pbjs-esm && npm run pbts","pbjs-cjs":"apollo-pbjs --target static-module --out generated/cjs/protobuf.cjs --wrap commonjs --force-number --no-from-object src/reports.proto","pbjs-esm":"apollo-pbjs --target static-module --out generated/esm/protobuf.mjs --es6 --force-number --no-from-object src/reports.proto","pbts-cjs":"mv generated/cjs/protobuf.{c,}js && apollo-pbts -o generated/cjs/protobuf.d.ts generated/cjs/protobuf.js","pbts-esm":"mv generated/esm/protobuf.{m,}js && apollo-pbts -o generated/esm/protobuf.d.ts generated/esm/protobuf.js","pbts":"npm run pbts-cjs && npm run pbts-esm","update-proto":"curl -sSfo src/reports.proto https://usage-reporting.api.apollographql.com/proto/reports.proto"},"repository":{"type":"git","url":"git+https://github.com/apollographql/apollo-server.git","directory":"packages/usage-reporting-protobuf"},"keywords":["GraphQL","Apollo","Server","Javascript"],"author":{"name":"Apollo","email":"packages@apollographql.com"},"license":"MIT","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"homepage":"https://github.com/apollographql/apollo-server#readme","//":"Don't caret this, we want to be explicit about the version of our fork of protobufjs and update it intentionally if we need to.","dependencies":{"@apollo/protobufjs":"1.2.8"},"gitHead":"16ae2928bb1def080a82920111f039a4bcee630d","_id":"@apollo/usage-reporting-protobuf@4.1.2","_nodeVersion":"24.13.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-aTnAD41RYz0d5dawlyR5Iclkgzx0Xb0njUJmEfvZ6pS4f4HU8wCYyctPpWat/HWp2PmRwDfX5R1k4uVcDKZ4xA==","shasum":"e70e9d2ec00858900f93c4133ca49c9f710896a2","tarball":"http://registry-npm.ywwl.com/@apollo/usage-reporting-protobuf/download/@apollo/usage-reporting-protobuf-4.1.2.tgz","fileCount":10,"unpackedSize":1015619,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@apollo%2fusage-reporting-protobuf@4.1.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCIHgXSQIPD4iMuOmDDkY8w4g36dOcShSUTBdx+1Inb1QIgce65Egv8zH/wMPVx0J22cPX+/TWWvh5jKxtSOe7ml8w="}],"size":82363,"noattachment":false,"key":"/@apollo/usage-reporting-protobuf/-/@apollo/usage-reporting-protobuf-4.1.2.tgz"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:88c69fb2-232f-4a21-a58e-79db1ea336c5"}},"directories":{},"maintainers":[{"name":"glasser","email":"glasser@apollographql.com"},{"name":"dkuc","email":"dariusz_kuc@hotmail.com"},{"name":"phryneas","email":"mail@lenzw.de"},{"name":"apollo-bot","email":"npm@apollographql.com"},{"name":"abernix","email":"npmjs@jro.cc"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/usage-reporting-protobuf_4.1.2_1777912541157_0.5337980189699019"},"_hasShrinkwrap":false,"readme":"# `apollo-reporting-protobuf`\n\n> **Note:** The Apollo usage reporting API is subject to change.  We strongly\n> encourage developers to contact Apollo support at `support@apollographql.com`\n> to discuss their use case prior to building their own reporting agent using\n> this module.\n\nThis module provides JavaScript/TypeScript\n[Protocol buffer](https://developers.google.com/protocol-buffers/) definitions\nfor the Apollo usage reporting API.  These definitions are generated for\nconsumption from the `reports.proto` file which is defined internally within\nApollo.\n\n## Development\n\n> **Note:** Due to a dependency on Unix tools (e.g. `bash`, `grep`, etc.), the\n> development of this module requires a Unix system.  There is no reason why\n> this can't be avoided, the time just hasn't been taken to make those changes.\n> We'd happily accept a PR which makes the appropriate changes!\n\nCurrently, this package generates a majority of its code with\n`@apollo/protobufjs` (a fork of\n[`protobufjs`](https://www.npmjs.com/package/protobufjs) that we maintain\nspecifically for this package) based on the `reports.proto` file. The output is\ngenerated with the `generate` npm script.\n\nThe root of the repository provides some `devDependencies` necessary to build\nthese definitions; these will be installed by running `npm install` at the root\nof this workspace. When making changes to this module, run scripts via `npm run\nSCRIPTNAME -w @apollo/usage-reporting-protobuf` in the **root** of this monorepo in\norder to update the definitions in _this_ module. The `-w` flag is shorthand for\n`--workspace`; this monorepo leverages NPM workspaces to manage its packages.\n\nTo update `reports.proto` to the current version recognized by the Studio usage\nreporting ingress, run `npm run update-proto -w\n@apollo/usage-reporting-protobuf`. To then regenerate the JS and TS files, run\n`npm run generate -w @apollo/usage-reporting-protobuf`. We check in the\ngenerated code and only regenerate it manually, partially to make builds faster\n(no need to run pbjs on every `npm install`) and partially so that we don't have\nto make sure that `pbjs` runs on every Node version that we support.\n","publish_time":1777912541301,"_cnpm_publish_time":1777912541301,"dist-tags":{"alpha":"4.0.0-alpha.0","latest":"4.1.2","rc":"4.0.0-rc.2"}}