@8ms/helpers 2.4.24 → 3.0.1

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 (374) hide show
  1. package/dist/_class/BaseNamespace.cjs +4 -9
  2. package/dist/_class/BaseNamespace.d.cts +2 -4
  3. package/dist/_class/BaseNamespace.d.mts +2 -4
  4. package/dist/_class/BaseNamespace.mjs +4 -9
  5. package/dist/aws/cloudWatchLog/server/{AwsCloudWatchLogNamespace.cjs → AwsCloudWatchLog.cjs} +9 -10
  6. package/dist/aws/cloudWatchLog/server/{AwsCloudWatchLogNamespace.d.cts → AwsCloudWatchLog.d.cts} +5 -6
  7. package/dist/aws/cloudWatchLog/server/{AwsCloudWatchLogNamespace.d.mts → AwsCloudWatchLog.d.mts} +5 -6
  8. package/dist/aws/cloudWatchLog/server/{AwsCloudWatchLogNamespace.mjs → AwsCloudWatchLog.mjs} +9 -10
  9. package/dist/aws/cloudWatchLog/server/index.cjs +2 -4
  10. package/dist/aws/cloudWatchLog/server/index.d.cts +2 -3
  11. package/dist/aws/cloudWatchLog/server/index.d.mts +2 -3
  12. package/dist/aws/cloudWatchLog/server/index.mjs +2 -3
  13. package/dist/aws/cloudWatchMetric/server/{AwsCloudWatchMetricNamespace.cjs → AwsCloudWatchMetric.cjs} +11 -10
  14. package/dist/aws/cloudWatchMetric/server/{AwsCloudWatchMetricNamespace.d.cts → AwsCloudWatchMetric.d.cts} +5 -6
  15. package/dist/aws/cloudWatchMetric/server/{AwsCloudWatchMetricNamespace.d.mts → AwsCloudWatchMetric.d.mts} +5 -6
  16. package/dist/aws/cloudWatchMetric/server/{AwsCloudWatchMetricNamespace.mjs → AwsCloudWatchMetric.mjs} +10 -8
  17. package/dist/aws/cloudWatchMetric/server/index.cjs +2 -4
  18. package/dist/aws/cloudWatchMetric/server/index.d.cts +2 -3
  19. package/dist/aws/cloudWatchMetric/server/index.d.mts +2 -3
  20. package/dist/aws/cloudWatchMetric/server/index.mjs +2 -3
  21. package/dist/aws/ec2/server/{AwsEc2Namespace.cjs → AwsEc2.cjs} +9 -7
  22. package/dist/aws/ec2/server/{AwsEc2Namespace.d.cts → AwsEc2.d.cts} +5 -6
  23. package/dist/aws/ec2/server/{AwsEc2Namespace.d.mts → AwsEc2.d.mts} +5 -6
  24. package/dist/aws/ec2/server/{AwsEc2Namespace.mjs → AwsEc2.mjs} +9 -7
  25. package/dist/aws/ec2/server/index.cjs +2 -4
  26. package/dist/aws/ec2/server/index.d.cts +2 -3
  27. package/dist/aws/ec2/server/index.d.mts +2 -3
  28. package/dist/aws/ec2/server/index.mjs +2 -3
  29. package/dist/aws/ecs/server/{AwsEcsNamespace.cjs → AwsEcs.cjs} +9 -9
  30. package/dist/aws/ecs/server/{AwsEcsNamespace.d.cts → AwsEcs.d.cts} +5 -6
  31. package/dist/aws/ecs/server/{AwsEcsNamespace.d.mts → AwsEcs.d.mts} +5 -6
  32. package/dist/aws/ecs/server/{AwsEcsNamespace.mjs → AwsEcs.mjs} +9 -9
  33. package/dist/aws/ecs/server/index.cjs +2 -4
  34. package/dist/aws/ecs/server/index.d.cts +2 -3
  35. package/dist/aws/ecs/server/index.d.mts +2 -3
  36. package/dist/aws/ecs/server/index.mjs +2 -3
  37. package/dist/aws/glue/server/{AwsGlueNamespace.cjs → AwsGlue.cjs} +9 -6
  38. package/dist/aws/glue/server/{AwsGlueNamespace.d.cts → AwsGlue.d.cts} +5 -6
  39. package/dist/aws/glue/server/{AwsGlueNamespace.d.mts → AwsGlue.d.mts} +5 -6
  40. package/dist/aws/glue/server/{AwsGlueNamespace.mjs → AwsGlue.mjs} +9 -6
  41. package/dist/aws/glue/server/index.cjs +2 -4
  42. package/dist/aws/glue/server/index.d.cts +2 -3
  43. package/dist/aws/glue/server/index.d.mts +2 -3
  44. package/dist/aws/glue/server/index.mjs +2 -3
  45. package/dist/aws/lambda/server/{AwsLambdaNamespace.cjs → AwsLambda.cjs} +9 -6
  46. package/dist/aws/lambda/server/{AwsLambdaNamespace.d.cts → AwsLambda.d.cts} +5 -6
  47. package/dist/aws/lambda/server/{AwsLambdaNamespace.d.mts → AwsLambda.d.mts} +5 -6
  48. package/dist/aws/lambda/server/{AwsLambdaNamespace.mjs → AwsLambda.mjs} +9 -6
  49. package/dist/aws/lambda/server/getHandlerPath.cjs +7 -0
  50. package/dist/aws/lambda/server/getHandlerPath.d.cts +4 -0
  51. package/dist/aws/lambda/server/getHandlerPath.d.mts +4 -0
  52. package/dist/aws/lambda/server/getHandlerPath.mjs +6 -0
  53. package/dist/aws/lambda/server/index.cjs +4 -5
  54. package/dist/aws/lambda/server/index.d.cts +3 -3
  55. package/dist/aws/lambda/server/index.d.mts +3 -3
  56. package/dist/aws/lambda/server/index.mjs +3 -3
  57. package/dist/aws/s3/server/{AwsS3Namespace.cjs → AwsS3.cjs} +12 -31
  58. package/dist/aws/s3/server/{AwsS3Namespace.d.cts → AwsS3.d.cts} +6 -7
  59. package/dist/aws/s3/server/{AwsS3Namespace.d.mts → AwsS3.d.mts} +6 -7
  60. package/dist/aws/s3/server/{AwsS3Namespace.mjs → AwsS3.mjs} +10 -29
  61. package/dist/aws/s3/server/awsS3File.cjs +12 -0
  62. package/dist/aws/s3/server/awsS3File.d.cts +12 -0
  63. package/dist/aws/s3/server/awsS3File.d.mts +12 -0
  64. package/dist/aws/s3/server/awsS3File.mjs +11 -0
  65. package/dist/aws/s3/server/index.cjs +4 -5
  66. package/dist/aws/s3/server/index.d.cts +3 -3
  67. package/dist/aws/s3/server/index.d.mts +3 -3
  68. package/dist/aws/s3/server/index.mjs +3 -3
  69. package/dist/aws/server/getAwsConfig.cjs +15 -0
  70. package/dist/aws/server/getAwsConfig.d.cts +18 -0
  71. package/dist/aws/server/getAwsConfig.d.mts +18 -0
  72. package/dist/aws/server/getAwsConfig.mjs +14 -0
  73. package/dist/aws/server/index.cjs +2 -2
  74. package/dist/aws/server/index.d.cts +2 -2
  75. package/dist/aws/server/index.d.mts +2 -2
  76. package/dist/aws/server/index.mjs +2 -2
  77. package/dist/aws/ses/server/{AwsSesNamespace.cjs → AwsSes.cjs} +9 -6
  78. package/dist/aws/ses/server/{AwsSesNamespace.d.cts → AwsSes.d.cts} +5 -6
  79. package/dist/aws/ses/server/{AwsSesNamespace.d.mts → AwsSes.d.mts} +5 -6
  80. package/dist/aws/ses/server/{AwsSesNamespace.mjs → AwsSes.mjs} +9 -6
  81. package/dist/aws/ses/server/index.cjs +2 -4
  82. package/dist/aws/ses/server/index.d.cts +2 -3
  83. package/dist/aws/ses/server/index.d.mts +2 -3
  84. package/dist/aws/ses/server/index.mjs +2 -3
  85. package/dist/aws/sqs/server/{AwsSqsNamespace.cjs → AwsSqs.cjs} +9 -8
  86. package/dist/aws/sqs/server/{AwsSqsNamespace.d.cts → AwsSqs.d.cts} +5 -6
  87. package/dist/aws/sqs/server/{AwsSqsNamespace.d.mts → AwsSqs.d.mts} +5 -6
  88. package/dist/aws/sqs/server/{AwsSqsNamespace.mjs → AwsSqs.mjs} +9 -8
  89. package/dist/aws/sqs/server/index.cjs +2 -4
  90. package/dist/aws/sqs/server/index.d.cts +2 -3
  91. package/dist/aws/sqs/server/index.d.mts +2 -3
  92. package/dist/aws/sqs/server/index.mjs +2 -3
  93. package/dist/aws/ssm/server/{AwsSsmNamespace.cjs → AwsSsm.cjs} +14 -14
  94. package/dist/aws/ssm/server/AwsSsm.d.cts +13 -0
  95. package/dist/aws/ssm/server/AwsSsm.d.mts +13 -0
  96. package/dist/aws/ssm/server/AwsSsm.mjs +34 -0
  97. package/dist/aws/ssm/server/index.cjs +2 -4
  98. package/dist/aws/ssm/server/index.d.cts +2 -3
  99. package/dist/aws/ssm/server/index.d.mts +2 -3
  100. package/dist/aws/ssm/server/index.mjs +2 -3
  101. package/dist/brightData/webScraperIde/server/getBatch.cjs +3 -2
  102. package/dist/brightData/webScraperIde/server/getBatch.d.cts +5 -1
  103. package/dist/brightData/webScraperIde/server/getBatch.d.mts +5 -1
  104. package/dist/brightData/webScraperIde/server/getBatch.mjs +3 -2
  105. package/dist/drizzle/server/{DrizzleNamespace.cjs → Drizzle.cjs} +5 -5
  106. package/dist/drizzle/server/{drizzle.d.cts → Drizzle.d.cts} +8 -4
  107. package/dist/drizzle/server/{drizzle.d.mts → Drizzle.d.mts} +8 -4
  108. package/dist/drizzle/server/{DrizzleNamespace.mjs → Drizzle.mjs} +5 -5
  109. package/dist/drizzle/server/index.cjs +2 -4
  110. package/dist/drizzle/server/index.d.cts +2 -3
  111. package/dist/drizzle/server/index.d.mts +2 -3
  112. package/dist/drizzle/server/index.mjs +2 -3
  113. package/dist/environment/environment.cjs +2 -2
  114. package/dist/environment/environment.mjs +2 -2
  115. package/dist/googleAds/server/{GoogleAdsNamespace.cjs → GoogleAds.cjs} +9 -10
  116. package/dist/googleAds/server/{GoogleAdsNamespace.d.cts → GoogleAds.d.cts} +9 -5
  117. package/dist/googleAds/server/{GoogleAdsNamespace.d.mts → GoogleAds.d.mts} +9 -5
  118. package/dist/googleAds/server/GoogleAds.mjs +28 -0
  119. package/dist/googleAds/server/index.cjs +2 -4
  120. package/dist/googleAds/server/index.d.cts +2 -3
  121. package/dist/googleAds/server/index.d.mts +2 -3
  122. package/dist/googleAds/server/index.mjs +2 -3
  123. package/dist/googleCloud/bigquery/server/{GoogleCloudBigqueryNamespace.cjs → GoogleCloudBigquery.cjs} +27 -33
  124. package/dist/googleCloud/bigquery/server/{GoogleCloudBigqueryNamespace.d.cts → GoogleCloudBigquery.d.cts} +14 -16
  125. package/dist/googleCloud/bigquery/server/{GoogleCloudBigqueryNamespace.d.mts → GoogleCloudBigquery.d.mts} +14 -16
  126. package/dist/googleCloud/bigquery/server/{GoogleCloudBigqueryNamespace.mjs → GoogleCloudBigquery.mjs} +27 -33
  127. package/dist/googleCloud/bigquery/server/getHandlerPath.cjs +7 -0
  128. package/dist/googleCloud/bigquery/server/getHandlerPath.d.cts +4 -0
  129. package/dist/googleCloud/bigquery/server/getHandlerPath.d.mts +4 -0
  130. package/dist/googleCloud/bigquery/server/getHandlerPath.mjs +6 -0
  131. package/dist/googleCloud/bigquery/server/index.cjs +4 -5
  132. package/dist/googleCloud/bigquery/server/index.d.cts +3 -3
  133. package/dist/googleCloud/bigquery/server/index.d.mts +3 -3
  134. package/dist/googleCloud/bigquery/server/index.mjs +3 -3
  135. package/dist/googleCloud/bigquery/server/loadData.d.cts +2 -2
  136. package/dist/googleCloud/bigquery/server/loadData.d.mts +2 -2
  137. package/dist/googleCloud/server/getGoogleCloudConfig.cjs +81 -0
  138. package/dist/googleCloud/server/getGoogleCloudConfig.d.cts +77 -0
  139. package/dist/googleCloud/server/getGoogleCloudConfig.d.mts +77 -0
  140. package/dist/googleCloud/server/getGoogleCloudConfig.mjs +78 -0
  141. package/dist/googleCloud/server/index.cjs +4 -2
  142. package/dist/googleCloud/server/index.d.cts +2 -2
  143. package/dist/googleCloud/server/index.d.mts +2 -2
  144. package/dist/googleCloud/server/index.mjs +2 -2
  145. package/dist/googleCloud/sheets/server/{GoogleCloudSheetsNamespace.cjs → GoogleCloudSheets.cjs} +10 -8
  146. package/dist/googleCloud/sheets/server/{GoogleCloudSheetsNamespace.d.cts → GoogleCloudSheets.d.cts} +8 -8
  147. package/dist/googleCloud/sheets/server/{GoogleCloudSheetsNamespace.d.mts → GoogleCloudSheets.d.mts} +8 -8
  148. package/dist/googleCloud/sheets/server/{GoogleCloudSheetsNamespace.mjs → GoogleCloudSheets.mjs} +10 -8
  149. package/dist/googleCloud/sheets/server/index.cjs +2 -2
  150. package/dist/googleCloud/sheets/server/index.d.cts +2 -2
  151. package/dist/googleCloud/sheets/server/index.d.mts +2 -2
  152. package/dist/googleCloud/sheets/server/index.mjs +2 -2
  153. package/dist/googleCloud/storage/server/{GoogleCloudStorageNamespace.cjs → GoogleCloudStorage.cjs} +15 -10
  154. package/dist/googleCloud/storage/server/{GoogleCloudStorageNamespace.d.cts → GoogleCloudStorage.d.cts} +10 -8
  155. package/dist/googleCloud/storage/server/{GoogleCloudStorageNamespace.d.mts → GoogleCloudStorage.d.mts} +10 -8
  156. package/dist/googleCloud/storage/server/{GoogleCloudStorageNamespace.mjs → GoogleCloudStorage.mjs} +15 -10
  157. package/dist/googleCloud/storage/server/index.cjs +2 -4
  158. package/dist/googleCloud/storage/server/index.d.cts +2 -3
  159. package/dist/googleCloud/storage/server/index.d.mts +2 -3
  160. package/dist/googleCloud/storage/server/index.mjs +2 -3
  161. package/dist/googlePageSpeed/server/{GooglePageSpeedNamespace.cjs → GooglePageSpeed.cjs} +8 -7
  162. package/dist/googlePageSpeed/server/GooglePageSpeed.d.cts +19 -0
  163. package/dist/googlePageSpeed/server/GooglePageSpeed.d.mts +19 -0
  164. package/dist/googlePageSpeed/server/{GooglePageSpeedNamespace.mjs → GooglePageSpeed.mjs} +7 -6
  165. package/dist/googlePageSpeed/server/category.cjs +11 -0
  166. package/dist/googlePageSpeed/server/category.d.cts +11 -0
  167. package/dist/googlePageSpeed/server/category.d.mts +11 -0
  168. package/dist/googlePageSpeed/server/category.mjs +10 -0
  169. package/dist/googlePageSpeed/server/index.cjs +6 -6
  170. package/dist/googlePageSpeed/server/index.d.cts +4 -3
  171. package/dist/googlePageSpeed/server/index.d.mts +4 -3
  172. package/dist/googlePageSpeed/server/index.mjs +4 -3
  173. package/dist/googlePageSpeed/server/strategy.cjs +9 -0
  174. package/dist/googlePageSpeed/server/strategy.d.cts +9 -0
  175. package/dist/googlePageSpeed/server/strategy.d.mts +9 -0
  176. package/dist/googlePageSpeed/server/strategy.mjs +8 -0
  177. package/dist/inngest/index.cjs +2 -2
  178. package/dist/inngest/index.d.cts +1 -1
  179. package/dist/inngest/index.d.mts +1 -1
  180. package/dist/inngest/index.mjs +1 -1
  181. package/dist/inngest/{inngest.cjs → inngestState.cjs} +1 -1
  182. package/dist/inngest/{inngest.d.mts → inngestState.d.cts} +1 -1
  183. package/dist/inngest/{inngest.d.cts → inngestState.d.mts} +1 -1
  184. package/dist/inngest/{inngest.mjs → inngestState.mjs} +1 -1
  185. package/dist/littleWarden/server/{LittleWardenNamespace.cjs → LittleWarden.cjs} +5 -4
  186. package/dist/littleWarden/server/{LittleWardenNamespace.d.cts → LittleWarden.d.cts} +7 -5
  187. package/dist/littleWarden/server/{LittleWardenNamespace.d.mts → LittleWarden.d.mts} +7 -5
  188. package/dist/littleWarden/server/{LittleWardenNamespace.mjs → LittleWarden.mjs} +5 -4
  189. package/dist/littleWarden/server/index.cjs +7 -8
  190. package/dist/littleWarden/server/index.d.cts +3 -3
  191. package/dist/littleWarden/server/index.d.mts +3 -3
  192. package/dist/littleWarden/server/index.mjs +3 -3
  193. package/dist/littleWarden/server/littleWardenAttrs.cjs +38 -0
  194. package/dist/littleWarden/server/{littleWarden.d.cts → littleWardenAttrs.d.cts} +2 -7
  195. package/dist/littleWarden/server/{littleWarden.d.mts → littleWardenAttrs.d.mts} +2 -7
  196. package/dist/littleWarden/server/littleWardenAttrs.mjs +33 -0
  197. package/dist/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.cts +7 -0
  198. package/dist/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.mts +7 -0
  199. package/dist/node_modules/@smithy/types/dist-types/identity/awsCredentialIdentity.d.cts +35 -0
  200. package/dist/node_modules/@smithy/types/dist-types/identity/awsCredentialIdentity.d.mts +35 -0
  201. package/dist/node_modules/@smithy/types/dist-types/identity/identity.d.cts +18 -0
  202. package/dist/node_modules/@smithy/types/dist-types/identity/identity.d.mts +18 -0
  203. package/dist/node_modules/@smithy/types/dist-types/index.d.cts +2 -0
  204. package/dist/node_modules/@smithy/types/dist-types/index.d.mts +2 -0
  205. package/dist/onePassword/server/OnePassword.cjs +44 -0
  206. package/dist/onePassword/server/OnePassword.d.cts +21 -0
  207. package/dist/onePassword/server/OnePassword.d.mts +21 -0
  208. package/dist/onePassword/server/{OnePasswordNamespace.mjs → OnePassword.mjs} +19 -13
  209. package/dist/onePassword/server/getIdsFromUrl.cjs +2 -2
  210. package/dist/onePassword/server/getIdsFromUrl.d.cts +2 -2
  211. package/dist/onePassword/server/getIdsFromUrl.d.mts +2 -2
  212. package/dist/onePassword/server/getIdsFromUrl.mjs +2 -2
  213. package/dist/onePassword/server/index.cjs +2 -4
  214. package/dist/onePassword/server/index.d.cts +2 -3
  215. package/dist/onePassword/server/index.d.mts +2 -3
  216. package/dist/onePassword/server/index.mjs +2 -3
  217. package/dist/openAi/server/{OpenAiNamespace.cjs → OpenAi.cjs} +10 -7
  218. package/dist/openAi/server/{OpenAiNamespace.d.cts → OpenAi.d.cts} +7 -5
  219. package/dist/openAi/server/{OpenAiNamespace.d.mts → OpenAi.d.mts} +7 -5
  220. package/dist/openAi/server/{OpenAiNamespace.mjs → OpenAi.mjs} +10 -7
  221. package/dist/openAi/server/index.cjs +2 -4
  222. package/dist/openAi/server/index.d.cts +2 -3
  223. package/dist/openAi/server/index.d.mts +2 -3
  224. package/dist/openAi/server/index.mjs +2 -3
  225. package/dist/snapchat/server/{SnapchatNamespace.cjs → Snapchat.cjs} +5 -4
  226. package/dist/snapchat/server/Snapchat.d.cts +22 -0
  227. package/dist/snapchat/server/Snapchat.d.mts +22 -0
  228. package/dist/snapchat/server/{SnapchatNamespace.mjs → Snapchat.mjs} +5 -4
  229. package/dist/snapchat/server/index.cjs +2 -4
  230. package/dist/snapchat/server/index.d.cts +2 -3
  231. package/dist/snapchat/server/index.d.mts +2 -3
  232. package/dist/snapchat/server/index.mjs +2 -3
  233. package/dist/swr/client/swr.cjs +1 -1
  234. package/dist/swr/client/swr.mjs +1 -1
  235. package/dist/upTimeRobot/server/UpTimeRobot.cjs +34 -0
  236. package/dist/upTimeRobot/server/{UpTimeRobotNamespace.d.cts → UpTimeRobot.d.cts} +7 -5
  237. package/dist/upTimeRobot/server/{UpTimeRobotNamespace.d.mts → UpTimeRobot.d.mts} +7 -5
  238. package/dist/upTimeRobot/server/UpTimeRobot.mjs +33 -0
  239. package/dist/upTimeRobot/server/index.cjs +12 -9
  240. package/dist/upTimeRobot/server/index.d.cts +7 -3
  241. package/dist/upTimeRobot/server/index.d.mts +7 -3
  242. package/dist/upTimeRobot/server/index.mjs +7 -3
  243. package/dist/upTimeRobot/server/logType.cjs +10 -0
  244. package/dist/upTimeRobot/server/logType.d.cts +10 -0
  245. package/dist/upTimeRobot/server/logType.d.mts +10 -0
  246. package/dist/upTimeRobot/server/logType.mjs +9 -0
  247. package/dist/upTimeRobot/server/monitorStatus.cjs +11 -0
  248. package/dist/upTimeRobot/server/monitorStatus.d.cts +11 -0
  249. package/dist/upTimeRobot/server/monitorStatus.d.mts +11 -0
  250. package/dist/upTimeRobot/server/monitorStatus.mjs +10 -0
  251. package/dist/upTimeRobot/server/monitorSubTypes.cjs +13 -0
  252. package/dist/upTimeRobot/server/monitorSubTypes.d.cts +13 -0
  253. package/dist/upTimeRobot/server/monitorSubTypes.d.mts +13 -0
  254. package/dist/upTimeRobot/server/monitorSubTypes.mjs +12 -0
  255. package/dist/upTimeRobot/server/monitorType.cjs +11 -0
  256. package/dist/upTimeRobot/server/monitorType.d.cts +11 -0
  257. package/dist/upTimeRobot/server/monitorType.d.mts +11 -0
  258. package/dist/upTimeRobot/server/monitorType.mjs +10 -0
  259. package/dist/upTimeRobot/server/requestStatus.cjs +8 -0
  260. package/dist/upTimeRobot/server/requestStatus.d.cts +8 -0
  261. package/dist/upTimeRobot/server/requestStatus.d.mts +8 -0
  262. package/dist/upTimeRobot/server/requestStatus.mjs +7 -0
  263. package/dist/url/url.cjs +1 -1
  264. package/dist/url/url.mjs +1 -1
  265. package/dist/util/defaultTo.cjs +1 -1
  266. package/dist/util/defaultTo.mjs +1 -1
  267. package/dist/webWorker/index.cjs +2 -2
  268. package/dist/webWorker/index.d.cts +1 -1
  269. package/dist/webWorker/index.d.mts +1 -1
  270. package/dist/webWorker/index.mjs +1 -1
  271. package/dist/webWorker/{webWorker.cjs → webWorkerState.cjs} +1 -1
  272. package/dist/webWorker/{webWorker.d.cts → webWorkerState.d.cts} +1 -1
  273. package/dist/webWorker/{webWorker.d.mts → webWorkerState.d.mts} +1 -1
  274. package/dist/webWorker/{webWorker.mjs → webWorkerState.mjs} +1 -1
  275. package/package.json +138 -152
  276. package/dist/aws/cloudWatchLog/server/awsCloudWatchLog.cjs +0 -14
  277. package/dist/aws/cloudWatchLog/server/awsCloudWatchLog.d.cts +0 -7
  278. package/dist/aws/cloudWatchLog/server/awsCloudWatchLog.d.mts +0 -7
  279. package/dist/aws/cloudWatchLog/server/awsCloudWatchLog.mjs +0 -13
  280. package/dist/aws/cloudWatchMetric/server/awsCloudWatchMetric.cjs +0 -14
  281. package/dist/aws/cloudWatchMetric/server/awsCloudWatchMetric.d.cts +0 -7
  282. package/dist/aws/cloudWatchMetric/server/awsCloudWatchMetric.d.mts +0 -7
  283. package/dist/aws/cloudWatchMetric/server/awsCloudWatchMetric.mjs +0 -13
  284. package/dist/aws/ec2/server/awsEc2.cjs +0 -14
  285. package/dist/aws/ec2/server/awsEc2.d.cts +0 -7
  286. package/dist/aws/ec2/server/awsEc2.d.mts +0 -7
  287. package/dist/aws/ec2/server/awsEc2.mjs +0 -13
  288. package/dist/aws/ecs/server/awsEcs.cjs +0 -14
  289. package/dist/aws/ecs/server/awsEcs.d.cts +0 -7
  290. package/dist/aws/ecs/server/awsEcs.d.mts +0 -7
  291. package/dist/aws/ecs/server/awsEcs.mjs +0 -13
  292. package/dist/aws/glue/server/awsGlue.cjs +0 -14
  293. package/dist/aws/glue/server/awsGlue.d.cts +0 -7
  294. package/dist/aws/glue/server/awsGlue.d.mts +0 -7
  295. package/dist/aws/glue/server/awsGlue.mjs +0 -13
  296. package/dist/aws/lambda/server/awsLambda.cjs +0 -18
  297. package/dist/aws/lambda/server/awsLambda.d.cts +0 -8
  298. package/dist/aws/lambda/server/awsLambda.d.mts +0 -8
  299. package/dist/aws/lambda/server/awsLambda.mjs +0 -16
  300. package/dist/aws/s3/server/awsS3.cjs +0 -23
  301. package/dist/aws/s3/server/awsS3.d.cts +0 -16
  302. package/dist/aws/s3/server/awsS3.d.mts +0 -16
  303. package/dist/aws/s3/server/awsS3.mjs +0 -21
  304. package/dist/aws/server/aws.cjs +0 -23
  305. package/dist/aws/server/aws.d.cts +0 -13
  306. package/dist/aws/server/aws.d.mts +0 -13
  307. package/dist/aws/server/aws.mjs +0 -21
  308. package/dist/aws/ses/server/awsSes.cjs +0 -16
  309. package/dist/aws/ses/server/awsSes.d.cts +0 -8
  310. package/dist/aws/ses/server/awsSes.d.mts +0 -8
  311. package/dist/aws/ses/server/awsSes.mjs +0 -14
  312. package/dist/aws/sqs/server/awsSqs.cjs +0 -14
  313. package/dist/aws/sqs/server/awsSqs.d.cts +0 -7
  314. package/dist/aws/sqs/server/awsSqs.d.mts +0 -7
  315. package/dist/aws/sqs/server/awsSqs.mjs +0 -13
  316. package/dist/aws/ssm/server/AwsSsmNamespace.d.cts +0 -15
  317. package/dist/aws/ssm/server/AwsSsmNamespace.d.mts +0 -15
  318. package/dist/aws/ssm/server/AwsSsmNamespace.mjs +0 -34
  319. package/dist/aws/ssm/server/awsSsm.cjs +0 -14
  320. package/dist/aws/ssm/server/awsSsm.d.cts +0 -7
  321. package/dist/aws/ssm/server/awsSsm.d.mts +0 -7
  322. package/dist/aws/ssm/server/awsSsm.mjs +0 -13
  323. package/dist/drizzle/server/DrizzleNamespace.d.cts +0 -11
  324. package/dist/drizzle/server/DrizzleNamespace.d.mts +0 -11
  325. package/dist/drizzle/server/drizzle.cjs +0 -22
  326. package/dist/drizzle/server/drizzle.mjs +0 -21
  327. package/dist/googleAds/server/GoogleAdsNamespace.mjs +0 -29
  328. package/dist/googleAds/server/googleAds.cjs +0 -19
  329. package/dist/googleAds/server/googleAds.d.cts +0 -15
  330. package/dist/googleAds/server/googleAds.d.mts +0 -15
  331. package/dist/googleAds/server/googleAds.mjs +0 -18
  332. package/dist/googleCloud/bigquery/server/googleCloudBigquery.cjs +0 -32
  333. package/dist/googleCloud/bigquery/server/googleCloudBigquery.d.cts +0 -8
  334. package/dist/googleCloud/bigquery/server/googleCloudBigquery.d.mts +0 -8
  335. package/dist/googleCloud/bigquery/server/googleCloudBigquery.mjs +0 -30
  336. package/dist/googleCloud/server/googleCloud.cjs +0 -24
  337. package/dist/googleCloud/server/googleCloud.d.cts +0 -32
  338. package/dist/googleCloud/server/googleCloud.d.mts +0 -32
  339. package/dist/googleCloud/server/googleCloud.mjs +0 -23
  340. package/dist/googleCloud/storage/server/googleCloudStorage.cjs +0 -28
  341. package/dist/googleCloud/storage/server/googleCloudStorage.d.cts +0 -7
  342. package/dist/googleCloud/storage/server/googleCloudStorage.d.mts +0 -7
  343. package/dist/googleCloud/storage/server/googleCloudStorage.mjs +0 -27
  344. package/dist/googlePageSpeed/server/GooglePageSpeedNamespace.d.cts +0 -15
  345. package/dist/googlePageSpeed/server/GooglePageSpeedNamespace.d.mts +0 -15
  346. package/dist/googlePageSpeed/server/googlePageSpeed.cjs +0 -33
  347. package/dist/googlePageSpeed/server/googlePageSpeed.d.cts +0 -23
  348. package/dist/googlePageSpeed/server/googlePageSpeed.d.mts +0 -23
  349. package/dist/googlePageSpeed/server/googlePageSpeed.mjs +0 -30
  350. package/dist/littleWarden/server/littleWarden.cjs +0 -54
  351. package/dist/littleWarden/server/littleWarden.mjs +0 -48
  352. package/dist/onePassword/server/OnePasswordNamespace.cjs +0 -38
  353. package/dist/onePassword/server/OnePasswordNamespace.d.cts +0 -17
  354. package/dist/onePassword/server/OnePasswordNamespace.d.mts +0 -17
  355. package/dist/onePassword/server/onePassword.cjs +0 -14
  356. package/dist/onePassword/server/onePassword.d.cts +0 -11
  357. package/dist/onePassword/server/onePassword.d.mts +0 -11
  358. package/dist/onePassword/server/onePassword.mjs +0 -13
  359. package/dist/openAi/server/openAi.cjs +0 -19
  360. package/dist/openAi/server/openAi.d.cts +0 -9
  361. package/dist/openAi/server/openAi.d.mts +0 -9
  362. package/dist/openAi/server/openAi.mjs +0 -18
  363. package/dist/snapchat/server/SnapchatNamespace.d.cts +0 -18
  364. package/dist/snapchat/server/SnapchatNamespace.d.mts +0 -18
  365. package/dist/snapchat/server/snapchat.cjs +0 -19
  366. package/dist/snapchat/server/snapchat.d.cts +0 -11
  367. package/dist/snapchat/server/snapchat.d.mts +0 -11
  368. package/dist/snapchat/server/snapchat.mjs +0 -18
  369. package/dist/upTimeRobot/server/UpTimeRobotNamespace.cjs +0 -31
  370. package/dist/upTimeRobot/server/UpTimeRobotNamespace.mjs +0 -30
  371. package/dist/upTimeRobot/server/upTimeRobot.cjs +0 -57
  372. package/dist/upTimeRobot/server/upTimeRobot.d.cts +0 -42
  373. package/dist/upTimeRobot/server/upTimeRobot.d.mts +0 -42
  374. package/dist/upTimeRobot/server/upTimeRobot.mjs +0 -51
@@ -1,4 +1,4 @@
1
- import { GoogleCloudBigqueryNamespace, QueryInput } from "./GoogleCloudBigqueryNamespace.mjs";
2
- import { getHandlerPath, googleCloudBigqueryClient } from "./googleCloudBigquery.mjs";
1
+ import { GoogleCloudBigquery, QueryInput } from "./GoogleCloudBigquery.mjs";
2
+ import { getHandlerPath } from "./getHandlerPath.mjs";
3
3
  import { loadData } from "./loadData.mjs";
4
- export { GoogleCloudBigqueryNamespace, QueryInput, getHandlerPath, googleCloudBigqueryClient, loadData };
4
+ export { GoogleCloudBigquery, QueryInput, getHandlerPath, loadData };
@@ -1,4 +1,4 @@
1
- import { GoogleCloudBigqueryNamespace } from "./GoogleCloudBigqueryNamespace.mjs";
2
- import { getHandlerPath, googleCloudBigqueryClient } from "./googleCloudBigquery.mjs";
1
+ import { GoogleCloudBigquery } from "./GoogleCloudBigquery.mjs";
2
+ import { getHandlerPath } from "./getHandlerPath.mjs";
3
3
  import { loadData } from "./loadData.mjs";
4
- export { GoogleCloudBigqueryNamespace, getHandlerPath, googleCloudBigqueryClient, loadData };
4
+ export { GoogleCloudBigquery, getHandlerPath, loadData };
@@ -1,8 +1,8 @@
1
- import { GoogleCloudBigqueryNamespace } from "./GoogleCloudBigqueryNamespace.cjs";
1
+ import { GoogleCloudBigquery } from "./GoogleCloudBigquery.cjs";
2
2
 
3
3
  //#region src/googleCloud/bigquery/server/loadData.d.ts
4
4
  type LoadData = {
5
- googleCloudBigqueryClient: GoogleCloudBigqueryNamespace;
5
+ googleCloudBigqueryClient: GoogleCloudBigquery;
6
6
  googleCloudStorageClient: any;
7
7
  file: {
8
8
  bucket: string;
@@ -1,8 +1,8 @@
1
- import { GoogleCloudBigqueryNamespace } from "./GoogleCloudBigqueryNamespace.mjs";
1
+ import { GoogleCloudBigquery } from "./GoogleCloudBigquery.mjs";
2
2
 
3
3
  //#region src/googleCloud/bigquery/server/loadData.d.ts
4
4
  type LoadData = {
5
- googleCloudBigqueryClient: GoogleCloudBigqueryNamespace;
5
+ googleCloudBigqueryClient: GoogleCloudBigquery;
6
6
  googleCloudStorageClient: any;
7
7
  file: {
8
8
  bucket: string;
@@ -0,0 +1,81 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_environment_environment = require("../../environment/environment.cjs");
3
+ //#region src/googleCloud/server/getGoogleCloudConfig.ts
4
+ /**
5
+ * Used to return the correct Google Cloud Config based on the environment/service.
6
+ */
7
+ const getGoogleCloudConfig = (props) => {
8
+ if (props?.oidcV9 && require_environment_environment.isVercel()) return getOidcAuthV9(props.oidcV9);
9
+ if (props?.oidcV10 && require_environment_environment.isVercel()) return getOidcAuthV10(props.oidcV10);
10
+ const privateKey = props.json["private_key"].replace(/\\n/g, "\n");
11
+ return {
12
+ type: props.json["type"],
13
+ project_id: props.json["project_id"],
14
+ private_key_id: props.json["private_key_id"],
15
+ private_key: privateKey,
16
+ client_email: props.json["client_email"],
17
+ client_id: props.json["client_id"],
18
+ auth_uri: props.json["auth_uri"],
19
+ token_uri: props.json["token_uri"],
20
+ auth_provider_x509_cert_url: props.json["auth_provider_x509_cert_url"],
21
+ client_x509_cert_url: props.json["client_x509_cert_url"]
22
+ };
23
+ };
24
+ const buildOidcCredentialConfig = (props) => {
25
+ return {
26
+ type: "external_account",
27
+ audience: `//iam.googleapis.com/projects/${props.googleCloudProjectNumber}/locations/global/workloadIdentityPools/${props.workloadIdentityPoolId}/providers/${props.workloadIdentityPoolProviderId}`,
28
+ subject_token_type: "urn:ietf:params:oauth:token-type:jwt",
29
+ token_url: "https://sts.googleapis.com/v1/token",
30
+ service_account_impersonation_url: `https://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/${props.serviceAccountEmail}:generateAccessToken`,
31
+ credential_source: void 0,
32
+ subject_token_supplier: { getSubjectToken: async () => {
33
+ const { getVercelOidcToken } = await import("@vercel/oidc");
34
+ const token = await getVercelOidcToken();
35
+ if (!token) throw new Error("Vercel OIDC token is undefined or unavailable at runtime");
36
+ return token;
37
+ } }
38
+ };
39
+ };
40
+ /**
41
+ * Returns Storage constructor options for @google-cloud/storage.
42
+ * Token exchange is done via google-auth-library v10, then passed via a
43
+ * gaxios-based authClient stub so Storage never touches ADC or v10 types.
44
+ */
45
+ const getOidcAuthV9 = async (props) => {
46
+ const { ExternalAccountClient } = await import("google-auth-library");
47
+ const client = ExternalAccountClient.fromJSON(buildOidcCredentialConfig(props));
48
+ if (!client) throw new Error("ExternalAccountClient.fromJSON returned null — check credential config");
49
+ const tokenResponse = await client.getAccessToken();
50
+ if (!tokenResponse?.token) throw new Error("Google Token Exchange response did not emit a valid token payload");
51
+ const accessToken = tokenResponse.token;
52
+ const { request: gaxiosRequest } = await import("gaxios");
53
+ return {
54
+ projectId: props.googleCloudProjectId,
55
+ authClient: {
56
+ getRequestHeaders: async () => ({ Authorization: `Bearer ${accessToken}` }),
57
+ getAccessToken: async () => ({ token: accessToken }),
58
+ request: (opts) => gaxiosRequest({
59
+ ...opts,
60
+ headers: {
61
+ ...opts.headers ?? {},
62
+ Authorization: `Bearer ${accessToken}`
63
+ }
64
+ })
65
+ }
66
+ };
67
+ };
68
+ /**
69
+ * Returns an ExternalAccountClient from google-auth-library v10.
70
+ * Use this wherever you need a full AuthClient (e.g. BigQuery, direct API calls).
71
+ */
72
+ const getOidcAuthV10 = async (props) => {
73
+ const { ExternalAccountClient } = await import("google-auth-library");
74
+ const client = ExternalAccountClient.fromJSON(buildOidcCredentialConfig(props));
75
+ if (!client) throw new Error("ExternalAccountClient.fromJSON returned null — check credential config");
76
+ return client;
77
+ };
78
+ //#endregion
79
+ exports.getGoogleCloudConfig = getGoogleCloudConfig;
80
+ exports.getOidcAuthV10 = getOidcAuthV10;
81
+ exports.getOidcAuthV9 = getOidcAuthV9;
@@ -0,0 +1,77 @@
1
+ import * as _$gaxios from "gaxios";
2
+ import * as _$google_auth_library0 from "google-auth-library";
3
+
4
+ //#region src/googleCloud/server/getGoogleCloudConfig.d.ts
5
+ type VercelGcpOidcConfig = {
6
+ googleCloudProjectId: string;
7
+ googleCloudProjectNumber: number;
8
+ serviceAccountEmail: string;
9
+ workloadIdentityPoolId: string;
10
+ workloadIdentityPoolProviderId: string;
11
+ };
12
+ type GetGoogleCloudConfigProps = {
13
+ json: {
14
+ type: string;
15
+ project_id: string;
16
+ private_key_id: string;
17
+ private_key: string;
18
+ client_email: string;
19
+ client_id: string;
20
+ auth_uri: string;
21
+ token_uri: string;
22
+ auth_provider_x509_cert_url: string;
23
+ client_x509_cert_url: string;
24
+ };
25
+ oidcV9?: VercelGcpOidcConfig;
26
+ oidcV10?: VercelGcpOidcConfig;
27
+ };
28
+ /**
29
+ * Used to return the correct Google Cloud Config based on the environment/service.
30
+ */
31
+ declare const getGoogleCloudConfig: (props: GetGoogleCloudConfigProps) => Promise<{
32
+ projectId: string;
33
+ authClient: {
34
+ getRequestHeaders: () => Promise<{
35
+ Authorization: string;
36
+ }>;
37
+ getAccessToken: () => Promise<{
38
+ token: string;
39
+ }>;
40
+ request: (opts: any) => Promise<_$gaxios.GaxiosResponse<unknown>>;
41
+ };
42
+ }> | Promise<_$google_auth_library0.BaseExternalAccountClient> | {
43
+ type: string;
44
+ project_id: string;
45
+ private_key_id: string;
46
+ private_key: string;
47
+ client_email: string;
48
+ client_id: string;
49
+ auth_uri: string;
50
+ token_uri: string;
51
+ auth_provider_x509_cert_url: string;
52
+ client_x509_cert_url: string;
53
+ };
54
+ /**
55
+ * Returns Storage constructor options for @google-cloud/storage.
56
+ * Token exchange is done via google-auth-library v10, then passed via a
57
+ * gaxios-based authClient stub so Storage never touches ADC or v10 types.
58
+ */
59
+ declare const getOidcAuthV9: (props: VercelGcpOidcConfig) => Promise<{
60
+ projectId: string;
61
+ authClient: {
62
+ getRequestHeaders: () => Promise<{
63
+ Authorization: string;
64
+ }>;
65
+ getAccessToken: () => Promise<{
66
+ token: string;
67
+ }>;
68
+ request: (opts: any) => Promise<_$gaxios.GaxiosResponse<unknown>>;
69
+ };
70
+ }>;
71
+ /**
72
+ * Returns an ExternalAccountClient from google-auth-library v10.
73
+ * Use this wherever you need a full AuthClient (e.g. BigQuery, direct API calls).
74
+ */
75
+ declare const getOidcAuthV10: (props: VercelGcpOidcConfig) => Promise<_$google_auth_library0.BaseExternalAccountClient>;
76
+ //#endregion
77
+ export { getGoogleCloudConfig, getOidcAuthV10, getOidcAuthV9 };
@@ -0,0 +1,77 @@
1
+ import * as _$gaxios from "gaxios";
2
+ import * as _$google_auth_library0 from "google-auth-library";
3
+
4
+ //#region src/googleCloud/server/getGoogleCloudConfig.d.ts
5
+ type VercelGcpOidcConfig = {
6
+ googleCloudProjectId: string;
7
+ googleCloudProjectNumber: number;
8
+ serviceAccountEmail: string;
9
+ workloadIdentityPoolId: string;
10
+ workloadIdentityPoolProviderId: string;
11
+ };
12
+ type GetGoogleCloudConfigProps = {
13
+ json: {
14
+ type: string;
15
+ project_id: string;
16
+ private_key_id: string;
17
+ private_key: string;
18
+ client_email: string;
19
+ client_id: string;
20
+ auth_uri: string;
21
+ token_uri: string;
22
+ auth_provider_x509_cert_url: string;
23
+ client_x509_cert_url: string;
24
+ };
25
+ oidcV9?: VercelGcpOidcConfig;
26
+ oidcV10?: VercelGcpOidcConfig;
27
+ };
28
+ /**
29
+ * Used to return the correct Google Cloud Config based on the environment/service.
30
+ */
31
+ declare const getGoogleCloudConfig: (props: GetGoogleCloudConfigProps) => Promise<{
32
+ projectId: string;
33
+ authClient: {
34
+ getRequestHeaders: () => Promise<{
35
+ Authorization: string;
36
+ }>;
37
+ getAccessToken: () => Promise<{
38
+ token: string;
39
+ }>;
40
+ request: (opts: any) => Promise<_$gaxios.GaxiosResponse<unknown>>;
41
+ };
42
+ }> | Promise<_$google_auth_library0.BaseExternalAccountClient> | {
43
+ type: string;
44
+ project_id: string;
45
+ private_key_id: string;
46
+ private_key: string;
47
+ client_email: string;
48
+ client_id: string;
49
+ auth_uri: string;
50
+ token_uri: string;
51
+ auth_provider_x509_cert_url: string;
52
+ client_x509_cert_url: string;
53
+ };
54
+ /**
55
+ * Returns Storage constructor options for @google-cloud/storage.
56
+ * Token exchange is done via google-auth-library v10, then passed via a
57
+ * gaxios-based authClient stub so Storage never touches ADC or v10 types.
58
+ */
59
+ declare const getOidcAuthV9: (props: VercelGcpOidcConfig) => Promise<{
60
+ projectId: string;
61
+ authClient: {
62
+ getRequestHeaders: () => Promise<{
63
+ Authorization: string;
64
+ }>;
65
+ getAccessToken: () => Promise<{
66
+ token: string;
67
+ }>;
68
+ request: (opts: any) => Promise<_$gaxios.GaxiosResponse<unknown>>;
69
+ };
70
+ }>;
71
+ /**
72
+ * Returns an ExternalAccountClient from google-auth-library v10.
73
+ * Use this wherever you need a full AuthClient (e.g. BigQuery, direct API calls).
74
+ */
75
+ declare const getOidcAuthV10: (props: VercelGcpOidcConfig) => Promise<_$google_auth_library0.BaseExternalAccountClient>;
76
+ //#endregion
77
+ export { getGoogleCloudConfig, getOidcAuthV10, getOidcAuthV9 };
@@ -0,0 +1,78 @@
1
+ import { isVercel } from "../../environment/environment.mjs";
2
+ //#region src/googleCloud/server/getGoogleCloudConfig.ts
3
+ /**
4
+ * Used to return the correct Google Cloud Config based on the environment/service.
5
+ */
6
+ const getGoogleCloudConfig = (props) => {
7
+ if (props?.oidcV9 && isVercel()) return getOidcAuthV9(props.oidcV9);
8
+ if (props?.oidcV10 && isVercel()) return getOidcAuthV10(props.oidcV10);
9
+ const privateKey = props.json["private_key"].replace(/\\n/g, "\n");
10
+ return {
11
+ type: props.json["type"],
12
+ project_id: props.json["project_id"],
13
+ private_key_id: props.json["private_key_id"],
14
+ private_key: privateKey,
15
+ client_email: props.json["client_email"],
16
+ client_id: props.json["client_id"],
17
+ auth_uri: props.json["auth_uri"],
18
+ token_uri: props.json["token_uri"],
19
+ auth_provider_x509_cert_url: props.json["auth_provider_x509_cert_url"],
20
+ client_x509_cert_url: props.json["client_x509_cert_url"]
21
+ };
22
+ };
23
+ const buildOidcCredentialConfig = (props) => {
24
+ return {
25
+ type: "external_account",
26
+ audience: `//iam.googleapis.com/projects/${props.googleCloudProjectNumber}/locations/global/workloadIdentityPools/${props.workloadIdentityPoolId}/providers/${props.workloadIdentityPoolProviderId}`,
27
+ subject_token_type: "urn:ietf:params:oauth:token-type:jwt",
28
+ token_url: "https://sts.googleapis.com/v1/token",
29
+ service_account_impersonation_url: `https://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/${props.serviceAccountEmail}:generateAccessToken`,
30
+ credential_source: void 0,
31
+ subject_token_supplier: { getSubjectToken: async () => {
32
+ const { getVercelOidcToken } = await import("@vercel/oidc");
33
+ const token = await getVercelOidcToken();
34
+ if (!token) throw new Error("Vercel OIDC token is undefined or unavailable at runtime");
35
+ return token;
36
+ } }
37
+ };
38
+ };
39
+ /**
40
+ * Returns Storage constructor options for @google-cloud/storage.
41
+ * Token exchange is done via google-auth-library v10, then passed via a
42
+ * gaxios-based authClient stub so Storage never touches ADC or v10 types.
43
+ */
44
+ const getOidcAuthV9 = async (props) => {
45
+ const { ExternalAccountClient } = await import("google-auth-library");
46
+ const client = ExternalAccountClient.fromJSON(buildOidcCredentialConfig(props));
47
+ if (!client) throw new Error("ExternalAccountClient.fromJSON returned null — check credential config");
48
+ const tokenResponse = await client.getAccessToken();
49
+ if (!tokenResponse?.token) throw new Error("Google Token Exchange response did not emit a valid token payload");
50
+ const accessToken = tokenResponse.token;
51
+ const { request: gaxiosRequest } = await import("gaxios");
52
+ return {
53
+ projectId: props.googleCloudProjectId,
54
+ authClient: {
55
+ getRequestHeaders: async () => ({ Authorization: `Bearer ${accessToken}` }),
56
+ getAccessToken: async () => ({ token: accessToken }),
57
+ request: (opts) => gaxiosRequest({
58
+ ...opts,
59
+ headers: {
60
+ ...opts.headers ?? {},
61
+ Authorization: `Bearer ${accessToken}`
62
+ }
63
+ })
64
+ }
65
+ };
66
+ };
67
+ /**
68
+ * Returns an ExternalAccountClient from google-auth-library v10.
69
+ * Use this wherever you need a full AuthClient (e.g. BigQuery, direct API calls).
70
+ */
71
+ const getOidcAuthV10 = async (props) => {
72
+ const { ExternalAccountClient } = await import("google-auth-library");
73
+ const client = ExternalAccountClient.fromJSON(buildOidcCredentialConfig(props));
74
+ if (!client) throw new Error("ExternalAccountClient.fromJSON returned null — check credential config");
75
+ return client;
76
+ };
77
+ //#endregion
78
+ export { getGoogleCloudConfig, getOidcAuthV10, getOidcAuthV9 };
@@ -1,3 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_googleCloud_server_googleCloud = require("./googleCloud.cjs");
3
- exports.getConfig = require_googleCloud_server_googleCloud.getConfig;
2
+ const require_googleCloud_server_getGoogleCloudConfig = require("./getGoogleCloudConfig.cjs");
3
+ exports.getGoogleCloudConfig = require_googleCloud_server_getGoogleCloudConfig.getGoogleCloudConfig;
4
+ exports.getOidcAuthV10 = require_googleCloud_server_getGoogleCloudConfig.getOidcAuthV10;
5
+ exports.getOidcAuthV9 = require_googleCloud_server_getGoogleCloudConfig.getOidcAuthV9;
@@ -1,2 +1,2 @@
1
- import { GoogleCloudConfig, getConfig } from "./googleCloud.cjs";
2
- export { GoogleCloudConfig, getConfig };
1
+ import { getGoogleCloudConfig, getOidcAuthV10, getOidcAuthV9 } from "./getGoogleCloudConfig.cjs";
2
+ export { getGoogleCloudConfig, getOidcAuthV10, getOidcAuthV9 };
@@ -1,2 +1,2 @@
1
- import { GoogleCloudConfig, getConfig } from "./googleCloud.mjs";
2
- export { GoogleCloudConfig, getConfig };
1
+ import { getGoogleCloudConfig, getOidcAuthV10, getOidcAuthV9 } from "./getGoogleCloudConfig.mjs";
2
+ export { getGoogleCloudConfig, getOidcAuthV10, getOidcAuthV9 };
@@ -1,2 +1,2 @@
1
- import { getConfig } from "./googleCloud.mjs";
2
- export { getConfig };
1
+ import { getGoogleCloudConfig, getOidcAuthV10, getOidcAuthV9 } from "./getGoogleCloudConfig.mjs";
2
+ export { getGoogleCloudConfig, getOidcAuthV10, getOidcAuthV9 };
@@ -1,14 +1,17 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require__class_BaseNamespace = require("../../../_class/BaseNamespace.cjs");
3
- const require_googleCloud_server_googleCloud = require("../../server/googleCloud.cjs");
4
- //#region src/googleCloud/sheets/server/GoogleCloudSheetsNamespace.ts
5
- var GoogleCloudSheetsNamespace = class extends require__class_BaseNamespace.BaseNamespace {
6
- ensureInit = async () => {
3
+ //#region src/googleCloud/sheets/server/GoogleCloudSheets.ts
4
+ var GoogleCloudSheets = class extends require__class_BaseNamespace.BaseNamespace {
5
+ /**
6
+ * Either a Google Cloud JSON Config or V10 Auth helper.
7
+ */
8
+ init = async (isOidc, config, projectId, region) => {
7
9
  if (!this.client) try {
8
10
  const googleApisSheets = await import("@googleapis/sheets");
9
- const formattedConfig = require_googleCloud_server_googleCloud.getConfig(this.config, this.config?.projectId);
10
11
  this.client = new googleApisSheets.auth.GoogleAuth({
11
- ...formattedConfig,
12
+ authClient: isOidc ? config : void 0,
13
+ credentials: isOidc ? void 0 : config,
14
+ projectId,
12
15
  scopes: ["https://www.googleapis.com/auth/spreadsheets"]
13
16
  });
14
17
  } catch (e) {
@@ -16,7 +19,6 @@ var GoogleCloudSheetsNamespace = class extends require__class_BaseNamespace.Base
16
19
  }
17
20
  };
18
21
  getBatchData = async (props) => {
19
- await this.ensureInit();
20
22
  return (await (await import("@googleapis/sheets")).sheets("v4").spreadsheets.values.batchGet({
21
23
  auth: this.client,
22
24
  dateTimeRenderOption: props?.dateTimeRender || "FORMATTED_STRING",
@@ -27,4 +29,4 @@ var GoogleCloudSheetsNamespace = class extends require__class_BaseNamespace.Base
27
29
  };
28
30
  };
29
31
  //#endregion
30
- exports.GoogleCloudSheetsNamespace = GoogleCloudSheetsNamespace;
32
+ exports.GoogleCloudSheets = GoogleCloudSheets;
@@ -1,22 +1,22 @@
1
1
  import { BaseNamespace } from "../../../_class/BaseNamespace.cjs";
2
- import { GoogleCloudConfig } from "../../server/googleCloud.cjs";
3
2
  import * as _$_googleapis_sheets0 from "@googleapis/sheets";
4
3
  import { GoogleAuth } from "googleapis-common";
5
4
 
6
- //#region src/googleCloud/sheets/server/GoogleCloudSheetsNamespace.d.ts
5
+ //#region src/googleCloud/sheets/server/GoogleCloudSheets.d.ts
7
6
  type GetBatchDataProps = {
8
7
  spreadsheetId: string;
9
8
  ranges: string[];
10
9
  dateTimeRender?: string;
11
10
  valueRender?: string;
12
11
  };
13
- declare class GoogleCloudSheetsNamespace extends BaseNamespace {
12
+ declare class GoogleCloudSheets extends BaseNamespace {
14
13
  client: GoogleAuth;
15
- config: GoogleCloudConfig & {
16
- projectId?: string;
17
- };
18
- ensureInit: () => Promise<void>;
14
+ config: any;
15
+ /**
16
+ * Either a Google Cloud JSON Config or V10 Auth helper.
17
+ */
18
+ init: (isOidc: boolean, config: any, projectId: string, region?: string) => Promise<void>;
19
19
  getBatchData: (props: GetBatchDataProps) => Promise<_$_googleapis_sheets0.sheets_v4.Schema$BatchGetValuesResponse>;
20
20
  }
21
21
  //#endregion
22
- export { GoogleCloudSheetsNamespace };
22
+ export { GoogleCloudSheets };
@@ -1,22 +1,22 @@
1
1
  import { BaseNamespace } from "../../../_class/BaseNamespace.mjs";
2
- import { GoogleCloudConfig } from "../../server/googleCloud.mjs";
3
2
  import * as _$_googleapis_sheets0 from "@googleapis/sheets";
4
3
  import { GoogleAuth } from "googleapis-common";
5
4
 
6
- //#region src/googleCloud/sheets/server/GoogleCloudSheetsNamespace.d.ts
5
+ //#region src/googleCloud/sheets/server/GoogleCloudSheets.d.ts
7
6
  type GetBatchDataProps = {
8
7
  spreadsheetId: string;
9
8
  ranges: string[];
10
9
  dateTimeRender?: string;
11
10
  valueRender?: string;
12
11
  };
13
- declare class GoogleCloudSheetsNamespace extends BaseNamespace {
12
+ declare class GoogleCloudSheets extends BaseNamespace {
14
13
  client: GoogleAuth;
15
- config: GoogleCloudConfig & {
16
- projectId?: string;
17
- };
18
- ensureInit: () => Promise<void>;
14
+ config: any;
15
+ /**
16
+ * Either a Google Cloud JSON Config or V10 Auth helper.
17
+ */
18
+ init: (isOidc: boolean, config: any, projectId: string, region?: string) => Promise<void>;
19
19
  getBatchData: (props: GetBatchDataProps) => Promise<_$_googleapis_sheets0.sheets_v4.Schema$BatchGetValuesResponse>;
20
20
  }
21
21
  //#endregion
22
- export { GoogleCloudSheetsNamespace };
22
+ export { GoogleCloudSheets };
@@ -1,13 +1,16 @@
1
1
  import { BaseNamespace } from "../../../_class/BaseNamespace.mjs";
2
- import { getConfig } from "../../server/googleCloud.mjs";
3
- //#region src/googleCloud/sheets/server/GoogleCloudSheetsNamespace.ts
4
- var GoogleCloudSheetsNamespace = class extends BaseNamespace {
5
- ensureInit = async () => {
2
+ //#region src/googleCloud/sheets/server/GoogleCloudSheets.ts
3
+ var GoogleCloudSheets = class extends BaseNamespace {
4
+ /**
5
+ * Either a Google Cloud JSON Config or V10 Auth helper.
6
+ */
7
+ init = async (isOidc, config, projectId, region) => {
6
8
  if (!this.client) try {
7
9
  const googleApisSheets = await import("@googleapis/sheets");
8
- const formattedConfig = getConfig(this.config, this.config?.projectId);
9
10
  this.client = new googleApisSheets.auth.GoogleAuth({
10
- ...formattedConfig,
11
+ authClient: isOidc ? config : void 0,
12
+ credentials: isOidc ? void 0 : config,
13
+ projectId,
11
14
  scopes: ["https://www.googleapis.com/auth/spreadsheets"]
12
15
  });
13
16
  } catch (e) {
@@ -15,7 +18,6 @@ var GoogleCloudSheetsNamespace = class extends BaseNamespace {
15
18
  }
16
19
  };
17
20
  getBatchData = async (props) => {
18
- await this.ensureInit();
19
21
  return (await (await import("@googleapis/sheets")).sheets("v4").spreadsheets.values.batchGet({
20
22
  auth: this.client,
21
23
  dateTimeRenderOption: props?.dateTimeRender || "FORMATTED_STRING",
@@ -26,4 +28,4 @@ var GoogleCloudSheetsNamespace = class extends BaseNamespace {
26
28
  };
27
29
  };
28
30
  //#endregion
29
- export { GoogleCloudSheetsNamespace };
31
+ export { GoogleCloudSheets };
@@ -1,3 +1,3 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_googleCloud_sheets_server_GoogleCloudSheetsNamespace = require("./GoogleCloudSheetsNamespace.cjs");
3
- exports.GoogleCloudSheetsNamespace = require_googleCloud_sheets_server_GoogleCloudSheetsNamespace.GoogleCloudSheetsNamespace;
2
+ const require_googleCloud_sheets_server_GoogleCloudSheets = require("./GoogleCloudSheets.cjs");
3
+ exports.GoogleCloudSheets = require_googleCloud_sheets_server_GoogleCloudSheets.GoogleCloudSheets;
@@ -1,2 +1,2 @@
1
- import { GoogleCloudSheetsNamespace } from "./GoogleCloudSheetsNamespace.cjs";
2
- export { GoogleCloudSheetsNamespace };
1
+ import { GoogleCloudSheets } from "./GoogleCloudSheets.cjs";
2
+ export { GoogleCloudSheets };
@@ -1,2 +1,2 @@
1
- import { GoogleCloudSheetsNamespace } from "./GoogleCloudSheetsNamespace.mjs";
2
- export { GoogleCloudSheetsNamespace };
1
+ import { GoogleCloudSheets } from "./GoogleCloudSheets.mjs";
2
+ export { GoogleCloudSheets };
@@ -1,2 +1,2 @@
1
- import { GoogleCloudSheetsNamespace } from "./GoogleCloudSheetsNamespace.mjs";
2
- export { GoogleCloudSheetsNamespace };
1
+ import { GoogleCloudSheets } from "./GoogleCloudSheets.mjs";
2
+ export { GoogleCloudSheets };
@@ -1,16 +1,24 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_runtime = require("../../../_virtual/_rolldown/runtime.cjs");
3
3
  const require__class_BaseNamespace = require("../../../_class/BaseNamespace.cjs");
4
- const require_googleCloud_server_googleCloud = require("../../server/googleCloud.cjs");
5
4
  let stream = require("stream");
6
5
  stream = require_runtime.__toESM(stream);
7
- //#region src/googleCloud/storage/server/GoogleCloudStorageNamespace.ts
8
- var GoogleCloudStorageNamespace = class extends require__class_BaseNamespace.BaseNamespace {
9
- ensureInit = async () => {
6
+ //#region src/googleCloud/storage/server/GoogleCloudStorage.ts
7
+ var GoogleCloudStorage = class extends require__class_BaseNamespace.BaseNamespace {
8
+ /**
9
+ * Either a Google Cloud JSON Config or V9 Auth helper.
10
+ */
11
+ init = async (isOidc, config, projectId, region) => {
10
12
  if (!this.client) try {
11
13
  const { Storage } = await import("@google-cloud/storage");
12
- const formattedConfig = require_googleCloud_server_googleCloud.getConfig(this.config, this.config?.projectId);
13
- this.client = new Storage(formattedConfig);
14
+ this.client = new Storage({
15
+ authClient: isOidc ? config : void 0,
16
+ credentials: isOidc ? void 0 : config,
17
+ projectId
18
+ });
19
+ this.config = config;
20
+ this.projectId = projectId;
21
+ this.region = region ?? "europe-west2";
14
22
  } catch (e) {
15
23
  throw new Error("Google Cloud Storage Client not installed");
16
24
  }
@@ -19,21 +27,18 @@ var GoogleCloudStorageNamespace = class extends require__class_BaseNamespace.Bas
19
27
  * Copy a local file to Google Cloud Storage.
20
28
  */
21
29
  copyToCloud = async (bucket, localFile, options = {}) => {
22
- await this.ensureInit();
23
30
  return await this.client.bucket(bucket).upload(localFile, options);
24
31
  };
25
32
  /**
26
33
  * Check to see if a file exists but don't get the contents.
27
34
  */
28
35
  fileExists = async (bucket, key) => {
29
- await this.ensureInit();
30
36
  return (await this.client.bucket(bucket).file(key).exists())?.[0];
31
37
  };
32
38
  /**
33
39
  * Write a file to Google Cloud Storage.
34
40
  */
35
41
  writeFile = async (bucket, key, data, options = {}) => {
36
- await this.ensureInit();
37
42
  const dataStream = new stream.default.PassThrough();
38
43
  const googleFile = this.client.bucket(bucket).file(key);
39
44
  dataStream.push(data);
@@ -54,4 +59,4 @@ var GoogleCloudStorageNamespace = class extends require__class_BaseNamespace.Bas
54
59
  };
55
60
  };
56
61
  //#endregion
57
- exports.GoogleCloudStorageNamespace = GoogleCloudStorageNamespace;
62
+ exports.GoogleCloudStorage = GoogleCloudStorage;
@@ -1,15 +1,17 @@
1
1
  import { BaseNamespace } from "../../../_class/BaseNamespace.cjs";
2
- import { GoogleCloudConfig } from "../../server/googleCloud.cjs";
3
2
  import * as _$_google_cloud_storage0 from "@google-cloud/storage";
4
3
  import { Storage } from "@google-cloud/storage";
5
4
 
6
- //#region src/googleCloud/storage/server/GoogleCloudStorageNamespace.d.ts
7
- declare class GoogleCloudStorageNamespace extends BaseNamespace {
5
+ //#region src/googleCloud/storage/server/GoogleCloudStorage.d.ts
6
+ declare class GoogleCloudStorage extends BaseNamespace {
8
7
  client: Storage;
9
- config: GoogleCloudConfig & {
10
- projectId?: string;
11
- };
12
- ensureInit: () => Promise<void>;
8
+ config: any;
9
+ projectId: string;
10
+ region: string;
11
+ /**
12
+ * Either a Google Cloud JSON Config or V9 Auth helper.
13
+ */
14
+ init: (isOidc: boolean, config: any, projectId: string, region?: string) => Promise<void>;
13
15
  /**
14
16
  * Copy a local file to Google Cloud Storage.
15
17
  */
@@ -24,4 +26,4 @@ declare class GoogleCloudStorageNamespace extends BaseNamespace {
24
26
  writeFile: (bucket: string, key: string, data: any, options?: {}) => Promise<unknown>;
25
27
  }
26
28
  //#endregion
27
- export { GoogleCloudStorageNamespace };
29
+ export { GoogleCloudStorage };