@http-forge/core 0.3.3 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/README.md +2 -1
  2. package/dist/di/service-container.d.ts +1 -1
  3. package/dist/di/service-identifiers.d.ts +1 -0
  4. package/dist/index.d.ts +9 -1
  5. package/dist/index.js +573 -277
  6. package/dist/index.mjs +573 -277
  7. package/dist/infrastructure/config/config.interface.d.ts +32 -0
  8. package/dist/infrastructure/environment/environment-config-service.d.ts +29 -17
  9. package/dist/infrastructure/environment/environment-file-loader.d.ts +5 -0
  10. package/dist/infrastructure/execution/request-executor.d.ts +2 -4
  11. package/dist/infrastructure/execution/request-preparer.d.ts +3 -1
  12. package/dist/infrastructure/script/interfaces.d.ts +1 -2
  13. package/dist/infrastructure/script/script-executor.d.ts +10 -1
  14. package/dist/infrastructure/script/script-factories.d.ts +25 -0
  15. package/dist/infrastructure/secrets/aws-secret-resolver.d.ts +18 -0
  16. package/dist/infrastructure/secrets/azure-keyvault-resolver.d.ts +20 -0
  17. package/dist/infrastructure/secrets/doppler-resolver.d.ts +22 -0
  18. package/dist/infrastructure/secrets/gcp-secret-resolver.d.ts +21 -0
  19. package/dist/infrastructure/secrets/hashicorp-vault-resolver.d.ts +25 -0
  20. package/dist/infrastructure/secrets/onepassword-resolver.d.ts +26 -0
  21. package/dist/infrastructure/secrets/secret-resolver-registry.d.ts +43 -0
  22. package/dist/infrastructure/test-suite/html-report-generator.d.ts +24 -1
  23. package/dist/infrastructure/test-suite/result-storage-service.d.ts +1 -1
  24. package/dist/infrastructure/test-suite/result-storage.d.ts +45 -3
  25. package/dist/types/environment-config.d.ts +16 -7
  26. package/dist/types/secret-resolver.d.ts +106 -0
  27. package/dist/types/types.d.ts +6 -0
  28. package/package.json +13 -1
package/README.md CHANGED
@@ -14,7 +14,8 @@
14
14
  - 📝 **JavaScript Scripting** - Pre-request and post-response scripts with full `pm.*` API (variables, assertions, execution flow, visualizer)
15
15
  - 🔄 **Dynamic Variables** - Built-in generators: `{{$randomInt}}`, `{{$timestamp}}`, `{{$uuid}}`, `{{$guid}}`, etc.
16
16
  - 🌍 **Environments** - Full variable scoping (globals, collection, environment, session, iterationData)
17
- - 👁️ **File Watching** - Automatic reload on collection/environment file changes with notification callbacks
17
+ - **Cloud Secret Resolvers** - Resolve `{{secret:alias/path}}` from AWS Secrets Manager, Azure Key Vault, Google Secret Manager, HashiCorp Vault, 1Password, and Doppler; credentials read from the ambient environment, never from config
18
+ - �👁️ **File Watching** - Automatic reload on collection/environment file changes with notification callbacks
18
19
  - 🍪 **Cookie Persistence** - Automatic cookie storage and reuse, `pm.cookies.jar()` and `.toObject()`
19
20
  - 📊 **Test Assertions** - BDD-style testing with `pm.test()` (sync/async) and full Chai `expect()` chains
20
21
  - 🔐 **CryptoJS** - Full crypto library: hash, HMAC, AES/DES/TripleDES, PBKDF2, encoding helpers
@@ -88,7 +88,7 @@ export declare class ServiceContainer {
88
88
  get scriptExecutor(): IScriptExecutor;
89
89
  get requestPreparer(): IRequestPreparer;
90
90
  get persistentCookieJar(): ICookieJar;
91
- get oauth2TokenManager(): IOAuth2TokenManager;
91
+ get oauth2TokenManager(): IOAuth2TokenManager | undefined;
92
92
  get graphqlSchemaService(): IGraphQLSchemaService;
93
93
  get testSuite(): ITestSuiteService;
94
94
  }
@@ -31,5 +31,6 @@ export declare const ServiceIdentifiers: {
31
31
  readonly SchemaInferenceService: symbol;
32
32
  readonly OpenApiExporter: symbol;
33
33
  readonly OpenApiImporter: symbol;
34
+ readonly SecretResolverRegistry: symbol;
34
35
  };
35
36
  export type ServiceIdentifier = typeof ServiceIdentifiers[keyof typeof ServiceIdentifiers] | string;
package/dist/index.d.ts CHANGED
@@ -76,7 +76,7 @@ export { ForgeEnv } from './infrastructure/environment/forge-env';
76
76
  export type { IForgeEnv } from './infrastructure/environment/forge-env';
77
77
  export { createVariableResolver, VariableInterpolator, VariableResolver } from './infrastructure/environment/variable-interpolator';
78
78
  export type { VariableResolverConfig } from './infrastructure/environment/variable-interpolator';
79
- export type { IEnvironmentConfigService, ResolvedEnvironment } from './types/environment-config';
79
+ export type { IEnvironmentConfigService, LocalConfig, ResolvedEnvironment, SharedConfig } from './types/environment-config';
80
80
  export { CollectionRequestExecutor } from './infrastructure/execution/collection-request-executor';
81
81
  export * from './infrastructure/execution/collection-request-executor-interfaces';
82
82
  export { RequestExecutor } from './infrastructure/execution/request-executor';
@@ -116,6 +116,14 @@ export { exportCollectionToRestClient, getRestClientExportFolder, writeEnvFile,
116
116
  export { DataFileParser } from './infrastructure/platform/data-file-parser';
117
117
  export type { IDataFileParser } from './infrastructure/platform/data-file-parser';
118
118
  export { NodeFileSystem } from './infrastructure/platform/node-file-system';
119
+ export { AwsSecretResolver } from './infrastructure/secrets/aws-secret-resolver';
120
+ export { AzureKeyVaultResolver } from './infrastructure/secrets/azure-keyvault-resolver';
121
+ export { DopplerResolver } from './infrastructure/secrets/doppler-resolver';
122
+ export { GcpSecretResolver } from './infrastructure/secrets/gcp-secret-resolver';
123
+ export { HashiCorpVaultResolver } from './infrastructure/secrets/hashicorp-vault-resolver';
124
+ export { OnePasswordResolver } from './infrastructure/secrets/onepassword-resolver';
125
+ export { SecretResolverRegistry } from './infrastructure/secrets/secret-resolver-registry';
126
+ export type { DopplerConfig, GcpSecretsConfig, ISecretResolver, SecretProviderConfig, SecretsConfig } from './types/secret-resolver';
119
127
  export { augmentWithDynamicVars, DYNAMIC_VARIABLES, resolveDynamicVariable, resolveDynamicVariablesInString } from './utils/dynamic-variables';
120
128
  export { evaluateExpression, isExpression } from './utils/expression-evaluator';
121
129
  export { applyFilterChain, parseFilterChain } from './utils/filter-engine';