@8ms/helpers 2.4.25 → 3.0.2

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 (370) 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/drizzle/server/{DrizzleNamespace.cjs → Drizzle.cjs} +5 -5
  102. package/dist/drizzle/server/{drizzle.d.cts → Drizzle.d.cts} +8 -4
  103. package/dist/drizzle/server/{drizzle.d.mts → Drizzle.d.mts} +8 -4
  104. package/dist/drizzle/server/{DrizzleNamespace.mjs → Drizzle.mjs} +5 -5
  105. package/dist/drizzle/server/index.cjs +2 -4
  106. package/dist/drizzle/server/index.d.cts +2 -3
  107. package/dist/drizzle/server/index.d.mts +2 -3
  108. package/dist/drizzle/server/index.mjs +2 -3
  109. package/dist/environment/environment.cjs +2 -2
  110. package/dist/environment/environment.mjs +2 -2
  111. package/dist/googleAds/server/{GoogleAdsNamespace.cjs → GoogleAds.cjs} +9 -10
  112. package/dist/googleAds/server/{GoogleAdsNamespace.d.cts → GoogleAds.d.cts} +9 -5
  113. package/dist/googleAds/server/{GoogleAdsNamespace.d.mts → GoogleAds.d.mts} +9 -5
  114. package/dist/googleAds/server/GoogleAds.mjs +28 -0
  115. package/dist/googleAds/server/index.cjs +2 -4
  116. package/dist/googleAds/server/index.d.cts +2 -3
  117. package/dist/googleAds/server/index.d.mts +2 -3
  118. package/dist/googleAds/server/index.mjs +2 -3
  119. package/dist/googleCloud/bigquery/server/{GoogleCloudBigqueryNamespace.cjs → GoogleCloudBigquery.cjs} +27 -33
  120. package/dist/googleCloud/bigquery/server/{GoogleCloudBigqueryNamespace.d.cts → GoogleCloudBigquery.d.cts} +14 -16
  121. package/dist/googleCloud/bigquery/server/{GoogleCloudBigqueryNamespace.d.mts → GoogleCloudBigquery.d.mts} +14 -16
  122. package/dist/googleCloud/bigquery/server/{GoogleCloudBigqueryNamespace.mjs → GoogleCloudBigquery.mjs} +27 -33
  123. package/dist/googleCloud/bigquery/server/getHandlerPath.cjs +7 -0
  124. package/dist/googleCloud/bigquery/server/getHandlerPath.d.cts +4 -0
  125. package/dist/googleCloud/bigquery/server/getHandlerPath.d.mts +4 -0
  126. package/dist/googleCloud/bigquery/server/getHandlerPath.mjs +6 -0
  127. package/dist/googleCloud/bigquery/server/index.cjs +4 -5
  128. package/dist/googleCloud/bigquery/server/index.d.cts +3 -3
  129. package/dist/googleCloud/bigquery/server/index.d.mts +3 -3
  130. package/dist/googleCloud/bigquery/server/index.mjs +3 -3
  131. package/dist/googleCloud/bigquery/server/loadData.d.cts +2 -2
  132. package/dist/googleCloud/bigquery/server/loadData.d.mts +2 -2
  133. package/dist/googleCloud/server/getGoogleCloudConfig.cjs +81 -0
  134. package/dist/googleCloud/server/getGoogleCloudConfig.d.cts +77 -0
  135. package/dist/googleCloud/server/getGoogleCloudConfig.d.mts +77 -0
  136. package/dist/googleCloud/server/getGoogleCloudConfig.mjs +78 -0
  137. package/dist/googleCloud/server/index.cjs +4 -2
  138. package/dist/googleCloud/server/index.d.cts +2 -2
  139. package/dist/googleCloud/server/index.d.mts +2 -2
  140. package/dist/googleCloud/server/index.mjs +2 -2
  141. package/dist/googleCloud/sheets/server/{GoogleCloudSheetsNamespace.cjs → GoogleCloudSheets.cjs} +10 -8
  142. package/dist/googleCloud/sheets/server/{GoogleCloudSheetsNamespace.d.cts → GoogleCloudSheets.d.cts} +8 -8
  143. package/dist/googleCloud/sheets/server/{GoogleCloudSheetsNamespace.d.mts → GoogleCloudSheets.d.mts} +8 -8
  144. package/dist/googleCloud/sheets/server/{GoogleCloudSheetsNamespace.mjs → GoogleCloudSheets.mjs} +10 -8
  145. package/dist/googleCloud/sheets/server/index.cjs +2 -2
  146. package/dist/googleCloud/sheets/server/index.d.cts +2 -2
  147. package/dist/googleCloud/sheets/server/index.d.mts +2 -2
  148. package/dist/googleCloud/sheets/server/index.mjs +2 -2
  149. package/dist/googleCloud/storage/server/{GoogleCloudStorageNamespace.cjs → GoogleCloudStorage.cjs} +15 -10
  150. package/dist/googleCloud/storage/server/{GoogleCloudStorageNamespace.d.cts → GoogleCloudStorage.d.cts} +10 -8
  151. package/dist/googleCloud/storage/server/{GoogleCloudStorageNamespace.d.mts → GoogleCloudStorage.d.mts} +10 -8
  152. package/dist/googleCloud/storage/server/{GoogleCloudStorageNamespace.mjs → GoogleCloudStorage.mjs} +15 -10
  153. package/dist/googleCloud/storage/server/index.cjs +2 -4
  154. package/dist/googleCloud/storage/server/index.d.cts +2 -3
  155. package/dist/googleCloud/storage/server/index.d.mts +2 -3
  156. package/dist/googleCloud/storage/server/index.mjs +2 -3
  157. package/dist/googlePageSpeed/server/{GooglePageSpeedNamespace.cjs → GooglePageSpeed.cjs} +8 -7
  158. package/dist/googlePageSpeed/server/GooglePageSpeed.d.cts +19 -0
  159. package/dist/googlePageSpeed/server/GooglePageSpeed.d.mts +19 -0
  160. package/dist/googlePageSpeed/server/{GooglePageSpeedNamespace.mjs → GooglePageSpeed.mjs} +7 -6
  161. package/dist/googlePageSpeed/server/category.cjs +11 -0
  162. package/dist/googlePageSpeed/server/category.d.cts +11 -0
  163. package/dist/googlePageSpeed/server/category.d.mts +11 -0
  164. package/dist/googlePageSpeed/server/category.mjs +10 -0
  165. package/dist/googlePageSpeed/server/index.cjs +6 -6
  166. package/dist/googlePageSpeed/server/index.d.cts +4 -3
  167. package/dist/googlePageSpeed/server/index.d.mts +4 -3
  168. package/dist/googlePageSpeed/server/index.mjs +4 -3
  169. package/dist/googlePageSpeed/server/strategy.cjs +9 -0
  170. package/dist/googlePageSpeed/server/strategy.d.cts +9 -0
  171. package/dist/googlePageSpeed/server/strategy.d.mts +9 -0
  172. package/dist/googlePageSpeed/server/strategy.mjs +8 -0
  173. package/dist/inngest/index.cjs +2 -2
  174. package/dist/inngest/index.d.cts +1 -1
  175. package/dist/inngest/index.d.mts +1 -1
  176. package/dist/inngest/index.mjs +1 -1
  177. package/dist/inngest/{inngest.cjs → inngestState.cjs} +1 -1
  178. package/dist/inngest/{inngest.d.mts → inngestState.d.cts} +1 -1
  179. package/dist/inngest/{inngest.d.cts → inngestState.d.mts} +1 -1
  180. package/dist/inngest/{inngest.mjs → inngestState.mjs} +1 -1
  181. package/dist/littleWarden/server/{LittleWardenNamespace.cjs → LittleWarden.cjs} +5 -4
  182. package/dist/littleWarden/server/{LittleWardenNamespace.d.cts → LittleWarden.d.cts} +7 -5
  183. package/dist/littleWarden/server/{LittleWardenNamespace.d.mts → LittleWarden.d.mts} +7 -5
  184. package/dist/littleWarden/server/{LittleWardenNamespace.mjs → LittleWarden.mjs} +5 -4
  185. package/dist/littleWarden/server/index.cjs +7 -8
  186. package/dist/littleWarden/server/index.d.cts +3 -3
  187. package/dist/littleWarden/server/index.d.mts +3 -3
  188. package/dist/littleWarden/server/index.mjs +3 -3
  189. package/dist/littleWarden/server/littleWardenAttrs.cjs +38 -0
  190. package/dist/littleWarden/server/{littleWarden.d.cts → littleWardenAttrs.d.cts} +2 -7
  191. package/dist/littleWarden/server/{littleWarden.d.mts → littleWardenAttrs.d.mts} +2 -7
  192. package/dist/littleWarden/server/littleWardenAttrs.mjs +33 -0
  193. package/dist/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.cts +7 -0
  194. package/dist/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.mts +7 -0
  195. package/dist/node_modules/@smithy/types/dist-types/identity/awsCredentialIdentity.d.cts +35 -0
  196. package/dist/node_modules/@smithy/types/dist-types/identity/awsCredentialIdentity.d.mts +35 -0
  197. package/dist/node_modules/@smithy/types/dist-types/identity/identity.d.cts +18 -0
  198. package/dist/node_modules/@smithy/types/dist-types/identity/identity.d.mts +18 -0
  199. package/dist/node_modules/@smithy/types/dist-types/index.d.cts +2 -0
  200. package/dist/node_modules/@smithy/types/dist-types/index.d.mts +2 -0
  201. package/dist/onePassword/server/OnePassword.cjs +44 -0
  202. package/dist/onePassword/server/OnePassword.d.cts +21 -0
  203. package/dist/onePassword/server/OnePassword.d.mts +21 -0
  204. package/dist/onePassword/server/{OnePasswordNamespace.mjs → OnePassword.mjs} +19 -13
  205. package/dist/onePassword/server/getIdsFromUrl.cjs +2 -2
  206. package/dist/onePassword/server/getIdsFromUrl.d.cts +2 -2
  207. package/dist/onePassword/server/getIdsFromUrl.d.mts +2 -2
  208. package/dist/onePassword/server/getIdsFromUrl.mjs +2 -2
  209. package/dist/onePassword/server/index.cjs +2 -4
  210. package/dist/onePassword/server/index.d.cts +2 -3
  211. package/dist/onePassword/server/index.d.mts +2 -3
  212. package/dist/onePassword/server/index.mjs +2 -3
  213. package/dist/openAi/server/{OpenAiNamespace.cjs → OpenAi.cjs} +10 -7
  214. package/dist/openAi/server/{OpenAiNamespace.d.cts → OpenAi.d.cts} +7 -5
  215. package/dist/openAi/server/{OpenAiNamespace.d.mts → OpenAi.d.mts} +7 -5
  216. package/dist/openAi/server/{OpenAiNamespace.mjs → OpenAi.mjs} +10 -7
  217. package/dist/openAi/server/index.cjs +2 -4
  218. package/dist/openAi/server/index.d.cts +2 -3
  219. package/dist/openAi/server/index.d.mts +2 -3
  220. package/dist/openAi/server/index.mjs +2 -3
  221. package/dist/snapchat/server/{SnapchatNamespace.cjs → Snapchat.cjs} +5 -4
  222. package/dist/snapchat/server/Snapchat.d.cts +22 -0
  223. package/dist/snapchat/server/Snapchat.d.mts +22 -0
  224. package/dist/snapchat/server/{SnapchatNamespace.mjs → Snapchat.mjs} +5 -4
  225. package/dist/snapchat/server/index.cjs +2 -4
  226. package/dist/snapchat/server/index.d.cts +2 -3
  227. package/dist/snapchat/server/index.d.mts +2 -3
  228. package/dist/snapchat/server/index.mjs +2 -3
  229. package/dist/swr/client/swr.cjs +1 -1
  230. package/dist/swr/client/swr.mjs +1 -1
  231. package/dist/upTimeRobot/server/UpTimeRobot.cjs +34 -0
  232. package/dist/upTimeRobot/server/{UpTimeRobotNamespace.d.cts → UpTimeRobot.d.cts} +7 -5
  233. package/dist/upTimeRobot/server/{UpTimeRobotNamespace.d.mts → UpTimeRobot.d.mts} +7 -5
  234. package/dist/upTimeRobot/server/UpTimeRobot.mjs +33 -0
  235. package/dist/upTimeRobot/server/index.cjs +12 -9
  236. package/dist/upTimeRobot/server/index.d.cts +7 -3
  237. package/dist/upTimeRobot/server/index.d.mts +7 -3
  238. package/dist/upTimeRobot/server/index.mjs +7 -3
  239. package/dist/upTimeRobot/server/logType.cjs +10 -0
  240. package/dist/upTimeRobot/server/logType.d.cts +10 -0
  241. package/dist/upTimeRobot/server/logType.d.mts +10 -0
  242. package/dist/upTimeRobot/server/logType.mjs +9 -0
  243. package/dist/upTimeRobot/server/monitorStatus.cjs +11 -0
  244. package/dist/upTimeRobot/server/monitorStatus.d.cts +11 -0
  245. package/dist/upTimeRobot/server/monitorStatus.d.mts +11 -0
  246. package/dist/upTimeRobot/server/monitorStatus.mjs +10 -0
  247. package/dist/upTimeRobot/server/monitorSubTypes.cjs +13 -0
  248. package/dist/upTimeRobot/server/monitorSubTypes.d.cts +13 -0
  249. package/dist/upTimeRobot/server/monitorSubTypes.d.mts +13 -0
  250. package/dist/upTimeRobot/server/monitorSubTypes.mjs +12 -0
  251. package/dist/upTimeRobot/server/monitorType.cjs +11 -0
  252. package/dist/upTimeRobot/server/monitorType.d.cts +11 -0
  253. package/dist/upTimeRobot/server/monitorType.d.mts +11 -0
  254. package/dist/upTimeRobot/server/monitorType.mjs +10 -0
  255. package/dist/upTimeRobot/server/requestStatus.cjs +8 -0
  256. package/dist/upTimeRobot/server/requestStatus.d.cts +8 -0
  257. package/dist/upTimeRobot/server/requestStatus.d.mts +8 -0
  258. package/dist/upTimeRobot/server/requestStatus.mjs +7 -0
  259. package/dist/url/url.cjs +1 -1
  260. package/dist/url/url.mjs +1 -1
  261. package/dist/util/defaultTo.cjs +1 -1
  262. package/dist/util/defaultTo.mjs +1 -1
  263. package/dist/webWorker/index.cjs +2 -2
  264. package/dist/webWorker/index.d.cts +1 -1
  265. package/dist/webWorker/index.d.mts +1 -1
  266. package/dist/webWorker/index.mjs +1 -1
  267. package/dist/webWorker/{webWorker.cjs → webWorkerState.cjs} +1 -1
  268. package/dist/webWorker/{webWorker.d.cts → webWorkerState.d.cts} +1 -1
  269. package/dist/webWorker/{webWorker.d.mts → webWorkerState.d.mts} +1 -1
  270. package/dist/webWorker/{webWorker.mjs → webWorkerState.mjs} +1 -1
  271. package/package.json +136 -150
  272. package/dist/aws/cloudWatchLog/server/awsCloudWatchLog.cjs +0 -14
  273. package/dist/aws/cloudWatchLog/server/awsCloudWatchLog.d.cts +0 -7
  274. package/dist/aws/cloudWatchLog/server/awsCloudWatchLog.d.mts +0 -7
  275. package/dist/aws/cloudWatchLog/server/awsCloudWatchLog.mjs +0 -13
  276. package/dist/aws/cloudWatchMetric/server/awsCloudWatchMetric.cjs +0 -14
  277. package/dist/aws/cloudWatchMetric/server/awsCloudWatchMetric.d.cts +0 -7
  278. package/dist/aws/cloudWatchMetric/server/awsCloudWatchMetric.d.mts +0 -7
  279. package/dist/aws/cloudWatchMetric/server/awsCloudWatchMetric.mjs +0 -13
  280. package/dist/aws/ec2/server/awsEc2.cjs +0 -14
  281. package/dist/aws/ec2/server/awsEc2.d.cts +0 -7
  282. package/dist/aws/ec2/server/awsEc2.d.mts +0 -7
  283. package/dist/aws/ec2/server/awsEc2.mjs +0 -13
  284. package/dist/aws/ecs/server/awsEcs.cjs +0 -14
  285. package/dist/aws/ecs/server/awsEcs.d.cts +0 -7
  286. package/dist/aws/ecs/server/awsEcs.d.mts +0 -7
  287. package/dist/aws/ecs/server/awsEcs.mjs +0 -13
  288. package/dist/aws/glue/server/awsGlue.cjs +0 -14
  289. package/dist/aws/glue/server/awsGlue.d.cts +0 -7
  290. package/dist/aws/glue/server/awsGlue.d.mts +0 -7
  291. package/dist/aws/glue/server/awsGlue.mjs +0 -13
  292. package/dist/aws/lambda/server/awsLambda.cjs +0 -18
  293. package/dist/aws/lambda/server/awsLambda.d.cts +0 -8
  294. package/dist/aws/lambda/server/awsLambda.d.mts +0 -8
  295. package/dist/aws/lambda/server/awsLambda.mjs +0 -16
  296. package/dist/aws/s3/server/awsS3.cjs +0 -23
  297. package/dist/aws/s3/server/awsS3.d.cts +0 -16
  298. package/dist/aws/s3/server/awsS3.d.mts +0 -16
  299. package/dist/aws/s3/server/awsS3.mjs +0 -21
  300. package/dist/aws/server/aws.cjs +0 -23
  301. package/dist/aws/server/aws.d.cts +0 -13
  302. package/dist/aws/server/aws.d.mts +0 -13
  303. package/dist/aws/server/aws.mjs +0 -21
  304. package/dist/aws/ses/server/awsSes.cjs +0 -16
  305. package/dist/aws/ses/server/awsSes.d.cts +0 -8
  306. package/dist/aws/ses/server/awsSes.d.mts +0 -8
  307. package/dist/aws/ses/server/awsSes.mjs +0 -14
  308. package/dist/aws/sqs/server/awsSqs.cjs +0 -14
  309. package/dist/aws/sqs/server/awsSqs.d.cts +0 -7
  310. package/dist/aws/sqs/server/awsSqs.d.mts +0 -7
  311. package/dist/aws/sqs/server/awsSqs.mjs +0 -13
  312. package/dist/aws/ssm/server/AwsSsmNamespace.d.cts +0 -15
  313. package/dist/aws/ssm/server/AwsSsmNamespace.d.mts +0 -15
  314. package/dist/aws/ssm/server/AwsSsmNamespace.mjs +0 -34
  315. package/dist/aws/ssm/server/awsSsm.cjs +0 -14
  316. package/dist/aws/ssm/server/awsSsm.d.cts +0 -7
  317. package/dist/aws/ssm/server/awsSsm.d.mts +0 -7
  318. package/dist/aws/ssm/server/awsSsm.mjs +0 -13
  319. package/dist/drizzle/server/DrizzleNamespace.d.cts +0 -11
  320. package/dist/drizzle/server/DrizzleNamespace.d.mts +0 -11
  321. package/dist/drizzle/server/drizzle.cjs +0 -22
  322. package/dist/drizzle/server/drizzle.mjs +0 -21
  323. package/dist/googleAds/server/GoogleAdsNamespace.mjs +0 -29
  324. package/dist/googleAds/server/googleAds.cjs +0 -19
  325. package/dist/googleAds/server/googleAds.d.cts +0 -15
  326. package/dist/googleAds/server/googleAds.d.mts +0 -15
  327. package/dist/googleAds/server/googleAds.mjs +0 -18
  328. package/dist/googleCloud/bigquery/server/googleCloudBigquery.cjs +0 -32
  329. package/dist/googleCloud/bigquery/server/googleCloudBigquery.d.cts +0 -8
  330. package/dist/googleCloud/bigquery/server/googleCloudBigquery.d.mts +0 -8
  331. package/dist/googleCloud/bigquery/server/googleCloudBigquery.mjs +0 -30
  332. package/dist/googleCloud/server/googleCloud.cjs +0 -24
  333. package/dist/googleCloud/server/googleCloud.d.cts +0 -32
  334. package/dist/googleCloud/server/googleCloud.d.mts +0 -32
  335. package/dist/googleCloud/server/googleCloud.mjs +0 -23
  336. package/dist/googleCloud/storage/server/googleCloudStorage.cjs +0 -28
  337. package/dist/googleCloud/storage/server/googleCloudStorage.d.cts +0 -7
  338. package/dist/googleCloud/storage/server/googleCloudStorage.d.mts +0 -7
  339. package/dist/googleCloud/storage/server/googleCloudStorage.mjs +0 -27
  340. package/dist/googlePageSpeed/server/GooglePageSpeedNamespace.d.cts +0 -15
  341. package/dist/googlePageSpeed/server/GooglePageSpeedNamespace.d.mts +0 -15
  342. package/dist/googlePageSpeed/server/googlePageSpeed.cjs +0 -33
  343. package/dist/googlePageSpeed/server/googlePageSpeed.d.cts +0 -23
  344. package/dist/googlePageSpeed/server/googlePageSpeed.d.mts +0 -23
  345. package/dist/googlePageSpeed/server/googlePageSpeed.mjs +0 -30
  346. package/dist/littleWarden/server/littleWarden.cjs +0 -54
  347. package/dist/littleWarden/server/littleWarden.mjs +0 -48
  348. package/dist/onePassword/server/OnePasswordNamespace.cjs +0 -38
  349. package/dist/onePassword/server/OnePasswordNamespace.d.cts +0 -17
  350. package/dist/onePassword/server/OnePasswordNamespace.d.mts +0 -17
  351. package/dist/onePassword/server/onePassword.cjs +0 -14
  352. package/dist/onePassword/server/onePassword.d.cts +0 -11
  353. package/dist/onePassword/server/onePassword.d.mts +0 -11
  354. package/dist/onePassword/server/onePassword.mjs +0 -13
  355. package/dist/openAi/server/openAi.cjs +0 -19
  356. package/dist/openAi/server/openAi.d.cts +0 -9
  357. package/dist/openAi/server/openAi.d.mts +0 -9
  358. package/dist/openAi/server/openAi.mjs +0 -18
  359. package/dist/snapchat/server/SnapchatNamespace.d.cts +0 -18
  360. package/dist/snapchat/server/SnapchatNamespace.d.mts +0 -18
  361. package/dist/snapchat/server/snapchat.cjs +0 -19
  362. package/dist/snapchat/server/snapchat.d.cts +0 -11
  363. package/dist/snapchat/server/snapchat.d.mts +0 -11
  364. package/dist/snapchat/server/snapchat.mjs +0 -18
  365. package/dist/upTimeRobot/server/UpTimeRobotNamespace.cjs +0 -31
  366. package/dist/upTimeRobot/server/UpTimeRobotNamespace.mjs +0 -30
  367. package/dist/upTimeRobot/server/upTimeRobot.cjs +0 -57
  368. package/dist/upTimeRobot/server/upTimeRobot.d.cts +0 -42
  369. package/dist/upTimeRobot/server/upTimeRobot.d.mts +0 -42
  370. package/dist/upTimeRobot/server/upTimeRobot.mjs +0 -51
@@ -0,0 +1,33 @@
1
+ import { getUrlStatus } from "./getUrlStatus.mjs";
2
+ //#region src/littleWarden/server/littleWardenAttrs.ts
3
+ const littleWardenState = {
4
+ ALL_GOOD: "all_good",
5
+ DANGER: "danger",
6
+ WARNING: "warning"
7
+ };
8
+ /**
9
+ * Check if the field is All Good.
10
+ */
11
+ const isAllGood = ({ field }) => {
12
+ let response = false;
13
+ if (void 0 !== field && void 0 !== field["status"]) response = littleWardenState.ALL_GOOD === field["status"];
14
+ return response;
15
+ };
16
+ /**
17
+ * Check if the field is Warning.
18
+ */
19
+ const isWarning = ({ field }) => {
20
+ let response = false;
21
+ if (void 0 !== field && void 0 !== field["status"]) response = littleWardenState.WARNING === field["status"];
22
+ return response;
23
+ };
24
+ /**
25
+ * Check if the field is Danger.
26
+ */
27
+ const isDanger = ({ field }) => {
28
+ let response = false;
29
+ if (void 0 !== field && void 0 !== field["status"]) response = littleWardenState.DANGER === field["status"];
30
+ return response;
31
+ };
32
+ //#endregion
33
+ export { getUrlStatus, isAllGood, isDanger, isWarning, littleWardenState };
@@ -0,0 +1,7 @@
1
+ //#region node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.ts
2
+ declare global {
3
+ /**
4
+ * interface merging stub.
5
+ */
6
+ interface RequestInit {}
7
+ }
@@ -0,0 +1,7 @@
1
+ //#region node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.ts
2
+ declare global {
3
+ /**
4
+ * interface merging stub.
5
+ */
6
+ interface RequestInit {}
7
+ }
@@ -0,0 +1,35 @@
1
+ import { Identity, IdentityProvider } from "./identity.cjs";
2
+
3
+ //#region node_modules/@smithy/types/dist-types/identity/awsCredentialIdentity.d.ts
4
+ /**
5
+ * @public
6
+ */
7
+ interface AwsCredentialIdentity extends Identity {
8
+ /**
9
+ * AWS access key ID
10
+ */
11
+ readonly accessKeyId: string;
12
+ /**
13
+ * AWS secret access key
14
+ */
15
+ readonly secretAccessKey: string;
16
+ /**
17
+ * A security or session token to use with these credentials. Usually
18
+ * present for temporary credentials.
19
+ */
20
+ readonly sessionToken?: string;
21
+ /**
22
+ * AWS credential scope for this set of credentials.
23
+ */
24
+ readonly credentialScope?: string;
25
+ /**
26
+ * AWS accountId.
27
+ */
28
+ readonly accountId?: string;
29
+ }
30
+ /**
31
+ * @public
32
+ */
33
+ type AwsCredentialIdentityProvider = IdentityProvider<AwsCredentialIdentity>;
34
+ //#endregion
35
+ export { AwsCredentialIdentity, AwsCredentialIdentityProvider };
@@ -0,0 +1,35 @@
1
+ import { Identity, IdentityProvider } from "./identity.mjs";
2
+
3
+ //#region node_modules/@smithy/types/dist-types/identity/awsCredentialIdentity.d.ts
4
+ /**
5
+ * @public
6
+ */
7
+ interface AwsCredentialIdentity extends Identity {
8
+ /**
9
+ * AWS access key ID
10
+ */
11
+ readonly accessKeyId: string;
12
+ /**
13
+ * AWS secret access key
14
+ */
15
+ readonly secretAccessKey: string;
16
+ /**
17
+ * A security or session token to use with these credentials. Usually
18
+ * present for temporary credentials.
19
+ */
20
+ readonly sessionToken?: string;
21
+ /**
22
+ * AWS credential scope for this set of credentials.
23
+ */
24
+ readonly credentialScope?: string;
25
+ /**
26
+ * AWS accountId.
27
+ */
28
+ readonly accountId?: string;
29
+ }
30
+ /**
31
+ * @public
32
+ */
33
+ type AwsCredentialIdentityProvider = IdentityProvider<AwsCredentialIdentity>;
34
+ //#endregion
35
+ export { AwsCredentialIdentity, AwsCredentialIdentityProvider };
@@ -0,0 +1,18 @@
1
+ //#region node_modules/@smithy/types/dist-types/identity/identity.d.ts
2
+ /**
3
+ * @public
4
+ */
5
+ interface Identity {
6
+ /**
7
+ * A `Date` when the identity or credential will no longer be accepted.
8
+ */
9
+ readonly expiration?: Date;
10
+ }
11
+ /**
12
+ * @public
13
+ */
14
+ interface IdentityProvider<IdentityT extends Identity> {
15
+ (identityProperties?: Record<string, any>): Promise<IdentityT>;
16
+ }
17
+ //#endregion
18
+ export { Identity, IdentityProvider };
@@ -0,0 +1,18 @@
1
+ //#region node_modules/@smithy/types/dist-types/identity/identity.d.ts
2
+ /**
3
+ * @public
4
+ */
5
+ interface Identity {
6
+ /**
7
+ * A `Date` when the identity or credential will no longer be accepted.
8
+ */
9
+ readonly expiration?: Date;
10
+ }
11
+ /**
12
+ * @public
13
+ */
14
+ interface IdentityProvider<IdentityT extends Identity> {
15
+ (identityProperties?: Record<string, any>): Promise<IdentityT>;
16
+ }
17
+ //#endregion
18
+ export { Identity, IdentityProvider };
@@ -0,0 +1,2 @@
1
+ import { Identity, IdentityProvider } from "./identity/identity.cjs";
2
+ import { AwsCredentialIdentity, AwsCredentialIdentityProvider } from "./identity/awsCredentialIdentity.cjs";
@@ -0,0 +1,2 @@
1
+ import { Identity, IdentityProvider } from "./identity/identity.mjs";
2
+ import { AwsCredentialIdentity, AwsCredentialIdentityProvider } from "./identity/awsCredentialIdentity.mjs";
@@ -0,0 +1,44 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require__class_BaseNamespace = require("../../_class/BaseNamespace.cjs");
3
+ const require_onePassword_server_getIdsFromUrl = require("./getIdsFromUrl.cjs");
4
+ //#region src/onePassword/server/OnePassword.ts
5
+ var OnePassword = class extends require__class_BaseNamespace.BaseNamespace {
6
+ init = async (config) => {
7
+ if (!this.client) try {
8
+ const { createClient } = await import("@1password/sdk");
9
+ this.client = await createClient({
10
+ auth: config.serviceAccountToken,
11
+ integrationName: config.integrationName || "8MS Helper TS",
12
+ integrationVersion: config.integrationVersion || "v1.0.0"
13
+ });
14
+ return this;
15
+ } catch (e) {
16
+ if (e instanceof Error) throw new Error("Error initialising 1Password client", e);
17
+ throw new Error("An unexpected error occurred during 1Password setup");
18
+ }
19
+ };
20
+ listVaults = async () => {
21
+ return this.client.vaults.list();
22
+ };
23
+ getItem = async (url) => {
24
+ const { vaultId, itemId } = require_onePassword_server_getIdsFromUrl.getIdsFromUrl(url);
25
+ return this.client.items.get(vaultId, itemId);
26
+ };
27
+ getNote = async (url) => {
28
+ let response = null;
29
+ const item = await this.getItem(url);
30
+ if (item && "undefined" !== typeof item.notes) response = item.notes;
31
+ return response;
32
+ };
33
+ getJsonNote = async (url) => {
34
+ let response = null;
35
+ const item = await this.getItem(url);
36
+ if (item && "undefined" !== typeof item.notes) response = JSON.parse(item.notes);
37
+ return response;
38
+ };
39
+ listItems = async (vaultId) => {
40
+ return this.client.items.list(vaultId);
41
+ };
42
+ };
43
+ //#endregion
44
+ exports.OnePassword = OnePassword;
@@ -0,0 +1,21 @@
1
+ import { BaseNamespace } from "../../_class/BaseNamespace.cjs";
2
+ import * as _$_1password_sdk0 from "@1password/sdk";
3
+ import { Client } from "@1password/sdk";
4
+
5
+ //#region src/onePassword/server/OnePassword.d.ts
6
+ type OnePasswordConfig = {
7
+ serviceAccountToken: string;
8
+ integrationName?: string;
9
+ integrationVersion?: string;
10
+ };
11
+ declare class OnePassword extends BaseNamespace {
12
+ client: Client;
13
+ init: (config: OnePasswordConfig) => Promise<this | undefined>;
14
+ listVaults: () => Promise<_$_1password_sdk0.VaultOverview[]>;
15
+ getItem: (url: string) => Promise<_$_1password_sdk0.Item>;
16
+ getNote: (url: string) => Promise<string | null>;
17
+ getJsonNote: (url: string) => Promise<any>;
18
+ listItems: (vaultId: string) => Promise<_$_1password_sdk0.ItemOverview[]>;
19
+ }
20
+ //#endregion
21
+ export { OnePassword, OnePasswordConfig };
@@ -0,0 +1,21 @@
1
+ import { BaseNamespace } from "../../_class/BaseNamespace.mjs";
2
+ import * as _$_1password_sdk0 from "@1password/sdk";
3
+ import { Client } from "@1password/sdk";
4
+
5
+ //#region src/onePassword/server/OnePassword.d.ts
6
+ type OnePasswordConfig = {
7
+ serviceAccountToken: string;
8
+ integrationName?: string;
9
+ integrationVersion?: string;
10
+ };
11
+ declare class OnePassword extends BaseNamespace {
12
+ client: Client;
13
+ init: (config: OnePasswordConfig) => Promise<this | undefined>;
14
+ listVaults: () => Promise<_$_1password_sdk0.VaultOverview[]>;
15
+ getItem: (url: string) => Promise<_$_1password_sdk0.Item>;
16
+ getNote: (url: string) => Promise<string | null>;
17
+ getJsonNote: (url: string) => Promise<any>;
18
+ listItems: (vaultId: string) => Promise<_$_1password_sdk0.ItemOverview[]>;
19
+ }
20
+ //#endregion
21
+ export { OnePassword, OnePasswordConfig };
@@ -1,37 +1,43 @@
1
1
  import { BaseNamespace } from "../../_class/BaseNamespace.mjs";
2
- //#region src/onePassword/server/OnePasswordNamespace.ts
3
- var OnePasswordNamespace = class extends BaseNamespace {
4
- ensureInit = async () => {
2
+ import { getIdsFromUrl } from "./getIdsFromUrl.mjs";
3
+ //#region src/onePassword/server/OnePassword.ts
4
+ var OnePassword = class extends BaseNamespace {
5
+ init = async (config) => {
5
6
  if (!this.client) try {
6
7
  const { createClient } = await import("@1password/sdk");
7
8
  this.client = await createClient({
8
- auth: this.config.serviceAccountToken,
9
- integrationName: this.config.integrationName || "8MS Helper TS",
10
- integrationVersion: this.config.integrationVersion || "v1.0.0"
9
+ auth: config.serviceAccountToken,
10
+ integrationName: config.integrationName || "8MS Helper TS",
11
+ integrationVersion: config.integrationVersion || "v1.0.0"
11
12
  });
13
+ return this;
12
14
  } catch (e) {
13
15
  if (e instanceof Error) throw new Error("Error initialising 1Password client", e);
14
16
  throw new Error("An unexpected error occurred during 1Password setup");
15
17
  }
16
18
  };
17
19
  listVaults = async () => {
18
- await this.ensureInit();
19
20
  return this.client.vaults.list();
20
21
  };
21
- getItem = async (vaultId, itemId) => {
22
- await this.ensureInit();
22
+ getItem = async (url) => {
23
+ const { vaultId, itemId } = getIdsFromUrl(url);
23
24
  return this.client.items.get(vaultId, itemId);
24
25
  };
25
- getJsonNote = async (vaultId, itemId) => {
26
+ getNote = async (url) => {
26
27
  let response = null;
27
- const item = await this.getItem(vaultId, itemId);
28
+ const item = await this.getItem(url);
29
+ if (item && "undefined" !== typeof item.notes) response = item.notes;
30
+ return response;
31
+ };
32
+ getJsonNote = async (url) => {
33
+ let response = null;
34
+ const item = await this.getItem(url);
28
35
  if (item && "undefined" !== typeof item.notes) response = JSON.parse(item.notes);
29
36
  return response;
30
37
  };
31
38
  listItems = async (vaultId) => {
32
- await this.ensureInit();
33
39
  return this.client.items.list(vaultId);
34
40
  };
35
41
  };
36
42
  //#endregion
37
- export { OnePasswordNamespace };
43
+ export { OnePassword };
@@ -7,8 +7,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
7
7
  const getIdsFromUrl = (url) => {
8
8
  const parsedUrl = new URL(url);
9
9
  return {
10
- vaultId: parsedUrl.searchParams.get("v"),
11
- itemId: parsedUrl.searchParams.get("i")
10
+ vaultId: parsedUrl.searchParams.get("v") ?? "",
11
+ itemId: parsedUrl.searchParams.get("i") ?? ""
12
12
  };
13
13
  };
14
14
  //#endregion
@@ -4,8 +4,8 @@
4
4
  * Eg. https://start.1password.com/open/i?a=AAA&v=VVV&i=III&h=HHH would return vaultId = VVV and itemId = III.
5
5
  */
6
6
  declare const getIdsFromUrl: (url: string) => {
7
- vaultId: string | null;
8
- itemId: string | null;
7
+ vaultId: string;
8
+ itemId: string;
9
9
  };
10
10
  //#endregion
11
11
  export { getIdsFromUrl };
@@ -4,8 +4,8 @@
4
4
  * Eg. https://start.1password.com/open/i?a=AAA&v=VVV&i=III&h=HHH would return vaultId = VVV and itemId = III.
5
5
  */
6
6
  declare const getIdsFromUrl: (url: string) => {
7
- vaultId: string | null;
8
- itemId: string | null;
7
+ vaultId: string;
8
+ itemId: string;
9
9
  };
10
10
  //#endregion
11
11
  export { getIdsFromUrl };
@@ -6,8 +6,8 @@
6
6
  const getIdsFromUrl = (url) => {
7
7
  const parsedUrl = new URL(url);
8
8
  return {
9
- vaultId: parsedUrl.searchParams.get("v"),
10
- itemId: parsedUrl.searchParams.get("i")
9
+ vaultId: parsedUrl.searchParams.get("v") ?? "",
10
+ itemId: parsedUrl.searchParams.get("i") ?? ""
11
11
  };
12
12
  };
13
13
  //#endregion
@@ -1,7 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_onePassword_server_getIdsFromUrl = require("./getIdsFromUrl.cjs");
3
- const require_onePassword_server_OnePasswordNamespace = require("./OnePasswordNamespace.cjs");
4
- const require_onePassword_server_onePassword = require("./onePassword.cjs");
5
- exports.OnePasswordNamespace = require_onePassword_server_OnePasswordNamespace.OnePasswordNamespace;
3
+ const require_onePassword_server_OnePassword = require("./OnePassword.cjs");
4
+ exports.OnePassword = require_onePassword_server_OnePassword.OnePassword;
6
5
  exports.getIdsFromUrl = require_onePassword_server_getIdsFromUrl.getIdsFromUrl;
7
- exports.onePasswordClient = require_onePassword_server_onePassword.onePasswordClient;
@@ -1,4 +1,3 @@
1
+ import { OnePassword, OnePasswordConfig } from "./OnePassword.cjs";
1
2
  import { getIdsFromUrl } from "./getIdsFromUrl.cjs";
2
- import { OnePasswordConfig, onePasswordClient } from "./onePassword.cjs";
3
- import { OnePasswordNamespace } from "./OnePasswordNamespace.cjs";
4
- export { OnePasswordConfig, OnePasswordNamespace, getIdsFromUrl, onePasswordClient };
3
+ export { OnePassword, OnePasswordConfig, getIdsFromUrl };
@@ -1,4 +1,3 @@
1
+ import { OnePassword, OnePasswordConfig } from "./OnePassword.mjs";
1
2
  import { getIdsFromUrl } from "./getIdsFromUrl.mjs";
2
- import { OnePasswordConfig, onePasswordClient } from "./onePassword.mjs";
3
- import { OnePasswordNamespace } from "./OnePasswordNamespace.mjs";
4
- export { OnePasswordConfig, OnePasswordNamespace, getIdsFromUrl, onePasswordClient };
3
+ export { OnePassword, OnePasswordConfig, getIdsFromUrl };
@@ -1,4 +1,3 @@
1
1
  import { getIdsFromUrl } from "./getIdsFromUrl.mjs";
2
- import { OnePasswordNamespace } from "./OnePasswordNamespace.mjs";
3
- import { onePasswordClient } from "./onePassword.mjs";
4
- export { OnePasswordNamespace, getIdsFromUrl, onePasswordClient };
2
+ import { OnePassword } from "./OnePassword.mjs";
3
+ export { OnePassword, getIdsFromUrl };
@@ -1,18 +1,21 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require__class_BaseNamespace = require("../../_class/BaseNamespace.cjs");
3
3
  const require_api_post = require("../../api/post.cjs");
4
- //#region src/openAi/server/OpenAiNamespace.ts
5
- var OpenAiNamespace = class extends require__class_BaseNamespace.BaseNamespace {
4
+ //#region src/openAi/server/OpenAi.ts
5
+ var OpenAi = class extends require__class_BaseNamespace.BaseNamespace {
6
6
  /**
7
7
  * Renew the access token as it expires every 3 hours.
8
8
  */
9
- ensureInit = async () => {
10
- if (!this.client) this.client = true;
9
+ init = async (config) => {
10
+ if (!this.client) {
11
+ this.client = true;
12
+ this.config = config;
13
+ }
11
14
  };
12
- completion = async (prompt, temperature = 1, maxTokens = null, model = "gpt-3.5-turbo") => {
15
+ completion = async (prompt, temperature = 1, maxTokens = -1, model = "gpt-3.5-turbo") => {
13
16
  let response = null;
14
17
  const apiResponse = await require_api_post.post(`https://api.openai.com/v1/chat/completions`, {
15
- max_tokens: maxTokens,
18
+ max_tokens: -1 === maxTokens ? void 0 : maxTokens,
16
19
  model,
17
20
  messages: [{
18
21
  role: "user",
@@ -25,4 +28,4 @@ var OpenAiNamespace = class extends require__class_BaseNamespace.BaseNamespace {
25
28
  };
26
29
  };
27
30
  //#endregion
28
- exports.OpenAiNamespace = OpenAiNamespace;
31
+ exports.OpenAi = OpenAi;
@@ -1,15 +1,17 @@
1
1
  import { BaseNamespace } from "../../_class/BaseNamespace.cjs";
2
- import { OpenAiConfig } from "./openAi.cjs";
3
2
 
4
- //#region src/openAi/server/OpenAiNamespace.d.ts
5
- declare class OpenAiNamespace extends BaseNamespace {
3
+ //#region src/openAi/server/OpenAi.d.ts
4
+ type OpenAiConfig = {
5
+ apiKey: string;
6
+ };
7
+ declare class OpenAi extends BaseNamespace {
6
8
  client: boolean;
7
9
  config: OpenAiConfig;
8
10
  /**
9
11
  * Renew the access token as it expires every 3 hours.
10
12
  */
11
- ensureInit: () => Promise<void>;
13
+ init: (config: OpenAiConfig) => Promise<void>;
12
14
  completion: (prompt: string, temperature?: number, maxTokens?: number, model?: string) => Promise<any>;
13
15
  }
14
16
  //#endregion
15
- export { OpenAiNamespace };
17
+ export { OpenAi, OpenAiConfig };
@@ -1,15 +1,17 @@
1
1
  import { BaseNamespace } from "../../_class/BaseNamespace.mjs";
2
- import { OpenAiConfig } from "./openAi.mjs";
3
2
 
4
- //#region src/openAi/server/OpenAiNamespace.d.ts
5
- declare class OpenAiNamespace extends BaseNamespace {
3
+ //#region src/openAi/server/OpenAi.d.ts
4
+ type OpenAiConfig = {
5
+ apiKey: string;
6
+ };
7
+ declare class OpenAi extends BaseNamespace {
6
8
  client: boolean;
7
9
  config: OpenAiConfig;
8
10
  /**
9
11
  * Renew the access token as it expires every 3 hours.
10
12
  */
11
- ensureInit: () => Promise<void>;
13
+ init: (config: OpenAiConfig) => Promise<void>;
12
14
  completion: (prompt: string, temperature?: number, maxTokens?: number, model?: string) => Promise<any>;
13
15
  }
14
16
  //#endregion
15
- export { OpenAiNamespace };
17
+ export { OpenAi, OpenAiConfig };
@@ -1,17 +1,20 @@
1
1
  import { BaseNamespace } from "../../_class/BaseNamespace.mjs";
2
2
  import { post } from "../../api/post.mjs";
3
- //#region src/openAi/server/OpenAiNamespace.ts
4
- var OpenAiNamespace = class extends BaseNamespace {
3
+ //#region src/openAi/server/OpenAi.ts
4
+ var OpenAi = class extends BaseNamespace {
5
5
  /**
6
6
  * Renew the access token as it expires every 3 hours.
7
7
  */
8
- ensureInit = async () => {
9
- if (!this.client) this.client = true;
8
+ init = async (config) => {
9
+ if (!this.client) {
10
+ this.client = true;
11
+ this.config = config;
12
+ }
10
13
  };
11
- completion = async (prompt, temperature = 1, maxTokens = null, model = "gpt-3.5-turbo") => {
14
+ completion = async (prompt, temperature = 1, maxTokens = -1, model = "gpt-3.5-turbo") => {
12
15
  let response = null;
13
16
  const apiResponse = await post(`https://api.openai.com/v1/chat/completions`, {
14
- max_tokens: maxTokens,
17
+ max_tokens: -1 === maxTokens ? void 0 : maxTokens,
15
18
  model,
16
19
  messages: [{
17
20
  role: "user",
@@ -24,4 +27,4 @@ var OpenAiNamespace = class extends BaseNamespace {
24
27
  };
25
28
  };
26
29
  //#endregion
27
- export { OpenAiNamespace };
30
+ export { OpenAi };
@@ -1,5 +1,3 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_openAi_server_OpenAiNamespace = require("./OpenAiNamespace.cjs");
3
- const require_openAi_server_openAi = require("./openAi.cjs");
4
- exports.OpenAiNamespace = require_openAi_server_OpenAiNamespace.OpenAiNamespace;
5
- exports.openAiClient = require_openAi_server_openAi.openAiClient;
2
+ const require_openAi_server_OpenAi = require("./OpenAi.cjs");
3
+ exports.OpenAi = require_openAi_server_OpenAi.OpenAi;
@@ -1,3 +1,2 @@
1
- import { OpenAiConfig, openAiClient } from "./openAi.cjs";
2
- import { OpenAiNamespace } from "./OpenAiNamespace.cjs";
3
- export { OpenAiConfig, OpenAiNamespace, openAiClient };
1
+ import { OpenAi, OpenAiConfig } from "./OpenAi.cjs";
2
+ export { OpenAi, OpenAiConfig };
@@ -1,3 +1,2 @@
1
- import { OpenAiConfig, openAiClient } from "./openAi.mjs";
2
- import { OpenAiNamespace } from "./OpenAiNamespace.mjs";
3
- export { OpenAiConfig, OpenAiNamespace, openAiClient };
1
+ import { OpenAi, OpenAiConfig } from "./OpenAi.mjs";
2
+ export { OpenAi, OpenAiConfig };
@@ -1,3 +1,2 @@
1
- import { OpenAiNamespace } from "./OpenAiNamespace.mjs";
2
- import { openAiClient } from "./openAi.mjs";
3
- export { OpenAiNamespace, openAiClient };
1
+ import { OpenAi } from "./OpenAi.mjs";
2
+ export { OpenAi };
@@ -3,13 +3,14 @@ require("../../_virtual/_rolldown/runtime.cjs");
3
3
  const require__class_BaseNamespace = require("../../_class/BaseNamespace.cjs");
4
4
  const require_api_post = require("../../api/post.cjs");
5
5
  let luxon = require("luxon");
6
- //#region src/snapchat/server/SnapchatNamespace.ts
7
- var SnapchatNamespace = class extends require__class_BaseNamespace.BaseNamespace {
6
+ //#region src/snapchat/server/Snapchat.ts
7
+ var Snapchat = class extends require__class_BaseNamespace.BaseNamespace {
8
8
  /**
9
9
  * Renew the access token as it expires every 3 hours.
10
10
  */
11
- ensureInit = async () => {
11
+ init = async (config) => {
12
12
  if (!this.client) {
13
+ this.config = config;
13
14
  const apiResponse = await require_api_post.post(`https://accounts.snapchat.com/login/oauth2/access_token?client_id=${this.config.clientId}&client_secret=${this.config.clientSecret}&grant_type=refresh_token&refresh_token=${this.config.refreshToken}`);
14
15
  if (apiResponse.isSuccess()) this.client = {
15
16
  expires: luxon.DateTime.now().toUnixInteger() + 10800 * 1e3,
@@ -19,4 +20,4 @@ var SnapchatNamespace = class extends require__class_BaseNamespace.BaseNamespace
19
20
  };
20
21
  };
21
22
  //#endregion
22
- exports.SnapchatNamespace = SnapchatNamespace;
23
+ exports.Snapchat = Snapchat;
@@ -0,0 +1,22 @@
1
+ import { BaseNamespace } from "../../_class/BaseNamespace.cjs";
2
+
3
+ //#region src/snapchat/server/Snapchat.d.ts
4
+ type SnapchatConfig = {
5
+ clientId: string;
6
+ clientSecret: string;
7
+ refreshToken: string;
8
+ };
9
+ type Client = {
10
+ expires: number;
11
+ refreshToken: string;
12
+ };
13
+ declare class Snapchat extends BaseNamespace {
14
+ client: Client;
15
+ config: SnapchatConfig;
16
+ /**
17
+ * Renew the access token as it expires every 3 hours.
18
+ */
19
+ init: (config: SnapchatConfig) => Promise<void>;
20
+ }
21
+ //#endregion
22
+ export { Snapchat, SnapchatConfig };
@@ -0,0 +1,22 @@
1
+ import { BaseNamespace } from "../../_class/BaseNamespace.mjs";
2
+
3
+ //#region src/snapchat/server/Snapchat.d.ts
4
+ type SnapchatConfig = {
5
+ clientId: string;
6
+ clientSecret: string;
7
+ refreshToken: string;
8
+ };
9
+ type Client = {
10
+ expires: number;
11
+ refreshToken: string;
12
+ };
13
+ declare class Snapchat extends BaseNamespace {
14
+ client: Client;
15
+ config: SnapchatConfig;
16
+ /**
17
+ * Renew the access token as it expires every 3 hours.
18
+ */
19
+ init: (config: SnapchatConfig) => Promise<void>;
20
+ }
21
+ //#endregion
22
+ export { Snapchat, SnapchatConfig };
@@ -1,13 +1,14 @@
1
1
  import { BaseNamespace } from "../../_class/BaseNamespace.mjs";
2
2
  import { post } from "../../api/post.mjs";
3
3
  import { DateTime } from "luxon";
4
- //#region src/snapchat/server/SnapchatNamespace.ts
5
- var SnapchatNamespace = class extends BaseNamespace {
4
+ //#region src/snapchat/server/Snapchat.ts
5
+ var Snapchat = class extends BaseNamespace {
6
6
  /**
7
7
  * Renew the access token as it expires every 3 hours.
8
8
  */
9
- ensureInit = async () => {
9
+ init = async (config) => {
10
10
  if (!this.client) {
11
+ this.config = config;
11
12
  const apiResponse = await post(`https://accounts.snapchat.com/login/oauth2/access_token?client_id=${this.config.clientId}&client_secret=${this.config.clientSecret}&grant_type=refresh_token&refresh_token=${this.config.refreshToken}`);
12
13
  if (apiResponse.isSuccess()) this.client = {
13
14
  expires: DateTime.now().toUnixInteger() + 10800 * 1e3,
@@ -17,4 +18,4 @@ var SnapchatNamespace = class extends BaseNamespace {
17
18
  };
18
19
  };
19
20
  //#endregion
20
- export { SnapchatNamespace };
21
+ export { Snapchat };