emissions-api-sdk 1.0.13 → 1.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/README.md +23 -0
  2. package/dist/Constants.js +4 -1
  3. package/dist/api/AuditExport.js +73 -0
  4. package/dist/api/EconomicActivity.js +45 -0
  5. package/dist/api/Factor.js +1 -4
  6. package/dist/api/RealEstate.js +2 -1
  7. package/dist/coverage/clover.xml +75 -54
  8. package/dist/coverage/coverage-final.json +8 -7
  9. package/dist/coverage/lcov-report/index.html +15 -15
  10. package/dist/coverage/lcov-report/src/Client.ts.html +6 -6
  11. package/dist/coverage/lcov-report/src/Constants.ts.html +39 -30
  12. package/dist/coverage/lcov-report/src/api/AuditExport.ts.html +355 -0
  13. package/dist/coverage/lcov-report/src/api/AuditLog.ts.html +1 -1
  14. package/dist/coverage/lcov-report/src/api/Calculation.ts.html +1 -1
  15. package/dist/coverage/lcov-report/src/api/EconomicActivity.ts.html +137 -2
  16. package/dist/coverage/lcov-report/src/api/Factor.ts.html +6 -12
  17. package/dist/coverage/lcov-report/src/api/FactorSets.ts.html +1 -1
  18. package/dist/coverage/lcov-report/src/api/Fugitive.ts.html +1 -1
  19. package/dist/coverage/lcov-report/src/api/Location.ts.html +1 -1
  20. package/dist/coverage/lcov-report/src/api/Metadata.ts.html +1 -1
  21. package/dist/coverage/lcov-report/src/api/Mobile.ts.html +1 -1
  22. package/dist/coverage/lcov-report/src/api/PhysicalActivity.ts.html +1 -1
  23. package/dist/coverage/lcov-report/src/api/RealEstate.ts.html +6 -3
  24. package/dist/coverage/lcov-report/src/api/Stationary.ts.html +1 -1
  25. package/dist/coverage/lcov-report/src/api/TransportationAndDistribution.ts.html +1 -1
  26. package/dist/coverage/lcov-report/src/api/TypeRecommender.ts.html +1 -1
  27. package/dist/coverage/lcov-report/src/api/Usage.ts.html +1 -1
  28. package/dist/coverage/lcov-report/src/api/index.html +19 -4
  29. package/dist/coverage/lcov-report/src/index.html +7 -7
  30. package/dist/coverage/lcov-report/src/request.ts.html +8 -5
  31. package/dist/coverage/lcov-report/src/utils.ts.html +2 -2
  32. package/dist/coverage/lcov-report/test/index.html +1 -1
  33. package/dist/coverage/lcov-report/test/mocks/AttributionRequest.ts.html +1 -1
  34. package/dist/coverage/lcov-report/test/mocks/CommonRequest.ts.html +1 -1
  35. package/dist/coverage/lcov-report/test/mocks/EconomicActivityAttributionRequest.ts.html +1 -1
  36. package/dist/coverage/lcov-report/test/mocks/FactorRequest.ts.html +1 -1
  37. package/dist/coverage/lcov-report/test/mocks/GenericCalculationRequest.ts.html +1 -1
  38. package/dist/coverage/lcov-report/test/mocks/LocationRequest.ts.html +1 -1
  39. package/dist/coverage/lcov-report/test/mocks/PhysicalActivityEVICRequest.ts.html +1 -1
  40. package/dist/coverage/lcov-report/test/mocks/PhysicalActivityRequest.ts.html +1 -1
  41. package/dist/coverage/lcov-report/test/mocks/SearchRequest.ts.html +1 -1
  42. package/dist/coverage/lcov-report/test/mocks/index.html +1 -1
  43. package/dist/coverage/lcov-report/test/testUtils.ts.html +1 -1
  44. package/dist/coverage/lcov.info +86 -53
  45. package/dist/index.js +2 -1
  46. package/dist/interfaces/response/AuditExportResponse.js +2 -0
  47. package/dist/request.js +1 -0
  48. package/dist/types/Constants.d.ts +3 -0
  49. package/dist/types/api/AuditExport.d.ts +42 -0
  50. package/dist/types/api/EconomicActivity.d.ts +45 -0
  51. package/dist/types/api/Factor.d.ts +1 -4
  52. package/dist/types/api/RealEstate.d.ts +2 -1
  53. package/dist/types/index.d.ts +2 -0
  54. package/dist/types/interfaces/Config.d.ts +5 -1
  55. package/dist/types/interfaces/response/AuditExportResponse.d.ts +66 -0
  56. package/dist/types/interfaces/response/TypeRecommenderResponse.d.ts +1 -0
  57. package/docs/_sources/getting_started.rst.txt +226 -2
  58. package/docs/_sources/index.rst.txt +2 -0
  59. package/docs/_sources/reference.rst.txt +22 -0
  60. package/docs/genindex.html +27 -3
  61. package/docs/getting_started.html +226 -2
  62. package/docs/index.html +4 -0
  63. package/docs/reference.html +267 -4
  64. package/docs/searchindex.js +1 -1
  65. package/package.json +6 -5
  66. package/sphinx-build/source/getting_started.rst +226 -2
  67. package/sphinx-build/source/index.rst +2 -0
  68. package/sphinx-build/source/reference.rst +22 -0
  69. package/src/Constants.ts +3 -0
  70. package/src/api/AuditExport.ts +90 -0
  71. package/src/api/EconomicActivity.ts +45 -0
  72. package/src/api/Factor.ts +2 -5
  73. package/src/api/RealEstate.ts +2 -1
  74. package/src/index.ts +9 -1
  75. package/src/interfaces/Config.ts +6 -1
  76. package/src/interfaces/response/AuditExportResponse.ts +88 -0
  77. package/src/interfaces/response/TypeRecommenderResponse.ts +1 -0
  78. package/src/request.ts +1 -0
  79. package/test/auditExport.test.ts +68 -0
  80. package/docs/_static/base-stemmer.js +0 -476
  81. package/docs/_static/english-stemmer.js +0 -1066
@@ -1 +1 @@
1
- Search.setIndex({"alltitles": {"1. Missing Auth URL with Custom Host": [[6, "missing-auth-url-with-custom-host"]], "10. Missing Expiry Field in Token": [[6, "missing-expiry-field-in-token"]], "2. Missing Client ID with Token": [[6, "missing-client-id-with-token"]], "3. Missing Parameters with API Key": [[6, "missing-parameters-with-api-key"]], "4. Missing Client ID with PAT Token": [[6, "missing-client-id-with-pat-token"]], "5. Organization ID Provided with PAT Token": [[6, "organization-id-provided-with-pat-token"]], "6. Invalid API Key": [[6, "invalid-api-key"]], "7. Invalid Organization ID": [[6, "invalid-organization-id"]], "8. Invalid Client ID": [[6, "invalid-client-id"]], "9. Empty Token Response": [[6, "empty-token-response"]], "API": [[4, "api"]], "API Key Authentication": [[0, "api-key-authentication"], [6, "api-key-authentication"]], "Additional capabilities": [[3, "additional-capabilities"]], "Architecture Diagram": [[0, "architecture-diagram"]], "Audit Log API": [[4, "audit-log-api"]], "Authentication": [[0, null], [2, "authentication"]], "Authentication Errors (HTTP 401)": [[6, "authentication-errors-http-401"]], "Authentication Flow": [[0, "authentication-flow"]], "Authentication Headers": [[0, "authentication-headers"]], "Authentication Integration": [[1, "authentication-integration"]], "Authentication Methods": [[0, "authentication-methods"]], "Automatic Token Refresh": [[6, "automatic-token-refresh"]], "Basic Import": [[2, "basic-import"]], "Best Practices": [[1, "best-practices"]], "Client": [[1, null]], "Client Initialization": [[1, "client-initialization"]], "Client Instance Errors": [[6, "client-instance-errors"]], "Client Not Initialized": [[6, "client-not-initialized"]], "Client Responsibilities": [[1, "client-responsibilities"]], "Common Scenarios": [[6, "common-scenarios"]], "Configuration Errors": [[6, "configuration-errors"]], "Configuration Options": [[1, "configuration-options"]], "Contents:": [[3, null]], "Currency Conversion Support": [[2, "currency-conversion-support"]], "Error Handling": [[1, "error-handling"]], "Error Summary Table": [[6, "error-summary-table"]], "Example": [[4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null]], "Example Response": [[2, "example-response"]], "Example Response with Details": [[2, "example-response-with-details"]], "Exchange Rate Data": [[2, "exchange-rate-data"]], "First API Call": [[2, "first-api-call"]], "Getting Started": [[2, null]], "Global Metadata API": [[4, "global-metadata-api"]], "IBM Envizi - Emissions API Node.js SDK": [[3, null]], "Initialization Checklist": [[6, "initialization-checklist"]], "Installation": [[2, "installation"]], "Interfaces": [[4, "interfaces"]], "Introduction": [[3, "introduction"]], "Overview": [[0, "overview"], [1, "overview"], [2, "overview"], [6, "overview"]], "Personal Access Token (PAT) Authentication (Recommended)": [[0, "personal-access-token-pat-authentication-recommended"], [6, "personal-access-token-pat-authentication-recommended"]], "Pre-generated Token Authentication": [[0, "pre-generated-token-authentication"]], "Prerequisites": [[2, "prerequisites"]], "Reference": [[4, null]], "Required Configuration Parameters": [[6, "required-configuration-parameters"]], "Response Structure Details": [[2, "response-structure-details"]], "SDK": [[5, null]], "SDK Initialization Errors": [[6, "sdk-initialization-errors"]], "Scenario 1: Application Startup": [[6, "scenario-1-application-startup"]], "Scenario 2: Invalid Credentials": [[6, "scenario-2-invalid-credentials"]], "Scenario 3: Missing Configuration": [[6, "scenario-3-missing-configuration"]], "Scenario 4: Client Not Initialized": [[6, "scenario-4-client-not-initialized"]], "Security Best Practices": [[0, "security-best-practices"]], "Support": [[6, "support"]], "Supported Currencies": [[2, "supported-currencies"]], "Supported Emission Types": [[3, "supported-emission-types"]], "Token Authentication": [[6, "token-authentication"]], "Token Management": [[6, "token-management"]], "Token lifetime & refresh": [[0, "token-lifetime-refresh"]], "Token retrieval": [[0, "token-retrieval"]], "Troubleshooting Guide": [[6, null]], "Troubleshooting Steps": [[6, "troubleshooting-steps"]], "Type Recommender API": [[4, "type-recommender-api"]], "Usage API": [[4, "usage-api"]], "Using API Key": [[2, "using-api-key"]], "Using Personal Access Token (PAT)": [[2, "using-personal-access-token-pat"]], "Using Pre-generated JWT Token": [[2, "using-pre-generated-jwt-token"]], "getArea": [[4, "getarea"]], "getTypes": [[4, "gettypes"]], "getUnits": [[4, "getunits"]]}, "docnames": ["authentication", "client", "getting_started", "index", "reference", "sdk", "troubleshooting"], "envversion": {"sphinx": 64, "sphinx.domains.c": 3, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 9, "sphinx.domains.index": 1, "sphinx.domains.javascript": 3, "sphinx.domains.math": 2, "sphinx.domains.python": 4, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx.ext.viewcode": 1}, "filenames": ["authentication.rst", "client.rst", "getting_started.rst", "index.rst", "reference.rst", "sdk.rst", "troubleshooting.rst"], "indexentries": {"api.commonrequestwithfactorid() (interface)": [[4, "Api.CommonRequestWithFactorId", false]], "api.commonrequestwithoutfactorid() (interface)": [[4, "Api.CommonRequestWithoutFactorId", false]], "api.factorrequestwithfactorid() (interface)": [[4, "Api.FactorRequestWithFactorId", false]], "api.factorrequestwithoutfactorid() (interface)": [[4, "Api.FactorRequestWithoutFactorId", false]], "api.genericcalculationrequestwithfactorid() (interface)": [[4, "Api.GenericCalculationRequestWithFactorId", false]], "api.genericcalculationrequestwithoutfactorid() (interface)": [[4, "Api.GenericCalculationRequestWithoutFactorId", false]], "api.locationrequestwithfactorid() (interface)": [[4, "Api.LocationRequestWithFactorId", false]], "api.locationrequestwithoutfactorid() (interface)": [[4, "Api.LocationRequestWithoutFactorId", false]], "api.searchrequest() (interface)": [[4, "Api.SearchRequest", false]], "auditlog.getauditconfig() (auditlog method)": [[4, "AuditLog.getAuditConfig", false]], "auditlog.updateauditconfig() (auditlog method)": [[4, "AuditLog.updateAuditConfig", false]], "auditlogresponse.auditlogrequest() (interface)": [[4, "AuditLogResponse.AuditLogRequest", false]], "auditlogresponse.auditlogresponse() (interface)": [[4, "AuditLogResponse.AuditLogResponse", false]], "calculation.calculate() (calculation method)": [[4, "Calculation.calculate", false]], "client() (class)": [[4, "Client", false]], "client.getauthheader() (client method)": [[4, "Client.getAuthHeader", false]], "client.getclient() (client method)": [[4, "Client.getClient", false]], "client.getclientid() (client method)": [[4, "Client.getClientId", false]], "client.getclientsource() (client method)": [[4, "Client.getClientSource", false]], "client.getdomain() (client method)": [[4, "Client.getDomain", false]], "client.getinstance() (client method)": [[4, "Client.getInstance", false]], "client.refreshtoken() (client method)": [[4, "Client.refreshToken", false]], "common.activity() (interface)": [[4, "common.Activity", false]], "common.activitywithfactorid() (interface)": [[4, "common.ActivityWithFactorId", false]], "common.combinedunitsactivity() (interface)": [[4, "common.CombinedUnitsActivity", false]], "common.combinedunitsactivitywithfactorid() (interface)": [[4, "common.CombinedUnitsActivityWithFactorId", false]], "common.factoractivity() (interface)": [[4, "common.FactorActivity", false]], "common.factoractivitywithfactorid() (interface)": [[4, "common.FactorActivityWithFactorId", false]], "common.location() (interface)": [[4, "common.Location", false]], "common.pagination() (interface)": [[4, "common.Pagination", false]], "common.searchactivity() (interface)": [[4, "common.SearchActivity", false]], "common.time() (interface)": [[4, "common.Time", false]], "config.clientconfig() (interface)": [[4, "Config.ClientConfig", false]], "config.requestconfig() (interface)": [[4, "Config.RequestConfig", false]], "economicactivity.calculate() (economicactivity method)": [[4, "EconomicActivity.calculate", false]], "factor.retrievefactor() (factor method)": [[4, "Factor.retrieveFactor", false]], "factor.search() (factor method)": [[4, "Factor.search", false]], "fugitive.calculate() (fugitive method)": [[4, "Fugitive.calculate", false]], "location.calculate() (location method)": [[4, "Location.calculate", false]], "metadata.getarea() (metadata method)": [[4, "Metadata.getArea", false]], "metadata.gettypes() (metadata method)": [[4, "Metadata.getTypes", false]], "metadata.getunits() (metadata method)": [[4, "Metadata.getUnits", false]], "metadata.postarea() (metadata method)": [[4, "Metadata.postArea", false]], "metadata.posttypes() (metadata method)": [[4, "Metadata.postTypes", false]], "metadata.postunits() (metadata method)": [[4, "Metadata.postUnits", false]], "mobile.calculate() (mobile method)": [[4, "Mobile.calculate", false]], "realestate.calculate() (realestate method)": [[4, "RealEstate.calculate", false]], "request.makeapirequest() (request method)": [[4, "request.makeApiRequest", false]], "stationary.calculate() (stationary method)": [[4, "Stationary.calculate", false]], "transportationanddistribution.calculate() (transportationanddistribution method)": [[4, "TransportationAndDistribution.calculate", false]], "typerecommender.search() (typerecommender method)": [[4, "TypeRecommender.search", false]], "typerecommenderresponse.activityrequest() (interface)": [[4, "TypeRecommenderResponse.ActivityRequest", false]], "typerecommenderresponse.typerecommenderresponse() (interface)": [[4, "TypeRecommenderResponse.TypeRecommenderResponse", false]], "usage.getusage() (usage method)": [[4, "Usage.getUsage", false]], "utils.findexpirytime() (utils method)": [[4, "utils.findExpiryTime", false]]}, "objects": {"": [[4, 2, 1, "", "Client"]], "Api": [[4, 0, 1, "", "CommonRequestWithFactorId"], [4, 0, 1, "", "CommonRequestWithoutFactorId"], [4, 0, 1, "", "FactorRequestWithFactorId"], [4, 0, 1, "", "FactorRequestWithoutFactorId"], [4, 0, 1, "", "GenericCalculationRequestWithFactorId"], [4, 0, 1, "", "GenericCalculationRequestWithoutFactorId"], [4, 0, 1, "", "LocationRequestWithFactorId"], [4, 0, 1, "", "LocationRequestWithoutFactorId"], [4, 0, 1, "", "SearchRequest"]], "AuditLog": [[4, 1, 1, "", "getAuditConfig"], [4, 1, 1, "", "updateAuditConfig"]], "AuditLogResponse": [[4, 0, 1, "", "AuditLogRequest"], [4, 0, 1, "", "AuditLogResponse"]], "Calculation": [[4, 1, 1, "", "calculate"]], "Client": [[4, 1, 1, "", "getAuthHeader"], [4, 1, 1, "", "getClient"], [4, 1, 1, "", "getClientId"], [4, 1, 1, "", "getClientSource"], [4, 1, 1, "", "getDomain"], [4, 1, 1, "", "getInstance"], [4, 1, 1, "", "refreshToken"]], "Config": [[4, 0, 1, "", "ClientConfig"], [4, 0, 1, "", "RequestConfig"]], "EconomicActivity": [[4, 1, 1, "", "calculate"]], "Factor": [[4, 1, 1, "", "retrieveFactor"], [4, 1, 1, "", "search"]], "Fugitive": [[4, 1, 1, "", "calculate"]], "Location": [[4, 1, 1, "", "calculate"]], "Metadata": [[4, 1, 1, "", "getArea"], [4, 1, 1, "", "getTypes"], [4, 1, 1, "", "getUnits"], [4, 1, 1, "", "postArea"], [4, 1, 1, "", "postTypes"], [4, 1, 1, "", "postUnits"]], "Mobile": [[4, 1, 1, "", "calculate"]], "RealEstate": [[4, 1, 1, "", "calculate"]], "Stationary": [[4, 1, 1, "", "calculate"]], "TransportationAndDistribution": [[4, 1, 1, "", "calculate"]], "TypeRecommender": [[4, 1, 1, "", "search"]], "TypeRecommenderResponse": [[4, 0, 1, "", "ActivityRequest"], [4, 0, 1, "", "TypeRecommenderResponse"]], "Usage": [[4, 1, 1, "", "getUsage"]], "common": [[4, 0, 1, "", "Activity"], [4, 0, 1, "", "ActivityWithFactorId"], [4, 0, 1, "", "CombinedUnitsActivity"], [4, 0, 1, "", "CombinedUnitsActivityWithFactorId"], [4, 0, 1, "", "FactorActivity"], [4, 0, 1, "", "FactorActivityWithFactorId"], [4, 0, 1, "", "Location"], [4, 0, 1, "", "Pagination"], [4, 0, 1, "", "SearchActivity"], [4, 0, 1, "", "Time"]], "request": [[4, 1, 1, "", "makeApiRequest"]], "utils": [[4, 1, 1, "", "findExpiryTime"]]}, "objnames": {"0": ["js", "interface", "JavaScript interface"], "1": ["js", "function", "JavaScript function"], "2": ["js", "class", "JavaScript class"]}, "objtypes": {"0": "js:interface", "1": "js:function", "2": "js:class"}, "terms": {"": [0, 2, 4, 6], "0": [0, 2, 4, 6], "0000000000002": 2, "00001": 2, "00033022": 2, "00035": 2, "00036061": 2, "0067": 2, "01": [2, 4, 6], "01115131": 2, "0292": 2, "02956": 2, "02ae": 2, "04": [4, 6], "05": 6, "06": 4, "1": [2, 4], "10": [2, 4], "1000": 4, "1000000": 4, "12": 4, "121": 4, "1223123": 4, "123": 4, "12345": [4, 6], "123456": 4, "1340000": 2, "14123143": 4, "150": 4, "1500": 4, "1500000": 4, "170": 2, "17000": 4, "190405": 2, "2": [0, 2, 4], "2000": 2, "2000000": 4, "2001": 2, "2020": 4, "2022": [2, 4], "2024": 2, "2025": [2, 4, 6], "2026": 6, "20681091": 2, "20750174": 2, "29df5ecd": 2, "3": [2, 4], "31": [2, 6], "4": 2, "409": 4, "4797": 2, "47a3": 2, "500000": 4, "5000000": 4, "5840000": 2, "5912000": 2, "60": [4, 6], "70000": 2, "831bfca7cecd": 2, "9": 2, "95a7efe7": 2, "9999": [2, 4], "A": [0, 4, 6], "AED": 2, "For": [0, 1, 6], "If": [0, 2, 4, 6], "In": 0, "It": 1, "No": [1, 4], "OR": [1, 4], "Or": [2, 6], "That": 6, "The": [0, 1, 2, 3, 4, 5, 6], "Then": 4, "These": 6, "a7fd": 2, "about": [0, 1, 2, 4, 6], "accept": [0, 1, 2, 4], "access": [1, 4], "accomod": 4, "account": [2, 6], "across": [1, 2, 3, 4], "activ": [2, 3, 4, 6], "activityrequest": 4, "activitysubtyp": 2, "activitytyp": 2, "activitywithfactorid": 4, "adb": 2, "add": [0, 1], "afghani": 2, "afn": 2, "after": 2, "air": 2, "algerian": 2, "all": [1, 2, 4, 6], "alloc": 4, "allow": [2, 6], "allunit": 4, "alreadi": 4, "also": 6, "alwai": [2, 6], "amd": 2, "amend": 2, "an": [2, 4, 6], "ang": 2, "anga": 2, "ani": [4, 6], "antillean": 2, "aoa": 2, "api": [1, 5], "apidomain": 4, "apikei": [0, 1, 2, 4, 6], "appli": 2, "applic": [0, 1, 2, 3, 4], "approach": [0, 5], "appropri": [1, 2, 4], "ar": [2, 3, 4, 6], "arab": 2, "architectur": [3, 5], "area": [2, 3, 4], "areanam": 2, "arearespons": 4, "areatyp": 2, "argentin": 2, "argument": 4, "ariari": 2, "armenian": 2, "aruban": 2, "async": 4, "attempt": 6, "attribut": 4, "aud": 2, "audit": 3, "auditlog": 4, "auditlogrequest": 4, "auditlogrespons": 4, "australian": 2, "auth": 4, "authent": [3, 4, 5], "author": [0, 4], "authurl": [0, 1, 4, 6], "autom": 3, "automat": [0, 1, 2], "avail": [2, 4, 6], "await": [0, 1, 2, 4, 6], "awg": 2, "axio": 0, "azerbaijan": 2, "azn": 2, "b6fd": 2, "bahamian": 2, "bahraini": 2, "baht": 2, "balboa": 2, "bam": 2, "barbado": 2, "base": [2, 3, 4, 6], "basi": 2, "basic": 4, "bbd": 2, "bceao": 2, "bdt": 2, "beac": 2, "bearer": [0, 2, 4], "becom": 2, "befor": [0, 1, 2, 4, 6], "belarusian": 2, "beliz": 2, "bermudian": 2, "best": [3, 5], "bgn": 2, "bhd": 2, "bif": 2, "bill": [3, 4], "birr": 2, "bmd": 2, "bnd": 2, "bob": 2, "bodi": 6, "boliviano": 2, "bol\u00edvar": 2, "boolean": 4, "both": [4, 6], "bov": 2, "brazilian": 2, "britain": 2, "brl": 2, "brunei": 2, "bsd": 2, "btn": 2, "build": 3, "bulgarian": 2, "bulk": [2, 4], "bureau": 2, "burundi": 2, "busi": 3, "bwp": 2, "byn": 2, "bzd": 2, "cabo": 2, "cach": 0, "cad": 2, "calcul": [2, 3, 4, 6], "calculationrequest": 4, "california": [2, 4], "call": [0, 3, 4, 6], "can": [2, 4, 6], "canadian": 2, "cannot": 6, "captur": 2, "carbon": [2, 3], "cargo": [2, 4], "caribbean": 2, "carrier": [2, 4], "catch": 1, "caus": 6, "cayman": 2, "cdf": 2, "cedi": 2, "central": 1, "cfa": 2, "cfp": 2, "ch4": 2, "chain": 3, "chang": 4, "che": 2, "check": [0, 6], "checklist": 3, "chf": 2, "chilean": 2, "chw": 2, "citat": 2, "claim": 6, "class": 4, "classif": 2, "clf": 2, "client": [0, 2, 3, 4, 5], "client123": [4, 6], "clientconfig": 4, "clientid": [0, 1, 2, 4, 6], "climat": 2, "close": 1, "cloud": 6, "clp": 2, "cny": 2, "co2": 2, "coal": [4, 6], "code": [0, 6], "colombian": 2, "colon": 2, "com": [0, 4, 6], "combin": 6, "combinedunitsact": 4, "combinedunitsactivitywithfactorid": 4, "combust": 4, "commerci": [3, 4], "common": [3, 4], "commonrequest": 4, "commonrequestwithfactorid": 4, "commonrequestwithoutfactorid": 4, "comorian": 2, "complet": [4, 6], "complex": 4, "compon": [1, 2, 5], "comprehens": 2, "config": 4, "configur": [3, 4, 5], "confirm": 6, "conflict": 4, "congoles": 2, "connect": [1, 2, 6], "consist": 1, "consol": [1, 4, 6], "const": [2, 4, 6], "consumpt": 3, "contact": 6, "contain": [4, 6], "content": 4, "context": 4, "control": [0, 3, 4], "convers": 3, "conversionratio": 2, "convert": [2, 4], "cop": 2, "cordoba": 2, "correct": 6, "correctli": 6, "correspond": 6, "costa": 2, "cou": 2, "countri": [2, 4, 6], "cover": [2, 5, 6], "coverag": [2, 6], "crc": 2, "credenti": [0, 1, 2], "criteria": 4, "cross": 4, "cuban": 2, "cup": 2, "currenc": 3, "current": [2, 4], "custom": [1, 3, 4], "cve": 2, "czech": 2, "czk": 2, "da03bc007f30": 2, "dai": 2, "dalasi": 2, "danish": 2, "dashboard": 3, "data": [1, 4], "databas": [2, 3], "dataset": 3, "date": [2, 4, 6], "de": 2, "debug": 6, "decis": 3, "decod": 0, "default": [0, 1, 2, 4, 6], "defra": 2, "denar": 2, "depart": 2, "deploy": 0, "descript": [1, 2], "design": [1, 3], "detail": [0, 1, 3, 4, 6], "detect": 0, "determin": 4, "deviat": 2, "diagram": [3, 5], "diesel": 4, "differ": 4, "dinar": 2, "dioxid": 2, "directli": [0, 6], "dirham": 2, "disabl": 4, "distribut": [3, 4], "djf": 2, "djibouti": 2, "dkk": 2, "do": [0, 2, 6], "dobra": 2, "doc": 2, "document": [2, 6], "doe": 6, "doesn": [4, 6], "dollar": 2, "domain": [0, 4, 6], "dominican": 2, "don": 4, "dong": 2, "dop": 2, "dram": 2, "draw": 2, "dure": 6, "dwt": [2, 4], "dzd": 2, "e": [2, 4, 6], "each": 0, "earlier": 2, "earliest": 2, "earth": 2, "east": 2, "econom": [3, 4], "economicact": [2, 4], "egp": 2, "egrid": 2, "egyptian": 2, "either": 1, "el": 2, "electr": [2, 4], "email": 4, "embed": 3, "emiss": [0, 1, 2, 4, 5, 6], "emissionrespons": 4, "emissionresponsewithdetail": 4, "en": 2, "enabl": 6, "enablererank": 4, "encod": 4, "endpoint": [0, 1, 3, 4, 6], "energi": [2, 4], "engin": 3, "enotfound": 6, "ensur": [1, 2, 4, 6], "entir": 2, "env": [0, 1, 2], "environ": [0, 1, 6], "envizi": [0, 1, 5], "envizi_api_kei": [0, 1, 2], "envizi_client_id": [0, 1, 2], "envizi_org_id": [0, 1, 2], "envizi_pat_token": [0, 2], "envizisdk": 2, "epa": 2, "equip": 3, "equival": 2, "ern": 2, "error": [3, 5], "escudo": 2, "especi": 2, "estat": [3, 4], "etb": 2, "etc": 6, "ethiopian": 2, "eur": 2, "euro": 2, "european": 2, "exact": 4, "exampl": [3, 6], "excel": 0, "exclud": 6, "exist": [1, 4, 6], "exp": [0, 6], "expect": 4, "expir": [0, 1, 4, 6], "expiri": [0, 4], "expirytim": 4, "explain": 0, "export": 4, "extern": 0, "extract": 4, "factor": [2, 3, 4], "factoract": 4, "factoractivitywithfactorid": 4, "factorid": [2, 4], "factorrequest": 4, "factorrequestwithfactorid": 4, "factorrequestwithoutfactorid": 4, "factorrespons": 4, "factorset": 2, "fail": 6, "failur": [1, 6], "falkland": 2, "fals": 4, "fc3b": 2, "featur": 2, "fetch": 1, "field": 2, "fiji": 2, "filter": 3, "find": 4, "findexpirytim": [3, 4], "firewal": 6, "first": [3, 4, 6], "fiscal": 2, "fiscal_servic": 2, "fiscaldata": 2, "fix": 3, "fjd": 2, "fkp": 2, "flag": 4, "florin": 2, "flow": [3, 5], "follow": [0, 1, 2, 6], "fomento": 2, "footprint": 3, "forint": 2, "format": [0, 2], "franc": 2, "freight": [2, 4], "frequenc": 2, "fresh": [0, 4], "from": [0, 1, 2, 3, 4, 6], "fuel": [3, 4], "fugit": [3, 4, 6], "fugitivearea": 4, "fugitv": 4, "full": 4, "function": 6, "futur": 0, "g": [2, 4, 6], "ga": [2, 3, 4], "gbp": 2, "gel": 2, "gener": [1, 3, 4, 6], "genericcalculationrequestwithfactorid": 4, "genericcalculationrequestwithoutfactorid": 4, "geograph": [2, 4], "get": [0, 3, 4, 6], "getauditconfig": 4, "getauthhead": 4, "getclient": [0, 1, 2, 4, 6], "getclientid": 4, "getclientsourc": 4, "getconfig": 4, "getdomain": 4, "getinst": [4, 6], "getunit": 6, "getusag": 4, "gh": 2, "ghana": 2, "ghg": [2, 3], "ghgemiss": 0, "gibraltar": 2, "gip": 2, "give": 4, "global": [2, 3], "gmd": 2, "gnf": 2, "gold": 2, "gourd": 2, "gov": 2, "govern": 2, "gracefulli": [1, 4], "great": 2, "greenhous": [2, 3], "grid": 4, "gtq": 2, "guarani": 2, "guid": 3, "guilder": 2, "guinean": 2, "guyana": 2, "gyd": 2, "ha": 6, "handl": [0, 3, 4, 5, 6], "hardcod": 0, "have": [2, 4], "header": [1, 3, 4, 5, 6], "helena": 2, "here": 2, "hi": 2, "histor": [2, 3, 4], "histori": 4, "hkd": 2, "hnl": 2, "hong": 2, "host": [0, 1, 4], "hryvnia": 2, "htg": 2, "http": [0, 1, 2, 4], "httpcode": 6, "httpmessag": 6, "huf": 2, "human": 2, "i": [0, 1, 2, 3, 4, 6], "ibm": [0, 1, 5, 6], "ibmid": 2, "iceland": 2, "id": [0, 1, 4], "identifi": [0, 2, 3, 4], "idr": 2, "il": 2, "implement": [0, 1, 6], "import": [0, 1], "includ": [0, 2, 4, 6], "includedetail": 4, "indexada": 2, "indian": 2, "indic": 4, "indirect": 2, "indirectco2": 2, "industri": 4, "inform": [0, 1, 2, 4], "init": 0, "initi": [0, 2, 3, 4, 5], "input": 2, "inputunit": 2, "inr": 2, "instal": 3, "instanc": [1, 3, 4], "instead": [4, 6], "integr": [3, 5], "intend": 2, "interact": [4, 5], "interfac": [1, 3], "internet": 2, "introduct": 2, "invalid_api_key_12345": 6, "invers": 2, "involv": 4, "iqd": 2, "iranian": 2, "iraqi": 2, "ireland": 2, "irr": 2, "isk": 2, "island": 2, "isra": 2, "issu": [2, 6], "isuserprovidedtoken": 4, "j": [0, 1, 2, 5, 6], "jamaican": 2, "jet": 4, "jetkeroseneunit": 4, "jmd": 2, "jod": 2, "jordanian": 2, "jpy": 2, "json": [0, 2, 4], "jwt": [0, 4, 6], "jwt_token": [0, 2], "jwttoken": 4, "ke": 2, "kei": [1, 4, 5], "kenyan": 2, "kerosen": 4, "kg": [2, 4], "kgco2e": 2, "khr": 2, "kina": 2, "kingdom": 2, "kip": 2, "kj": [4, 6], "km": [2, 4], "kmf": 2, "known": 4, "kong": 2, "korean": 2, "koruna": 2, "kpw": 2, "krona": 2, "krone": 2, "krw": 2, "kuwaiti": 2, "kwacha": 2, "kwanza": 2, "kwd": 2, "kwh": [2, 4], "kyat": 2, "kyd": 2, "kzt": 2, "l": 4, "lack": 6, "lak": 2, "lanka": 2, "lao": 2, "larg": 3, "lari": 2, "last": 6, "layer": 0, "lbp": 2, "leader": 2, "leak": 3, "least": 0, "lebanes": 2, "lek": 2, "lempira": 2, "leon": 2, "let": 1, "leu": 2, "lev": 2, "level": 2, "liberian": 2, "libyan": 2, "licenc": 2, "licens": [2, 4], "lignit": [4, 6], "like": 3, "lilangeni": 2, "lira": 2, "list": 6, "lkr": 2, "ll": 6, "locat": [2, 3, 4, 6], "locationemiss": 2, "locationrequest": 4, "locationrequestwithfactorid": 4, "locationrequestwithoutfactorid": 4, "locationtyp": 4, "log": 3, "logist": 3, "logrequest": 4, "logrespons": 4, "look": 4, "loti": 2, "lrd": 2, "lsl": 2, "lyd": 2, "m2": 4, "mad": 2, "made": 4, "mai": 4, "maintain": 1, "majesti": 2, "make": [2, 3, 4], "makeapirequest": [0, 3, 4], "malagasi": 2, "malawi": 2, "malaysian": 2, "malform": 6, "manag": [0, 1, 2, 3], "manat": 2, "mani": 2, "march": 2, "mark": 2, "match": 6, "mauritiu": 2, "mdl": 2, "measur": [2, 4], "messag": [1, 4, 6], "metadata": 3, "methan": 2, "method": [1, 2, 3, 4, 5, 6], "methodologi": 2, "metic": 2, "metric": 4, "mexican": 2, "mga": 2, "mkd": 2, "mmk": 2, "mnt": 2, "mobil": [3, 4, 6], "mobilearea": 4, "mode": 0, "modul": [1, 2], "moldovan": 2, "monetari": 2, "mop": 2, "more": [0, 2, 6], "moreinform": 6, "moroccan": 2, "most": 2, "mozambiqu": 2, "mru": 2, "multipl": 4, "mur": 2, "must": 6, "mvdol": 2, "mvr": 2, "mwh": 4, "mwk": 2, "mxn": 2, "mxv": 2, "myr": 2, "mzn": 2, "n": 6, "n2o": 2, "nad": 2, "naira": 2, "nakfa": 2, "name": [2, 4], "namibia": 2, "nationalarch": 2, "natur": 4, "naturalgasunit": 4, "necessari": 0, "need": [0, 2, 4], "nepales": 2, "net": 2, "netherland": 2, "network": 6, "never": 0, "new": [0, 2, 4], "next": 2, "ngn": 2, "ngultrum": 2, "nio": 2, "nitrou": 2, "node": [0, 1, 2, 5, 6], "nok": 2, "north": 2, "northern": 2, "norwegian": 2, "note": [4, 6], "npm": 2, "npr": 2, "null": 6, "nzd": 2, "oauth": 0, "object": [2, 4], "obtain": [1, 2], "occur": [0, 6], "offic": 4, "offici": 2, "old": 0, "omani": 2, "omr": 2, "onc": [0, 1], "one": [0, 1], "onli": [0, 1, 4, 6], "onward": 2, "open": 2, "oper": [1, 3, 4, 6], "optim": 1, "option": [0, 3, 4, 5, 6], "org": 6, "org456": [4, 6], "organ": [0, 1, 2, 3, 4], "orgid": [0, 1, 2, 4, 6], "oro": 2, "other": [4, 6], "otherwis": 4, "ouguiya": 2, "output": 4, "outsid": 2, "outstandingamount": 4, "overview": [3, 5], "oxid": 2, "pa": 2, "pab": 2, "page": [0, 1, 2, 4], "pagin": 4, "pakistan": 2, "param": [0, 4], "paramet": [0, 1, 3, 4], "part": 4, "pass": 6, "pat": 4, "pataca": 2, "pattern": 5, "pattoken": [0, 2, 4, 6], "payload": 4, "pen": 2, "per": 2, "perform": 4, "period": [3, 4], "permiss": 6, "person": 4, "peso": 2, "pgk": 2, "philippin": 2, "php": 2, "physicalact": 2, "pkr": 2, "planet": 2, "pln": 2, "point": [4, 6], "polici": 2, "post": 4, "postarea": 4, "posttyp": 4, "postunit": 4, "pound": 2, "power": 4, "powergrid": 4, "practic": [3, 5], "pre": [1, 6], "prefer": 2, "prerequisit": 3, "prevision": 2, "primarili": 2, "principl": 0, "privileg": 0, "proce": 4, "process": [0, 1, 2], "product": [0, 1], "project": [2, 3], "promis": 4, "proper": [0, 1, 6], "properli": 6, "properti": [3, 4], "propertyvalu": 4, "proport": 4, "protocol": 2, "provid": [0, 1, 2, 4, 5], "public": 2, "publish": 2, "publishedfrom": 2, "pula": 2, "purchas": 4, "purpos": [2, 4], "pyg": 2, "qar": 2, "qatari": 2, "quarterli": 2, "queri": [0, 3, 4], "quetzal": 2, "quick": 2, "r134a": 4, "rand": 2, "ratio": 2, "re": [0, 6], "read": 2, "readabl": 2, "real": [2, 3, 4], "realest": [2, 4], "recommend": [2, 3], "record": 4, "refer": 3, "refresh": [1, 2, 4], "refreshtoken": 4, "regener": 6, "region": [2, 3], "relat": [2, 4, 6], "relev": 4, "remov": 6, "renew": 4, "renminbi": 2, "replac": 0, "report": 2, "repres": 4, "reproduc": 6, "request": [0, 1, 2, 3, 4], "requestconfig": 4, "requestwithattribut": 4, "requir": [0, 1, 2, 3], "rerank": [3, 4], "residenti": 3, "resolv": 4, "respond": 6, "respons": [0, 3, 4, 5], "restart": 6, "result": [2, 3, 4], "resultwithattribut": 4, "retriev": [2, 3, 4], "retrievefactor": 4, "return": [0, 2, 4, 6], "reus": 1, "revenu": 4, "review": 6, "revok": 6, "rial": 2, "rican": 2, "riel": 2, "right": 2, "ringgit": 2, "riyal": 2, "romanian": 2, "ron": 2, "rsd": 2, "rub": 2, "rubl": 2, "rufiyaa": 2, "run": 0, "rupe": 2, "rupiah": 2, "russian": 2, "rwanda": 2, "rwf": 2, "saascor": 0, "saint": 2, "salvador": 2, "sampl": 6, "sar": 2, "saudi": 2, "sbd": 2, "scale": 3, "scenario": [0, 3], "scope": [2, 3, 4], "scr": 2, "sdg": 2, "sdk": [0, 1, 2, 4], "sdr": 2, "search": [3, 4], "searchact": 4, "searchrequest": 4, "searchrespons": 4, "searchwithboth": 4, "searchwithoutrerank": 4, "searchwithscop": 4, "searchwithunit": 4, "second": [4, 6], "secret": 6, "section": 5, "secur": [1, 2, 3, 5, 6], "see": [0, 1], "sek": 2, "select": 2, "semant": [3, 4], "send": 0, "sensit": 6, "sent": 4, "serbian": 2, "server": 6, "servic": [0, 1, 2, 6], "set": [2, 4, 6], "sever": 1, "seychel": 2, "sgd": 2, "sheqel": 2, "shill": 2, "ship": [2, 4], "should": [4, 6], "shp": 2, "sign": 2, "singapor": 2, "singl": 4, "singleton": [0, 1, 4], "site": 2, "size": 4, "sle": 2, "so": 2, "soberano": 2, "sol": 2, "solomon": 2, "solut": 6, "som": 2, "somali": 2, "somoni": 2, "soon": 2, "sourc": [0, 2, 3, 4], "sourceurl": 2, "south": 2, "special": 2, "specif": [1, 2, 3, 4, 6], "specifi": [2, 4], "spend": [3, 4], "srd": 2, "sri": 2, "ssp": 2, "stack": 6, "standard": [4, 6], "start": [3, 6], "startup": 1, "state": 2, "stateprovinc": [2, 4], "static": 4, "stationari": [3, 4, 6], "stationarytyp": 4, "statu": [1, 4, 6], "steam": 6, "steel": 4, "step": [0, 3], "sterl": 2, "stn": 2, "storag": 4, "store": [0, 1, 3, 4, 6], "string": [0, 4], "structur": 5, "subsequ": 6, "subtyp": 2, "successfulli": 6, "sucr": 2, "sudanes": 2, "sum": 2, "summari": 3, "suppli": 3, "support": [1, 4], "surinam": 2, "sustain": 3, "svc": 2, "swedish": 2, "swiss": 2, "symbol": 2, "synchron": 2, "syp": 2, "syrian": 2, "system": 2, "szl": 2, "t": [2, 4, 6], "tabl": [3, 4], "taiwan": 2, "taka": 2, "tala": 2, "tanzanian": 2, "target": 6, "teng": 2, "than": 2, "thb": 2, "thei": [2, 4, 6], "them": 2, "thi": [0, 2, 4, 5, 6], "three": [0, 2, 6], "throw": 6, "thrown": 6, "time": [0, 4, 6], "timestamp": 4, "tj": 2, "tmt": 2, "tnd": 2, "tobago": 2, "togeth": 6, "toisostr": 4, "token": [1, 3, 4], "tonn": 2, "top": 2, "total": 2, "totalco2": 2, "trace": 6, "track": 3, "transactionid": 2, "transport": [2, 3, 4], "transportationanddistribut": 4, "travel": [2, 4], "treasuri": 2, "trim": 0, "trinidad": 2, "troubleshoot": 3, "true": 4, "try": [1, 2], "ttd": 2, "tugrik": 2, "tunisian": 2, "turkish": 2, "turkmenistan": 2, "twd": 2, "type": [2, 6], "typerecommend": 4, "typerecommenderrespons": 4, "typerespons": 4, "typic": 2, "tz": 2, "u": 2, "uae": 2, "uah": 2, "udi": 2, "uganda": 2, "ugx": 2, "ui": 2, "uk": 2, "unauthor": 6, "unidad": 2, "unifi": [1, 4], "uniqu": 2, "unit": [2, 3, 4, 6], "unitrespons": 4, "unix": 4, "unless": 1, "unreach": 6, "uom": 4, "up": [2, 4, 6], "updat": [2, 4, 6], "updateauditconfig": 4, "url": [0, 2, 4], "uruguai": 2, "uruguayo": 2, "us": [0, 1, 3, 4, 6], "usa": [2, 4, 6], "usag": [1, 3, 5], "usagerespons": 4, "usd": [2, 4], "user": [0, 1, 2, 4, 6], "userdata": 4, "usn": 2, "util": [3, 4], "uyi": 2, "uyu": 2, "uyw": 2, "uz": 2, "uzbekistan": 2, "v": [0, 1], "valid": [0, 1, 2, 6], "valor": 2, "valu": [2, 4, 6], "variabl": [0, 1, 6], "vatu": 2, "ve": 2, "ved": 2, "vehicl": 3, "verd": 2, "verifi": [1, 6], "version": [2, 6], "vnd": 2, "void": 4, "vuv": 2, "wa": [2, 4, 6], "wai": 4, "warehous": 4, "wast": 4, "web": 4, "wecc": 4, "when": [0, 2, 4, 6], "where": [0, 2, 4], "whether": [3, 4], "which": [0, 2, 4], "while": 2, "wir": 2, "within": [4, 6], "without": [4, 6], "won": 2, "work": 1, "wrong": 6, "wst": 2, "www": 2, "x": [0, 4], "xad": 2, "xaf": 2, "xcd": 2, "xcg": 2, "xdr": 2, "xof": 2, "xpf": 2, "xsu": 2, "xua": 2, "yarn": 2, "ye": 1, "year": 2, "yemeni": 2, "yen": 2, "yer": 2, "york": 4, "you": [0, 2, 6], "your": [0, 1, 2, 3, 4, 6], "yuan": 2, "zambian": 2, "zar": 2, "zealand": 2, "zero": 2, "zimbabw": 2, "zloti": 2, "zmw": 2, "zwg": 2}, "titles": ["Authentication", "Client", "Getting Started", "IBM Envizi - Emissions API Node.js SDK", "Reference", "SDK", "Troubleshooting Guide"], "titleterms": {"1": 6, "10": 6, "2": 6, "3": 6, "4": 6, "401": 6, "5": 6, "6": 6, "7": 6, "8": 6, "9": 6, "Not": 6, "access": [0, 2, 6], "addit": 3, "api": [0, 2, 3, 4, 6], "applic": 6, "architectur": 0, "audit": 4, "auth": 6, "authent": [0, 1, 2, 6], "automat": 6, "basic": 2, "best": [0, 1], "call": 2, "capabl": 3, "checklist": 6, "client": [1, 6], "common": 6, "configur": [1, 6], "content": 3, "convers": 2, "credenti": 6, "currenc": 2, "custom": 6, "data": 2, "detail": 2, "diagram": 0, "emiss": 3, "empti": 6, "envizi": 3, "error": [1, 6], "exampl": [2, 4], "exchang": 2, "expiri": 6, "field": 6, "first": 2, "flow": 0, "gener": [0, 2], "get": 2, "getarea": 4, "gettyp": 4, "getunit": 4, "global": 4, "guid": 6, "handl": 1, "header": 0, "host": 6, "http": 6, "ibm": 3, "id": 6, "import": 2, "initi": [1, 6], "instal": 2, "instanc": 6, "integr": 1, "interfac": 4, "introduct": 3, "invalid": 6, "j": 3, "jwt": 2, "kei": [0, 2, 6], "lifetim": 0, "log": 4, "manag": 6, "metadata": 4, "method": 0, "miss": 6, "node": 3, "option": 1, "organ": 6, "overview": [0, 1, 2, 6], "paramet": 6, "pat": [0, 2, 6], "person": [0, 2, 6], "practic": [0, 1], "pre": [0, 2], "prerequisit": 2, "provid": 6, "rate": 2, "recommend": [0, 4, 6], "refer": 4, "refresh": [0, 6], "requir": 6, "respons": [1, 2, 6], "retriev": 0, "scenario": 6, "sdk": [3, 5, 6], "secur": 0, "start": 2, "startup": 6, "step": 6, "structur": 2, "summari": 6, "support": [2, 3, 6], "tabl": 6, "token": [0, 2, 6], "troubleshoot": 6, "type": [3, 4], "url": 6, "us": 2, "usag": 4}})
1
+ Search.setIndex({"alltitles": {"1. Missing Auth URL with Custom Host": [[6, "missing-auth-url-with-custom-host"]], "10. Missing Expiry Field in Token": [[6, "missing-expiry-field-in-token"]], "2. Missing Client ID with Token": [[6, "missing-client-id-with-token"]], "3. Missing Parameters with API Key": [[6, "missing-parameters-with-api-key"]], "4. Missing Client ID with PAT Token": [[6, "missing-client-id-with-pat-token"]], "5. Organization ID Provided with PAT Token": [[6, "organization-id-provided-with-pat-token"]], "6. Invalid API Key": [[6, "invalid-api-key"]], "7. Invalid Organization ID": [[6, "invalid-organization-id"]], "8. Invalid Client ID": [[6, "invalid-client-id"]], "9. Empty Token Response": [[6, "empty-token-response"]], "API": [[4, "api"]], "API Key Authentication": [[0, "api-key-authentication"], [6, "api-key-authentication"]], "Additional capabilities": [[3, "additional-capabilities"]], "Architecture Diagram": [[0, "architecture-diagram"]], "Attribution Summary": [[2, "attribution-summary"]], "Audit Export API": [[4, "audit-export-api"]], "Audit Log API": [[4, "audit-log-api"]], "Authentication": [[0, null], [2, "authentication"]], "Authentication Errors (HTTP 401)": [[6, "authentication-errors-http-401"]], "Authentication Flow": [[0, "authentication-flow"]], "Authentication Headers": [[0, "authentication-headers"]], "Authentication Integration": [[1, "authentication-integration"]], "Authentication Methods": [[0, "authentication-methods"]], "Automatic Token Refresh": [[6, "automatic-token-refresh"]], "Basic Import": [[2, "basic-import"]], "Best Practices": [[1, "best-practices"]], "Client": [[1, null]], "Client Initialization": [[1, "client-initialization"]], "Client Instance Errors": [[6, "client-instance-errors"]], "Client Not Initialized": [[6, "client-not-initialized"]], "Client Responsibilities": [[1, "client-responsibilities"]], "Common Scenarios": [[6, "common-scenarios"]], "Configuration Errors": [[6, "configuration-errors"]], "Configuration Options": [[1, "configuration-options"]], "Contents:": [[3, null]], "Currency Conversion Support": [[2, "currency-conversion-support"]], "Economic Activity": [[2, "economic-activity"]], "Error Handling": [[1, "error-handling"]], "Error Summary Table": [[6, "error-summary-table"]], "Example": [[4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null], [4, null]], "Example Response": [[2, "example-response"]], "Example Response with Details": [[2, "example-response-with-details"]], "Exchange Rate Data": [[2, "exchange-rate-data"]], "Finance Emissions APIs": [[2, "finance-emissions-apis"]], "First API Call": [[2, "first-api-call"]], "Getting Started": [[2, null]], "Global Metadata API": [[4, "global-metadata-api"]], "IBM Envizi - Emissions API Node.js SDK": [[3, null]], "Initialization Checklist": [[6, "initialization-checklist"]], "Installation": [[2, "installation"]], "Interfaces": [[4, "interfaces"]], "Introduction": [[3, "introduction"]], "Overview": [[0, "overview"], [1, "overview"], [2, "overview"], [6, "overview"]], "Personal Access Token (PAT) Authentication (Recommended)": [[0, "personal-access-token-pat-authentication-recommended"], [6, "personal-access-token-pat-authentication-recommended"]], "Physical Activity": [[2, "physical-activity"]], "Pre-generated Token Authentication": [[0, "pre-generated-token-authentication"]], "Prerequisites": [[2, "prerequisites"]], "Real Estate": [[2, "real-estate"]], "Reference": [[4, null]], "Required Configuration Parameters": [[6, "required-configuration-parameters"]], "Response Structure Details": [[2, "response-structure-details"]], "SDK": [[5, null]], "SDK Initialization Errors": [[6, "sdk-initialization-errors"]], "Scenario 1: Application Startup": [[6, "scenario-1-application-startup"]], "Scenario 2: Invalid Credentials": [[6, "scenario-2-invalid-credentials"]], "Scenario 3: Missing Configuration": [[6, "scenario-3-missing-configuration"]], "Scenario 4: Client Not Initialized": [[6, "scenario-4-client-not-initialized"]], "Security Best Practices": [[0, "security-best-practices"]], "Support": [[6, "support"]], "Supported Currencies": [[2, "supported-currencies"]], "Supported Emission Types": [[3, "supported-emission-types"]], "Token Authentication": [[6, "token-authentication"]], "Token Management": [[6, "token-management"]], "Token lifetime & refresh": [[0, "token-lifetime-refresh"]], "Token retrieval": [[0, "token-retrieval"]], "Troubleshooting Guide": [[6, null]], "Troubleshooting Steps": [[6, "troubleshooting-steps"]], "Type Recommender API": [[4, "type-recommender-api"]], "Usage API": [[4, "usage-api"]], "Using API Key": [[2, "using-api-key"]], "Using Personal Access Token (PAT)": [[2, "using-personal-access-token-pat"]], "Using Pre-generated JWT Token": [[2, "using-pre-generated-jwt-token"]], "getArea": [[4, "getarea"]], "getTypes": [[4, "gettypes"]], "getUnits": [[4, "getunits"]]}, "docnames": ["authentication", "client", "getting_started", "index", "reference", "sdk", "troubleshooting"], "envversion": {"sphinx": 64, "sphinx.domains.c": 3, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 9, "sphinx.domains.index": 1, "sphinx.domains.javascript": 3, "sphinx.domains.math": 2, "sphinx.domains.python": 4, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx.ext.viewcode": 1}, "filenames": ["authentication.rst", "client.rst", "getting_started.rst", "index.rst", "reference.rst", "sdk.rst", "troubleshooting.rst"], "indexentries": {"api.commonrequestwithfactorid() (interface)": [[4, "Api.CommonRequestWithFactorId", false]], "api.commonrequestwithoutfactorid() (interface)": [[4, "Api.CommonRequestWithoutFactorId", false]], "api.factorrequestwithfactorid() (interface)": [[4, "Api.FactorRequestWithFactorId", false]], "api.factorrequestwithoutfactorid() (interface)": [[4, "Api.FactorRequestWithoutFactorId", false]], "api.genericcalculationrequestwithfactorid() (interface)": [[4, "Api.GenericCalculationRequestWithFactorId", false]], "api.genericcalculationrequestwithoutfactorid() (interface)": [[4, "Api.GenericCalculationRequestWithoutFactorId", false]], "api.locationrequestwithfactorid() (interface)": [[4, "Api.LocationRequestWithFactorId", false]], "api.locationrequestwithoutfactorid() (interface)": [[4, "Api.LocationRequestWithoutFactorId", false]], "api.searchrequest() (interface)": [[4, "Api.SearchRequest", false]], "auditexport.download() (auditexport method)": [[4, "AuditExport.download", false]], "auditexport.getstatus() (auditexport method)": [[4, "AuditExport.getStatus", false]], "auditexport.trigger() (auditexport method)": [[4, "AuditExport.trigger", false]], "auditexportresponse.auditexportlinks() (interface)": [[4, "AuditExportResponse.AuditExportLinks", false]], "auditexportresponse.auditexportrequest() (interface)": [[4, "AuditExportResponse.AuditExportRequest", false]], "auditexportresponse.auditexportresponse() (interface)": [[4, "AuditExportResponse.AuditExportResponse", false]], "auditexportresponse.auditexportstatusresponse() (interface)": [[4, "AuditExportResponse.AuditExportStatusResponse", false]], "auditlog.getauditconfig() (auditlog method)": [[4, "AuditLog.getAuditConfig", false]], "auditlog.updateauditconfig() (auditlog method)": [[4, "AuditLog.updateAuditConfig", false]], "auditlogresponse.auditlogrequest() (interface)": [[4, "AuditLogResponse.AuditLogRequest", false]], "auditlogresponse.auditlogresponse() (interface)": [[4, "AuditLogResponse.AuditLogResponse", false]], "calculation.calculate() (calculation method)": [[4, "Calculation.calculate", false]], "client() (class)": [[4, "Client", false]], "client.getauthheader() (client method)": [[4, "Client.getAuthHeader", false]], "client.getclient() (client method)": [[4, "Client.getClient", false]], "client.getclientid() (client method)": [[4, "Client.getClientId", false]], "client.getclientsource() (client method)": [[4, "Client.getClientSource", false]], "client.getdomain() (client method)": [[4, "Client.getDomain", false]], "client.getinstance() (client method)": [[4, "Client.getInstance", false]], "client.refreshtoken() (client method)": [[4, "Client.refreshToken", false]], "common.activity() (interface)": [[4, "common.Activity", false]], "common.activitywithfactorid() (interface)": [[4, "common.ActivityWithFactorId", false]], "common.combinedunitsactivity() (interface)": [[4, "common.CombinedUnitsActivity", false]], "common.combinedunitsactivitywithfactorid() (interface)": [[4, "common.CombinedUnitsActivityWithFactorId", false]], "common.factoractivity() (interface)": [[4, "common.FactorActivity", false]], "common.factoractivitywithfactorid() (interface)": [[4, "common.FactorActivityWithFactorId", false]], "common.location() (interface)": [[4, "common.Location", false]], "common.pagination() (interface)": [[4, "common.Pagination", false]], "common.searchactivity() (interface)": [[4, "common.SearchActivity", false]], "common.time() (interface)": [[4, "common.Time", false]], "config.clientconfig() (interface)": [[4, "Config.ClientConfig", false]], "config.requestconfig() (interface)": [[4, "Config.RequestConfig", false]], "economicactivity.calculate() (economicactivity method)": [[4, "EconomicActivity.calculate", false]], "factor.retrievefactor() (factor method)": [[4, "Factor.retrieveFactor", false]], "factor.search() (factor method)": [[4, "Factor.search", false]], "fugitive.calculate() (fugitive method)": [[4, "Fugitive.calculate", false]], "location.calculate() (location method)": [[4, "Location.calculate", false]], "metadata.getarea() (metadata method)": [[4, "Metadata.getArea", false]], "metadata.gettypes() (metadata method)": [[4, "Metadata.getTypes", false]], "metadata.getunits() (metadata method)": [[4, "Metadata.getUnits", false]], "metadata.postarea() (metadata method)": [[4, "Metadata.postArea", false]], "metadata.posttypes() (metadata method)": [[4, "Metadata.postTypes", false]], "metadata.postunits() (metadata method)": [[4, "Metadata.postUnits", false]], "mobile.calculate() (mobile method)": [[4, "Mobile.calculate", false]], "physicalactivity.calculate() (physicalactivity method)": [[4, "PhysicalActivity.calculate", false]], "realestate.calculate() (realestate method)": [[4, "RealEstate.calculate", false]], "request.makeapirequest() (request method)": [[4, "request.makeApiRequest", false]], "stationary.calculate() (stationary method)": [[4, "Stationary.calculate", false]], "transportationanddistribution.calculate() (transportationanddistribution method)": [[4, "TransportationAndDistribution.calculate", false]], "typerecommender.search() (typerecommender method)": [[4, "TypeRecommender.search", false]], "typerecommenderresponse.activityrequest() (interface)": [[4, "TypeRecommenderResponse.ActivityRequest", false]], "typerecommenderresponse.typerecommenderresponse() (interface)": [[4, "TypeRecommenderResponse.TypeRecommenderResponse", false]], "usage.getusage() (usage method)": [[4, "Usage.getUsage", false]], "utils.findexpirytime() (utils method)": [[4, "utils.findExpiryTime", false]]}, "objects": {"": [[4, 2, 1, "", "Client"]], "Api": [[4, 0, 1, "", "CommonRequestWithFactorId"], [4, 0, 1, "", "CommonRequestWithoutFactorId"], [4, 0, 1, "", "FactorRequestWithFactorId"], [4, 0, 1, "", "FactorRequestWithoutFactorId"], [4, 0, 1, "", "GenericCalculationRequestWithFactorId"], [4, 0, 1, "", "GenericCalculationRequestWithoutFactorId"], [4, 0, 1, "", "LocationRequestWithFactorId"], [4, 0, 1, "", "LocationRequestWithoutFactorId"], [4, 0, 1, "", "SearchRequest"]], "AuditExport": [[4, 1, 1, "", "download"], [4, 1, 1, "", "getStatus"], [4, 1, 1, "", "trigger"]], "AuditExportResponse": [[4, 0, 1, "", "AuditExportLinks"], [4, 0, 1, "", "AuditExportRequest"], [4, 0, 1, "", "AuditExportResponse"], [4, 0, 1, "", "AuditExportStatusResponse"]], "AuditLog": [[4, 1, 1, "", "getAuditConfig"], [4, 1, 1, "", "updateAuditConfig"]], "AuditLogResponse": [[4, 0, 1, "", "AuditLogRequest"], [4, 0, 1, "", "AuditLogResponse"]], "Calculation": [[4, 1, 1, "", "calculate"]], "Client": [[4, 1, 1, "", "getAuthHeader"], [4, 1, 1, "", "getClient"], [4, 1, 1, "", "getClientId"], [4, 1, 1, "", "getClientSource"], [4, 1, 1, "", "getDomain"], [4, 1, 1, "", "getInstance"], [4, 1, 1, "", "refreshToken"]], "Config": [[4, 0, 1, "", "ClientConfig"], [4, 0, 1, "", "RequestConfig"]], "EconomicActivity": [[4, 1, 1, "", "calculate"]], "Factor": [[4, 1, 1, "", "retrieveFactor"], [4, 1, 1, "", "search"]], "Fugitive": [[4, 1, 1, "", "calculate"]], "Location": [[4, 1, 1, "", "calculate"]], "Metadata": [[4, 1, 1, "", "getArea"], [4, 1, 1, "", "getTypes"], [4, 1, 1, "", "getUnits"], [4, 1, 1, "", "postArea"], [4, 1, 1, "", "postTypes"], [4, 1, 1, "", "postUnits"]], "Mobile": [[4, 1, 1, "", "calculate"]], "PhysicalActivity": [[4, 1, 1, "", "calculate"]], "RealEstate": [[4, 1, 1, "", "calculate"]], "Stationary": [[4, 1, 1, "", "calculate"]], "TransportationAndDistribution": [[4, 1, 1, "", "calculate"]], "TypeRecommender": [[4, 1, 1, "", "search"]], "TypeRecommenderResponse": [[4, 0, 1, "", "ActivityRequest"], [4, 0, 1, "", "TypeRecommenderResponse"]], "Usage": [[4, 1, 1, "", "getUsage"]], "common": [[4, 0, 1, "", "Activity"], [4, 0, 1, "", "ActivityWithFactorId"], [4, 0, 1, "", "CombinedUnitsActivity"], [4, 0, 1, "", "CombinedUnitsActivityWithFactorId"], [4, 0, 1, "", "FactorActivity"], [4, 0, 1, "", "FactorActivityWithFactorId"], [4, 0, 1, "", "Location"], [4, 0, 1, "", "Pagination"], [4, 0, 1, "", "SearchActivity"], [4, 0, 1, "", "Time"]], "request": [[4, 1, 1, "", "makeApiRequest"]], "utils": [[4, 1, 1, "", "findExpiryTime"]]}, "objnames": {"0": ["js", "interface", "JavaScript interface"], "1": ["js", "function", "JavaScript function"], "2": ["js", "class", "JavaScript class"]}, "objtypes": {"0": "js:interface", "1": "js:function", "2": "js:class"}, "terms": {"": [0, 2, 4, 6], "0": [0, 2, 4, 6], "0000000000002": 2, "00001": 2, "00033022": 2, "00035": 2, "00036061": 2, "0067": 2, "01": [2, 4, 6], "01115131": 2, "0292": 2, "02956": 2, "02ae": 2, "03": 4, "04": [2, 4, 6], "05": 6, "06": 4, "1": [2, 4], "10": [2, 4], "1000": 4, "1000000": [2, 4], "10000000": [2, 4], "12": [2, 4], "121": 4, "1223123": 4, "123": 4, "12345": [4, 6], "123456": [2, 4], "1340000": 2, "14123143": 4, "150": 4, "1500": [2, 4], "1500000": 4, "170": 2, "17000": 4, "190405": 2, "2": [0, 2, 4], "2000": 2, "2000000": [2, 4], "2001": 2, "2020": 4, "2022": [2, 4], "2024": 2, "2025": [2, 4, 6], "2026": 6, "20681091": 2, "20750174": 2, "23": 4, "29df5ecd": 2, "3": [2, 3, 4], "3000000": [2, 4], "31": [2, 4, 6], "4": 2, "400": 2, "409": 4, "4797": 2, "47a3": 2, "500000": [2, 4], "5000000": [2, 4], "5840000": 2, "5912000": 2, "60": [4, 6], "70000": 2, "831bfca7cecd": 2, "9": 2, "95a7efe7": 2, "9999": [2, 4], "A": [0, 4, 6], "AED": 2, "For": [0, 1, 6], "If": [0, 2, 4, 6], "In": 0, "It": 1, "No": [1, 4], "OR": [1, 4], "Or": [2, 6], "That": 6, "The": [0, 1, 2, 3, 4, 5, 6], "Then": 4, "These": 6, "With": 2, "a7fd": 2, "about": [0, 1, 2, 4, 6], "accept": [0, 1, 2, 4], "access": [1, 4], "accomod": [2, 4], "account": [2, 6], "across": [1, 2, 3, 4], "activ": [3, 4, 6], "activityrequest": 4, "activitysubtyp": 2, "activitytyp": 2, "activitywithfactorid": 4, "adb": 2, "add": [0, 1], "admin": 4, "afghani": 2, "afn": 2, "after": 2, "air": 2, "algerian": 2, "all": [1, 2, 4, 6], "alloc": [2, 4], "allow": [2, 6], "allunit": 4, "alreadi": 4, "also": 6, "alwai": [2, 6], "amd": 2, "amend": 2, "an": [2, 4, 6], "ang": 2, "anga": 2, "ani": [4, 6], "antillean": 2, "aoa": 2, "api": [1, 5], "apidomain": 4, "apikei": [0, 1, 2, 4, 6], "apinam": 4, "appli": 2, "applic": [0, 1, 2, 3, 4], "approach": [0, 5], "appropri": [1, 2, 4], "ar": [2, 3, 4, 6], "arab": 2, "architectur": [3, 5], "archiv": 4, "area": [2, 3, 4], "areanam": 2, "arearespons": 4, "areatyp": 2, "argentin": 2, "argument": 4, "ariari": 2, "armenian": 2, "arraybufferlik": 4, "aruban": 2, "async": 4, "asynchron": 4, "attempt": 6, "attribut": [3, 4], "aud": 2, "audit": 3, "auditexport": 4, "auditexportlink": 4, "auditexportrequest": 4, "auditexportrespons": 4, "auditexportstatusrespons": 4, "auditexportzip": 4, "auditlog": 4, "auditlogrequest": 4, "auditlogrespons": 4, "australian": 2, "auth": 4, "authent": [3, 4, 5], "author": [0, 4], "authurl": [0, 1, 4, 6], "autom": 3, "automat": [0, 1, 2], "avail": [2, 4, 6], "await": [0, 1, 2, 4, 6], "awg": 2, "axio": 0, "azerbaijan": 2, "azn": 2, "b6fd": 2, "bahamian": 2, "bahraini": 2, "baht": 2, "balboa": 2, "bam": 2, "barbado": 2, "base": [2, 3, 4, 6], "basi": 2, "basic": 4, "bbd": 2, "bceao": 2, "bdt": 2, "beac": 2, "bearer": [0, 2, 4], "becom": 2, "befor": [0, 1, 2, 4, 6], "belarusian": 2, "beliz": 2, "bermudian": 2, "best": [3, 5], "bgn": 2, "bhd": 2, "bif": 2, "bill": [3, 4], "birr": 2, "bmd": 2, "bnd": 2, "bob": 2, "bodi": [4, 6], "boliviano": 2, "bol\u00edvar": 2, "boolean": 4, "both": [2, 4, 6], "bov": 2, "brazilian": 2, "britain": 2, "brl": 2, "brunei": 2, "bsd": 2, "btn": 2, "buffer": 4, "build": 3, "bulgarian": 2, "bulk": [2, 4], "bureau": 2, "burundi": 2, "busi": 3, "bwp": 2, "byn": 2, "bzd": 2, "cabo": 2, "cach": 0, "cad": 2, "calcul": [2, 3, 4, 6], "calculationrequest": 4, "california": [2, 4], "call": [0, 3, 4, 6], "can": [2, 4, 6], "canadian": 2, "cannot": 6, "captur": 2, "carbon": [2, 3], "cargo": [2, 4], "caribbean": 2, "carrier": [2, 4], "cash": 4, "catch": 1, "caus": 6, "cayman": 2, "cdf": 2, "cedi": 2, "central": 1, "cfa": 2, "cfp": 2, "ch4": 2, "chain": 3, "chang": 4, "che": 2, "check": [0, 4, 6], "checklist": 3, "chf": 2, "chilean": 2, "chw": 2, "citat": 2, "claim": 6, "class": 4, "classif": 2, "clf": 2, "client": [0, 2, 3, 4, 5], "client123": [4, 6], "clientconfig": 4, "clientid": [0, 1, 2, 4, 6], "climat": 2, "close": 1, "cloud": 6, "clp": 2, "cny": 2, "co2": 2, "coal": [4, 6], "code": [0, 6], "colombian": 2, "colon": 2, "com": [0, 4, 6], "combin": 6, "combinedunitsact": 4, "combinedunitsactivitywithfactorid": 4, "combust": 4, "commerci": [2, 3, 4], "common": [3, 4], "commonrequest": 4, "commonrequestwithfactorid": 4, "commonrequestwithoutfactorid": 4, "comorian": 2, "compani": [2, 3, 4], "complet": [4, 6], "complex": 4, "compon": [1, 2, 5], "comprehens": 2, "comput": 2, "config": 4, "configur": [3, 4, 5], "confirm": 6, "conflict": 4, "congoles": 2, "connect": [1, 2, 6], "consist": 1, "consol": [1, 4, 6], "const": [2, 4, 6], "consumpt": 3, "contact": 6, "contain": [4, 6], "content": 4, "context": 4, "control": [0, 3, 4], "convers": 3, "conversionratio": 2, "convert": [2, 4], "cop": 2, "cordoba": 2, "correct": 6, "correctli": 6, "correspond": 6, "costa": 2, "cou": 2, "countri": [2, 4, 6], "cover": [2, 5, 6], "coverag": [2, 6], "crc": 2, "creat": 4, "credenti": [0, 1, 2], "criteria": 4, "cross": 4, "csv": 4, "cuban": 2, "cup": 2, "currenc": 3, "current": [2, 4], "custom": [1, 3, 4], "cve": 2, "czech": 2, "czk": 2, "da03bc007f30": 2, "dai": 2, "dalasi": 2, "danish": 2, "dashboard": 3, "data": [1, 3, 4], "databas": [2, 3], "dataset": 3, "date": [2, 4, 6], "de": 2, "debt": [2, 3, 4], "debug": 6, "decis": 3, "decod": 0, "default": [0, 1, 2, 4, 6], "defra": 2, "denar": 2, "depart": 2, "deploy": 0, "descript": [1, 2], "design": [1, 3], "detail": [0, 1, 3, 4, 6], "detect": 0, "determin": 4, "deviat": 2, "diagram": [3, 5], "diesel": 4, "differ": 4, "dinar": 2, "dioxid": 2, "directli": [0, 6], "dirham": 2, "disabl": 4, "distribut": [3, 4], "djf": 2, "djibouti": 2, "dkk": 2, "do": [0, 2, 6], "dobra": 2, "doc": 2, "document": [2, 6], "doe": [2, 6], "doesn": [4, 6], "dollar": 2, "domain": [0, 4, 6], "dominican": 2, "don": 4, "dong": 2, "dop": 2, "download": [3, 4], "dram": 2, "draw": 2, "dure": 6, "dwt": [2, 4], "dzd": 2, "e": [2, 4, 6], "each": [0, 2], "earlier": 2, "earliest": 2, "earth": 2, "east": 2, "econom": [3, 4], "economicact": [2, 4], "egp": 2, "egrid": 2, "egyptian": 2, "either": 1, "el": 2, "electr": [2, 4], "email": 4, "embed": 3, "emiss": [0, 1, 4, 5, 6], "emissionrespons": 4, "emissionresponsewithdetail": 4, "en": 2, "enabl": 6, "enablererank": 4, "encod": 4, "endpoint": [0, 1, 3, 4, 6], "energi": [2, 4], "engin": 3, "enotfound": 6, "ensur": [1, 2, 4, 6], "enterpris": 4, "entir": 2, "env": [0, 1, 2], "environ": [0, 1, 6], "envizi": [0, 1, 5], "envizi_api_kei": [0, 1, 2], "envizi_client_id": [0, 1, 2], "envizi_org_id": [0, 1, 2], "envizi_pat_token": [0, 2], "envizisdk": 2, "epa": 2, "equip": 3, "equiti": [2, 3, 4], "equival": 2, "ern": 2, "error": [2, 3, 5], "escudo": 2, "especi": 2, "estat": [3, 4], "etb": 2, "etc": 6, "ethiopian": 2, "eur": 2, "euro": 2, "european": 2, "evic": [2, 3, 4], "exact": 4, "exampl": [3, 6], "excel": 0, "exclud": 6, "exist": [1, 4, 6], "exp": [0, 6], "expect": 4, "expir": [0, 1, 4, 6], "expiri": [0, 4], "expirytim": 4, "explain": 0, "export": 3, "extern": 0, "extract": 4, "factor": [2, 3, 4], "factoract": 4, "factoractivitywithfactorid": 4, "factorid": [2, 4], "factorrequest": 4, "factorrequestwithfactorid": 4, "factorrequestwithoutfactorid": 4, "factorrespons": 4, "factorset": 2, "fail": 6, "failur": [1, 6], "falkland": 2, "fals": [2, 4], "fc3b": 2, "featur": 2, "fetch": 1, "field": 2, "fiji": 2, "filter": [3, 4], "financ": 3, "find": 4, "findexpirytim": [3, 4], "firewal": 6, "first": [3, 4, 6], "fiscal": 2, "fiscal_servic": 2, "fiscaldata": 2, "fix": 3, "fjd": 2, "fkp": 2, "flag": 4, "florin": 2, "flow": [3, 5], "follow": [0, 1, 2, 4, 6], "fomento": 2, "footprint": 3, "forint": 2, "format": [0, 2], "franc": 2, "freight": [2, 4], "frequenc": 2, "fresh": [0, 4], "from": [0, 1, 2, 3, 4, 6], "fromdat": 4, "fuel": [3, 4], "fugit": [3, 4, 6], "fugitivearea": 4, "fugitv": 4, "full": 4, "function": 6, "futur": 0, "g": [2, 4, 6], "ga": [2, 3, 4], "gbp": 2, "gel": 2, "gener": [1, 3, 4, 6], "genericcalculationrequestwithfactorid": 4, "genericcalculationrequestwithoutfactorid": 4, "geograph": [2, 4], "get": [0, 3, 4, 6], "getauditconfig": 4, "getauthhead": 4, "getclient": [0, 1, 2, 4, 6], "getclientid": 4, "getclientsourc": 4, "getconfig": 4, "getdomain": 4, "getinst": [4, 6], "getstatu": 4, "getunit": 6, "getusag": 4, "gh": 2, "ghana": 2, "ghg": [2, 3], "ghgemiss": 0, "gibraltar": 2, "gip": 2, "give": 4, "global": [2, 3], "gmd": 2, "gnf": 2, "gold": 2, "gourd": 2, "gov": 2, "govern": 2, "gracefulli": [1, 4], "great": 2, "greenhous": [2, 3], "grid": 4, "gtq": 2, "guarani": 2, "guid": 3, "guilder": 2, "guinean": 2, "guyana": 2, "gyd": 2, "ha": 6, "handl": [0, 3, 4, 5, 6], "hardcod": 0, "have": [2, 4], "header": [1, 3, 4, 5, 6], "helena": 2, "here": 2, "hi": 2, "histor": [2, 3, 4], "histori": 4, "hkd": 2, "hnl": 2, "hong": 2, "host": [0, 1, 4], "hryvnia": 2, "htg": 2, "http": [0, 1, 2, 4], "httpcode": 6, "httpmessag": 6, "huf": 2, "human": 2, "i": [0, 1, 2, 3, 4, 6], "ibm": [0, 1, 5, 6], "ibmid": 2, "iceland": 2, "id": [0, 1, 4], "identifi": [0, 2, 3, 4], "idr": 2, "il": 2, "implement": [0, 1, 6], "import": [0, 1], "includ": [0, 2, 4, 6], "includedetail": [2, 4], "indexada": 2, "indian": 2, "indic": 4, "indirect": 2, "indirectco2": 2, "industri": 4, "inform": [0, 1, 2, 4], "init": 0, "initi": [0, 2, 3, 4, 5], "input": 2, "inputunit": 2, "inr": 2, "instal": 3, "instanc": [1, 3, 4], "instead": [4, 6], "integr": [3, 5], "intend": 2, "interact": [4, 5], "interfac": [1, 3], "internet": 2, "introduct": 2, "invalid_api_key_12345": 6, "invers": 2, "involv": 4, "iqd": 2, "iranian": 2, "iraqi": 2, "ireland": 2, "irr": 2, "isk": 2, "island": 2, "isra": 2, "issu": [2, 6], "isuserprovidedtoken": 4, "its": 4, "j": [0, 1, 2, 5, 6], "jamaican": 2, "jet": 4, "jetkeroseneunit": 4, "jmd": 2, "jod": 2, "jordanian": 2, "jpy": 2, "json": [0, 2, 4], "jwt": [0, 4, 6], "jwt_token": [0, 2], "jwttoken": 4, "ke": 2, "kei": [1, 4, 5], "kenyan": 2, "kerosen": 4, "kg": [2, 4], "kgco2e": 2, "khr": 2, "kina": 2, "kingdom": 2, "kip": 2, "kj": [4, 6], "km": [2, 4], "km2": 4, "kmf": 2, "known": 4, "kong": 2, "korean": 2, "koruna": 2, "kpw": 2, "krona": 2, "krone": 2, "krw": 2, "kuwaiti": 2, "kwacha": 2, "kwanza": 2, "kwd": 2, "kwh": [2, 4], "kyat": 2, "kyd": 2, "kzt": 2, "l": 4, "lack": 6, "lak": 2, "lanka": 2, "lao": 2, "larg": 3, "lari": 2, "last": 6, "layer": 0, "lbp": 2, "leader": 2, "leak": 3, "least": 0, "lebanes": 2, "lek": 2, "lempira": 2, "leon": 2, "let": 1, "leu": 2, "lev": 2, "level": 2, "liberian": 2, "libyan": 2, "licenc": 2, "licens": [2, 4], "lignit": [4, 6], "like": 3, "lilangeni": 2, "link": 4, "lira": 2, "list": [2, 4, 6], "lkr": 2, "ll": 6, "locat": [2, 3, 4, 6], "locationemiss": 2, "locationrequest": 4, "locationrequestwithfactorid": 4, "locationrequestwithoutfactorid": 4, "locationtyp": 4, "log": 3, "logist": 3, "logrequest": 4, "logrespons": 4, "look": 4, "loti": 2, "lrd": 2, "lsl": 2, "lyd": 2, "m2": [2, 4], "mad": 2, "made": 4, "mai": 4, "maintain": 1, "majesti": 2, "make": [2, 3, 4], "makeapirequest": [0, 3, 4], "malagasi": 2, "malawi": 2, "malaysian": 2, "malform": 6, "manag": [0, 1, 2, 3], "manat": 2, "mani": 2, "march": 2, "mark": 2, "match": 6, "mauritiu": 2, "mdl": 2, "measur": [2, 4], "messag": [1, 4, 6], "metadata": 3, "methan": 2, "method": [1, 2, 3, 4, 5, 6], "methodologi": 2, "metic": 2, "metric": 4, "mexican": 2, "mga": 2, "mkd": 2, "mmk": 2, "mnt": 2, "mobil": [3, 4, 6], "mobilearea": 4, "mode": 0, "modul": [1, 2], "moldovan": 2, "monetari": 2, "monitor": 3, "mop": 2, "more": [0, 2, 6], "moreinform": 6, "moroccan": 2, "most": 2, "mozambiqu": 2, "mru": 2, "multipl": 4, "mur": 2, "must": [2, 6], "mvdol": 2, "mvr": 2, "mwh": 4, "mwk": 2, "mxn": 2, "mxv": 2, "myr": 2, "mzn": 2, "n": 6, "n2o": 2, "nad": 2, "naira": 2, "nakfa": 2, "name": [2, 4], "namibia": 2, "nationalarch": 2, "natur": 4, "naturalgasunit": 4, "necessari": 0, "need": [0, 2, 4], "nepales": 2, "net": 2, "netherland": 2, "network": 6, "never": 0, "new": [0, 2, 4], "next": 2, "ngn": 2, "ngultrum": 2, "nio": 2, "nitrou": 2, "node": [0, 1, 2, 5, 6], "nok": 2, "north": 2, "northern": 2, "norwegian": 2, "note": [4, 6], "npm": 2, "npr": 2, "null": 6, "nzd": 2, "oauth": 0, "object": [2, 4], "obtain": [1, 2], "occur": [0, 6], "offic": [2, 4], "offici": 2, "old": 0, "omani": 2, "omr": 2, "onc": [0, 1], "one": [0, 1], "onli": [0, 1, 2, 4, 6], "onward": 2, "open": 2, "oper": [1, 3, 4, 6], "optim": 1, "option": [0, 2, 3, 4, 5, 6], "org": 6, "org456": [4, 6], "organ": [0, 1, 2, 3, 4], "orgid": [0, 1, 2, 4, 6], "oro": 2, "other": [4, 6], "otherwis": 4, "ouguiya": 2, "output": 4, "outsid": 2, "outstandingamount": [2, 4], "overview": [3, 5], "oxid": 2, "pa": 2, "pab": 2, "page": [0, 1, 2, 4], "pagin": 4, "pakistan": 2, "param": [0, 4], "paramet": [0, 1, 3, 4], "part": 4, "pass": 6, "pat": 4, "pataca": 2, "pattern": 5, "pattoken": [0, 2, 4, 6], "payload": 4, "pcaf": 2, "pen": 2, "per": 2, "perform": 4, "period": [3, 4], "permiss": 6, "person": 4, "peso": 2, "pgk": 2, "philippin": 2, "php": 2, "physic": [3, 4], "physicalact": [2, 4], "pkr": 2, "planet": 2, "pln": 2, "point": [4, 6], "polici": 2, "post": 4, "postarea": 4, "posttyp": 4, "postunit": 4, "pound": 2, "power": 4, "powergrid": 4, "practic": [3, 5], "pre": [1, 6], "prefer": 2, "prerequisit": 3, "prevision": 2, "primarili": 2, "principl": 0, "privat": [2, 3, 4], "privileg": 0, "proce": 4, "process": [0, 1, 2, 4], "product": [0, 1], "project": [2, 3], "promis": 4, "proper": [0, 1, 6], "properli": 6, "properti": [2, 3, 4], "propertyvalu": [2, 4], "proport": 4, "proportion": 2, "protocol": 2, "provid": [0, 1, 2, 4, 5], "public": 2, "publish": 2, "publishedfrom": 2, "pula": 2, "purchas": 4, "purpos": [2, 4], "pyg": 2, "qar": 2, "qatari": 2, "quarterli": 2, "queri": [0, 3, 4], "quetzal": 2, "quick": 2, "r134a": 4, "rand": 2, "rang": 4, "ratio": 2, "re": [0, 6], "read": 2, "readabl": 2, "real": [3, 4], "realest": [2, 4], "recommend": [2, 3], "record": 4, "refer": 3, "refresh": [1, 2, 4], "refreshtoken": 4, "regener": 6, "region": [2, 3], "relat": [2, 4, 6], "relev": 4, "remov": 6, "renew": 4, "renminbi": 2, "replac": 0, "report": 2, "repres": 4, "reproduc": 6, "request": [0, 1, 2, 3, 4], "requestconfig": 4, "requestid": 4, "requestwithattribut": 4, "requestwithequitydebt": 4, "requestwithev": 4, "requir": [0, 1, 2, 3], "rerank": [3, 4], "residenti": [2, 3], "resolv": 4, "respond": 6, "respons": [0, 3, 4, 5], "restart": 6, "result": [2, 3, 4], "resultwithattribut": 4, "resultwithequitydebt": 4, "resultwithev": 4, "retriev": [2, 3, 4], "retrievefactor": 4, "return": [0, 2, 4, 6], "reus": 1, "revenu": [2, 4], "review": 6, "revok": 6, "rial": 2, "rican": 2, "riel": 2, "right": 2, "ringgit": 2, "riyal": 2, "romanian": 2, "ron": 2, "rsd": 2, "rub": 2, "rubl": 2, "rufiyaa": 2, "run": 0, "rupe": 2, "rupiah": 2, "russian": 2, "rwanda": 2, "rwf": 2, "saascor": 0, "saint": 2, "salvador": 2, "sampl": 6, "sar": 2, "saudi": 2, "sbd": 2, "scale": 3, "scenario": [0, 3], "scope": [2, 3, 4], "scr": 2, "sdg": 2, "sdk": [0, 1, 2, 4], "sdr": 2, "search": [3, 4], "searchact": 4, "searchrequest": 4, "searchrespons": 4, "searchwithboth": 4, "searchwithoutrerank": 4, "searchwithscop": 4, "searchwithunit": 4, "second": [4, 6], "secret": 6, "section": 5, "secur": [1, 2, 3, 5, 6], "see": [0, 1], "sek": 2, "select": 2, "semant": [3, 4], "send": 0, "sensit": 6, "sent": 4, "serbian": 2, "server": 6, "servic": [0, 1, 2, 6], "set": [2, 4, 6], "sever": 1, "seychel": 2, "sgd": 2, "sheqel": 2, "shill": 2, "ship": [2, 4], "should": [4, 6], "shp": 2, "sign": 2, "singapor": 2, "singl": 4, "singleton": [0, 1, 4], "site": 2, "size": 4, "sle": 2, "so": 2, "soberano": 2, "sol": 2, "solomon": 2, "solut": 6, "som": 2, "somali": 2, "somoni": 2, "soon": 2, "sourc": [0, 2, 3, 4], "sourceurl": 2, "south": 2, "special": 2, "specif": [1, 2, 3, 4, 6], "specifi": [2, 4], "spend": [2, 3, 4], "srd": 2, "sri": 2, "ssp": 2, "stack": 6, "standard": [4, 6], "start": [3, 6], "startup": 1, "state": 2, "stateprovinc": [2, 4], "static": 4, "stationari": [3, 4, 6], "stationarytyp": 4, "statu": [1, 4, 6], "steam": 6, "steel": 4, "step": [0, 3], "sterl": 2, "stn": 2, "storag": 4, "store": [0, 1, 3, 4, 6], "string": [0, 4], "structur": 5, "subsequ": 6, "subtyp": 2, "successfulli": 6, "sucr": 2, "sudanes": 2, "sum": 2, "summari": 3, "suppli": 3, "support": [1, 4], "surinam": 2, "sustain": 3, "svc": 2, "swedish": 2, "swiss": 2, "symbol": 2, "synchron": 2, "syp": 2, "syrian": 2, "system": 2, "szl": 2, "t": [2, 4, 6], "tabl": [3, 4], "taiwan": 2, "taka": 2, "tala": 2, "tanzanian": 2, "target": 6, "teng": 2, "than": 2, "thb": 2, "thei": [2, 4, 6], "them": 2, "thi": [0, 2, 4, 5, 6], "three": [0, 2, 6], "throw": 6, "thrown": 6, "time": [0, 2, 4, 6], "timestamp": 4, "tj": 2, "tmt": 2, "tnd": 2, "tobago": 2, "todat": 4, "togeth": [2, 6], "toisostr": 4, "token": [1, 3, 4], "tonn": 2, "top": 2, "total": 2, "totalco2": 2, "totaldebt": [2, 4], "totalequ": [2, 4], "trace": 6, "track": 3, "transactionid": 2, "transport": [2, 3, 4], "transportationanddistribut": 4, "travel": [2, 4], "treasuri": 2, "trigger": 4, "trim": 0, "trinidad": 2, "troubleshoot": 3, "true": [2, 4], "try": [1, 2], "ttd": 2, "tugrik": 2, "tunisian": 2, "turkish": 2, "turkmenistan": 2, "twd": 2, "two": 2, "type": [2, 6], "typerecommend": 4, "typerecommenderrespons": 4, "typerespons": 4, "typic": 2, "tz": 2, "u": 2, "uae": 2, "uah": 2, "udi": 2, "uganda": 2, "ugx": 2, "ui": 2, "uk": 2, "unauthor": 6, "unidad": 2, "unifi": [1, 4], "uniqu": 2, "unit": [2, 3, 4, 6], "unitrespons": 4, "unix": 4, "unless": 1, "unreach": 6, "until": 4, "uom": 4, "up": [2, 4, 6], "updat": [2, 4, 6], "updateauditconfig": 4, "url": [0, 2, 4], "uruguai": 2, "uruguayo": 2, "us": [0, 1, 3, 4, 6], "usa": [2, 4, 6], "usag": [1, 3, 5], "usagerespons": 4, "usd": [2, 4], "user": [0, 1, 2, 4, 6], "userdata": 4, "usn": 2, "util": [3, 4], "uyi": 2, "uyu": 2, "uyw": 2, "uz": 2, "uzbekistan": 2, "v": [0, 1], "valid": [0, 1, 2, 6], "valor": 2, "valu": [2, 4, 6], "variabl": [0, 1, 6], "vatu": 2, "ve": 2, "ved": 2, "vehicl": 3, "verd": 2, "verifi": [1, 6], "version": [2, 6], "vnd": 2, "void": 4, "vuv": 2, "wa": [2, 4, 6], "wai": 4, "warehous": 4, "wast": 4, "web": 4, "wecc": 4, "when": [0, 2, 4, 6], "where": [0, 2, 4], "whether": [3, 4], "which": [0, 2, 4], "while": 2, "wir": 2, "within": [4, 6], "without": [2, 4, 6], "won": 2, "work": 1, "wrong": 6, "wst": 2, "www": 2, "x": [0, 4], "xad": 2, "xaf": 2, "xcd": 2, "xcg": 2, "xdr": 2, "xof": 2, "xpf": 2, "xsu": 2, "xua": 2, "yarn": 2, "ye": 1, "year": 2, "yemeni": 2, "yen": 2, "yer": 2, "york": [2, 4], "you": [0, 2, 6], "your": [0, 1, 2, 3, 4, 6], "yuan": 2, "zambian": 2, "zar": 2, "zealand": 2, "zero": 2, "zimbabw": 2, "zip": 4, "zloti": 2, "zmw": 2, "zwg": 2}, "titles": ["Authentication", "Client", "Getting Started", "IBM Envizi - Emissions API Node.js SDK", "Reference", "SDK", "Troubleshooting Guide"], "titleterms": {"1": 6, "10": 6, "2": 6, "3": 6, "4": 6, "401": 6, "5": 6, "6": 6, "7": 6, "8": 6, "9": 6, "Not": 6, "access": [0, 2, 6], "activ": 2, "addit": 3, "api": [0, 2, 3, 4, 6], "applic": 6, "architectur": 0, "attribut": 2, "audit": 4, "auth": 6, "authent": [0, 1, 2, 6], "automat": 6, "basic": 2, "best": [0, 1], "call": 2, "capabl": 3, "checklist": 6, "client": [1, 6], "common": 6, "configur": [1, 6], "content": 3, "convers": 2, "credenti": 6, "currenc": 2, "custom": 6, "data": 2, "detail": 2, "diagram": 0, "econom": 2, "emiss": [2, 3], "empti": 6, "envizi": 3, "error": [1, 6], "estat": 2, "exampl": [2, 4], "exchang": 2, "expiri": 6, "export": 4, "field": 6, "financ": 2, "first": 2, "flow": 0, "gener": [0, 2], "get": 2, "getarea": 4, "gettyp": 4, "getunit": 4, "global": 4, "guid": 6, "handl": 1, "header": 0, "host": 6, "http": 6, "ibm": 3, "id": 6, "import": 2, "initi": [1, 6], "instal": 2, "instanc": 6, "integr": 1, "interfac": 4, "introduct": 3, "invalid": 6, "j": 3, "jwt": 2, "kei": [0, 2, 6], "lifetim": 0, "log": 4, "manag": 6, "metadata": 4, "method": 0, "miss": 6, "node": 3, "option": 1, "organ": 6, "overview": [0, 1, 2, 6], "paramet": 6, "pat": [0, 2, 6], "person": [0, 2, 6], "physic": 2, "practic": [0, 1], "pre": [0, 2], "prerequisit": 2, "provid": 6, "rate": 2, "real": 2, "recommend": [0, 4, 6], "refer": 4, "refresh": [0, 6], "requir": 6, "respons": [1, 2, 6], "retriev": 0, "scenario": 6, "sdk": [3, 5, 6], "secur": 0, "start": 2, "startup": 6, "step": 6, "structur": 2, "summari": [2, 6], "support": [2, 3, 6], "tabl": 6, "token": [0, 2, 6], "troubleshoot": 6, "type": [3, 4], "url": 6, "us": 2, "usag": 4}})
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "emissions-api-sdk",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "sdk for IBM Emissions APIs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -36,17 +36,18 @@
36
36
  "license": "Apache-2.0",
37
37
  "resolutions": {
38
38
  "@babel/core": "^7.29.6",
39
- "brace-expansion": "^5.0.6",
39
+ "brace-expansion": "^5.0.9",
40
+ "browserslist": "^4.28.7",
40
41
  "follow-redirects": "^1.16.0",
41
42
  "form-data": "^4.0.6",
42
43
  "handlebars": "^4.7.9",
43
- "js-yaml": "^4.2.0",
44
- "markdown-it": "^14.2.0",
44
+ "js-yaml": "^4.3.1",
45
+ "markdown-it": "^14.3.0",
45
46
  "minimatch": "^10.2.5",
46
47
  "test-exclude": "^7.0.1"
47
48
  },
48
49
  "dependencies": {
49
- "axios": "1.16.0"
50
+ "axios": "1.18.0"
50
51
  },
51
52
  "devDependencies": {
52
53
  "@types/jest": "^30.0.0",
@@ -248,8 +248,7 @@ The SDK supports automatic currency conversion for API methods that accept monet
248
248
  Currency conversion is available for the following calculation methods:
249
249
 
250
250
  - ``EconomicActivity.calculate()``
251
- - ``RealEstate.calculate()``
252
- - ``PhysicalActivity.calculate()``
251
+ - ``Calculation.calculate()``
253
252
 
254
253
  Supported Currencies
255
254
  ~~~~~~~~~~~~~~~~~~~~
@@ -626,3 +625,228 @@ The exchange rate database is automatically synchronized with the Treasury API t
626
625
 
627
626
 
628
627
  - ``source``: Source citation and license information
628
+
629
+ Finance Emissions APIs
630
+ ----------------------
631
+
632
+ The SDK supports three scope 3 finance-based emission APIs: **Real Estate**, **Physical Activity**, and **Economic Activity**. Each supports optional PCAF attribution to proportionally allocate emissions.
633
+
634
+ Real Estate
635
+ ~~~~~~~~~~~
636
+
637
+ Real Estate calculates scope 3 emissions from commercial and residential property. Attribution uses ``propertyValue`` to compute an attribution factor.
638
+
639
+ **Without attribution:**
640
+
641
+ .. code-block:: javascript
642
+
643
+ const result = await RealEstate.calculate({
644
+ "time": { "date": "2022-01-01" },
645
+ "location": { "country": "usa", "stateProvince": "new york" },
646
+ "activity": {
647
+ "type": "Commercial Real Estate:Office",
648
+ "value": 123456.0,
649
+ "unit": "m2"
650
+ },
651
+ "includeDetails": false
652
+ });
653
+
654
+ **With attribution (property value based):**
655
+
656
+ .. code-block:: javascript
657
+
658
+ const result = await RealEstate.calculate({
659
+ "time": { "date": "2022-01-01" },
660
+ "location": { "country": "usa", "stateProvince": "new york" },
661
+ "activity": {
662
+ "type": "Commercial Real Estate:Office",
663
+ "value": 123456.0,
664
+ "unit": "m2"
665
+ },
666
+ "attribution": {
667
+ "outstandingAmount": 1000000.0,
668
+ "propertyValue": 5000000.0
669
+ },
670
+ "includeDetails": true
671
+ });
672
+
673
+ .. note::
674
+
675
+ Real estate attribution only accepts ``propertyValue``. Using ``totalEquity``, ``totalDebt``, ``evic``, or ``revenue`` will result in a 400 error.
676
+
677
+ Physical Activity
678
+ ~~~~~~~~~~~~~~~~~
679
+
680
+ Physical Activity calculates scope 3 emissions from physical activities. Attribution supports two methods: equity/debt for private companies, or EVIC for listed companies.
681
+
682
+ **Without attribution:**
683
+
684
+ .. code-block:: javascript
685
+
686
+ const result = await PhysicalActivity.calculate({
687
+ "time": { "date": "2022-01-01" },
688
+ "location": { "country": "usa", "stateProvince": "new york" },
689
+ "activity": {
690
+ "type": "Physical Activity Type",
691
+ "value": 123456.0,
692
+ "unit": "kg"
693
+ },
694
+ "includeDetails": false
695
+ });
696
+
697
+ **With attribution (equity/debt — private companies):**
698
+
699
+ .. code-block:: javascript
700
+
701
+ const result = await PhysicalActivity.calculate({
702
+ "time": { "date": "2022-01-01" },
703
+ "location": { "country": "usa", "stateProvince": "new york" },
704
+ "activity": {
705
+ "type": "Physical Activity Type",
706
+ "value": 123456.0,
707
+ "unit": "kg"
708
+ },
709
+ "attribution": {
710
+ "outstandingAmount": 1000000.0,
711
+ "totalEquity": 3000000.0,
712
+ "totalDebt": 2000000.0
713
+ },
714
+ "includeDetails": true
715
+ });
716
+
717
+ **With attribution (EVIC — listed companies):**
718
+
719
+ .. code-block:: javascript
720
+
721
+ const result = await PhysicalActivity.calculate({
722
+ "time": { "date": "2022-01-01" },
723
+ "location": { "country": "usa", "stateProvince": "new york" },
724
+ "activity": {
725
+ "type": "Physical Activity Type",
726
+ "value": 123456.0,
727
+ "unit": "kg"
728
+ },
729
+ "attribution": {
730
+ "outstandingAmount": 1000000.0,
731
+ "evic": 10000000.0
732
+ },
733
+ "includeDetails": true
734
+ });
735
+
736
+ .. note::
737
+
738
+ Physical activity attribution does not accept ``propertyValue`` or ``revenue``. Use ``totalEquity + totalDebt`` for private companies, or ``evic`` for listed companies — not both.
739
+
740
+ Economic Activity
741
+ ~~~~~~~~~~~~~~~~~
742
+
743
+ Economic Activity calculates scope 3 spend-based emissions. Attribution supports equity/debt, EVIC, or revenue-based allocation.
744
+
745
+ **Without attribution:**
746
+
747
+ .. code-block:: javascript
748
+
749
+ const result = await EconomicActivity.calculate({
750
+ "time": { "date": "2022-01-01" },
751
+ "location": { "country": "usa", "stateProvince": "new york" },
752
+ "activity": {
753
+ "type": "Accomodation",
754
+ "value": 123456.0,
755
+ "unit": "usd"
756
+ },
757
+ "includeDetails": false
758
+ });
759
+
760
+ **With attribution (revenue based):**
761
+
762
+ .. code-block:: javascript
763
+
764
+ const result = await EconomicActivity.calculate({
765
+ "time": { "date": "2025-01-04" },
766
+ "location": { "country": "usa" },
767
+ "activity": {
768
+ "type": "accomodation",
769
+ "value": 1500.12,
770
+ "unit": "usd"
771
+ },
772
+ "attribution": {
773
+ "outstandingAmount": 500000.0,
774
+ "revenue": 2000000.0
775
+ },
776
+ "includeDetails": true
777
+ });
778
+
779
+ **With attribution (equity/debt — private companies):**
780
+
781
+ .. code-block:: javascript
782
+
783
+ const result = await EconomicActivity.calculate({
784
+ "time": { "date": "2025-01-04" },
785
+ "location": { "country": "usa" },
786
+ "activity": {
787
+ "type": "accomodation",
788
+ "value": 1500.12,
789
+ "unit": "usd"
790
+ },
791
+ "attribution": {
792
+ "outstandingAmount": 500000.0,
793
+ "totalEquity": 3000000.0,
794
+ "totalDebt": 2000000.0
795
+ },
796
+ "includeDetails": true
797
+ });
798
+
799
+ **With attribution (EVIC — listed companies):**
800
+
801
+ .. code-block:: javascript
802
+
803
+ const result = await EconomicActivity.calculate({
804
+ "time": { "date": "2025-01-04" },
805
+ "location": { "country": "usa" },
806
+ "activity": {
807
+ "type": "accomodation",
808
+ "value": 1500.12,
809
+ "unit": "usd"
810
+ },
811
+ "attribution": {
812
+ "outstandingAmount": 500000.0,
813
+ "evic": 10000000.0
814
+ },
815
+ "includeDetails": true
816
+ });
817
+
818
+ .. note::
819
+
820
+ ``propertyValue`` is not supported for economic activity. ``totalEquity`` and ``totalDebt`` must always be provided together.
821
+
822
+ Attribution Summary
823
+ ~~~~~~~~~~~~~~~~~~~
824
+
825
+ .. list-table::
826
+ :header-rows: 1
827
+ :widths: 30 14 20 12 12 12
828
+
829
+ * - API
830
+ - ``propertyValue``
831
+ - ``totalEquity`` + ``totalDebt``
832
+ - ``evic``
833
+ - ``revenue``
834
+ - ``outstandingAmount``
835
+ * - Real Estate
836
+ - ✓
837
+ - ✗
838
+ - ✗
839
+ - ✗
840
+ - Required
841
+ * - Physical Activity
842
+ - ✗
843
+ - ✓
844
+ - ✓
845
+ - ✗
846
+ - Required
847
+ * - Economic Activity
848
+ - ✗
849
+ - ✓
850
+ - ✓
851
+ - ✓
852
+ - Required
@@ -29,6 +29,7 @@ Supported Emission Types
29
29
  * **Transportation & distribution** – logistics and supply chain activities
30
30
  * **Real Estate** – emissions from commercial and residential properties
31
31
  * **Economic Activity** – spend-based emissions from business activities
32
+ * **Physical Activity** – scope 3 emissions from physical activities with attribution for private companies (equity/debt or EVIC-based)
32
33
  * **Generic** – custom emission calculations
33
34
 
34
35
  The SDK is designed for embedding emission calculations in applications, building sustainability dashboards, automating large-scale datasets, and tracking carbon footprints.
@@ -41,3 +42,4 @@ Additional capabilities
41
42
  * **Factor Search API** – search for emission factors with unit and scope filtering, with optional reranker control
42
43
  * **Usage API** – retrieve organization billing-period or historical usage
43
44
  * **Audit Log API** – manage whether API requests and responses are stored for auditing
45
+ * **Audit Export API** – export, monitor, and download organization audit data
@@ -32,6 +32,8 @@ API
32
32
  .. js:autofunction:: RealEstate.calculate
33
33
 
34
34
  .. js:autofunction:: EconomicActivity.calculate
35
+
36
+ .. js:autofunction:: PhysicalActivity.calculate
35
37
 
36
38
  Type Recommender API
37
39
  ====================
@@ -50,6 +52,18 @@ Organizations can disable storage if they don't need their API calls to be audit
50
52
  .. js:autofunction:: AuditLog.updateAuditConfig
51
53
 
52
54
 
55
+ Audit Export API
56
+ ================
57
+
58
+ The Audit Export API asynchronously generates an audit-data ZIP archive for an admin user. Call ``trigger`` to create an export, ``getStatus`` until it is complete, and ``download`` to retrieve the archive.
59
+
60
+ .. js:autofunction:: AuditExport.trigger
61
+
62
+ .. js:autofunction:: AuditExport.getStatus
63
+
64
+ .. js:autofunction:: AuditExport.download
65
+
66
+
53
67
  Global Metadata API
54
68
  ====================
55
69
 
@@ -139,3 +153,11 @@ Interfaces
139
153
  .. js:autoclass:: TypeRecommenderResponse.TypeRecommenderResponse
140
154
 
141
155
  .. js:autoclass:: TypeRecommenderResponse.ActivityRequest
156
+
157
+ .. js:autoclass:: AuditExportResponse.AuditExportRequest
158
+
159
+ .. js:autoclass:: AuditExportResponse.AuditExportResponse
160
+
161
+ .. js:autoclass:: AuditExportResponse.AuditExportStatusResponse
162
+
163
+ .. js:autoclass:: AuditExportResponse.AuditExportLinks
package/src/Constants.ts CHANGED
@@ -14,6 +14,9 @@ export const ECONOMIC_ACTIVITY_API_PATH = "/v3/carbon/economic-activity";
14
14
  export const REAL_ESTATE_API_PATH = "/v3/carbon/real-estate";
15
15
  export const PHYSICAL_ACTIVITY_API_PATH = "/v3/carbon/physical-activity";
16
16
  export const AUDIT_LOG_API_PATH = "/v3/carbon/admin/audit-log";
17
+ export const AUDIT_EXPORT_API_PATH = "/v3/carbon/audit";
18
+ export const AUDIT_EXPORT_STATUS_API_PATH = "/v3/carbon/audit/status";
19
+ export const AUDIT_EXPORT_DOWNLOAD_API_PATH = "/v3/carbon/audit/download";
17
20
 
18
21
  export const TYPE_RECOMMENDER_API_PATH = "/v3/carbon/recommender/type/search";
19
22