@openclaw/googlechat 2026.7.2-beta.7 → 2026.7.33

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 (264) hide show
  1. package/README.md +1 -1
  2. package/dist/.setup/actions-DeT_GgtP.mjs +167 -0
  3. package/dist/.setup/approval-auth-CQP5ZS_f.mjs +27 -0
  4. package/dist/{approval-handler.runtime-CBeHrXtL.js → .setup/approval-handler.runtime-DWNRBf9B.mjs} +5 -6
  5. package/dist/{channel-kouqKs2x.js → .setup/channel-BPjomke4.mjs} +87 -67
  6. package/dist/{channel-base-hw9ErEr5.js → .setup/channel-base-DJICAvKH.mjs} +91 -182
  7. package/dist/{channel.adapters-DaipaeYt.js → .setup/channel.adapters-T6wPzrpo.mjs} +170 -383
  8. package/dist/{channel.runtime-BbwE9vOC.js → .setup/channel.runtime-CpT-qT67.mjs} +241 -440
  9. package/dist/.setup/doctor-contract-BcEqUZ4j.mjs +151 -0
  10. package/dist/{runtime-api-Dh0CNVS4.js → .setup/runtime-api-BbVoWRxq.mjs} +7 -3
  11. package/dist/.setup/secret-contract-api-BGDBptmu.mjs +3 -0
  12. package/dist/.setup/secret-contract-lCMHqumt.mjs +99 -0
  13. package/dist/.setup/setup-plugin-api-BgwvQMls.mjs +5 -0
  14. package/dist/.setup/setup-plugin-api-Ce08GSFO.mjs +2 -0
  15. package/dist/api.js +2 -2
  16. package/dist/channel-config-api.js +2 -1
  17. package/dist/channel-plugin-api.js +1 -1
  18. package/dist/directory-contract-api.js +1 -1
  19. package/dist/doctor-contract-api.js +1 -1
  20. package/dist/runtime-api.js +2 -3
  21. package/dist/secret-contract-api.js +1 -1
  22. package/dist/setup-entry.js +3 -2
  23. package/dist/setup-plugin-api.js +1 -4
  24. package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/cjs/src/gaxios.js +1 -1
  25. package/node_modules/gaxios/build/cjs/src/gaxios.js.map +1 -0
  26. package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/cjs/test/test.getch.js +0 -66
  27. package/node_modules/gaxios/build/cjs/test/test.getch.js.map +1 -0
  28. package/node_modules/gaxios/build/cjs/tsconfig.cjs.tsbuildinfo +1 -0
  29. package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/esm/src/gaxios.js +1 -1
  30. package/node_modules/gaxios/build/esm/src/gaxios.js.map +1 -0
  31. package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/esm/test/test.getch.js +0 -66
  32. package/node_modules/gaxios/build/esm/test/test.getch.js.map +1 -0
  33. package/node_modules/gaxios/build/esm/tsconfig.tsbuildinfo +1 -0
  34. package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/package.json +4 -4
  35. package/node_modules/google-auth-library/build/src/auth/googleauth.js +19 -24
  36. package/node_modules/google-auth-library/package.json +1 -1
  37. package/openclaw.plugin.json +488 -416
  38. package/package.json +25 -82
  39. package/dist/actions-D81dCtkC.js +0 -68
  40. package/dist/approval-auth-ykO6i_ub.js +0 -30
  41. package/dist/config-api-CsD0IFxF.js +0 -3
  42. package/dist/doctor-contract-BpuSvJro.js +0 -115
  43. package/dist/secret-contract-BFYyuE0F.js +0 -88
  44. package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/src/gaxios.js.map +0 -1
  45. package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/test/test.getch.js.map +0 -1
  46. package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/tsconfig.cjs.tsbuildinfo +0 -1
  47. package/node_modules/google-auth-library/node_modules/gaxios/build/esm/src/gaxios.js.map +0 -1
  48. package/node_modules/google-auth-library/node_modules/gaxios/build/esm/test/test.getch.js.map +0 -1
  49. package/node_modules/google-auth-library/node_modules/gaxios/build/esm/tsconfig.tsbuildinfo +0 -1
  50. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/LICENSE +0 -202
  51. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/README.md +0 -73
  52. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/colours.d.ts +0 -1
  53. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/colours.js +0 -81
  54. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/colours.js.map +0 -1
  55. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/index.d.ts +0 -2
  56. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/index.js +0 -31
  57. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/index.js.map +0 -1
  58. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/logging-utils.d.ts +0 -89
  59. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/logging-utils.js +0 -414
  60. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/logging-utils.js.map +0 -1
  61. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/temporal.d.ts +0 -45
  62. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/temporal.js +0 -68
  63. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/temporal.js.map +0 -1
  64. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/types.d.ts +0 -78
  65. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/types.js +0 -16
  66. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/types.js.map +0 -1
  67. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/package.json +0 -47
  68. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/LICENSE +0 -0
  69. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/README.md +0 -0
  70. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/cjs/browser-test/browser-test-runner.d.ts +0 -0
  71. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/cjs/browser-test/browser-test-runner.js +0 -0
  72. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/cjs/browser-test/browser-test-runner.js.map +0 -0
  73. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/cjs/browser-test/test.browser.d.ts +0 -0
  74. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/cjs/browser-test/test.browser.js +0 -0
  75. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/cjs/browser-test/test.browser.js.map +0 -0
  76. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/cjs/src/common.d.ts +0 -0
  77. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/cjs/src/common.js +0 -0
  78. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/cjs/src/common.js.map +0 -0
  79. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/cjs/src/gaxios.d.ts +0 -0
  80. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/cjs/src/index.d.ts +0 -0
  81. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/cjs/src/index.js +0 -0
  82. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/cjs/src/index.js.map +0 -0
  83. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/cjs/src/interceptor.d.ts +0 -0
  84. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/cjs/src/interceptor.js +0 -0
  85. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/cjs/src/interceptor.js.map +0 -0
  86. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/cjs/src/retry.d.ts +0 -0
  87. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/cjs/src/retry.js +0 -0
  88. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/cjs/src/retry.js.map +0 -0
  89. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/cjs/src/util.cjs +0 -0
  90. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/cjs/src/util.cjs.map +0 -0
  91. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/cjs/src/util.d.cts +0 -0
  92. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/cjs/system-test/test.install.d.ts +0 -0
  93. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/cjs/system-test/test.install.js +0 -0
  94. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/cjs/system-test/test.install.js.map +0 -0
  95. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/cjs/test/test.getch.d.ts +0 -0
  96. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/cjs/test/test.index.d.ts +0 -0
  97. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/cjs/test/test.index.js +0 -0
  98. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/cjs/test/test.index.js.map +0 -0
  99. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/cjs/test/test.retry.d.ts +0 -0
  100. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/cjs/test/test.retry.js +0 -0
  101. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/cjs/test/test.retry.js.map +0 -0
  102. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/esm/browser-test/browser-test-runner.d.ts +0 -0
  103. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/esm/browser-test/browser-test-runner.js +0 -0
  104. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/esm/browser-test/browser-test-runner.js.map +0 -0
  105. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/esm/browser-test/test.browser.d.ts +0 -0
  106. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/esm/browser-test/test.browser.js +0 -0
  107. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/esm/browser-test/test.browser.js.map +0 -0
  108. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/esm/package.json +0 -0
  109. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/esm/src/common.d.ts +0 -0
  110. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/esm/src/common.js +0 -0
  111. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/esm/src/common.js.map +0 -0
  112. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/esm/src/gaxios.d.ts +0 -0
  113. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/esm/src/index.d.ts +0 -0
  114. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/esm/src/index.js +0 -0
  115. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/esm/src/index.js.map +0 -0
  116. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/esm/src/interceptor.d.ts +0 -0
  117. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/esm/src/interceptor.js +0 -0
  118. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/esm/src/interceptor.js.map +0 -0
  119. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/esm/src/retry.d.ts +0 -0
  120. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/esm/src/retry.js +0 -0
  121. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/esm/src/retry.js.map +0 -0
  122. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/esm/src/util.cjs +0 -0
  123. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/esm/src/util.cjs.map +0 -0
  124. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/esm/src/util.d.cts +0 -0
  125. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/esm/system-test/test.install.d.ts +0 -0
  126. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/esm/system-test/test.install.js +0 -0
  127. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/esm/system-test/test.install.js.map +0 -0
  128. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/esm/test/test.getch.d.ts +0 -0
  129. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/esm/test/test.index.d.ts +0 -0
  130. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/esm/test/test.index.js +0 -0
  131. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/esm/test/test.index.js.map +0 -0
  132. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/esm/test/test.retry.d.ts +0 -0
  133. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/esm/test/test.retry.js +0 -0
  134. /package/node_modules/{google-auth-library/node_modules/gaxios → gaxios}/build/esm/test/test.retry.js.map +0 -0
  135. /package/node_modules/{google-auth-library → gaxios}/node_modules/agent-base/LICENSE +0 -0
  136. /package/node_modules/{google-auth-library → gaxios}/node_modules/agent-base/README.md +0 -0
  137. /package/node_modules/{google-auth-library → gaxios}/node_modules/agent-base/dist/helpers.d.ts +0 -0
  138. /package/node_modules/{google-auth-library → gaxios}/node_modules/agent-base/dist/helpers.d.ts.map +0 -0
  139. /package/node_modules/{google-auth-library → gaxios}/node_modules/agent-base/dist/helpers.js +0 -0
  140. /package/node_modules/{google-auth-library → gaxios}/node_modules/agent-base/dist/helpers.js.map +0 -0
  141. /package/node_modules/{google-auth-library → gaxios}/node_modules/agent-base/dist/index.d.ts +0 -0
  142. /package/node_modules/{google-auth-library → gaxios}/node_modules/agent-base/dist/index.d.ts.map +0 -0
  143. /package/node_modules/{google-auth-library → gaxios}/node_modules/agent-base/dist/index.js +0 -0
  144. /package/node_modules/{google-auth-library → gaxios}/node_modules/agent-base/dist/index.js.map +0 -0
  145. /package/node_modules/{google-auth-library → gaxios}/node_modules/agent-base/package.json +0 -0
  146. /package/node_modules/{google-auth-library → gaxios}/node_modules/data-uri-to-buffer/README.md +0 -0
  147. /package/node_modules/{google-auth-library → gaxios}/node_modules/data-uri-to-buffer/dist/index.d.ts +0 -0
  148. /package/node_modules/{google-auth-library → gaxios}/node_modules/data-uri-to-buffer/dist/index.js +0 -0
  149. /package/node_modules/{google-auth-library → gaxios}/node_modules/data-uri-to-buffer/dist/index.js.map +0 -0
  150. /package/node_modules/{google-auth-library → gaxios}/node_modules/data-uri-to-buffer/package.json +0 -0
  151. /package/node_modules/{google-auth-library → gaxios}/node_modules/data-uri-to-buffer/src/index.ts +0 -0
  152. /package/node_modules/{google-auth-library → gaxios}/node_modules/debug/LICENSE +0 -0
  153. /package/node_modules/{google-auth-library → gaxios}/node_modules/debug/README.md +0 -0
  154. /package/node_modules/{google-auth-library → gaxios}/node_modules/debug/package.json +0 -0
  155. /package/node_modules/{google-auth-library → gaxios}/node_modules/debug/src/browser.js +0 -0
  156. /package/node_modules/{google-auth-library → gaxios}/node_modules/debug/src/common.js +0 -0
  157. /package/node_modules/{google-auth-library → gaxios}/node_modules/debug/src/index.js +0 -0
  158. /package/node_modules/{google-auth-library → gaxios}/node_modules/debug/src/node.js +0 -0
  159. /package/node_modules/{google-auth-library → gaxios}/node_modules/extend/.editorconfig +0 -0
  160. /package/node_modules/{google-auth-library → gaxios}/node_modules/extend/.eslintrc +0 -0
  161. /package/node_modules/{google-auth-library → gaxios}/node_modules/extend/.jscs.json +0 -0
  162. /package/node_modules/{google-auth-library → gaxios}/node_modules/extend/.travis.yml +0 -0
  163. /package/node_modules/{google-auth-library → gaxios}/node_modules/extend/CHANGELOG.md +0 -0
  164. /package/node_modules/{google-auth-library → gaxios}/node_modules/extend/LICENSE +0 -0
  165. /package/node_modules/{google-auth-library → gaxios}/node_modules/extend/README.md +0 -0
  166. /package/node_modules/{google-auth-library → gaxios}/node_modules/extend/component.json +0 -0
  167. /package/node_modules/{google-auth-library → gaxios}/node_modules/extend/index.js +0 -0
  168. /package/node_modules/{google-auth-library → gaxios}/node_modules/extend/package.json +0 -0
  169. /package/node_modules/{google-auth-library → gaxios}/node_modules/fetch-blob/LICENSE +0 -0
  170. /package/node_modules/{google-auth-library → gaxios}/node_modules/fetch-blob/README.md +0 -0
  171. /package/node_modules/{google-auth-library → gaxios}/node_modules/fetch-blob/file.d.ts +0 -0
  172. /package/node_modules/{google-auth-library → gaxios}/node_modules/fetch-blob/file.js +0 -0
  173. /package/node_modules/{google-auth-library → gaxios}/node_modules/fetch-blob/from.d.ts +0 -0
  174. /package/node_modules/{google-auth-library → gaxios}/node_modules/fetch-blob/from.js +0 -0
  175. /package/node_modules/{google-auth-library → gaxios}/node_modules/fetch-blob/index.d.ts +0 -0
  176. /package/node_modules/{google-auth-library → gaxios}/node_modules/fetch-blob/index.js +0 -0
  177. /package/node_modules/{google-auth-library → gaxios}/node_modules/fetch-blob/package.json +0 -0
  178. /package/node_modules/{google-auth-library → gaxios}/node_modules/fetch-blob/streams.cjs +0 -0
  179. /package/node_modules/{google-auth-library → gaxios}/node_modules/formdata-polyfill/FormData.js +0 -0
  180. /package/node_modules/{google-auth-library → gaxios}/node_modules/formdata-polyfill/LICENSE +0 -0
  181. /package/node_modules/{google-auth-library → gaxios}/node_modules/formdata-polyfill/README.md +0 -0
  182. /package/node_modules/{google-auth-library → gaxios}/node_modules/formdata-polyfill/esm.min.d.ts +0 -0
  183. /package/node_modules/{google-auth-library → gaxios}/node_modules/formdata-polyfill/esm.min.js +0 -0
  184. /package/node_modules/{google-auth-library → gaxios}/node_modules/formdata-polyfill/formdata-to-blob.js +0 -0
  185. /package/node_modules/{google-auth-library → gaxios}/node_modules/formdata-polyfill/formdata.min.js +0 -0
  186. /package/node_modules/{google-auth-library → gaxios}/node_modules/formdata-polyfill/package.json +0 -0
  187. /package/node_modules/{google-auth-library → gaxios}/node_modules/https-proxy-agent/LICENSE +0 -0
  188. /package/node_modules/{google-auth-library → gaxios}/node_modules/https-proxy-agent/README.md +0 -0
  189. /package/node_modules/{google-auth-library → gaxios}/node_modules/https-proxy-agent/dist/index.d.ts +0 -0
  190. /package/node_modules/{google-auth-library → gaxios}/node_modules/https-proxy-agent/dist/index.d.ts.map +0 -0
  191. /package/node_modules/{google-auth-library → gaxios}/node_modules/https-proxy-agent/dist/index.js +0 -0
  192. /package/node_modules/{google-auth-library → gaxios}/node_modules/https-proxy-agent/dist/index.js.map +0 -0
  193. /package/node_modules/{google-auth-library → gaxios}/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +0 -0
  194. /package/node_modules/{google-auth-library → gaxios}/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts.map +0 -0
  195. /package/node_modules/{google-auth-library → gaxios}/node_modules/https-proxy-agent/dist/parse-proxy-response.js +0 -0
  196. /package/node_modules/{google-auth-library → gaxios}/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +0 -0
  197. /package/node_modules/{google-auth-library → gaxios}/node_modules/https-proxy-agent/package.json +0 -0
  198. /package/node_modules/{google-auth-library → gaxios}/node_modules/ms/index.js +0 -0
  199. /package/node_modules/{google-auth-library → gaxios}/node_modules/ms/license.md +0 -0
  200. /package/node_modules/{google-auth-library → gaxios}/node_modules/ms/package.json +0 -0
  201. /package/node_modules/{google-auth-library → gaxios}/node_modules/ms/readme.md +0 -0
  202. /package/node_modules/{google-auth-library → gaxios}/node_modules/node-domexception/LICENSE +0 -0
  203. /package/node_modules/{google-auth-library → gaxios}/node_modules/node-domexception/index.js +0 -0
  204. /package/node_modules/{google-auth-library → gaxios}/node_modules/node-domexception/package.json +0 -0
  205. /package/node_modules/{google-auth-library → gaxios}/node_modules/node-fetch/@types/index.d.ts +0 -0
  206. /package/node_modules/{google-auth-library → gaxios}/node_modules/node-fetch/LICENSE.md +0 -0
  207. /package/node_modules/{google-auth-library → gaxios}/node_modules/node-fetch/README.md +0 -0
  208. /package/node_modules/{google-auth-library → gaxios}/node_modules/node-fetch/package.json +0 -0
  209. /package/node_modules/{google-auth-library → gaxios}/node_modules/node-fetch/src/body.js +0 -0
  210. /package/node_modules/{google-auth-library → gaxios}/node_modules/node-fetch/src/errors/abort-error.js +0 -0
  211. /package/node_modules/{google-auth-library → gaxios}/node_modules/node-fetch/src/errors/base.js +0 -0
  212. /package/node_modules/{google-auth-library → gaxios}/node_modules/node-fetch/src/errors/fetch-error.js +0 -0
  213. /package/node_modules/{google-auth-library → gaxios}/node_modules/node-fetch/src/headers.js +0 -0
  214. /package/node_modules/{google-auth-library → gaxios}/node_modules/node-fetch/src/index.js +0 -0
  215. /package/node_modules/{google-auth-library → gaxios}/node_modules/node-fetch/src/request.js +0 -0
  216. /package/node_modules/{google-auth-library → gaxios}/node_modules/node-fetch/src/response.js +0 -0
  217. /package/node_modules/{google-auth-library → gaxios}/node_modules/node-fetch/src/utils/get-search.js +0 -0
  218. /package/node_modules/{google-auth-library → gaxios}/node_modules/node-fetch/src/utils/is-redirect.js +0 -0
  219. /package/node_modules/{google-auth-library → gaxios}/node_modules/node-fetch/src/utils/is.js +0 -0
  220. /package/node_modules/{google-auth-library → gaxios}/node_modules/node-fetch/src/utils/multipart-parser.js +0 -0
  221. /package/node_modules/{google-auth-library → gaxios}/node_modules/node-fetch/src/utils/referrer.js +0 -0
  222. /package/node_modules/{google-auth-library → gaxios}/node_modules/web-streams-polyfill/LICENSE +0 -0
  223. /package/node_modules/{google-auth-library → gaxios}/node_modules/web-streams-polyfill/README.md +0 -0
  224. /package/node_modules/{google-auth-library → gaxios}/node_modules/web-streams-polyfill/dist/polyfill.es2018.js +0 -0
  225. /package/node_modules/{google-auth-library → gaxios}/node_modules/web-streams-polyfill/dist/polyfill.es2018.js.map +0 -0
  226. /package/node_modules/{google-auth-library → gaxios}/node_modules/web-streams-polyfill/dist/polyfill.es2018.min.js +0 -0
  227. /package/node_modules/{google-auth-library → gaxios}/node_modules/web-streams-polyfill/dist/polyfill.es2018.min.js.map +0 -0
  228. /package/node_modules/{google-auth-library → gaxios}/node_modules/web-streams-polyfill/dist/polyfill.es2018.mjs +0 -0
  229. /package/node_modules/{google-auth-library → gaxios}/node_modules/web-streams-polyfill/dist/polyfill.es2018.mjs.map +0 -0
  230. /package/node_modules/{google-auth-library → gaxios}/node_modules/web-streams-polyfill/dist/polyfill.es6.js +0 -0
  231. /package/node_modules/{google-auth-library → gaxios}/node_modules/web-streams-polyfill/dist/polyfill.es6.js.map +0 -0
  232. /package/node_modules/{google-auth-library → gaxios}/node_modules/web-streams-polyfill/dist/polyfill.es6.min.js +0 -0
  233. /package/node_modules/{google-auth-library → gaxios}/node_modules/web-streams-polyfill/dist/polyfill.es6.min.js.map +0 -0
  234. /package/node_modules/{google-auth-library → gaxios}/node_modules/web-streams-polyfill/dist/polyfill.es6.mjs +0 -0
  235. /package/node_modules/{google-auth-library → gaxios}/node_modules/web-streams-polyfill/dist/polyfill.es6.mjs.map +0 -0
  236. /package/node_modules/{google-auth-library → gaxios}/node_modules/web-streams-polyfill/dist/polyfill.js +0 -0
  237. /package/node_modules/{google-auth-library → gaxios}/node_modules/web-streams-polyfill/dist/polyfill.js.map +0 -0
  238. /package/node_modules/{google-auth-library → gaxios}/node_modules/web-streams-polyfill/dist/polyfill.min.js +0 -0
  239. /package/node_modules/{google-auth-library → gaxios}/node_modules/web-streams-polyfill/dist/polyfill.min.js.map +0 -0
  240. /package/node_modules/{google-auth-library → gaxios}/node_modules/web-streams-polyfill/dist/polyfill.mjs +0 -0
  241. /package/node_modules/{google-auth-library → gaxios}/node_modules/web-streams-polyfill/dist/polyfill.mjs.map +0 -0
  242. /package/node_modules/{google-auth-library → gaxios}/node_modules/web-streams-polyfill/dist/ponyfill.es2018.js +0 -0
  243. /package/node_modules/{google-auth-library → gaxios}/node_modules/web-streams-polyfill/dist/ponyfill.es2018.js.map +0 -0
  244. /package/node_modules/{google-auth-library → gaxios}/node_modules/web-streams-polyfill/dist/ponyfill.es2018.mjs +0 -0
  245. /package/node_modules/{google-auth-library → gaxios}/node_modules/web-streams-polyfill/dist/ponyfill.es2018.mjs.map +0 -0
  246. /package/node_modules/{google-auth-library → gaxios}/node_modules/web-streams-polyfill/dist/ponyfill.es6.js +0 -0
  247. /package/node_modules/{google-auth-library → gaxios}/node_modules/web-streams-polyfill/dist/ponyfill.es6.js.map +0 -0
  248. /package/node_modules/{google-auth-library → gaxios}/node_modules/web-streams-polyfill/dist/ponyfill.es6.mjs +0 -0
  249. /package/node_modules/{google-auth-library → gaxios}/node_modules/web-streams-polyfill/dist/ponyfill.es6.mjs.map +0 -0
  250. /package/node_modules/{google-auth-library → gaxios}/node_modules/web-streams-polyfill/dist/ponyfill.js +0 -0
  251. /package/node_modules/{google-auth-library → gaxios}/node_modules/web-streams-polyfill/dist/ponyfill.js.map +0 -0
  252. /package/node_modules/{google-auth-library → gaxios}/node_modules/web-streams-polyfill/dist/ponyfill.mjs +0 -0
  253. /package/node_modules/{google-auth-library → gaxios}/node_modules/web-streams-polyfill/dist/ponyfill.mjs.map +0 -0
  254. /package/node_modules/{google-auth-library → gaxios}/node_modules/web-streams-polyfill/dist/types/polyfill.d.ts +0 -0
  255. /package/node_modules/{google-auth-library → gaxios}/node_modules/web-streams-polyfill/dist/types/ponyfill.d.ts +0 -0
  256. /package/node_modules/{google-auth-library → gaxios}/node_modules/web-streams-polyfill/dist/types/ts3.6/polyfill.d.ts +0 -0
  257. /package/node_modules/{google-auth-library → gaxios}/node_modules/web-streams-polyfill/dist/types/ts3.6/ponyfill.d.ts +0 -0
  258. /package/node_modules/{google-auth-library → gaxios}/node_modules/web-streams-polyfill/dist/types/tsdoc-metadata.json +0 -0
  259. /package/node_modules/{google-auth-library → gaxios}/node_modules/web-streams-polyfill/es2018/package.json +0 -0
  260. /package/node_modules/{google-auth-library → gaxios}/node_modules/web-streams-polyfill/es6/package.json +0 -0
  261. /package/node_modules/{google-auth-library → gaxios}/node_modules/web-streams-polyfill/package.json +0 -0
  262. /package/node_modules/{google-auth-library → gaxios}/node_modules/web-streams-polyfill/ponyfill/es2018/package.json +0 -0
  263. /package/node_modules/{google-auth-library → gaxios}/node_modules/web-streams-polyfill/ponyfill/es6/package.json +0 -0
  264. /package/node_modules/{google-auth-library → gaxios}/node_modules/web-streams-polyfill/ponyfill/package.json +0 -0
@@ -1,414 +0,0 @@
1
- "use strict";
2
- // Copyright 2021-2024 Google LLC
3
- //
4
- // Licensed under the Apache License, Version 2.0 (the "License");
5
- // you may not use this file except in compliance with the License.
6
- // You may obtain a copy of the License at
7
- //
8
- // https://www.apache.org/licenses/LICENSE-2.0
9
- //
10
- // Unless required by applicable law or agreed to in writing, software
11
- // distributed under the License is distributed on an "AS IS" BASIS,
12
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- // See the License for the specific language governing permissions and
14
- // limitations under the License.
15
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
- if (k2 === undefined) k2 = k;
17
- var desc = Object.getOwnPropertyDescriptor(m, k);
18
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
19
- desc = { enumerable: true, get: function() { return m[k]; } };
20
- }
21
- Object.defineProperty(o, k2, desc);
22
- }) : (function(o, m, k, k2) {
23
- if (k2 === undefined) k2 = k;
24
- o[k2] = m[k];
25
- }));
26
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
27
- Object.defineProperty(o, "default", { enumerable: true, value: v });
28
- }) : function(o, v) {
29
- o["default"] = v;
30
- });
31
- var __importStar = (this && this.__importStar) || (function () {
32
- var ownKeys = function(o) {
33
- ownKeys = Object.getOwnPropertyNames || function (o) {
34
- var ar = [];
35
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
36
- return ar;
37
- };
38
- return ownKeys(o);
39
- };
40
- return function (mod) {
41
- if (mod && mod.__esModule) return mod;
42
- var result = {};
43
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
44
- __setModuleDefault(result, mod);
45
- return result;
46
- };
47
- })();
48
- Object.defineProperty(exports, "__esModule", { value: true });
49
- exports.env = exports.DebugLogBackendBase = exports.placeholder = exports.AdhocDebugLogger = void 0;
50
- exports.getNodeBackend = getNodeBackend;
51
- exports.getDebugBackend = getDebugBackend;
52
- exports.getStructuredBackend = getStructuredBackend;
53
- exports.setBackend = setBackend;
54
- exports.log = log;
55
- const events_1 = require("events");
56
- const process = __importStar(require("process"));
57
- const util = __importStar(require("util"));
58
- const colours_1 = require("./colours");
59
- const types_1 = require("./types");
60
- // Some functions (as noted) are based on the Node standard library, from
61
- // the following file:
62
- //
63
- // https://github.com/nodejs/node/blob/main/lib/internal/util/debuglog.js
64
- // NOTE: The previous 'export declare interface AdhocDebugLogger' was correctly removed.
65
- /**
66
- * Our logger instance. This actually contains the meat of dealing
67
- * with log lines, including EventEmitter. This contains the function
68
- * that will be passed back to users of the package.
69
- */
70
- class AdhocDebugLogger extends events_1.EventEmitter {
71
- // Our namespace (system/subsystem/etc)
72
- namespace;
73
- // The function we'll call with new log lines.
74
- // Should be built in Node util stuff, or the "debug" package, or whatever.
75
- upstream;
76
- // Self-referential function wrapper that calls invoke() on us.
77
- func;
78
- /**
79
- * @param upstream The backend will pass a function that will be
80
- * called whenever our logger function is invoked.
81
- */
82
- constructor(namespace, upstream) {
83
- super();
84
- this.namespace = namespace;
85
- this.upstream = upstream;
86
- this.func = Object.assign(this.invoke.bind(this), {
87
- // Also add an instance pointer back to us.
88
- instance: this,
89
- // And pull over the EventEmitter functionality.
90
- on: (event, listener) => this.on(event, listener),
91
- });
92
- // Convenience methods for log levels.
93
- this.func.debug = (...args) => this.invokeSeverity(types_1.LogSeverity.DEBUG, ...args);
94
- this.func.info = (...args) => this.invokeSeverity(types_1.LogSeverity.INFO, ...args);
95
- this.func.warn = (...args) => this.invokeSeverity(types_1.LogSeverity.WARNING, ...args);
96
- this.func.error = (...args) => this.invokeSeverity(types_1.LogSeverity.ERROR, ...args);
97
- this.func.sublog = (namespace) => log(namespace, this.func);
98
- }
99
- invoke(fields, ...args) {
100
- // Push out any upstream logger first.
101
- if (this.upstream) {
102
- try {
103
- this.upstream(fields, ...args);
104
- }
105
- catch (e) {
106
- // Swallow exceptions to avoid interfering with other logging.
107
- }
108
- }
109
- // Emit sink events.
110
- try {
111
- this.emit('log', fields, args);
112
- }
113
- catch (e) {
114
- // Swallow exceptions to avoid interfering with other logging.
115
- }
116
- }
117
- invokeSeverity(severity, ...args) {
118
- this.invoke({ severity }, ...args);
119
- }
120
- }
121
- exports.AdhocDebugLogger = AdhocDebugLogger;
122
- /**
123
- * This can be used in place of a real logger while waiting for Promises or disabling logging.
124
- */
125
- exports.placeholder = new AdhocDebugLogger('', () => { }).func;
126
- // 🌟 REMOVED: AdhocDebugLogCallable, AdhocDebugLogFunction, DebugLogBackend declarations
127
- /**
128
- * The base class for debug logging backends. It's possible to use this, but the
129
- * same non-guarantees above still apply (unstable interface, etc).
130
- *
131
- * @private
132
- * @internal
133
- */
134
- class DebugLogBackendBase {
135
- cached = new Map();
136
- filters = [];
137
- filtersSet = false;
138
- constructor() {
139
- // Look for the Node config variable for what systems to enable. We'll store
140
- // these for the log method below, which will call setFilters() once.
141
- let nodeFlag = process.env[exports.env.nodeEnables] ?? '*';
142
- if (nodeFlag === 'all') {
143
- nodeFlag = '*';
144
- }
145
- this.filters = nodeFlag.split(',');
146
- }
147
- log(namespace, fields, ...args) {
148
- try {
149
- if (!this.filtersSet) {
150
- this.setFilters();
151
- this.filtersSet = true;
152
- }
153
- let logger = this.cached.get(namespace);
154
- if (!logger) {
155
- logger = this.makeLogger(namespace);
156
- this.cached.set(namespace, logger);
157
- }
158
- logger(fields, ...args);
159
- }
160
- catch (e) {
161
- // Silently ignore all errors; we don't want them to interfere with
162
- // the user's running app.
163
- // e;
164
- console.error(e);
165
- }
166
- }
167
- }
168
- exports.DebugLogBackendBase = DebugLogBackendBase;
169
- // The basic backend. This one definitely works, but it's less feature-filled.
170
- //
171
- // Rather than using util.debuglog, this implements the same basic logic directly.
172
- // The reason for this decision is that debuglog checks the value of the
173
- // NODE_DEBUG environment variable before any user code runs; we therefore
174
- // can't pipe our own enables into it (and util.debuglog will never print unless
175
- // the user duplicates it into NODE_DEBUG, which isn't reasonable).
176
- //
177
- class NodeBackend extends DebugLogBackendBase {
178
- // Default to allowing all systems, since we gate earlier based on whether the
179
- // variable is empty.
180
- enabledRegexp = /.*/g;
181
- isEnabled(namespace) {
182
- return this.enabledRegexp.test(namespace);
183
- }
184
- makeLogger(namespace) {
185
- if (!this.enabledRegexp.test(namespace)) {
186
- return () => { };
187
- }
188
- return (fields, ...args) => {
189
- // TODO: `fields` needs to be turned into a string here, one way or another.
190
- const nscolour = `${colours_1.Colours.green}${namespace}${colours_1.Colours.reset}`;
191
- const pid = `${colours_1.Colours.yellow}${process.pid}${colours_1.Colours.reset}`;
192
- let level;
193
- switch (fields.severity) {
194
- case types_1.LogSeverity.ERROR:
195
- level = `${colours_1.Colours.red}${fields.severity}${colours_1.Colours.reset}`;
196
- break;
197
- case types_1.LogSeverity.INFO:
198
- level = `${colours_1.Colours.magenta}${fields.severity}${colours_1.Colours.reset}`;
199
- break;
200
- case types_1.LogSeverity.WARNING:
201
- level = `${colours_1.Colours.yellow}${fields.severity}${colours_1.Colours.reset}`;
202
- break;
203
- default:
204
- level = fields.severity ?? types_1.LogSeverity.DEFAULT;
205
- break;
206
- }
207
- const msg = util.formatWithOptions({ colors: colours_1.Colours.enabled }, ...args);
208
- const filteredFields = Object.assign({}, fields);
209
- delete filteredFields.severity;
210
- const fieldsJson = Object.getOwnPropertyNames(filteredFields).length
211
- ? JSON.stringify(filteredFields)
212
- : '';
213
- const fieldsColour = fieldsJson
214
- ? `${colours_1.Colours.grey}${fieldsJson}${colours_1.Colours.reset}`
215
- : '';
216
- console.error('%s [%s|%s] %s%s', pid, nscolour, level, msg, fieldsJson ? ` ${fieldsColour}` : '');
217
- };
218
- }
219
- // Regexp patterns below are from here:
220
- // https://github.com/nodejs/node/blob/c0aebed4b3395bd65d54b18d1fd00f071002ac20/lib/internal/util/debuglog.js#L36
221
- setFilters() {
222
- const totalFilters = this.filters.join(',');
223
- const regexp = totalFilters
224
- .replace(/[|\\{}()[\]^$+?.]/g, '\\$&')
225
- .replace(/\*/g, '.*')
226
- .replace(/,/g, '$|^');
227
- this.enabledRegexp = new RegExp(`^${regexp}$`, 'i');
228
- }
229
- }
230
- /**
231
- * @returns A backend based on Node util.debuglog; this is the default.
232
- */
233
- function getNodeBackend() {
234
- return new NodeBackend();
235
- }
236
- class DebugBackend extends DebugLogBackendBase {
237
- debugPkg;
238
- constructor(pkg) {
239
- super();
240
- this.debugPkg = pkg;
241
- }
242
- makeLogger(namespace) {
243
- const debugLogger = this.debugPkg(namespace);
244
- return (fields, ...args) => {
245
- // TODO: `fields` needs to be turned into a string here.
246
- debugLogger(args[0], ...args.slice(1));
247
- };
248
- }
249
- setFilters() {
250
- const existingFilters = process.env['NODE_DEBUG'] ?? '';
251
- process.env['NODE_DEBUG'] = `${existingFilters}${existingFilters ? ',' : ''}${this.filters.join(',')}`;
252
- }
253
- }
254
- /**
255
- * Creates a "debug" package backend. The user must call require('debug') and pass
256
- * the resulting object to this function.
257
- *
258
- * ```
259
- * setBackend(getDebugBackend(require('debug')))
260
- * ```
261
- *
262
- * https://www.npmjs.com/package/debug
263
- *
264
- * Note: Google does not explicitly endorse or recommend this package; it's just
265
- * being provided as an option.
266
- *
267
- * @returns A backend based on the npm "debug" package.
268
- */
269
- function getDebugBackend(debugPkg) {
270
- return new DebugBackend(debugPkg);
271
- }
272
- /**
273
- * This pretty much works like the Node logger, but it outputs structured
274
- * logging JSON matching Google Cloud's ingestion specs. Rather than handling
275
- * its own output, it wraps another backend. The passed backend must be a subclass
276
- * of `DebugLogBackendBase` (any of the backends exposed by this package will work).
277
- */
278
- class StructuredBackend extends DebugLogBackendBase {
279
- upstream;
280
- constructor(upstream) {
281
- super();
282
- this.upstream = upstream ?? undefined;
283
- }
284
- makeLogger(namespace) {
285
- const debugLogger = this.upstream?.makeLogger(namespace);
286
- return (fields, ...args) => {
287
- const severity = fields.severity ?? types_1.LogSeverity.INFO;
288
- const json = Object.assign({
289
- severity,
290
- message: util.format(...args),
291
- }, fields);
292
- const jsonString = JSON.stringify(json);
293
- if (debugLogger) {
294
- debugLogger(fields, jsonString);
295
- }
296
- else {
297
- console.log('%s', jsonString);
298
- }
299
- };
300
- }
301
- setFilters() {
302
- this.upstream?.setFilters();
303
- }
304
- }
305
- /**
306
- * Creates a "structured logging" backend. This pretty much works like the
307
- * Node logger, but it outputs structured logging JSON matching Google
308
- * Cloud's ingestion specs instead of plain text.
309
- *
310
- * ```
311
- * setBackend(getStructuredBackend())
312
- * ```
313
- *
314
- * @param upstream If you want to use something besides the Node backend to
315
- * write the actual log lines into, pass that here.
316
- * @returns A backend based on Google Cloud structured logging.
317
- */
318
- function getStructuredBackend(upstream) {
319
- return new StructuredBackend(upstream);
320
- }
321
- /**
322
- * The environment variables that we standardized on, for all ad-hoc logging.
323
- */
324
- exports.env = {
325
- /**
326
- * Filter wildcards specific to the Node syntax, and similar to the built-in
327
- * utils.debuglog() environment variable. If missing, disables logging.
328
- */
329
- nodeEnables: 'GOOGLE_SDK_NODE_LOGGING',
330
- };
331
- // Keep a copy of all namespaced loggers so users can reliably .on() them.
332
- // Note that these cached functions will need to deal with changes in the backend.
333
- const loggerCache = new Map();
334
- // Our current global backend. This might be:
335
- let cachedBackend = undefined;
336
- /**
337
- * Set the backend to use for our log output.
338
- * - A backend object
339
- * - null to disable logging
340
- * - undefined for "nothing yet", defaults to the Node backend
341
- *
342
- * @param backend Results from one of the get*Backend() functions.
343
- */
344
- function setBackend(backend) {
345
- cachedBackend = backend;
346
- loggerCache.clear();
347
- }
348
- /**
349
- * Creates a logging function. Multiple calls to this with the same namespace
350
- * will produce the same logger, with the same event emitter hooks.
351
- *
352
- * Namespaces can be a simple string ("system" name), or a qualified string
353
- * (system:subsystem), which can be used for filtering, or for "system:*".
354
- *
355
- * @param namespace The namespace, a descriptive text string.
356
- * @returns A function you can call that works similar to console.log().
357
- */
358
- function log(namespace, parent) {
359
- // If the enable environment variable isn't set, do nothing. The user
360
- // can still choose to set a backend of their choice using the manual
361
- // `setBackend()`.
362
- if (!cachedBackend) {
363
- const enablesFlag = process.env[exports.env.nodeEnables];
364
- if (!enablesFlag) {
365
- return exports.placeholder;
366
- }
367
- }
368
- // This might happen mostly if the typings are dropped in a user's code,
369
- // or if they're calling from JavaScript.
370
- if (!namespace) {
371
- return exports.placeholder;
372
- }
373
- // Handle sub-loggers.
374
- if (parent) {
375
- namespace = `${parent.instance.namespace}:${namespace}`;
376
- }
377
- // Reuse loggers so things like event sinks are persistent.
378
- const existing = loggerCache.get(namespace);
379
- if (existing) {
380
- return existing.func;
381
- }
382
- // Do we have a backend yet?
383
- if (cachedBackend === null) {
384
- // Explicitly disabled.
385
- return exports.placeholder;
386
- }
387
- else if (cachedBackend === undefined) {
388
- // One hasn't been made yet, so default to Node.
389
- cachedBackend = getNodeBackend();
390
- }
391
- // The logger is further wrapped so we can handle the backend changing out.
392
- const logger = (() => {
393
- let previousBackend = undefined;
394
- const newLogger = new AdhocDebugLogger(namespace, (fields, ...args) => {
395
- if (previousBackend !== cachedBackend) {
396
- // Did the user pass a custom backend?
397
- if (cachedBackend === null) {
398
- // Explicitly disabled.
399
- return;
400
- }
401
- else if (cachedBackend === undefined) {
402
- // One hasn't been made yet, so default to Node.
403
- cachedBackend = getNodeBackend();
404
- }
405
- previousBackend = cachedBackend;
406
- }
407
- cachedBackend?.log(namespace, fields, ...args);
408
- });
409
- return newLogger;
410
- })();
411
- loggerCache.set(namespace, logger);
412
- return logger.func;
413
- }
414
- //# sourceMappingURL=logging-utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"logging-utils.js","sourceRoot":"","sources":["../../src/logging-utils.ts"],"names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AE,CAAC;oBACvC,gDAAgD;oBAChD,aAAa,GAAG,cAAc,EAAE,CAAC;gBACnC,CAAC;gBAED,eAAe,GAAG,aAAa,CAAC;YAClC,CAAC;YAED,aAAa,EAAE,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC,CAAC;QACjD,CAAC,CACF,CAAC;QACF,OAAO,SAAS,CAAC;IACnB,CAAC,CAAC,EAAE,CAAC;IAEL,WAAW,CAAC,GAAG,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;IACnC,OAAO,MAAM,CAAC,IAAI,CAAC;AACrB,CAAC"}
@@ -1,45 +0,0 @@
1
- /**
2
- * Simplified interface analogous to the tc39 Temporal.Duration
3
- * parameter to from(). This doesn't support the full gamut (years, days).
4
- */
5
- export interface DurationLike {
6
- hours?: number;
7
- minutes?: number;
8
- seconds?: number;
9
- millis?: number;
10
- }
11
- /**
12
- * Simplified list of values to pass to Duration.totalOf(). This
13
- * list is taken from the tc39 Temporal.Duration proposal, but
14
- * larger and smaller units have been left off.
15
- */
16
- export type TotalOfUnit = 'hour' | 'minute' | 'second' | 'millisecond';
17
- /**
18
- * Duration class with an interface similar to the tc39 Temporal
19
- * proposal. Since it's not fully finalized, and polyfills have
20
- * inconsistent compatibility, for now this shim class will be
21
- * used to set durations in Pub/Sub.
22
- *
23
- * This class will remain here for at least the next major version,
24
- * eventually to be replaced by the tc39 Temporal built-in.
25
- *
26
- * https://tc39.es/proposal-temporal/docs/duration.html
27
- */
28
- export declare class Duration {
29
- private millis;
30
- private static secondInMillis;
31
- private static minuteInMillis;
32
- private static hourInMillis;
33
- private constructor();
34
- /**
35
- * Calculates the total number of units of type 'totalOf' that would
36
- * fit inside this duration.
37
- */
38
- totalOf(totalOf: TotalOfUnit): number;
39
- /**
40
- * Creates a Duration from a DurationLike, which is an object
41
- * containing zero or more of the following: hours, seconds,
42
- * minutes, millis.
43
- */
44
- static from(durationLike: DurationLike): Duration;
45
- }
@@ -1,68 +0,0 @@
1
- "use strict";
2
- // Copyright 2022-2024 Google LLC
3
- //
4
- // Licensed under the Apache License, Version 2.0 (the "License");
5
- // you may not use this file except in compliance with the License.
6
- // You may obtain a copy of the License at
7
- //
8
- // http://www.apache.org/licenses/LICENSE-2.0
9
- //
10
- // Unless required by applicable law or agreed to in writing, software
11
- // distributed under the License is distributed on an "AS IS" BASIS,
12
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- // See the License for the specific language governing permissions and
14
- // limitations under the License.
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.Duration = void 0;
17
- /**
18
- * Duration class with an interface similar to the tc39 Temporal
19
- * proposal. Since it's not fully finalized, and polyfills have
20
- * inconsistent compatibility, for now this shim class will be
21
- * used to set durations in Pub/Sub.
22
- *
23
- * This class will remain here for at least the next major version,
24
- * eventually to be replaced by the tc39 Temporal built-in.
25
- *
26
- * https://tc39.es/proposal-temporal/docs/duration.html
27
- */
28
- class Duration {
29
- millis;
30
- static secondInMillis = 1000;
31
- static minuteInMillis = Duration.secondInMillis * 60;
32
- static hourInMillis = Duration.minuteInMillis * 60;
33
- constructor(millis) {
34
- this.millis = millis;
35
- }
36
- /**
37
- * Calculates the total number of units of type 'totalOf' that would
38
- * fit inside this duration.
39
- */
40
- totalOf(totalOf) {
41
- switch (totalOf) {
42
- case 'hour':
43
- return this.millis / Duration.hourInMillis;
44
- case 'minute':
45
- return this.millis / Duration.minuteInMillis;
46
- case 'second':
47
- return this.millis / Duration.secondInMillis;
48
- case 'millisecond':
49
- return this.millis;
50
- default:
51
- throw new Error(`Invalid unit in call to totalOf(): ${totalOf}`);
52
- }
53
- }
54
- /**
55
- * Creates a Duration from a DurationLike, which is an object
56
- * containing zero or more of the following: hours, seconds,
57
- * minutes, millis.
58
- */
59
- static from(durationLike) {
60
- let millis = durationLike.millis ?? 0;
61
- millis += (durationLike.seconds ?? 0) * Duration.secondInMillis;
62
- millis += (durationLike.minutes ?? 0) * Duration.minuteInMillis;
63
- millis += (durationLike.hours ?? 0) * Duration.hourInMillis;
64
- return new Duration(millis);
65
- }
66
- }
67
- exports.Duration = Duration;
68
- //# sourceMappingURL=temporal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"temporal.js","sourceRoot":"","sources":["../../src/temporal.ts"],"names":[],"mappings":";AAAA,iCAAiC;AACjC,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AA6BjC;;;;;;;;;;GAUG;AACH,MAAa,QAAQ;IACX,MAAM,CAAS;IAEf,MAAM,CAAC,cAAc,GAAG,IAAI,CAAC;IAC7B,MAAM,CAAC,cAAc,GAAG,QAAQ,CAAC,cAAc,GAAG,EAAE,CAAC;IACrD,MAAM,CAAC,YAAY,GAAG,QAAQ,CAAC,cAAc,GAAG,EAAE,CAAC;IAE3D,YAAoB,MAAc;QAChC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACH,OAAO,CAAC,OAAoB;QAC1B,QAAQ,OAAO,EAAE,CAAC;YAChB,KAAK,MAAM;gBACT,OAAO,IAAI,CAAC,MAAM,GAAG,QAAQ,CAAC,YAAY,CAAC;YAC7C,KAAK,QAAQ;gBACX,OAAO,IAAI,CAAC,MAAM,GAAG,QAAQ,CAAC,cAAc,CAAC;YAC/C,KAAK,QAAQ;gBACX,OAAO,IAAI,CAAC,MAAM,GAAG,QAAQ,CAAC,cAAc,CAAC;YAC/C,KAAK,aAAa;gBAChB,OAAO,IAAI,CAAC,MAAM,CAAC;YACrB;gBACE,MAAM,IAAI,KAAK,CAAC,sCAAsC,OAAO,EAAE,CAAC,CAAC;QACrE,CAAC;IACH,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,IAAI,CAAC,YAA0B;QACpC,IAAI,MAAM,GAAG,YAAY,CAAC,MAAM,IAAI,CAAC,CAAC;QACtC,MAAM,IAAI,CAAC,YAAY,CAAC,OAAO,IAAI,CAAC,CAAC,GAAG,QAAQ,CAAC,cAAc,CAAC;QAChE,MAAM,IAAI,CAAC,YAAY,CAAC,OAAO,IAAI,CAAC,CAAC,GAAG,QAAQ,CAAC,cAAc,CAAC;QAChE,MAAM,IAAI,CAAC,YAAY,CAAC,KAAK,IAAI,CAAC,CAAC,GAAG,QAAQ,CAAC,YAAY,CAAC;QAE5D,OAAO,IAAI,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC9B,CAAC;;AA1CH,4BA2CC"}
@@ -1,78 +0,0 @@
1
- import { AdhocDebugLogger } from './logging-utils';
2
- /**
3
- * Possible log levels. These are a subset of Cloud Observability levels.
4
- * https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry#LogSeverity
5
- */
6
- export declare enum LogSeverity {
7
- DEFAULT = "DEFAULT",
8
- DEBUG = "DEBUG",
9
- INFO = "INFO",
10
- WARNING = "WARNING",
11
- ERROR = "ERROR"
12
- }
13
- /**
14
- * A set of suggested log metadata fields.
15
- */
16
- export interface LogFields {
17
- /**
18
- * Log level - undefined/null === DEFAULT.
19
- */
20
- severity?: LogSeverity;
21
- /**
22
- * If this log is associated with an OpenTelemetry trace, you can put the
23
- * trace ID here to pass on that association.
24
- */
25
- telemetryTraceId?: string;
26
- /**
27
- * If this log is associated with an OpenTelemetry trace, you can put the
28
- * span ID here to pass on that association.
29
- */
30
- telemetrySpanId?: string;
31
- /**
32
- * This is a catch-all for any other items you might want to go into
33
- * structured logs. Library implementers, please see the spec docs above
34
- * for the items envisioned to go here.
35
- */
36
- other?: unknown;
37
- }
38
- /**
39
- * When the user receives a log function (below), this will be the basic function
40
- * call interface for it.
41
- */
42
- export interface AdhocDebugLogCallable {
43
- (fields: LogFields, ...args: unknown[]): void;
44
- }
45
- /**
46
- * Adds typing info for the EventEmitter we're adding to the returned function.
47
- */
48
- export interface AdhocDebugLogFunction extends AdhocDebugLogCallable {
49
- instance: AdhocDebugLogger;
50
- on(event: 'log', listener: (fields: LogFields, args: unknown[]) => void): this;
51
- debug(...args: unknown[]): void;
52
- info(...args: unknown[]): void;
53
- warn(...args: unknown[]): void;
54
- error(...args: unknown[]): void;
55
- sublog(namespace: string): AdhocDebugLogFunction;
56
- }
57
- /**
58
- * One of these can be passed to support a third-party backend, like "debug".
59
- * We're splitting this out because ESM can complicate optional module loading.
60
- */
61
- export interface DebugLogBackend {
62
- /**
63
- * Outputs a log to this backend.
64
- *
65
- * @param namespace The "system" that will be used for filtering. This may also
66
- * include a "subsystem" in the form "system:subsystem".
67
- * @param fields Logging fields to be included as metadata.
68
- * @param args Any parameters to passed to a utils.format() type formatter.
69
- */
70
- log(namespace: string, fields: LogFields, ...args: unknown[]): void;
71
- /**
72
- * Passes in the system/subsystem filters from the global environment variables.
73
- * This lets the backend merge with any native ones.
74
- *
75
- * @param filters A list of wildcards matching systems or system:subsystem pairs.
76
- */
77
- setFilters(filters: string[]): void;
78
- }
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LogSeverity = void 0;
4
- /**
5
- * Possible log levels. These are a subset of Cloud Observability levels.
6
- * https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry#LogSeverity
7
- */
8
- var LogSeverity;
9
- (function (LogSeverity) {
10
- LogSeverity["DEFAULT"] = "DEFAULT";
11
- LogSeverity["DEBUG"] = "DEBUG";
12
- LogSeverity["INFO"] = "INFO";
13
- LogSeverity["WARNING"] = "WARNING";
14
- LogSeverity["ERROR"] = "ERROR";
15
- })(LogSeverity || (exports.LogSeverity = LogSeverity = {}));
16
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":";;;AAEA;;;GAGG;AACH,IAAY,WAMX;AAND,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,8BAAe,CAAA;IACf,4BAAa,CAAA;IACb,kCAAmB,CAAA;IACnB,8BAAe,CAAA;AACjB,CAAC,EANW,WAAW,2BAAX,WAAW,QAMtB"}