@dereekb/nestjs 13.11.13 → 13.11.15

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 (65) hide show
  1. package/discord/index.cjs.js +37 -34
  2. package/discord/index.esm.js +36 -33
  3. package/discord/package.json +4 -4
  4. package/discord/src/lib/discord.api.d.ts +6 -6
  5. package/discord/src/lib/discord.api.page.d.ts +4 -4
  6. package/discord/src/lib/discord.config.d.ts +2 -2
  7. package/discord/src/lib/discord.module.d.ts +2 -2
  8. package/discord/src/lib/discord.util.d.ts +3 -3
  9. package/discord/src/lib/webhook/webhook.discord.d.ts +2 -2
  10. package/discord/src/lib/webhook/webhook.discord.module.d.ts +2 -2
  11. package/discord/src/lib/webhook/webhook.discord.verify.d.ts +2 -2
  12. package/eslint/index.cjs.js +142 -145
  13. package/eslint/index.esm.js +141 -144
  14. package/eslint/package.json +4 -4
  15. package/eslint/src/lib/index.d.ts +2 -2
  16. package/eslint/src/lib/plugin.d.ts +1 -1
  17. package/eslint/src/lib/require-inject.rule.d.ts +1 -1
  18. package/index.cjs.js +98 -112
  19. package/index.esm.js +98 -112
  20. package/mailgun/index.cjs.js +17 -13
  21. package/mailgun/index.esm.js +17 -13
  22. package/mailgun/package.json +6 -6
  23. package/mailgun/src/lib/mailgun.d.ts +7 -5
  24. package/mailgun/src/lib/mailgun.service.module.d.ts +4 -3
  25. package/mailgun/src/lib/mailgun.util.d.ts +6 -5
  26. package/openai/index.cjs.js +9 -9
  27. package/openai/index.esm.js +9 -9
  28. package/openai/package.json +6 -6
  29. package/openai/src/lib/openai.module.d.ts +2 -2
  30. package/openai/src/lib/openai.util.d.ts +3 -3
  31. package/openai/src/lib/webhook/webhook.openai.module.d.ts +2 -2
  32. package/openai/src/lib/webhook/webhook.openai.verify.d.ts +2 -2
  33. package/package.json +5 -5
  34. package/src/lib/asset/asset.loader.node.d.ts +3 -3
  35. package/src/lib/asset/asset.nest.d.ts +6 -5
  36. package/src/lib/decorators/local.decorator.d.ts +2 -2
  37. package/src/lib/decorators/rawbody.d.ts +7 -7
  38. package/src/lib/module/client/client.config.d.ts +2 -2
  39. package/src/lib/module/client/client.module.d.ts +3 -2
  40. package/src/lib/module/env/env.d.ts +1 -1
  41. package/src/lib/module/env/env.nest.d.ts +2 -2
  42. package/src/lib/module/module.d.ts +5 -5
  43. package/src/lib/util/encryption/json.encrypt.d.ts +18 -16
  44. package/src/lib/util/file/file.json.d.ts +2 -2
  45. package/src/lib/util/pdf/pdf.encryption.d.ts +3 -3
  46. package/stripe/index.cjs.js +13 -13
  47. package/stripe/index.esm.js +13 -13
  48. package/stripe/package.json +6 -6
  49. package/stripe/src/lib/stripe.api.d.ts +4 -4
  50. package/stripe/src/lib/stripe.module.d.ts +3 -3
  51. package/stripe/src/lib/webhook/webhook.stripe.d.ts +4 -4
  52. package/typeform/index.cjs.js +12 -12
  53. package/typeform/index.esm.js +12 -12
  54. package/typeform/package.json +6 -6
  55. package/typeform/src/lib/typeform.module.d.ts +2 -2
  56. package/typeform/src/lib/typeform.util.d.ts +2 -2
  57. package/typeform/src/lib/webhook/webhook.typeform.form.d.ts +4 -4
  58. package/typeform/src/lib/webhook/webhook.typeform.module.d.ts +2 -2
  59. package/typeform/src/lib/webhook/webhook.typeform.verify.d.ts +2 -2
  60. package/vapiai/index.cjs.js +6 -6
  61. package/vapiai/index.esm.js +6 -6
  62. package/vapiai/package.json +6 -6
  63. package/vapiai/src/lib/vapiai.module.d.ts +2 -2
  64. package/vapiai/src/lib/webhook/webhook.vapiai.module.d.ts +2 -2
  65. package/vapiai/src/lib/webhook/webhook.vapiai.verify.d.ts +2 -2
@@ -73,8 +73,8 @@ exports.StripeWebhookEventType = void 0;
73
73
  /**
74
74
  * Creates a StripeWebhookEvent and treats the data as the input type.
75
75
  *
76
- * @param event - the raw Stripe event
77
- * @returns a typed StripeWebhookEvent
76
+ * @param event - The raw Stripe event.
77
+ * @returns A typed StripeWebhookEvent.
78
78
  */ function stripeWebhookEvent(event) {
79
79
  return {
80
80
  event: event,
@@ -86,8 +86,8 @@ exports.StripeWebhookEventType = void 0;
86
86
  *
87
87
  * Use this when the event data object needs custom transformation before being wrapped in a StripeWebhookEvent.
88
88
  *
89
- * @param mapFn - function to transform the event data object
90
- * @returns a function that converts a raw Stripe.Event into a StripeWebhookEvent
89
+ * @param mapFn - Function to transform the event data object.
90
+ * @returns Mapper that converts a raw Stripe.Event into a StripeWebhookEvent using `mapFn`.
91
91
  */ function stripeWebhookEventMapper(mapFn) {
92
92
  return function(event) {
93
93
  return {
@@ -244,10 +244,10 @@ function _define_property$2(obj, key, value) {
244
244
  /**
245
245
  * Verifies the Stripe signature and constructs a Stripe.Event from an incoming webhook request.
246
246
  *
247
- * @param req - the incoming Express request containing the stripe-signature header
248
- * @param rawBody - the raw request body buffer required for signature verification
249
- * @returns the verified and parsed Stripe.Event
250
- * @throws {BadRequestException} when the stripe-signature header is missing or verification fails
247
+ * @param req - The incoming Express request containing the stripe-signature header.
248
+ * @param rawBody - The raw request body buffer required for signature verification.
249
+ * @returns The verified and parsed Stripe.Event.
250
+ * @throws {BadRequestException} When the stripe-signature header is missing or verification fails.
251
251
  */ key: "readStripeEventFromWebhookRequest",
252
252
  value: function readStripeEventFromWebhookRequest(req, rawBody) {
253
253
  var signature = req.get('stripe-signature');
@@ -696,21 +696,21 @@ function _class_call_check$1(instance, Constructor) {
696
696
  throw new TypeError("Cannot call a class as a function");
697
697
  }
698
698
  }
699
- var STRIPE_DEFAULT_API_VERSION = '2026-02-25.clover';
699
+ var DEFAULT_STRIPE_API_VERSION = '2026-02-25.clover';
700
700
  /**
701
701
  * Factory that creates a StripeServiceConfig from environment variables.
702
702
  *
703
703
  * Reads STRIPE_SECRET and STRIPE_WEBHOOK_SECRET from environment variables using the default API version.
704
704
  *
705
- * @param configService - NestJS config service for reading environment variables
706
- * @returns a validated StripeServiceConfig
705
+ * @param configService - NestJS config service for reading environment variables.
706
+ * @returns A validated StripeServiceConfig.
707
707
  */ function stripeServiceConfigFactory(configService) {
708
708
  var config = {
709
709
  stripe: {
710
710
  secret: configService.get('STRIPE_SECRET'),
711
711
  webhookSecret: configService.get('STRIPE_WEBHOOK_SECRET'),
712
712
  config: {
713
- apiVersion: STRIPE_DEFAULT_API_VERSION
713
+ apiVersion: DEFAULT_STRIPE_API_VERSION
714
714
  }
715
715
  }
716
716
  };
@@ -771,7 +771,7 @@ exports.StripeWebhookModule = __decorate([
771
771
  })
772
772
  ], exports.StripeWebhookModule);
773
773
 
774
- exports.STRIPE_DEFAULT_API_VERSION = STRIPE_DEFAULT_API_VERSION;
774
+ exports.DEFAULT_STRIPE_API_VERSION = DEFAULT_STRIPE_API_VERSION;
775
775
  exports.StripeServiceConfig = StripeServiceConfig;
776
776
  exports.stripeEventHandlerConfigurerFactory = stripeEventHandlerConfigurerFactory;
777
777
  exports.stripeEventHandlerFactory = stripeEventHandlerFactory;
@@ -71,8 +71,8 @@ var StripeWebhookEventType;
71
71
  /**
72
72
  * Creates a StripeWebhookEvent and treats the data as the input type.
73
73
  *
74
- * @param event - the raw Stripe event
75
- * @returns a typed StripeWebhookEvent
74
+ * @param event - The raw Stripe event.
75
+ * @returns A typed StripeWebhookEvent.
76
76
  */ function stripeWebhookEvent(event) {
77
77
  return {
78
78
  event: event,
@@ -84,8 +84,8 @@ var StripeWebhookEventType;
84
84
  *
85
85
  * Use this when the event data object needs custom transformation before being wrapped in a StripeWebhookEvent.
86
86
  *
87
- * @param mapFn - function to transform the event data object
88
- * @returns a function that converts a raw Stripe.Event into a StripeWebhookEvent
87
+ * @param mapFn - Function to transform the event data object.
88
+ * @returns Mapper that converts a raw Stripe.Event into a StripeWebhookEvent using `mapFn`.
89
89
  */ function stripeWebhookEventMapper(mapFn) {
90
90
  return function(event) {
91
91
  return {
@@ -242,10 +242,10 @@ function _define_property$2(obj, key, value) {
242
242
  /**
243
243
  * Verifies the Stripe signature and constructs a Stripe.Event from an incoming webhook request.
244
244
  *
245
- * @param req - the incoming Express request containing the stripe-signature header
246
- * @param rawBody - the raw request body buffer required for signature verification
247
- * @returns the verified and parsed Stripe.Event
248
- * @throws {BadRequestException} when the stripe-signature header is missing or verification fails
245
+ * @param req - The incoming Express request containing the stripe-signature header.
246
+ * @param rawBody - The raw request body buffer required for signature verification.
247
+ * @returns The verified and parsed Stripe.Event.
248
+ * @throws {BadRequestException} When the stripe-signature header is missing or verification fails.
249
249
  */ key: "readStripeEventFromWebhookRequest",
250
250
  value: function readStripeEventFromWebhookRequest(req, rawBody) {
251
251
  var signature = req.get('stripe-signature');
@@ -694,21 +694,21 @@ function _class_call_check$1(instance, Constructor) {
694
694
  throw new TypeError("Cannot call a class as a function");
695
695
  }
696
696
  }
697
- var STRIPE_DEFAULT_API_VERSION = '2026-02-25.clover';
697
+ var DEFAULT_STRIPE_API_VERSION = '2026-02-25.clover';
698
698
  /**
699
699
  * Factory that creates a StripeServiceConfig from environment variables.
700
700
  *
701
701
  * Reads STRIPE_SECRET and STRIPE_WEBHOOK_SECRET from environment variables using the default API version.
702
702
  *
703
- * @param configService - NestJS config service for reading environment variables
704
- * @returns a validated StripeServiceConfig
703
+ * @param configService - NestJS config service for reading environment variables.
704
+ * @returns A validated StripeServiceConfig.
705
705
  */ function stripeServiceConfigFactory(configService) {
706
706
  var config = {
707
707
  stripe: {
708
708
  secret: configService.get('STRIPE_SECRET'),
709
709
  webhookSecret: configService.get('STRIPE_WEBHOOK_SECRET'),
710
710
  config: {
711
- apiVersion: STRIPE_DEFAULT_API_VERSION
711
+ apiVersion: DEFAULT_STRIPE_API_VERSION
712
712
  }
713
713
  }
714
714
  };
@@ -769,4 +769,4 @@ StripeWebhookModule = __decorate([
769
769
  })
770
770
  ], StripeWebhookModule);
771
771
 
772
- export { STRIPE_DEFAULT_API_VERSION, StripeApi, StripeModule, StripeServiceConfig, StripeWebhookController, StripeWebhookEventType, StripeWebhookModule, StripeWebhookService, stripeEventHandlerConfigurerFactory, stripeEventHandlerFactory, stripeServiceConfigFactory, stripeWebhookEvent, stripeWebhookEventMapper };
772
+ export { DEFAULT_STRIPE_API_VERSION, StripeApi, StripeModule, StripeServiceConfig, StripeWebhookController, StripeWebhookEventType, StripeWebhookModule, StripeWebhookService, stripeEventHandlerConfigurerFactory, stripeEventHandlerFactory, stripeServiceConfigFactory, stripeWebhookEvent, stripeWebhookEventMapper };
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@dereekb/nestjs/stripe",
3
- "version": "13.11.13",
3
+ "version": "13.11.15",
4
4
  "peerDependencies": {
5
- "@dereekb/date": "13.11.13",
6
- "@dereekb/model": "13.11.13",
7
- "@dereekb/nestjs": "13.11.13",
8
- "@dereekb/rxjs": "13.11.13",
9
- "@dereekb/util": "13.11.13",
5
+ "@dereekb/date": "13.11.15",
6
+ "@dereekb/model": "13.11.15",
7
+ "@dereekb/nestjs": "13.11.15",
8
+ "@dereekb/rxjs": "13.11.15",
9
+ "@dereekb/util": "13.11.15",
10
10
  "@nestjs/common": "^11.1.19",
11
11
  "@nestjs/config": "^4.0.4",
12
12
  "express": "^5.2.1",
@@ -13,10 +13,10 @@ export declare class StripeApi {
13
13
  /**
14
14
  * Verifies the Stripe signature and constructs a Stripe.Event from an incoming webhook request.
15
15
  *
16
- * @param req - the incoming Express request containing the stripe-signature header
17
- * @param rawBody - the raw request body buffer required for signature verification
18
- * @returns the verified and parsed Stripe.Event
19
- * @throws {BadRequestException} when the stripe-signature header is missing or verification fails
16
+ * @param req - The incoming Express request containing the stripe-signature header.
17
+ * @param rawBody - The raw request body buffer required for signature verification.
18
+ * @returns The verified and parsed Stripe.Event.
19
+ * @throws {BadRequestException} When the stripe-signature header is missing or verification fails.
20
20
  */
21
21
  readStripeEventFromWebhookRequest(req: Request, rawBody: Buffer): Stripe.Event;
22
22
  }
@@ -1,14 +1,14 @@
1
1
  import { ConfigService } from '@nestjs/config';
2
2
  import { type Stripe } from 'stripe';
3
3
  import { StripeServiceConfig } from './stripe.config';
4
- export declare const STRIPE_DEFAULT_API_VERSION: Stripe.LatestApiVersion;
4
+ export declare const DEFAULT_STRIPE_API_VERSION: Stripe.LatestApiVersion;
5
5
  /**
6
6
  * Factory that creates a StripeServiceConfig from environment variables.
7
7
  *
8
8
  * Reads STRIPE_SECRET and STRIPE_WEBHOOK_SECRET from environment variables using the default API version.
9
9
  *
10
- * @param configService - NestJS config service for reading environment variables
11
- * @returns a validated StripeServiceConfig
10
+ * @param configService - NestJS config service for reading environment variables.
11
+ * @returns A validated StripeServiceConfig.
12
12
  */
13
13
  export declare function stripeServiceConfigFactory(configService: ConfigService): StripeServiceConfig;
14
14
  /**
@@ -33,8 +33,8 @@ export interface StripeWebhookEvent<T> {
33
33
  /**
34
34
  * Creates a StripeWebhookEvent and treats the data as the input type.
35
35
  *
36
- * @param event - the raw Stripe event
37
- * @returns a typed StripeWebhookEvent
36
+ * @param event - The raw Stripe event.
37
+ * @returns A typed StripeWebhookEvent.
38
38
  */
39
39
  export declare function stripeWebhookEvent<T>(event: Stripe.Event): StripeWebhookEvent<T>;
40
40
  /**
@@ -42,8 +42,8 @@ export declare function stripeWebhookEvent<T>(event: Stripe.Event): StripeWebhoo
42
42
  *
43
43
  * Use this when the event data object needs custom transformation before being wrapped in a StripeWebhookEvent.
44
44
  *
45
- * @param mapFn - function to transform the event data object
46
- * @returns a function that converts a raw Stripe.Event into a StripeWebhookEvent
45
+ * @param mapFn - Function to transform the event data object.
46
+ * @returns Mapper that converts a raw Stripe.Event into a StripeWebhookEvent using `mapFn`.
47
47
  */
48
48
  export declare function stripeWebhookEventMapper<T>(mapFn: (object: Stripe.Event.Data.Object, event: Stripe.Event) => T): (event: Stripe.Event) => StripeWebhookEvent<T>;
49
49
  export type StripeCheckoutSessionEventDataObject = Stripe.TypedEventDataObject<Stripe.Checkout.Session>;
@@ -279,8 +279,8 @@ function _ts_generator$2(thisArg, body) {
279
279
  /**
280
280
  * Verifies a Typeform webhook event header using HMAC-SHA256 signature verification.
281
281
  *
282
- * @param config - The verification config containing the Typeform webhook secret token.
283
- * @returns A function that verifies a Typeform webhook event.
282
+ * @param config - Verification config containing the Typeform webhook secret token.
283
+ * @returns Verifier function that validates each request's signature header.
284
284
  */ function typeFormWebhookEventVerifier(config) {
285
285
  var secret = config.secret;
286
286
  return function(request, _rawBody) {
@@ -764,8 +764,8 @@ function _class_call_check$3(instance, Constructor) {
764
764
  *
765
765
  * Reads the Typeform webhook secret token from environment variables for signature verification.
766
766
  *
767
- * @param configService - NestJS config service for reading environment variables
768
- * @returns a validated TypeformWebhookServiceConfig
767
+ * @param configService - NestJS config service for reading environment variables.
768
+ * @returns A validated TypeformWebhookServiceConfig.
769
769
  */ function typeFormWebhookServiceConfigFactory(configService) {
770
770
  var config = {
771
771
  typeformWebhook: {
@@ -811,8 +811,8 @@ exports.TypeformWebhookModule = __decorate([
811
811
  *
812
812
  * Returns an array of TypeformTemplateRef objects describing each match, its type, and its ref value.
813
813
  *
814
- * @param input - the string to search for template references
815
- * @returns an array of TypeformTemplateRef objects for each match found
814
+ * @param input - Source string to search for template references.
815
+ * @returns One TypeformTemplateRef per match, in left-to-right order.
816
816
  */ function findTypeformTemplateRefsInString(input) {
817
817
  /**
818
818
  * Used to search the input string to find field refs like the following:
@@ -904,8 +904,8 @@ function _object_spread_props(target, source) {
904
904
  *
905
905
  * Pairs each answer with its definition field and expands any field reference templates in question titles.
906
906
  *
907
- * @param formResponse - the raw Typeform webhook form response to expand
908
- * @returns an ExpandedTypeformWebhookFormResponse with the original response and paired question/answer data
907
+ * @param formResponse - The raw Typeform webhook form response to expand.
908
+ * @returns An ExpandedTypeformWebhookFormResponse with the original response and paired question/answer data.
909
909
  */ function expandTypeformWebhookFormResponse(formResponse) {
910
910
  var answers = formResponse.answers, definition = formResponse.definition;
911
911
  var _definition_fields = definition.fields, fields = _definition_fields === void 0 ? [] : _definition_fields;
@@ -966,8 +966,8 @@ function _object_spread_props(target, source) {
966
966
  *
967
967
  * Extracts the typed value and a string representation based on the answer type.
968
968
  *
969
- * @param answer - the raw Typeform form response answer to convert
970
- * @returns a TypeformFormResponseAnswerValuePair containing the answer, its typed value, and a string representation
969
+ * @param answer - The raw Typeform form response answer to convert.
970
+ * @returns A TypeformFormResponseAnswerValuePair containing the answer, its typed value, and a string representation.
971
971
  */ function makeTypeformFormResponseAnswerValuePair(answer) {
972
972
  var value;
973
973
  var valueString;
@@ -1123,8 +1123,8 @@ function _class_call_check(instance, Constructor) {
1123
1123
  *
1124
1124
  * Reads the Typeform API token and optional base URL from environment variables.
1125
1125
  *
1126
- * @param configService - NestJS config service for reading environment variables
1127
- * @returns a validated TypeformServiceConfig
1126
+ * @param configService - NestJS config service for reading environment variables.
1127
+ * @returns A validated TypeformServiceConfig.
1128
1128
  */ function typeFormServiceConfigFactory(configService) {
1129
1129
  var _configService_get;
1130
1130
  var config = {
@@ -277,8 +277,8 @@ function _ts_generator$2(thisArg, body) {
277
277
  /**
278
278
  * Verifies a Typeform webhook event header using HMAC-SHA256 signature verification.
279
279
  *
280
- * @param config - The verification config containing the Typeform webhook secret token.
281
- * @returns A function that verifies a Typeform webhook event.
280
+ * @param config - Verification config containing the Typeform webhook secret token.
281
+ * @returns Verifier function that validates each request's signature header.
282
282
  */ function typeFormWebhookEventVerifier(config) {
283
283
  var secret = config.secret;
284
284
  return function(request, _rawBody) {
@@ -762,8 +762,8 @@ function _class_call_check$3(instance, Constructor) {
762
762
  *
763
763
  * Reads the Typeform webhook secret token from environment variables for signature verification.
764
764
  *
765
- * @param configService - NestJS config service for reading environment variables
766
- * @returns a validated TypeformWebhookServiceConfig
765
+ * @param configService - NestJS config service for reading environment variables.
766
+ * @returns A validated TypeformWebhookServiceConfig.
767
767
  */ function typeFormWebhookServiceConfigFactory(configService) {
768
768
  var config = {
769
769
  typeformWebhook: {
@@ -809,8 +809,8 @@ TypeformWebhookModule = __decorate([
809
809
  *
810
810
  * Returns an array of TypeformTemplateRef objects describing each match, its type, and its ref value.
811
811
  *
812
- * @param input - the string to search for template references
813
- * @returns an array of TypeformTemplateRef objects for each match found
812
+ * @param input - Source string to search for template references.
813
+ * @returns One TypeformTemplateRef per match, in left-to-right order.
814
814
  */ function findTypeformTemplateRefsInString(input) {
815
815
  /**
816
816
  * Used to search the input string to find field refs like the following:
@@ -902,8 +902,8 @@ function _object_spread_props(target, source) {
902
902
  *
903
903
  * Pairs each answer with its definition field and expands any field reference templates in question titles.
904
904
  *
905
- * @param formResponse - the raw Typeform webhook form response to expand
906
- * @returns an ExpandedTypeformWebhookFormResponse with the original response and paired question/answer data
905
+ * @param formResponse - The raw Typeform webhook form response to expand.
906
+ * @returns An ExpandedTypeformWebhookFormResponse with the original response and paired question/answer data.
907
907
  */ function expandTypeformWebhookFormResponse(formResponse) {
908
908
  var answers = formResponse.answers, definition = formResponse.definition;
909
909
  var _definition_fields = definition.fields, fields = _definition_fields === void 0 ? [] : _definition_fields;
@@ -964,8 +964,8 @@ function _object_spread_props(target, source) {
964
964
  *
965
965
  * Extracts the typed value and a string representation based on the answer type.
966
966
  *
967
- * @param answer - the raw Typeform form response answer to convert
968
- * @returns a TypeformFormResponseAnswerValuePair containing the answer, its typed value, and a string representation
967
+ * @param answer - The raw Typeform form response answer to convert.
968
+ * @returns A TypeformFormResponseAnswerValuePair containing the answer, its typed value, and a string representation.
969
969
  */ function makeTypeformFormResponseAnswerValuePair(answer) {
970
970
  var value;
971
971
  var valueString;
@@ -1121,8 +1121,8 @@ function _class_call_check(instance, Constructor) {
1121
1121
  *
1122
1122
  * Reads the Typeform API token and optional base URL from environment variables.
1123
1123
  *
1124
- * @param configService - NestJS config service for reading environment variables
1125
- * @returns a validated TypeformServiceConfig
1124
+ * @param configService - NestJS config service for reading environment variables.
1125
+ * @returns A validated TypeformServiceConfig.
1126
1126
  */ function typeFormServiceConfigFactory(configService) {
1127
1127
  var _configService_get;
1128
1128
  var config = {
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@dereekb/nestjs/typeform",
3
- "version": "13.11.13",
3
+ "version": "13.11.15",
4
4
  "peerDependencies": {
5
- "@dereekb/date": "13.11.13",
6
- "@dereekb/model": "13.11.13",
7
- "@dereekb/nestjs": "13.11.13",
8
- "@dereekb/rxjs": "13.11.13",
9
- "@dereekb/util": "13.11.13",
5
+ "@dereekb/date": "13.11.15",
6
+ "@dereekb/model": "13.11.15",
7
+ "@dereekb/nestjs": "13.11.15",
8
+ "@dereekb/rxjs": "13.11.15",
9
+ "@dereekb/util": "13.11.15",
10
10
  "@nestjs/common": "^11.1.19",
11
11
  "@nestjs/config": "^4.0.4",
12
12
  "@typeform/api-client": "^2.10.2",
@@ -5,8 +5,8 @@ import { TypeformServiceConfig } from './typeform.config';
5
5
  *
6
6
  * Reads the Typeform API token and optional base URL from environment variables.
7
7
  *
8
- * @param configService - NestJS config service for reading environment variables
9
- * @returns a validated TypeformServiceConfig
8
+ * @param configService - NestJS config service for reading environment variables.
9
+ * @returns A validated TypeformServiceConfig.
10
10
  */
11
11
  export declare function typeFormServiceConfigFactory(configService: ConfigService): TypeformServiceConfig;
12
12
  /**
@@ -22,7 +22,7 @@ export interface TypeformTemplateRef {
22
22
  *
23
23
  * Returns an array of TypeformTemplateRef objects describing each match, its type, and its ref value.
24
24
  *
25
- * @param input - the string to search for template references
26
- * @returns an array of TypeformTemplateRef objects for each match found
25
+ * @param input - Source string to search for template references.
26
+ * @returns One TypeformTemplateRef per match, in left-to-right order.
27
27
  */
28
28
  export declare function findTypeformTemplateRefsInString(input: string): TypeformTemplateRef[];
@@ -43,8 +43,8 @@ export interface ExpandedTypeformWebhookFormResponse {
43
43
  *
44
44
  * Pairs each answer with its definition field and expands any field reference templates in question titles.
45
45
  *
46
- * @param formResponse - the raw Typeform webhook form response to expand
47
- * @returns an ExpandedTypeformWebhookFormResponse with the original response and paired question/answer data
46
+ * @param formResponse - The raw Typeform webhook form response to expand.
47
+ * @returns An ExpandedTypeformWebhookFormResponse with the original response and paired question/answer data.
48
48
  */
49
49
  export declare function expandTypeformWebhookFormResponse(formResponse: TypeformWebhookFormResponse): ExpandedTypeformWebhookFormResponse;
50
50
  /**
@@ -52,7 +52,7 @@ export declare function expandTypeformWebhookFormResponse(formResponse: Typeform
52
52
  *
53
53
  * Extracts the typed value and a string representation based on the answer type.
54
54
  *
55
- * @param answer - the raw Typeform form response answer to convert
56
- * @returns a TypeformFormResponseAnswerValuePair containing the answer, its typed value, and a string representation
55
+ * @param answer - The raw Typeform form response answer to convert.
56
+ * @returns A TypeformFormResponseAnswerValuePair containing the answer, its typed value, and a string representation.
57
57
  */
58
58
  export declare function makeTypeformFormResponseAnswerValuePair(answer: TypeformFormResponseAnswer): TypeformFormResponseAnswerValuePair;
@@ -5,8 +5,8 @@ import { ConfigService } from '@nestjs/config';
5
5
  *
6
6
  * Reads the Typeform webhook secret token from environment variables for signature verification.
7
7
  *
8
- * @param configService - NestJS config service for reading environment variables
9
- * @returns a validated TypeformWebhookServiceConfig
8
+ * @param configService - NestJS config service for reading environment variables.
9
+ * @returns A validated TypeformWebhookServiceConfig.
10
10
  */
11
11
  export declare function typeFormWebhookServiceConfigFactory(configService: ConfigService): TypeformWebhookServiceConfig;
12
12
  /**
@@ -24,7 +24,7 @@ export type TypeformWebhookEventVerifier = (req: Request, rawBody: Buffer) => Pr
24
24
  /**
25
25
  * Verifies a Typeform webhook event header using HMAC-SHA256 signature verification.
26
26
  *
27
- * @param config - The verification config containing the Typeform webhook secret token.
28
- * @returns A function that verifies a Typeform webhook event.
27
+ * @param config - Verification config containing the Typeform webhook secret token.
28
+ * @returns Verifier function that validates each request's signature header.
29
29
  */
30
30
  export declare function typeFormWebhookEventVerifier(config: TypeformWebhookEventVerificationConfig): TypeformWebhookEventVerifier;
@@ -241,8 +241,8 @@ function _ts_generator$2(thisArg, body) {
241
241
  *
242
242
  * Supports secret token, HMAC SHA-256, and no-op verification modes based on the provided configuration.
243
243
  *
244
- * @param config - the verification configuration including secret tokens, verification type, and signature prefix
245
- * @returns a VapiAiWebhookEventVerifier function that validates incoming webhook requests
244
+ * @param config - The verification configuration including secret tokens, verification type, and signature prefix.
245
+ * @returns A VapiAiWebhookEventVerifier function that validates incoming webhook requests.
246
246
  */ function vapiAiWebhookEventVerifier(config) {
247
247
  var _ref;
248
248
  var inputVerificationType = config.verificationType, inputSecret = config.secret, inputHmacSecret = config.hmacSecret, inputSignaturePrefix = config.signaturePrefix;
@@ -834,8 +834,8 @@ function _class_call_check$3(instance, Constructor) {
834
834
  *
835
835
  * Reads the webhook secret, HMAC secret, verification type, and signature prefix from environment variables.
836
836
  *
837
- * @param configService - NestJS config service for reading environment variables
838
- * @returns a validated VapiAiWebhookServiceConfig
837
+ * @param configService - NestJS config service for reading environment variables.
838
+ * @returns A validated VapiAiWebhookServiceConfig.
839
839
  */ function vapiaiWebhookServiceConfigFactory(configService) {
840
840
  var config = {
841
841
  webhookConfig: {
@@ -1004,8 +1004,8 @@ function _class_call_check(instance, Constructor) {
1004
1004
  *
1005
1005
  * Reads the Vapi AI secret token from environment variables.
1006
1006
  *
1007
- * @param configService - NestJS config service for reading environment variables
1008
- * @returns a validated VapiAiServiceConfig
1007
+ * @param configService - NestJS config service for reading environment variables.
1008
+ * @returns A validated VapiAiServiceConfig.
1009
1009
  */ function vapiaiServiceConfigFactory(configService) {
1010
1010
  var config = {
1011
1011
  vapiai: {
@@ -239,8 +239,8 @@ function _ts_generator$2(thisArg, body) {
239
239
  *
240
240
  * Supports secret token, HMAC SHA-256, and no-op verification modes based on the provided configuration.
241
241
  *
242
- * @param config - the verification configuration including secret tokens, verification type, and signature prefix
243
- * @returns a VapiAiWebhookEventVerifier function that validates incoming webhook requests
242
+ * @param config - The verification configuration including secret tokens, verification type, and signature prefix.
243
+ * @returns A VapiAiWebhookEventVerifier function that validates incoming webhook requests.
244
244
  */ function vapiAiWebhookEventVerifier(config) {
245
245
  var _ref;
246
246
  var inputVerificationType = config.verificationType, inputSecret = config.secret, inputHmacSecret = config.hmacSecret, inputSignaturePrefix = config.signaturePrefix;
@@ -832,8 +832,8 @@ function _class_call_check$3(instance, Constructor) {
832
832
  *
833
833
  * Reads the webhook secret, HMAC secret, verification type, and signature prefix from environment variables.
834
834
  *
835
- * @param configService - NestJS config service for reading environment variables
836
- * @returns a validated VapiAiWebhookServiceConfig
835
+ * @param configService - NestJS config service for reading environment variables.
836
+ * @returns A validated VapiAiWebhookServiceConfig.
837
837
  */ function vapiaiWebhookServiceConfigFactory(configService) {
838
838
  var config = {
839
839
  webhookConfig: {
@@ -1002,8 +1002,8 @@ function _class_call_check(instance, Constructor) {
1002
1002
  *
1003
1003
  * Reads the Vapi AI secret token from environment variables.
1004
1004
  *
1005
- * @param configService - NestJS config service for reading environment variables
1006
- * @returns a validated VapiAiServiceConfig
1005
+ * @param configService - NestJS config service for reading environment variables.
1006
+ * @returns A validated VapiAiServiceConfig.
1007
1007
  */ function vapiaiServiceConfigFactory(configService) {
1008
1008
  var config = {
1009
1009
  vapiai: {
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@dereekb/nestjs/vapiai",
3
- "version": "13.11.13",
3
+ "version": "13.11.15",
4
4
  "peerDependencies": {
5
- "@dereekb/date": "13.11.13",
6
- "@dereekb/model": "13.11.13",
7
- "@dereekb/nestjs": "13.11.13",
8
- "@dereekb/rxjs": "13.11.13",
9
- "@dereekb/util": "13.11.13",
5
+ "@dereekb/date": "13.11.15",
6
+ "@dereekb/model": "13.11.15",
7
+ "@dereekb/nestjs": "13.11.15",
8
+ "@dereekb/rxjs": "13.11.15",
9
+ "@dereekb/util": "13.11.15",
10
10
  "@nestjs/common": "^11.1.19",
11
11
  "@nestjs/config": "^4.0.4",
12
12
  "@vapi-ai/server-sdk": "^0.11.0",
@@ -5,8 +5,8 @@ import { VapiAiServiceConfig } from './vapiai.config';
5
5
  *
6
6
  * Reads the Vapi AI secret token from environment variables.
7
7
  *
8
- * @param configService - NestJS config service for reading environment variables
9
- * @returns a validated VapiAiServiceConfig
8
+ * @param configService - NestJS config service for reading environment variables.
9
+ * @returns A validated VapiAiServiceConfig.
10
10
  */
11
11
  export declare function vapiaiServiceConfigFactory(configService: ConfigService): VapiAiServiceConfig;
12
12
  /**
@@ -5,8 +5,8 @@ import { ConfigService } from '@nestjs/config';
5
5
  *
6
6
  * Reads the webhook secret, HMAC secret, verification type, and signature prefix from environment variables.
7
7
  *
8
- * @param configService - NestJS config service for reading environment variables
9
- * @returns a validated VapiAiWebhookServiceConfig
8
+ * @param configService - NestJS config service for reading environment variables.
9
+ * @returns A validated VapiAiWebhookServiceConfig.
10
10
  */
11
11
  export declare function vapiaiWebhookServiceConfigFactory(configService: ConfigService): VapiAiWebhookServiceConfig;
12
12
  /**
@@ -41,7 +41,7 @@ export type VapiAiWebhookEventVerifier = (req: Request, rawBody: Buffer) => Prom
41
41
  *
42
42
  * Supports secret token, HMAC SHA-256, and no-op verification modes based on the provided configuration.
43
43
  *
44
- * @param config - the verification configuration including secret tokens, verification type, and signature prefix
45
- * @returns a VapiAiWebhookEventVerifier function that validates incoming webhook requests
44
+ * @param config - The verification configuration including secret tokens, verification type, and signature prefix.
45
+ * @returns A VapiAiWebhookEventVerifier function that validates incoming webhook requests.
46
46
  */
47
47
  export declare function vapiAiWebhookEventVerifier(config: VapiApiWebhookEventVerificationConfig): VapiAiWebhookEventVerifier;