@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.
- package/dist/_class/BaseNamespace.cjs +4 -9
- package/dist/_class/BaseNamespace.d.cts +2 -4
- package/dist/_class/BaseNamespace.d.mts +2 -4
- package/dist/_class/BaseNamespace.mjs +4 -9
- package/dist/aws/cloudWatchLog/server/{AwsCloudWatchLogNamespace.cjs → AwsCloudWatchLog.cjs} +9 -10
- package/dist/aws/cloudWatchLog/server/{AwsCloudWatchLogNamespace.d.cts → AwsCloudWatchLog.d.cts} +5 -6
- package/dist/aws/cloudWatchLog/server/{AwsCloudWatchLogNamespace.d.mts → AwsCloudWatchLog.d.mts} +5 -6
- package/dist/aws/cloudWatchLog/server/{AwsCloudWatchLogNamespace.mjs → AwsCloudWatchLog.mjs} +9 -10
- package/dist/aws/cloudWatchLog/server/index.cjs +2 -4
- package/dist/aws/cloudWatchLog/server/index.d.cts +2 -3
- package/dist/aws/cloudWatchLog/server/index.d.mts +2 -3
- package/dist/aws/cloudWatchLog/server/index.mjs +2 -3
- package/dist/aws/cloudWatchMetric/server/{AwsCloudWatchMetricNamespace.cjs → AwsCloudWatchMetric.cjs} +11 -10
- package/dist/aws/cloudWatchMetric/server/{AwsCloudWatchMetricNamespace.d.cts → AwsCloudWatchMetric.d.cts} +5 -6
- package/dist/aws/cloudWatchMetric/server/{AwsCloudWatchMetricNamespace.d.mts → AwsCloudWatchMetric.d.mts} +5 -6
- package/dist/aws/cloudWatchMetric/server/{AwsCloudWatchMetricNamespace.mjs → AwsCloudWatchMetric.mjs} +10 -8
- package/dist/aws/cloudWatchMetric/server/index.cjs +2 -4
- package/dist/aws/cloudWatchMetric/server/index.d.cts +2 -3
- package/dist/aws/cloudWatchMetric/server/index.d.mts +2 -3
- package/dist/aws/cloudWatchMetric/server/index.mjs +2 -3
- package/dist/aws/ec2/server/{AwsEc2Namespace.cjs → AwsEc2.cjs} +9 -7
- package/dist/aws/ec2/server/{AwsEc2Namespace.d.cts → AwsEc2.d.cts} +5 -6
- package/dist/aws/ec2/server/{AwsEc2Namespace.d.mts → AwsEc2.d.mts} +5 -6
- package/dist/aws/ec2/server/{AwsEc2Namespace.mjs → AwsEc2.mjs} +9 -7
- package/dist/aws/ec2/server/index.cjs +2 -4
- package/dist/aws/ec2/server/index.d.cts +2 -3
- package/dist/aws/ec2/server/index.d.mts +2 -3
- package/dist/aws/ec2/server/index.mjs +2 -3
- package/dist/aws/ecs/server/{AwsEcsNamespace.cjs → AwsEcs.cjs} +9 -9
- package/dist/aws/ecs/server/{AwsEcsNamespace.d.cts → AwsEcs.d.cts} +5 -6
- package/dist/aws/ecs/server/{AwsEcsNamespace.d.mts → AwsEcs.d.mts} +5 -6
- package/dist/aws/ecs/server/{AwsEcsNamespace.mjs → AwsEcs.mjs} +9 -9
- package/dist/aws/ecs/server/index.cjs +2 -4
- package/dist/aws/ecs/server/index.d.cts +2 -3
- package/dist/aws/ecs/server/index.d.mts +2 -3
- package/dist/aws/ecs/server/index.mjs +2 -3
- package/dist/aws/glue/server/{AwsGlueNamespace.cjs → AwsGlue.cjs} +9 -6
- package/dist/aws/glue/server/{AwsGlueNamespace.d.cts → AwsGlue.d.cts} +5 -6
- package/dist/aws/glue/server/{AwsGlueNamespace.d.mts → AwsGlue.d.mts} +5 -6
- package/dist/aws/glue/server/{AwsGlueNamespace.mjs → AwsGlue.mjs} +9 -6
- package/dist/aws/glue/server/index.cjs +2 -4
- package/dist/aws/glue/server/index.d.cts +2 -3
- package/dist/aws/glue/server/index.d.mts +2 -3
- package/dist/aws/glue/server/index.mjs +2 -3
- package/dist/aws/lambda/server/{AwsLambdaNamespace.cjs → AwsLambda.cjs} +9 -6
- package/dist/aws/lambda/server/{AwsLambdaNamespace.d.cts → AwsLambda.d.cts} +5 -6
- package/dist/aws/lambda/server/{AwsLambdaNamespace.d.mts → AwsLambda.d.mts} +5 -6
- package/dist/aws/lambda/server/{AwsLambdaNamespace.mjs → AwsLambda.mjs} +9 -6
- package/dist/aws/lambda/server/getHandlerPath.cjs +7 -0
- package/dist/aws/lambda/server/getHandlerPath.d.cts +4 -0
- package/dist/aws/lambda/server/getHandlerPath.d.mts +4 -0
- package/dist/aws/lambda/server/getHandlerPath.mjs +6 -0
- package/dist/aws/lambda/server/index.cjs +4 -5
- package/dist/aws/lambda/server/index.d.cts +3 -3
- package/dist/aws/lambda/server/index.d.mts +3 -3
- package/dist/aws/lambda/server/index.mjs +3 -3
- package/dist/aws/s3/server/{AwsS3Namespace.cjs → AwsS3.cjs} +12 -31
- package/dist/aws/s3/server/{AwsS3Namespace.d.cts → AwsS3.d.cts} +6 -7
- package/dist/aws/s3/server/{AwsS3Namespace.d.mts → AwsS3.d.mts} +6 -7
- package/dist/aws/s3/server/{AwsS3Namespace.mjs → AwsS3.mjs} +10 -29
- package/dist/aws/s3/server/awsS3File.cjs +12 -0
- package/dist/aws/s3/server/awsS3File.d.cts +12 -0
- package/dist/aws/s3/server/awsS3File.d.mts +12 -0
- package/dist/aws/s3/server/awsS3File.mjs +11 -0
- package/dist/aws/s3/server/index.cjs +4 -5
- package/dist/aws/s3/server/index.d.cts +3 -3
- package/dist/aws/s3/server/index.d.mts +3 -3
- package/dist/aws/s3/server/index.mjs +3 -3
- package/dist/aws/server/getAwsConfig.cjs +15 -0
- package/dist/aws/server/getAwsConfig.d.cts +18 -0
- package/dist/aws/server/getAwsConfig.d.mts +18 -0
- package/dist/aws/server/getAwsConfig.mjs +14 -0
- package/dist/aws/server/index.cjs +2 -2
- package/dist/aws/server/index.d.cts +2 -2
- package/dist/aws/server/index.d.mts +2 -2
- package/dist/aws/server/index.mjs +2 -2
- package/dist/aws/ses/server/{AwsSesNamespace.cjs → AwsSes.cjs} +9 -6
- package/dist/aws/ses/server/{AwsSesNamespace.d.cts → AwsSes.d.cts} +5 -6
- package/dist/aws/ses/server/{AwsSesNamespace.d.mts → AwsSes.d.mts} +5 -6
- package/dist/aws/ses/server/{AwsSesNamespace.mjs → AwsSes.mjs} +9 -6
- package/dist/aws/ses/server/index.cjs +2 -4
- package/dist/aws/ses/server/index.d.cts +2 -3
- package/dist/aws/ses/server/index.d.mts +2 -3
- package/dist/aws/ses/server/index.mjs +2 -3
- package/dist/aws/sqs/server/{AwsSqsNamespace.cjs → AwsSqs.cjs} +9 -8
- package/dist/aws/sqs/server/{AwsSqsNamespace.d.cts → AwsSqs.d.cts} +5 -6
- package/dist/aws/sqs/server/{AwsSqsNamespace.d.mts → AwsSqs.d.mts} +5 -6
- package/dist/aws/sqs/server/{AwsSqsNamespace.mjs → AwsSqs.mjs} +9 -8
- package/dist/aws/sqs/server/index.cjs +2 -4
- package/dist/aws/sqs/server/index.d.cts +2 -3
- package/dist/aws/sqs/server/index.d.mts +2 -3
- package/dist/aws/sqs/server/index.mjs +2 -3
- package/dist/aws/ssm/server/{AwsSsmNamespace.cjs → AwsSsm.cjs} +14 -14
- package/dist/aws/ssm/server/AwsSsm.d.cts +13 -0
- package/dist/aws/ssm/server/AwsSsm.d.mts +13 -0
- package/dist/aws/ssm/server/AwsSsm.mjs +34 -0
- package/dist/aws/ssm/server/index.cjs +2 -4
- package/dist/aws/ssm/server/index.d.cts +2 -3
- package/dist/aws/ssm/server/index.d.mts +2 -3
- package/dist/aws/ssm/server/index.mjs +2 -3
- package/dist/brightData/webScraperIde/server/getBatch.cjs +3 -2
- package/dist/brightData/webScraperIde/server/getBatch.d.cts +5 -1
- package/dist/brightData/webScraperIde/server/getBatch.d.mts +5 -1
- package/dist/brightData/webScraperIde/server/getBatch.mjs +3 -2
- package/dist/drizzle/server/{DrizzleNamespace.cjs → Drizzle.cjs} +5 -5
- package/dist/drizzle/server/{drizzle.d.cts → Drizzle.d.cts} +8 -4
- package/dist/drizzle/server/{drizzle.d.mts → Drizzle.d.mts} +8 -4
- package/dist/drizzle/server/{DrizzleNamespace.mjs → Drizzle.mjs} +5 -5
- package/dist/drizzle/server/index.cjs +2 -4
- package/dist/drizzle/server/index.d.cts +2 -3
- package/dist/drizzle/server/index.d.mts +2 -3
- package/dist/drizzle/server/index.mjs +2 -3
- package/dist/environment/environment.cjs +2 -2
- package/dist/environment/environment.mjs +2 -2
- package/dist/googleAds/server/{GoogleAdsNamespace.cjs → GoogleAds.cjs} +9 -10
- package/dist/googleAds/server/{GoogleAdsNamespace.d.cts → GoogleAds.d.cts} +9 -5
- package/dist/googleAds/server/{GoogleAdsNamespace.d.mts → GoogleAds.d.mts} +9 -5
- package/dist/googleAds/server/GoogleAds.mjs +28 -0
- package/dist/googleAds/server/index.cjs +2 -4
- package/dist/googleAds/server/index.d.cts +2 -3
- package/dist/googleAds/server/index.d.mts +2 -3
- package/dist/googleAds/server/index.mjs +2 -3
- package/dist/googleCloud/bigquery/server/{GoogleCloudBigqueryNamespace.cjs → GoogleCloudBigquery.cjs} +27 -33
- package/dist/googleCloud/bigquery/server/{GoogleCloudBigqueryNamespace.d.cts → GoogleCloudBigquery.d.cts} +14 -16
- package/dist/googleCloud/bigquery/server/{GoogleCloudBigqueryNamespace.d.mts → GoogleCloudBigquery.d.mts} +14 -16
- package/dist/googleCloud/bigquery/server/{GoogleCloudBigqueryNamespace.mjs → GoogleCloudBigquery.mjs} +27 -33
- package/dist/googleCloud/bigquery/server/getHandlerPath.cjs +7 -0
- package/dist/googleCloud/bigquery/server/getHandlerPath.d.cts +4 -0
- package/dist/googleCloud/bigquery/server/getHandlerPath.d.mts +4 -0
- package/dist/googleCloud/bigquery/server/getHandlerPath.mjs +6 -0
- package/dist/googleCloud/bigquery/server/index.cjs +4 -5
- package/dist/googleCloud/bigquery/server/index.d.cts +3 -3
- package/dist/googleCloud/bigquery/server/index.d.mts +3 -3
- package/dist/googleCloud/bigquery/server/index.mjs +3 -3
- package/dist/googleCloud/bigquery/server/loadData.d.cts +2 -2
- package/dist/googleCloud/bigquery/server/loadData.d.mts +2 -2
- package/dist/googleCloud/server/getGoogleCloudConfig.cjs +81 -0
- package/dist/googleCloud/server/getGoogleCloudConfig.d.cts +77 -0
- package/dist/googleCloud/server/getGoogleCloudConfig.d.mts +77 -0
- package/dist/googleCloud/server/getGoogleCloudConfig.mjs +78 -0
- package/dist/googleCloud/server/index.cjs +4 -2
- package/dist/googleCloud/server/index.d.cts +2 -2
- package/dist/googleCloud/server/index.d.mts +2 -2
- package/dist/googleCloud/server/index.mjs +2 -2
- package/dist/googleCloud/sheets/server/{GoogleCloudSheetsNamespace.cjs → GoogleCloudSheets.cjs} +10 -8
- package/dist/googleCloud/sheets/server/{GoogleCloudSheetsNamespace.d.cts → GoogleCloudSheets.d.cts} +8 -8
- package/dist/googleCloud/sheets/server/{GoogleCloudSheetsNamespace.d.mts → GoogleCloudSheets.d.mts} +8 -8
- package/dist/googleCloud/sheets/server/{GoogleCloudSheetsNamespace.mjs → GoogleCloudSheets.mjs} +10 -8
- package/dist/googleCloud/sheets/server/index.cjs +2 -2
- package/dist/googleCloud/sheets/server/index.d.cts +2 -2
- package/dist/googleCloud/sheets/server/index.d.mts +2 -2
- package/dist/googleCloud/sheets/server/index.mjs +2 -2
- package/dist/googleCloud/storage/server/{GoogleCloudStorageNamespace.cjs → GoogleCloudStorage.cjs} +15 -10
- package/dist/googleCloud/storage/server/{GoogleCloudStorageNamespace.d.cts → GoogleCloudStorage.d.cts} +10 -8
- package/dist/googleCloud/storage/server/{GoogleCloudStorageNamespace.d.mts → GoogleCloudStorage.d.mts} +10 -8
- package/dist/googleCloud/storage/server/{GoogleCloudStorageNamespace.mjs → GoogleCloudStorage.mjs} +15 -10
- package/dist/googleCloud/storage/server/index.cjs +2 -4
- package/dist/googleCloud/storage/server/index.d.cts +2 -3
- package/dist/googleCloud/storage/server/index.d.mts +2 -3
- package/dist/googleCloud/storage/server/index.mjs +2 -3
- package/dist/googlePageSpeed/server/{GooglePageSpeedNamespace.cjs → GooglePageSpeed.cjs} +8 -7
- package/dist/googlePageSpeed/server/GooglePageSpeed.d.cts +19 -0
- package/dist/googlePageSpeed/server/GooglePageSpeed.d.mts +19 -0
- package/dist/googlePageSpeed/server/{GooglePageSpeedNamespace.mjs → GooglePageSpeed.mjs} +7 -6
- package/dist/googlePageSpeed/server/category.cjs +11 -0
- package/dist/googlePageSpeed/server/category.d.cts +11 -0
- package/dist/googlePageSpeed/server/category.d.mts +11 -0
- package/dist/googlePageSpeed/server/category.mjs +10 -0
- package/dist/googlePageSpeed/server/index.cjs +6 -6
- package/dist/googlePageSpeed/server/index.d.cts +4 -3
- package/dist/googlePageSpeed/server/index.d.mts +4 -3
- package/dist/googlePageSpeed/server/index.mjs +4 -3
- package/dist/googlePageSpeed/server/strategy.cjs +9 -0
- package/dist/googlePageSpeed/server/strategy.d.cts +9 -0
- package/dist/googlePageSpeed/server/strategy.d.mts +9 -0
- package/dist/googlePageSpeed/server/strategy.mjs +8 -0
- package/dist/inngest/index.cjs +2 -2
- package/dist/inngest/index.d.cts +1 -1
- package/dist/inngest/index.d.mts +1 -1
- package/dist/inngest/index.mjs +1 -1
- package/dist/inngest/{inngest.cjs → inngestState.cjs} +1 -1
- package/dist/inngest/{inngest.d.mts → inngestState.d.cts} +1 -1
- package/dist/inngest/{inngest.d.cts → inngestState.d.mts} +1 -1
- package/dist/inngest/{inngest.mjs → inngestState.mjs} +1 -1
- package/dist/littleWarden/server/{LittleWardenNamespace.cjs → LittleWarden.cjs} +5 -4
- package/dist/littleWarden/server/{LittleWardenNamespace.d.cts → LittleWarden.d.cts} +7 -5
- package/dist/littleWarden/server/{LittleWardenNamespace.d.mts → LittleWarden.d.mts} +7 -5
- package/dist/littleWarden/server/{LittleWardenNamespace.mjs → LittleWarden.mjs} +5 -4
- package/dist/littleWarden/server/index.cjs +7 -8
- package/dist/littleWarden/server/index.d.cts +3 -3
- package/dist/littleWarden/server/index.d.mts +3 -3
- package/dist/littleWarden/server/index.mjs +3 -3
- package/dist/littleWarden/server/littleWardenAttrs.cjs +38 -0
- package/dist/littleWarden/server/{littleWarden.d.cts → littleWardenAttrs.d.cts} +2 -7
- package/dist/littleWarden/server/{littleWarden.d.mts → littleWardenAttrs.d.mts} +2 -7
- package/dist/littleWarden/server/littleWardenAttrs.mjs +33 -0
- package/dist/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.cts +7 -0
- package/dist/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.mts +7 -0
- package/dist/node_modules/@smithy/types/dist-types/identity/awsCredentialIdentity.d.cts +35 -0
- package/dist/node_modules/@smithy/types/dist-types/identity/awsCredentialIdentity.d.mts +35 -0
- package/dist/node_modules/@smithy/types/dist-types/identity/identity.d.cts +18 -0
- package/dist/node_modules/@smithy/types/dist-types/identity/identity.d.mts +18 -0
- package/dist/node_modules/@smithy/types/dist-types/index.d.cts +2 -0
- package/dist/node_modules/@smithy/types/dist-types/index.d.mts +2 -0
- package/dist/onePassword/server/OnePassword.cjs +44 -0
- package/dist/onePassword/server/OnePassword.d.cts +21 -0
- package/dist/onePassword/server/OnePassword.d.mts +21 -0
- package/dist/onePassword/server/{OnePasswordNamespace.mjs → OnePassword.mjs} +19 -13
- package/dist/onePassword/server/getIdsFromUrl.cjs +2 -2
- package/dist/onePassword/server/getIdsFromUrl.d.cts +2 -2
- package/dist/onePassword/server/getIdsFromUrl.d.mts +2 -2
- package/dist/onePassword/server/getIdsFromUrl.mjs +2 -2
- package/dist/onePassword/server/index.cjs +2 -4
- package/dist/onePassword/server/index.d.cts +2 -3
- package/dist/onePassword/server/index.d.mts +2 -3
- package/dist/onePassword/server/index.mjs +2 -3
- package/dist/openAi/server/{OpenAiNamespace.cjs → OpenAi.cjs} +10 -7
- package/dist/openAi/server/{OpenAiNamespace.d.cts → OpenAi.d.cts} +7 -5
- package/dist/openAi/server/{OpenAiNamespace.d.mts → OpenAi.d.mts} +7 -5
- package/dist/openAi/server/{OpenAiNamespace.mjs → OpenAi.mjs} +10 -7
- package/dist/openAi/server/index.cjs +2 -4
- package/dist/openAi/server/index.d.cts +2 -3
- package/dist/openAi/server/index.d.mts +2 -3
- package/dist/openAi/server/index.mjs +2 -3
- package/dist/snapchat/server/{SnapchatNamespace.cjs → Snapchat.cjs} +5 -4
- package/dist/snapchat/server/Snapchat.d.cts +22 -0
- package/dist/snapchat/server/Snapchat.d.mts +22 -0
- package/dist/snapchat/server/{SnapchatNamespace.mjs → Snapchat.mjs} +5 -4
- package/dist/snapchat/server/index.cjs +2 -4
- package/dist/snapchat/server/index.d.cts +2 -3
- package/dist/snapchat/server/index.d.mts +2 -3
- package/dist/snapchat/server/index.mjs +2 -3
- package/dist/swr/client/swr.cjs +1 -1
- package/dist/swr/client/swr.mjs +1 -1
- package/dist/upTimeRobot/server/UpTimeRobot.cjs +34 -0
- package/dist/upTimeRobot/server/{UpTimeRobotNamespace.d.cts → UpTimeRobot.d.cts} +7 -5
- package/dist/upTimeRobot/server/{UpTimeRobotNamespace.d.mts → UpTimeRobot.d.mts} +7 -5
- package/dist/upTimeRobot/server/UpTimeRobot.mjs +33 -0
- package/dist/upTimeRobot/server/index.cjs +12 -9
- package/dist/upTimeRobot/server/index.d.cts +7 -3
- package/dist/upTimeRobot/server/index.d.mts +7 -3
- package/dist/upTimeRobot/server/index.mjs +7 -3
- package/dist/upTimeRobot/server/logType.cjs +10 -0
- package/dist/upTimeRobot/server/logType.d.cts +10 -0
- package/dist/upTimeRobot/server/logType.d.mts +10 -0
- package/dist/upTimeRobot/server/logType.mjs +9 -0
- package/dist/upTimeRobot/server/monitorStatus.cjs +11 -0
- package/dist/upTimeRobot/server/monitorStatus.d.cts +11 -0
- package/dist/upTimeRobot/server/monitorStatus.d.mts +11 -0
- package/dist/upTimeRobot/server/monitorStatus.mjs +10 -0
- package/dist/upTimeRobot/server/monitorSubTypes.cjs +13 -0
- package/dist/upTimeRobot/server/monitorSubTypes.d.cts +13 -0
- package/dist/upTimeRobot/server/monitorSubTypes.d.mts +13 -0
- package/dist/upTimeRobot/server/monitorSubTypes.mjs +12 -0
- package/dist/upTimeRobot/server/monitorType.cjs +11 -0
- package/dist/upTimeRobot/server/monitorType.d.cts +11 -0
- package/dist/upTimeRobot/server/monitorType.d.mts +11 -0
- package/dist/upTimeRobot/server/monitorType.mjs +10 -0
- package/dist/upTimeRobot/server/requestStatus.cjs +8 -0
- package/dist/upTimeRobot/server/requestStatus.d.cts +8 -0
- package/dist/upTimeRobot/server/requestStatus.d.mts +8 -0
- package/dist/upTimeRobot/server/requestStatus.mjs +7 -0
- package/dist/url/url.cjs +1 -1
- package/dist/url/url.mjs +1 -1
- package/dist/util/defaultTo.cjs +1 -1
- package/dist/util/defaultTo.mjs +1 -1
- package/dist/webWorker/index.cjs +2 -2
- package/dist/webWorker/index.d.cts +1 -1
- package/dist/webWorker/index.d.mts +1 -1
- package/dist/webWorker/index.mjs +1 -1
- package/dist/webWorker/{webWorker.cjs → webWorkerState.cjs} +1 -1
- package/dist/webWorker/{webWorker.d.cts → webWorkerState.d.cts} +1 -1
- package/dist/webWorker/{webWorker.d.mts → webWorkerState.d.mts} +1 -1
- package/dist/webWorker/{webWorker.mjs → webWorkerState.mjs} +1 -1
- package/package.json +138 -152
- package/dist/aws/cloudWatchLog/server/awsCloudWatchLog.cjs +0 -14
- package/dist/aws/cloudWatchLog/server/awsCloudWatchLog.d.cts +0 -7
- package/dist/aws/cloudWatchLog/server/awsCloudWatchLog.d.mts +0 -7
- package/dist/aws/cloudWatchLog/server/awsCloudWatchLog.mjs +0 -13
- package/dist/aws/cloudWatchMetric/server/awsCloudWatchMetric.cjs +0 -14
- package/dist/aws/cloudWatchMetric/server/awsCloudWatchMetric.d.cts +0 -7
- package/dist/aws/cloudWatchMetric/server/awsCloudWatchMetric.d.mts +0 -7
- package/dist/aws/cloudWatchMetric/server/awsCloudWatchMetric.mjs +0 -13
- package/dist/aws/ec2/server/awsEc2.cjs +0 -14
- package/dist/aws/ec2/server/awsEc2.d.cts +0 -7
- package/dist/aws/ec2/server/awsEc2.d.mts +0 -7
- package/dist/aws/ec2/server/awsEc2.mjs +0 -13
- package/dist/aws/ecs/server/awsEcs.cjs +0 -14
- package/dist/aws/ecs/server/awsEcs.d.cts +0 -7
- package/dist/aws/ecs/server/awsEcs.d.mts +0 -7
- package/dist/aws/ecs/server/awsEcs.mjs +0 -13
- package/dist/aws/glue/server/awsGlue.cjs +0 -14
- package/dist/aws/glue/server/awsGlue.d.cts +0 -7
- package/dist/aws/glue/server/awsGlue.d.mts +0 -7
- package/dist/aws/glue/server/awsGlue.mjs +0 -13
- package/dist/aws/lambda/server/awsLambda.cjs +0 -18
- package/dist/aws/lambda/server/awsLambda.d.cts +0 -8
- package/dist/aws/lambda/server/awsLambda.d.mts +0 -8
- package/dist/aws/lambda/server/awsLambda.mjs +0 -16
- package/dist/aws/s3/server/awsS3.cjs +0 -23
- package/dist/aws/s3/server/awsS3.d.cts +0 -16
- package/dist/aws/s3/server/awsS3.d.mts +0 -16
- package/dist/aws/s3/server/awsS3.mjs +0 -21
- package/dist/aws/server/aws.cjs +0 -23
- package/dist/aws/server/aws.d.cts +0 -13
- package/dist/aws/server/aws.d.mts +0 -13
- package/dist/aws/server/aws.mjs +0 -21
- package/dist/aws/ses/server/awsSes.cjs +0 -16
- package/dist/aws/ses/server/awsSes.d.cts +0 -8
- package/dist/aws/ses/server/awsSes.d.mts +0 -8
- package/dist/aws/ses/server/awsSes.mjs +0 -14
- package/dist/aws/sqs/server/awsSqs.cjs +0 -14
- package/dist/aws/sqs/server/awsSqs.d.cts +0 -7
- package/dist/aws/sqs/server/awsSqs.d.mts +0 -7
- package/dist/aws/sqs/server/awsSqs.mjs +0 -13
- package/dist/aws/ssm/server/AwsSsmNamespace.d.cts +0 -15
- package/dist/aws/ssm/server/AwsSsmNamespace.d.mts +0 -15
- package/dist/aws/ssm/server/AwsSsmNamespace.mjs +0 -34
- package/dist/aws/ssm/server/awsSsm.cjs +0 -14
- package/dist/aws/ssm/server/awsSsm.d.cts +0 -7
- package/dist/aws/ssm/server/awsSsm.d.mts +0 -7
- package/dist/aws/ssm/server/awsSsm.mjs +0 -13
- package/dist/drizzle/server/DrizzleNamespace.d.cts +0 -11
- package/dist/drizzle/server/DrizzleNamespace.d.mts +0 -11
- package/dist/drizzle/server/drizzle.cjs +0 -22
- package/dist/drizzle/server/drizzle.mjs +0 -21
- package/dist/googleAds/server/GoogleAdsNamespace.mjs +0 -29
- package/dist/googleAds/server/googleAds.cjs +0 -19
- package/dist/googleAds/server/googleAds.d.cts +0 -15
- package/dist/googleAds/server/googleAds.d.mts +0 -15
- package/dist/googleAds/server/googleAds.mjs +0 -18
- package/dist/googleCloud/bigquery/server/googleCloudBigquery.cjs +0 -32
- package/dist/googleCloud/bigquery/server/googleCloudBigquery.d.cts +0 -8
- package/dist/googleCloud/bigquery/server/googleCloudBigquery.d.mts +0 -8
- package/dist/googleCloud/bigquery/server/googleCloudBigquery.mjs +0 -30
- package/dist/googleCloud/server/googleCloud.cjs +0 -24
- package/dist/googleCloud/server/googleCloud.d.cts +0 -32
- package/dist/googleCloud/server/googleCloud.d.mts +0 -32
- package/dist/googleCloud/server/googleCloud.mjs +0 -23
- package/dist/googleCloud/storage/server/googleCloudStorage.cjs +0 -28
- package/dist/googleCloud/storage/server/googleCloudStorage.d.cts +0 -7
- package/dist/googleCloud/storage/server/googleCloudStorage.d.mts +0 -7
- package/dist/googleCloud/storage/server/googleCloudStorage.mjs +0 -27
- package/dist/googlePageSpeed/server/GooglePageSpeedNamespace.d.cts +0 -15
- package/dist/googlePageSpeed/server/GooglePageSpeedNamespace.d.mts +0 -15
- package/dist/googlePageSpeed/server/googlePageSpeed.cjs +0 -33
- package/dist/googlePageSpeed/server/googlePageSpeed.d.cts +0 -23
- package/dist/googlePageSpeed/server/googlePageSpeed.d.mts +0 -23
- package/dist/googlePageSpeed/server/googlePageSpeed.mjs +0 -30
- package/dist/littleWarden/server/littleWarden.cjs +0 -54
- package/dist/littleWarden/server/littleWarden.mjs +0 -48
- package/dist/onePassword/server/OnePasswordNamespace.cjs +0 -38
- package/dist/onePassword/server/OnePasswordNamespace.d.cts +0 -17
- package/dist/onePassword/server/OnePasswordNamespace.d.mts +0 -17
- package/dist/onePassword/server/onePassword.cjs +0 -14
- package/dist/onePassword/server/onePassword.d.cts +0 -11
- package/dist/onePassword/server/onePassword.d.mts +0 -11
- package/dist/onePassword/server/onePassword.mjs +0 -13
- package/dist/openAi/server/openAi.cjs +0 -19
- package/dist/openAi/server/openAi.d.cts +0 -9
- package/dist/openAi/server/openAi.d.mts +0 -9
- package/dist/openAi/server/openAi.mjs +0 -18
- package/dist/snapchat/server/SnapchatNamespace.d.cts +0 -18
- package/dist/snapchat/server/SnapchatNamespace.d.mts +0 -18
- package/dist/snapchat/server/snapchat.cjs +0 -19
- package/dist/snapchat/server/snapchat.d.cts +0 -11
- package/dist/snapchat/server/snapchat.d.mts +0 -11
- package/dist/snapchat/server/snapchat.mjs +0 -18
- package/dist/upTimeRobot/server/UpTimeRobotNamespace.cjs +0 -31
- package/dist/upTimeRobot/server/UpTimeRobotNamespace.mjs +0 -30
- package/dist/upTimeRobot/server/upTimeRobot.cjs +0 -57
- package/dist/upTimeRobot/server/upTimeRobot.d.cts +0 -42
- package/dist/upTimeRobot/server/upTimeRobot.d.mts +0 -42
- package/dist/upTimeRobot/server/upTimeRobot.mjs +0 -51
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import { getUrlStatus } from "./getUrlStatus.mjs";
|
|
2
|
-
import { LittleWardenNamespace } from "./LittleWardenNamespace.mjs";
|
|
3
2
|
|
|
4
|
-
//#region src/littleWarden/server/
|
|
5
|
-
type LittleWardenConfig = {
|
|
6
|
-
apiKey: string;
|
|
7
|
-
};
|
|
8
|
-
declare const littleWardenClient: (key?: string, config?: LittleWardenConfig, vaultId?: string, itemId?: string) => Promise<LittleWardenNamespace>;
|
|
3
|
+
//#region src/littleWarden/server/littleWardenAttrs.d.ts
|
|
9
4
|
declare const littleWardenState: {
|
|
10
5
|
readonly ALL_GOOD: "all_good";
|
|
11
6
|
readonly DANGER: "danger";
|
|
@@ -37,4 +32,4 @@ declare const isDanger: ({
|
|
|
37
32
|
field: any;
|
|
38
33
|
}) => boolean;
|
|
39
34
|
//#endregion
|
|
40
|
-
export {
|
|
35
|
+
export { LittleWardenState, getUrlStatus, isAllGood, isDanger, isWarning, littleWardenState };
|
|
@@ -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,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,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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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:
|
|
9
|
-
integrationName:
|
|
10
|
-
integrationVersion:
|
|
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 (
|
|
22
|
-
|
|
22
|
+
getItem = async (url) => {
|
|
23
|
+
const { vaultId, itemId } = getIdsFromUrl(url);
|
|
23
24
|
return this.client.items.get(vaultId, itemId);
|
|
24
25
|
};
|
|
25
|
-
|
|
26
|
+
getNote = async (url) => {
|
|
26
27
|
let response = null;
|
|
27
|
-
const item = await this.getItem(
|
|
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 {
|
|
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
|
|
8
|
-
itemId: string
|
|
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
|
|
8
|
-
itemId: string
|
|
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
|
|
4
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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 {
|
|
3
|
-
|
|
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/
|
|
5
|
-
var
|
|
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
|
-
|
|
10
|
-
if (!this.client)
|
|
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 =
|
|
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.
|
|
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/
|
|
5
|
-
|
|
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
|
-
|
|
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 {
|
|
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/
|
|
5
|
-
|
|
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
|
-
|
|
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 {
|
|
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/
|
|
4
|
-
var
|
|
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
|
-
|
|
9
|
-
if (!this.client)
|
|
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 =
|
|
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 {
|
|
30
|
+
export { OpenAi };
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const
|
|
3
|
-
|
|
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 {
|
|
2
|
-
|
|
3
|
-
export { OpenAiConfig, OpenAiNamespace, openAiClient };
|
|
1
|
+
import { OpenAi, OpenAiConfig } from "./OpenAi.cjs";
|
|
2
|
+
export { OpenAi, OpenAiConfig };
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export { OpenAiConfig, OpenAiNamespace, openAiClient };
|
|
1
|
+
import { OpenAi, OpenAiConfig } from "./OpenAi.mjs";
|
|
2
|
+
export { OpenAi, OpenAiConfig };
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
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/
|
|
7
|
-
var
|
|
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
|
-
|
|
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.
|
|
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 };
|