@plyaz/api 1.2.2 → 1.4.0

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 (170) hide show
  1. package/dist/api/client/clientEventManager.d.ts +8 -2
  2. package/dist/api/client/clientEventManager.d.ts.map +1 -1
  3. package/dist/api/client/createApiClient.d.ts.map +1 -1
  4. package/dist/api/client/helpers/interceptors.d.ts +2 -2
  5. package/dist/api/client/helpers/interceptors.d.ts.map +1 -1
  6. package/dist/api/config/global.d.ts.map +1 -1
  7. package/dist/api/debugger/DebugReport.d.ts.map +1 -1
  8. package/dist/api/debugger/UnifiedDebugger.d.ts.map +1 -1
  9. package/dist/api/debugger/queue/DebuggerQueueManager.d.ts.map +1 -1
  10. package/dist/api/debugger/queue/OperationTracker.d.ts.map +1 -1
  11. package/dist/api/endpoints/campaigns.d.ts.map +1 -1
  12. package/dist/api/endpoints/cdn.d.ts +122 -0
  13. package/dist/api/endpoints/cdn.d.ts.map +1 -0
  14. package/dist/api/endpoints/index.d.ts +89 -4
  15. package/dist/api/endpoints/index.d.ts.map +1 -1
  16. package/dist/api/endpoints/infobip.d.ts +209 -0
  17. package/dist/api/endpoints/infobip.d.ts.map +1 -0
  18. package/dist/api/endpoints/virustotal.d.ts +91 -0
  19. package/dist/api/endpoints/virustotal.d.ts.map +1 -0
  20. package/dist/api/errors/adapter.d.ts +71 -0
  21. package/dist/api/errors/adapter.d.ts.map +1 -0
  22. package/dist/api/errors/index.d.ts +3 -15
  23. package/dist/api/errors/index.d.ts.map +1 -1
  24. package/dist/api/events/EventManager.d.ts.map +1 -1
  25. package/dist/api/events/factories/base.d.ts +11 -3
  26. package/dist/api/events/factories/base.d.ts.map +1 -1
  27. package/dist/api/events/factories/errors.d.ts +10 -10
  28. package/dist/api/events/factories/errors.d.ts.map +1 -1
  29. package/dist/api/events/queue/ConfigUpdateQueueManager.d.ts.map +1 -1
  30. package/dist/api/events/queue/EventQueueManager.d.ts.map +1 -1
  31. package/dist/api/headers/headerBuilder.d.ts.map +1 -1
  32. package/dist/api/hooks/factories/createApiMutation.d.ts +3 -3
  33. package/dist/api/hooks/factories/createApiMutation.d.ts.map +1 -1
  34. package/dist/api/hooks/factories/createApiQuery.d.ts +3 -3
  35. package/dist/api/hooks/factories/createApiQuery.d.ts.map +1 -1
  36. package/dist/api/hooks/index.d.ts +0 -1
  37. package/dist/api/hooks/index.d.ts.map +1 -1
  38. package/dist/api/index.d.ts +1 -1
  39. package/dist/api/index.d.ts.map +1 -1
  40. package/dist/api/network/frameworks/express.d.ts.map +1 -1
  41. package/dist/api/network/frameworks/nestjs/decorators.d.ts +9 -1
  42. package/dist/api/network/frameworks/nestjs/decorators.d.ts.map +1 -1
  43. package/dist/api/network/frameworks/nestjs/enrichedHeadersGuard.d.ts.map +1 -1
  44. package/dist/api/network/frameworks/nestjs/enrichedHeadersInterceptor.d.ts.map +1 -1
  45. package/dist/api/network/networkConfigurationManager.d.ts.map +1 -1
  46. package/dist/api/network/status.d.ts +1 -4
  47. package/dist/api/network/status.d.ts.map +1 -1
  48. package/dist/api/performance/performanceMonitor.d.ts.map +1 -1
  49. package/dist/api/polling/index.d.ts +1 -1
  50. package/dist/api/polling/index.d.ts.map +1 -1
  51. package/dist/api/polling/strategies.d.ts +1 -5
  52. package/dist/api/polling/strategies.d.ts.map +1 -1
  53. package/dist/api/polling/utils.d.ts.map +1 -1
  54. package/dist/api/pubsub/index.d.ts.map +1 -1
  55. package/dist/api/pubsub/react.d.ts +6 -10
  56. package/dist/api/pubsub/react.d.ts.map +1 -1
  57. package/dist/api/queue/BaseOperationTracker.d.ts.map +1 -1
  58. package/dist/api/queue/EventQueueManager.d.ts.map +1 -1
  59. package/dist/api/queue/QueueOrchestrator.d.ts.map +1 -1
  60. package/dist/api/services/campaigns/GET/useCampaign.d.ts +1 -1
  61. package/dist/api/services/campaigns/GET/useCampaign.d.ts.map +1 -1
  62. package/dist/api/services/campaigns/GET/useCampaignParticipants.d.ts +1 -11
  63. package/dist/api/services/campaigns/GET/useCampaignParticipants.d.ts.map +1 -1
  64. package/dist/api/services/campaigns/GET/useCampaignStats.d.ts +1 -1
  65. package/dist/api/services/campaigns/GET/useCampaignStats.d.ts.map +1 -1
  66. package/dist/api/services/campaigns/GET/useCampaigns.d.ts +1 -1
  67. package/dist/api/services/campaigns/GET/useCampaigns.d.ts.map +1 -1
  68. package/dist/api/services/campaigns/PUT/useUpdateCampaign.d.ts +1 -9
  69. package/dist/api/services/campaigns/PUT/useUpdateCampaign.d.ts.map +1 -1
  70. package/dist/api/services/cdn/cloudflare/POST/cloudflarePurgeCache.d.ts +35 -0
  71. package/dist/api/services/cdn/cloudflare/POST/cloudflarePurgeCache.d.ts.map +1 -0
  72. package/dist/api/services/cdn/cloudflare/POST/index.d.ts +5 -0
  73. package/dist/api/services/cdn/cloudflare/POST/index.d.ts.map +1 -0
  74. package/dist/api/services/cdn/cloudflare/index.d.ts +5 -0
  75. package/dist/api/services/cdn/cloudflare/index.d.ts.map +1 -0
  76. package/dist/api/services/cdn/cloudfront/POST/cloudFrontCreateInvalidation.d.ts +38 -0
  77. package/dist/api/services/cdn/cloudfront/POST/cloudFrontCreateInvalidation.d.ts.map +1 -0
  78. package/dist/api/services/cdn/cloudfront/POST/index.d.ts +5 -0
  79. package/dist/api/services/cdn/cloudfront/POST/index.d.ts.map +1 -0
  80. package/dist/api/services/cdn/cloudfront/index.d.ts +5 -0
  81. package/dist/api/services/cdn/cloudfront/index.d.ts.map +1 -0
  82. package/dist/api/services/cdn/fastly/POST/fastlyPurgeUrl.d.ts +35 -0
  83. package/dist/api/services/cdn/fastly/POST/fastlyPurgeUrl.d.ts.map +1 -0
  84. package/dist/api/services/cdn/fastly/POST/index.d.ts +5 -0
  85. package/dist/api/services/cdn/fastly/POST/index.d.ts.map +1 -0
  86. package/dist/api/services/cdn/fastly/index.d.ts +5 -0
  87. package/dist/api/services/cdn/fastly/index.d.ts.map +1 -0
  88. package/dist/api/services/cdn/index.d.ts +8 -0
  89. package/dist/api/services/cdn/index.d.ts.map +1 -0
  90. package/dist/api/services/index.d.ts +3 -0
  91. package/dist/api/services/index.d.ts.map +1 -1
  92. package/dist/api/services/infobip/email/GET/fetchEmailLogs.d.ts +50 -0
  93. package/dist/api/services/infobip/email/GET/fetchEmailLogs.d.ts.map +1 -0
  94. package/dist/api/services/infobip/email/GET/fetchEmailReports.d.ts +44 -0
  95. package/dist/api/services/infobip/email/GET/fetchEmailReports.d.ts.map +1 -0
  96. package/dist/api/services/infobip/email/GET/fetchScheduledEmailStatuses.d.ts +28 -0
  97. package/dist/api/services/infobip/email/GET/fetchScheduledEmailStatuses.d.ts.map +1 -0
  98. package/dist/api/services/infobip/email/GET/fetchScheduledEmails.d.ts +27 -0
  99. package/dist/api/services/infobip/email/GET/fetchScheduledEmails.d.ts.map +1 -0
  100. package/dist/api/services/infobip/email/GET/fetchValidations.d.ts +60 -0
  101. package/dist/api/services/infobip/email/GET/fetchValidations.d.ts.map +1 -0
  102. package/dist/api/services/infobip/email/GET/index.d.ts +10 -0
  103. package/dist/api/services/infobip/email/GET/index.d.ts.map +1 -0
  104. package/dist/api/services/infobip/email/POST/bulkValidateEmails.d.ts +50 -0
  105. package/dist/api/services/infobip/email/POST/bulkValidateEmails.d.ts.map +1 -0
  106. package/dist/api/services/infobip/email/POST/index.d.ts +9 -0
  107. package/dist/api/services/infobip/email/POST/index.d.ts.map +1 -0
  108. package/dist/api/services/infobip/email/POST/sendAdvancedEmail.d.ts +67 -0
  109. package/dist/api/services/infobip/email/POST/sendAdvancedEmail.d.ts.map +1 -0
  110. package/dist/api/services/infobip/email/POST/sendEmail.d.ts +60 -0
  111. package/dist/api/services/infobip/email/POST/sendEmail.d.ts.map +1 -0
  112. package/dist/api/services/infobip/email/POST/validateEmail.d.ts +40 -0
  113. package/dist/api/services/infobip/email/POST/validateEmail.d.ts.map +1 -0
  114. package/dist/api/services/infobip/email/PUT/index.d.ts +7 -0
  115. package/dist/api/services/infobip/email/PUT/index.d.ts.map +1 -0
  116. package/dist/api/services/infobip/email/PUT/rescheduleEmails.d.ts +29 -0
  117. package/dist/api/services/infobip/email/PUT/rescheduleEmails.d.ts.map +1 -0
  118. package/dist/api/services/infobip/email/PUT/updateScheduledEmailStatuses.d.ts +36 -0
  119. package/dist/api/services/infobip/email/PUT/updateScheduledEmailStatuses.d.ts.map +1 -0
  120. package/dist/api/services/infobip/email/index.d.ts +8 -0
  121. package/dist/api/services/infobip/email/index.d.ts.map +1 -0
  122. package/dist/api/services/infobip/index.d.ts +6 -0
  123. package/dist/api/services/infobip/index.d.ts.map +1 -0
  124. package/dist/api/services/virustotal/analyses/GET/getAnalysisResult.d.ts +35 -0
  125. package/dist/api/services/virustotal/analyses/GET/getAnalysisResult.d.ts.map +1 -0
  126. package/dist/api/services/virustotal/analyses/GET/index.d.ts +6 -0
  127. package/dist/api/services/virustotal/analyses/GET/index.d.ts.map +1 -0
  128. package/dist/api/services/virustotal/analyses/index.d.ts +6 -0
  129. package/dist/api/services/virustotal/analyses/index.d.ts.map +1 -0
  130. package/dist/api/services/virustotal/files/POST/index.d.ts +6 -0
  131. package/dist/api/services/virustotal/files/POST/index.d.ts.map +1 -0
  132. package/dist/api/services/virustotal/files/POST/uploadFileForScanning.d.ts +36 -0
  133. package/dist/api/services/virustotal/files/POST/uploadFileForScanning.d.ts.map +1 -0
  134. package/dist/api/services/virustotal/files/index.d.ts +6 -0
  135. package/dist/api/services/virustotal/files/index.d.ts.map +1 -0
  136. package/dist/api/services/virustotal/index.d.ts +8 -0
  137. package/dist/api/services/virustotal/index.d.ts.map +1 -0
  138. package/dist/api/utils/aws/index.d.ts +7 -0
  139. package/dist/api/utils/aws/index.d.ts.map +1 -0
  140. package/dist/api/utils/aws/signature-v4.d.ts +41 -0
  141. package/dist/api/utils/aws/signature-v4.d.ts.map +1 -0
  142. package/dist/api/utils/aws/xml/cloudfront.d.ts +37 -0
  143. package/dist/api/utils/aws/xml/cloudfront.d.ts.map +1 -0
  144. package/dist/api/utils/aws/xml/index.d.ts +6 -0
  145. package/dist/api/utils/aws/xml/index.d.ts.map +1 -0
  146. package/dist/api/utils/index.d.ts +0 -3
  147. package/dist/api/utils/index.d.ts.map +1 -1
  148. package/dist/index.cjs +1586 -1384
  149. package/dist/index.cjs.map +1 -1
  150. package/dist/index.mjs +1522 -1354
  151. package/dist/index.mjs.map +1 -1
  152. package/package.json +7 -5
  153. package/dist/api/errors/ApiPackageError.d.ts +0 -101
  154. package/dist/api/errors/ApiPackageError.d.ts.map +0 -1
  155. package/dist/api/errors/definitions.d.ts +0 -24
  156. package/dist/api/errors/definitions.d.ts.map +0 -1
  157. package/dist/api/errors/error-codes.d.ts +0 -116
  158. package/dist/api/errors/error-codes.d.ts.map +0 -1
  159. package/dist/api/errors/error-events.d.ts +0 -63
  160. package/dist/api/errors/error-events.d.ts.map +0 -1
  161. package/dist/api/errors/types-constants.d.ts +0 -64
  162. package/dist/api/errors/types-constants.d.ts.map +0 -1
  163. package/dist/api/hooks/types.d.ts +0 -82
  164. package/dist/api/hooks/types.d.ts.map +0 -1
  165. package/dist/api/utils/generation/correlation-id.d.ts +0 -206
  166. package/dist/api/utils/generation/correlation-id.d.ts.map +0 -1
  167. package/dist/api/utils/generation/id-generator.d.ts +0 -133
  168. package/dist/api/utils/generation/id-generator.d.ts.map +0 -1
  169. package/dist/api/utils/generation/request-id.d.ts +0 -106
  170. package/dist/api/utils/generation/request-id.d.ts.map +0 -1
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Get Bulk Status via Infobip Service
3
+ * Retrieves status of a scheduled email bulk
4
+ *
5
+ * @see https://www.infobip.com/docs/api/channels/email/email-message-scheduling
6
+ */
7
+ import type { ServiceOptions } from '@plyaz/types/api';
8
+ import type { EndpointsList } from '@/api/endpoints';
9
+ import type { FetchResponse } from 'fetchff';
10
+ import type { InfobipGetScheduledEmailStatusesParams } from '@plyaz/types/api';
11
+ /**
12
+ * Get scheduled email statuses from Infobip
13
+ * Uses endpoint: GET /email/1/bulks/status
14
+ *
15
+ * @param params - Query parameters (bulkId required)
16
+ * @param options - Optional service options
17
+ * @returns Promise<FetchResponse> with InfobipGetScheduledEmailStatusesResponse
18
+ *
19
+ * @example
20
+ * ```typescript
21
+ * const status = await fetchInfobipScheduledEmailStatuses({
22
+ * bulkId: 'bulk-123'
23
+ * });
24
+ * console.log(status.data.status); // 'PENDING', 'PROCESSING', etc.
25
+ * ```
26
+ */
27
+ export declare function fetchInfobipScheduledEmailStatuses<TEndpoints = EndpointsList>(params: InfobipGetScheduledEmailStatusesParams, options?: ServiceOptions<TEndpoints>): Promise<FetchResponse>;
28
+ //# sourceMappingURL=fetchScheduledEmailStatuses.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetchScheduledEmailStatuses.d.ts","sourceRoot":"","sources":["../../../../../../src/api/services/infobip/email/GET/fetchScheduledEmailStatuses.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,KAAK,EAAE,sCAAsC,EAAE,MAAM,kBAAkB,CAAC;AAE/E;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,kCAAkC,CAAC,UAAU,GAAG,aAAa,EACjF,MAAM,EAAE,sCAAsC,EAC9C,OAAO,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,GACnC,OAAO,CAAC,aAAa,CAAC,CAuBxB"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Get Scheduled Email Bulks via Infobip Service
3
+ * Retrieves information about scheduled email bulks
4
+ *
5
+ * @see https://www.infobip.com/docs/api/channels/email/email-message-scheduling
6
+ */
7
+ import type { ServiceOptions } from '@plyaz/types/api';
8
+ import type { EndpointsList } from '@/api/endpoints';
9
+ import type { FetchResponse } from 'fetchff';
10
+ import type { InfobipGetScheduledEmailsParams } from '@plyaz/types/api';
11
+ /**
12
+ * Get scheduled email bulks from Infobip
13
+ * Uses endpoint: GET /email/1/bulks
14
+ *
15
+ * @param params - Query parameters (bulkId required)
16
+ * @param options - Optional service options
17
+ * @returns Promise<FetchResponse> with InfobipGetScheduledEmailsResponse
18
+ *
19
+ * @example
20
+ * ```typescript
21
+ * const bulkInfo = await fetchInfobipScheduledEmails({
22
+ * bulkId: 'bulk-123'
23
+ * });
24
+ * ```
25
+ */
26
+ export declare function fetchInfobipScheduledEmails<TEndpoints = EndpointsList>(params: InfobipGetScheduledEmailsParams, options?: ServiceOptions<TEndpoints>): Promise<FetchResponse>;
27
+ //# sourceMappingURL=fetchScheduledEmails.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetchScheduledEmails.d.ts","sourceRoot":"","sources":["../../../../../../src/api/services/infobip/email/GET/fetchScheduledEmails.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,kBAAkB,CAAC;AAExE;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,2BAA2B,CAAC,UAAU,GAAG,aAAa,EAC1E,MAAM,EAAE,+BAA+B,EACvC,OAAO,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,GACnC,OAAO,CAAC,aAAa,CAAC,CAuBxB"}
@@ -0,0 +1,60 @@
1
+ /**
2
+ * Get Email Validation Results via Infobip Service
3
+ * Retrieve results of bulk email validation requests
4
+ *
5
+ * @see https://www.infobip.com/docs/api/channels/email/validate-email-addresses
6
+ */
7
+ import type { ServiceOptions } from '@plyaz/types/api';
8
+ import type { EndpointsList } from '@/api/endpoints';
9
+ import type { FetchResponse } from 'fetchff';
10
+ import type { InfobipGetValidationsParams } from '@plyaz/types/api';
11
+ /**
12
+ * Get validation results via Infobip
13
+ * Uses endpoint: GET /email/2/validations
14
+ *
15
+ * @param params - Query parameters for filtering validation results
16
+ * @param options - Optional service options (client override, config overrides)
17
+ * @returns Promise<FetchResponse> with InfobipGetValidationsResponse
18
+ *
19
+ * @example
20
+ * ```typescript
21
+ * // Get validation results by request ID
22
+ * const { data } = await fetchInfobipValidations({
23
+ * validationRequestId: '2034072219640523000',
24
+ * });
25
+ *
26
+ * console.log(data.results); // Array of validation results
27
+ *
28
+ * // Filter by validity status
29
+ * const validOnly = await fetchInfobipValidations({
30
+ * validMailbox: true,
31
+ * validSyntax: true,
32
+ * });
33
+ *
34
+ * // Filter by risk level and other criteria
35
+ * const filtered = await fetchInfobipValidations({
36
+ * risk: 'LOW',
37
+ * disposable: false,
38
+ * roleBased: false,
39
+ * catchAll: false,
40
+ * });
41
+ *
42
+ * // Date range filtering
43
+ * const recent = await fetchInfobipValidations({
44
+ * validatedDateFrom: '2025-03-01T12:03:15.120Z',
45
+ * validatedDateTo: '2025-03-04T15:02:11.400Z',
46
+ * });
47
+ *
48
+ * // Pagination support
49
+ * const page1 = await fetchInfobipValidations({
50
+ * size: 100,
51
+ * });
52
+ *
53
+ * const page2 = await fetchInfobipValidations({
54
+ * cursor: page1.data.cursor,
55
+ * size: 100,
56
+ * });
57
+ * ```
58
+ */
59
+ export declare function fetchInfobipValidations<TEndpoints = EndpointsList>(params?: InfobipGetValidationsParams, options?: ServiceOptions<TEndpoints>): Promise<FetchResponse>;
60
+ //# sourceMappingURL=fetchValidations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetchValidations.d.ts","sourceRoot":"","sources":["../../../../../../src/api/services/infobip/email/GET/fetchValidations.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,kBAAkB,CAAC;AAEpE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,wBAAsB,uBAAuB,CAAC,UAAU,GAAG,aAAa,EACtE,MAAM,CAAC,EAAE,2BAA2B,EACpC,OAAO,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,GACnC,OAAO,CAAC,aAAa,CAAC,CAwBxB"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Infobip Email GET Services
3
+ * Exports all GET-based email services
4
+ */
5
+ export { fetchInfobipEmailReports } from './fetchEmailReports';
6
+ export { fetchInfobipEmailLogs } from './fetchEmailLogs';
7
+ export { fetchInfobipScheduledEmails } from './fetchScheduledEmails';
8
+ export { fetchInfobipScheduledEmailStatuses } from './fetchScheduledEmailStatuses';
9
+ export { fetchInfobipValidations } from './fetchValidations';
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/api/services/infobip/email/GET/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,EAAE,kCAAkC,EAAE,MAAM,+BAA+B,CAAC;AACnF,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,50 @@
1
+ /**
2
+ * Bulk Validate Emails via Infobip Service
3
+ * Submit multiple email addresses for validation (async operation)
4
+ *
5
+ * @see https://www.infobip.com/docs/api/channels/email/validate-email-addresses
6
+ */
7
+ import type { ServiceOptions } from '@plyaz/types/api';
8
+ import type { EndpointsList } from '@/api/endpoints';
9
+ import type { FetchResponse } from 'fetchff';
10
+ import type { InfobipBulkValidateEmailsRequest } from '@plyaz/types/api';
11
+ /**
12
+ * Bulk validate email addresses via Infobip
13
+ * Uses endpoint: POST /email/2/validations
14
+ *
15
+ * This is an async operation that returns 202 with a validation request ID.
16
+ * Use getValidations() to retrieve results.
17
+ *
18
+ * @param payload - Bulk validation request with email addresses
19
+ * @param options - Optional service options (client override, config overrides)
20
+ * @returns Promise<FetchResponse> with InfobipBulkValidateEmailsResponse (202)
21
+ *
22
+ * @example
23
+ * ```typescript
24
+ * // Submit bulk validation request
25
+ * const { data } = await bulkValidateInfobipEmails({
26
+ * destinations: [
27
+ * { destination: 'user1@example.com' },
28
+ * { destination: 'user2@example.com' },
29
+ * { destination: 'invalid@invalid' },
30
+ * ],
31
+ * });
32
+ *
33
+ * console.log(data.validationRequestId); // Use this to fetch results
34
+ *
35
+ * // With custom validation request ID
36
+ * const result = await bulkValidateInfobipEmails({
37
+ * destinations: [{ destination: 'user@example.com' }],
38
+ * validationRequestId: 'custom-request-id-123',
39
+ * });
40
+ *
41
+ * // Later, retrieve results
42
+ * const results = await fetchInfobipValidations({
43
+ * validationRequestId: data.validationRequestId,
44
+ * });
45
+ * ```
46
+ *
47
+ * @throws {ApiPackageError} When the request fails or validation errors occur
48
+ */
49
+ export declare function bulkValidateInfobipEmails<TEndpoints = EndpointsList>(payload: InfobipBulkValidateEmailsRequest, options?: ServiceOptions<TEndpoints>): Promise<FetchResponse>;
50
+ //# sourceMappingURL=bulkValidateEmails.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bulkValidateEmails.d.ts","sourceRoot":"","sources":["../../../../../../src/api/services/infobip/email/POST/bulkValidateEmails.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,kBAAkB,CAAC;AAEzE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AAEH,wBAAsB,yBAAyB,CAAC,UAAU,GAAG,aAAa,EACxE,OAAO,EAAE,gCAAgC,EACzC,OAAO,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,GACnC,OAAO,CAAC,aAAa,CAAC,CA2CxB"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Infobip Email POST Services
3
+ * Exports all POST-based email services
4
+ */
5
+ export { sendInfobipEmail } from './sendEmail';
6
+ export { sendInfobipAdvancedEmail } from './sendAdvancedEmail';
7
+ export { validateInfobipEmail } from './validateEmail';
8
+ export { bulkValidateInfobipEmails } from './bulkValidateEmails';
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/api/services/infobip/email/POST/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC"}
@@ -0,0 +1,67 @@
1
+ /**
2
+ * Send Advanced Email via Infobip Service
3
+ * Sends transactional or promotional emails using Infobip Advanced Email API v4
4
+ *
5
+ * @see https://www.infobip.com/docs/api/channels/email/send-email-messages
6
+ */
7
+ import type { ServiceOptions } from '@plyaz/types/api';
8
+ import type { EndpointsList } from '@/api/endpoints';
9
+ import type { FetchResponse } from 'fetchff';
10
+ import type { InfobipSendAdvancedEmailRequest } from '@plyaz/types/api';
11
+ /**
12
+ * Send advanced email via Infobip
13
+ * Uses endpoint: POST /email/4/send
14
+ *
15
+ * This is the advanced email API that supports:
16
+ * - Multiple recipients with per-recipient placeholders
17
+ * - Proper attachment objects with content, contentType, and fileName
18
+ * - Inline images
19
+ * - Webhooks per message
20
+ * - Advanced tracking options
21
+ *
22
+ * @param payload - Advanced email send request payload (JSON format)
23
+ * @param options - Optional service options (client override, config overrides)
24
+ * @returns Promise<FetchResponse> with InfobipSendAdvancedEmailResponse
25
+ *
26
+ * @example
27
+ * ```typescript
28
+ * // Basic email
29
+ * const result = await sendInfobipAdvancedEmail({
30
+ * messages: [{
31
+ * sender: 'noreply@example.com',
32
+ * destinations: [{ destination: 'user@example.com' }],
33
+ * content: {
34
+ * subject: 'Welcome!',
35
+ * text: 'Welcome to our platform',
36
+ * },
37
+ * }],
38
+ * });
39
+ *
40
+ * // Email with attachments
41
+ * const result = await sendInfobipAdvancedEmail({
42
+ * messages: [{
43
+ * sender: 'noreply@example.com',
44
+ * destinations: [{ destination: 'user@example.com' }],
45
+ * content: {
46
+ * subject: 'Your Invoice',
47
+ * html: '<p>Please find your invoice attached.</p>',
48
+ * attachments: [{
49
+ * type: 'binary',
50
+ * content: base64FileContent,
51
+ * contentType: 'application/pdf',
52
+ * fileName: 'invoice.pdf',
53
+ * }],
54
+ * },
55
+ * webhooks: {
56
+ * delivery: {
57
+ * url: 'https://example.com/webhooks/infobip/email',
58
+ * },
59
+ * },
60
+ * }],
61
+ * });
62
+ * ```
63
+ *
64
+ * @throws {ApiPackageError} When the request fails or validation errors occur
65
+ */
66
+ export declare function sendInfobipAdvancedEmail<TEndpoints = EndpointsList>(payload: InfobipSendAdvancedEmailRequest, options?: ServiceOptions<TEndpoints>): Promise<FetchResponse>;
67
+ //# sourceMappingURL=sendAdvancedEmail.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sendAdvancedEmail.d.ts","sourceRoot":"","sources":["../../../../../../src/api/services/infobip/email/POST/sendAdvancedEmail.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,kBAAkB,CAAC;AAExE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AAEH,wBAAsB,wBAAwB,CAAC,UAAU,GAAG,aAAa,EACvE,OAAO,EAAE,+BAA+B,EACxC,OAAO,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,GACnC,OAAO,CAAC,aAAa,CAAC,CA0DxB"}
@@ -0,0 +1,60 @@
1
+ /**
2
+ * Send Email via Infobip Service
3
+ * Sends transactional or promotional emails using Infobip Email API v3
4
+ *
5
+ * @see https://www.infobip.com/docs/api/channels/email/send-fully-featured-email
6
+ */
7
+ import type { ServiceOptions } from '@plyaz/types/api';
8
+ import type { EndpointsList } from '@/api/endpoints';
9
+ import type { FetchResponse } from 'fetchff';
10
+ import type { InfobipSendEmailRequest } from '@plyaz/types/api';
11
+ /**
12
+ * Send email via Infobip
13
+ * Uses endpoint: POST /email/3/send
14
+ *
15
+ * @param payload - Email send request payload (multipart/form-data format)
16
+ * @param options - Optional service options (client override, config overrides)
17
+ * @returns Promise<FetchResponse> with InfobipSendEmailResponse
18
+ *
19
+ * @example
20
+ * ```typescript
21
+ * // Basic text email
22
+ * const result = await sendInfobipEmail({
23
+ * from: 'noreply@example.com',
24
+ * fromName: 'Example App',
25
+ * to: 'user@example.com',
26
+ * subject: 'Welcome!',
27
+ * text: 'Welcome to our platform',
28
+ * });
29
+ *
30
+ * // HTML email with tracking
31
+ * const result = await sendInfobipEmail({
32
+ * from: 'noreply@example.com',
33
+ * to: 'user@example.com',
34
+ * subject: 'Newsletter',
35
+ * html: '<h1>Hello!</h1><p>Check out our latest updates.</p>',
36
+ * track: true,
37
+ * trackClicks: true,
38
+ * trackOpens: true,
39
+ * });
40
+ *
41
+ * // Email with attachments and webhook
42
+ * const result = await sendInfobipEmail({
43
+ * from: 'noreply@example.com',
44
+ * to: 'user@example.com',
45
+ * subject: 'Your Invoice',
46
+ * html: '<p>Please find your invoice attached.</p>',
47
+ * attachment: [{
48
+ * data: base64FileContent,
49
+ * name: 'invoice.pdf',
50
+ * contentType: 'application/pdf',
51
+ * }],
52
+ * notifyUrl: 'https://example.com/webhooks/infobip/email',
53
+ * notifyContentType: 'application/json',
54
+ * });
55
+ * ```
56
+ *
57
+ * @throws {ApiPackageError} When the request fails or validation errors occur
58
+ */
59
+ export declare function sendInfobipEmail<TEndpoints = EndpointsList>(payload: InfobipSendEmailRequest, options?: ServiceOptions<TEndpoints>): Promise<FetchResponse>;
60
+ //# sourceMappingURL=sendEmail.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sendEmail.d.ts","sourceRoot":"","sources":["../../../../../../src/api/services/infobip/email/POST/sendEmail.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAEhE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AAEH,wBAAsB,gBAAgB,CAAC,UAAU,GAAG,aAAa,EAC/D,OAAO,EAAE,uBAAuB,EAChC,OAAO,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,GACnC,OAAO,CAAC,aAAa,CAAC,CAgDxB"}
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Validate Email via Infobip Service
3
+ * Validates email addresses using Infobip Email Validation API
4
+ *
5
+ * @see https://www.infobip.com/docs/api/channels/email/validate-email-addresses
6
+ */
7
+ import type { ServiceOptions } from '@plyaz/types/api';
8
+ import type { EndpointsList } from '@/api/endpoints';
9
+ import type { FetchResponse } from 'fetchff';
10
+ import type { InfobipValidateEmailRequest } from '@plyaz/types/api';
11
+ /**
12
+ * Validate email address via Infobip
13
+ * Uses endpoint: POST /email/2/validation
14
+ *
15
+ * @param email - Email address to validate (can be string or request object)
16
+ * @param options - Optional service options (client override, config overrides)
17
+ * @returns Promise<InfobipValidateEmailResponse>
18
+ *
19
+ * @example
20
+ * ```typescript
21
+ * // Validate single email (string)
22
+ * const result = await validateInfobipEmail('user@example.com');
23
+ * console.log(result.validMailbox); // true or false
24
+ *
25
+ * // Validate with request object
26
+ * const result = await validateInfobipEmail({
27
+ * to: 'user@example.com',
28
+ * });
29
+ *
30
+ * // With custom client and caching
31
+ * const result = await validateInfobipEmail('user@example.com', {
32
+ * apiClient: customClient,
33
+ * apiConfig: { cacheTime: 300 }, // Cache for 5 minutes
34
+ * });
35
+ * ```
36
+ *
37
+ * @throws {ApiPackageError} When the request fails or validation errors occur
38
+ */
39
+ export declare function validateInfobipEmail<TEndpoints = EndpointsList>(email: string | InfobipValidateEmailRequest, options?: ServiceOptions<TEndpoints>): Promise<FetchResponse>;
40
+ //# sourceMappingURL=validateEmail.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validateEmail.d.ts","sourceRoot":"","sources":["../../../../../../src/api/services/infobip/email/POST/validateEmail.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,kBAAkB,CAAC;AAEpE;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,wBAAsB,oBAAoB,CAAC,UAAU,GAAG,aAAa,EACnE,KAAK,EAAE,MAAM,GAAG,2BAA2B,EAC3C,OAAO,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,GACnC,OAAO,CAAC,aAAa,CAAC,CA6CxB"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Infobip Email PUT Services
3
+ * Exports all PUT-based email services (bulk management)
4
+ */
5
+ export { rescheduleInfobipEmails } from './rescheduleEmails';
6
+ export { updateInfobipScheduledEmailStatuses } from './updateScheduledEmailStatuses';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/api/services/infobip/email/PUT/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,mCAAmC,EAAE,MAAM,gCAAgC,CAAC"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Reschedule Email Bulk via Infobip Service
3
+ * Changes the scheduled send time for a bulk
4
+ *
5
+ * @see https://www.infobip.com/docs/api/channels/email/email-message-scheduling
6
+ */
7
+ import type { ServiceOptions } from '@plyaz/types/api';
8
+ import type { EndpointsList } from '@/api/endpoints';
9
+ import type { FetchResponse } from 'fetchff';
10
+ import type { InfobipRescheduleEmailsParams, InfobipRescheduleEmailsRequest } from '@plyaz/types/api';
11
+ /**
12
+ * Reschedule email bulk in Infobip
13
+ * Uses endpoint: PUT /email/1/bulks
14
+ *
15
+ * @param params - Query parameters (bulkId)
16
+ * @param payload - New sendAt time
17
+ * @param options - Optional service options
18
+ * @returns Promise<InfobipBulkInfo>
19
+ *
20
+ * @example
21
+ * ```typescript
22
+ * const result = await rescheduleInfobipEmails(
23
+ * { bulkId: 'bulk-123' },
24
+ * { sendAt: '2025-10-24T10:00:00.000Z' }
25
+ * );
26
+ * ```
27
+ */
28
+ export declare function rescheduleInfobipEmails<TEndpoints = EndpointsList>(params: InfobipRescheduleEmailsParams, payload: InfobipRescheduleEmailsRequest, options?: ServiceOptions<TEndpoints>): Promise<FetchResponse>;
29
+ //# sourceMappingURL=rescheduleEmails.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rescheduleEmails.d.ts","sourceRoot":"","sources":["../../../../../../src/api/services/infobip/email/PUT/rescheduleEmails.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,KAAK,EACV,6BAA6B,EAC7B,8BAA8B,EAC/B,MAAM,kBAAkB,CAAC;AAE1B;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,uBAAuB,CAAC,UAAU,GAAG,aAAa,EACtE,MAAM,EAAE,6BAA6B,EACrC,OAAO,EAAE,8BAA8B,EACvC,OAAO,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,GACnC,OAAO,CAAC,aAAa,CAAC,CA8BxB"}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Update Bulk Status via Infobip Service
3
+ * Pauses or resumes a scheduled email bulk
4
+ *
5
+ * @see https://www.infobip.com/docs/api/channels/email/email-message-scheduling
6
+ */
7
+ import type { ServiceOptions } from '@plyaz/types/api';
8
+ import type { EndpointsList } from '@/api/endpoints';
9
+ import type { FetchResponse } from 'fetchff';
10
+ import type { InfobipUpdateScheduledEmailStatusesParams, InfobipUpdateScheduledEmailStatusesRequest } from '@plyaz/types/api';
11
+ /**
12
+ * Update scheduled email statuses in Infobip
13
+ * Uses endpoint: PUT /email/1/bulks/status
14
+ *
15
+ * @param params - Query parameters (bulkId)
16
+ * @param payload - New status (PAUSED or PROCESSING)
17
+ * @param options - Optional service options
18
+ * @returns Promise<FetchResponse> with InfobipUpdateScheduledEmailStatusesResponse
19
+ *
20
+ * @example
21
+ * ```typescript
22
+ * // Pause a bulk
23
+ * const result = await updateInfobipScheduledEmailStatuses(
24
+ * { bulkId: 'bulk-123' },
25
+ * { status: 'PAUSED' }
26
+ * );
27
+ *
28
+ * // Resume a bulk
29
+ * const result = await updateInfobipScheduledEmailStatuses(
30
+ * { bulkId: 'bulk-123' },
31
+ * { status: 'PROCESSING' }
32
+ * );
33
+ * ```
34
+ */
35
+ export declare function updateInfobipScheduledEmailStatuses<TEndpoints = EndpointsList>(params: InfobipUpdateScheduledEmailStatusesParams, payload: InfobipUpdateScheduledEmailStatusesRequest, options?: ServiceOptions<TEndpoints>): Promise<FetchResponse>;
36
+ //# sourceMappingURL=updateScheduledEmailStatuses.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updateScheduledEmailStatuses.d.ts","sourceRoot":"","sources":["../../../../../../src/api/services/infobip/email/PUT/updateScheduledEmailStatuses.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,KAAK,EACV,yCAAyC,EACzC,0CAA0C,EAC3C,MAAM,kBAAkB,CAAC;AAE1B;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,wBAAsB,mCAAmC,CAAC,UAAU,GAAG,aAAa,EAClF,MAAM,EAAE,yCAAyC,EACjD,OAAO,EAAE,0CAA0C,EACnD,OAAO,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,GACnC,OAAO,CAAC,aAAa,CAAC,CAsCxB"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Infobip Email Services
3
+ * Aggregates all email-related services
4
+ */
5
+ export { sendInfobipEmail, sendInfobipAdvancedEmail, validateInfobipEmail, bulkValidateInfobipEmails, } from './POST';
6
+ export { fetchInfobipEmailReports, fetchInfobipEmailLogs, fetchInfobipScheduledEmails, fetchInfobipScheduledEmailStatuses, fetchInfobipValidations, } from './GET';
7
+ export { rescheduleInfobipEmails, updateInfobipScheduledEmailStatuses } from './PUT';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/services/infobip/email/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EACL,gBAAgB,EAChB,wBAAwB,EACxB,oBAAoB,EACpB,yBAAyB,GAC1B,MAAM,QAAQ,CAAC;AAGhB,OAAO,EACL,wBAAwB,EACxB,qBAAqB,EACrB,2BAA2B,EAC3B,kCAAkC,EAClC,uBAAuB,GACxB,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,uBAAuB,EAAE,mCAAmC,EAAE,MAAM,OAAO,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Infobip Services
3
+ * Third-party provider for Email, SMS, WhatsApp, Push communications
4
+ */
5
+ export { sendInfobipEmail, sendInfobipAdvancedEmail, validateInfobipEmail, bulkValidateInfobipEmails, fetchInfobipEmailReports, fetchInfobipEmailLogs, fetchInfobipScheduledEmails, fetchInfobipScheduledEmailStatuses, fetchInfobipValidations, rescheduleInfobipEmails, updateInfobipScheduledEmailStatuses, } from './email';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/services/infobip/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EACL,gBAAgB,EAChB,wBAAwB,EACxB,oBAAoB,EACpB,yBAAyB,EACzB,wBAAwB,EACxB,qBAAqB,EACrB,2BAA2B,EAC3B,kCAAkC,EAClC,uBAAuB,EACvB,uBAAuB,EACvB,mCAAmC,GACpC,MAAM,SAAS,CAAC"}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Get Analysis Result from VirusTotal
3
+ * Retrieves virus scan results for a previously uploaded file
4
+ *
5
+ * @see https://developers.virustotal.com/reference/analysis
6
+ */
7
+ import type { ServiceOptions } from '@plyaz/types/api';
8
+ import type { EndpointsList } from '@/api/endpoints';
9
+ import type { FetchResponse } from 'fetchff';
10
+ import type { VirusTotalGetAnalysisRequest } from '@plyaz/types/api';
11
+ /**
12
+ * Get analysis result from VirusTotal
13
+ * Uses endpoint: GET /analyses/:id
14
+ *
15
+ * @param payload - Analysis request payload
16
+ * @param options - Optional service options (client override, config overrides)
17
+ * @returns Promise<FetchResponse> with VirusTotalAnalysisResponse
18
+ *
19
+ * @example
20
+ * ```typescript
21
+ * import { getAnalysisResult } from '@plyaz/api/services';
22
+ *
23
+ * const result = await getAnalysisResult({
24
+ * analysisId: 'ZmY4ZjY4ZjY4ZjY4ZjY4ZjY4ZjY4ZjY4ZjY4ZjY4ZjY4ZjY4',
25
+ * });
26
+ *
27
+ * if (result.data.data.attributes.status === 'completed') {
28
+ * console.log('Malicious engines:', result.data.data.attributes.stats.malicious);
29
+ * }
30
+ * ```
31
+ *
32
+ * @throws {ApiPackageError} When the request fails or validation errors occur
33
+ */
34
+ export declare function getAnalysisResult<TEndpoints = EndpointsList>(payload: VirusTotalGetAnalysisRequest, options?: ServiceOptions<TEndpoints>): Promise<FetchResponse>;
35
+ //# sourceMappingURL=getAnalysisResult.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAnalysisResult.d.ts","sourceRoot":"","sources":["../../../../../../src/api/services/virustotal/analyses/GET/getAnalysisResult.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,kBAAkB,CAAC;AAErE;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,iBAAiB,CAAC,UAAU,GAAG,aAAa,EAChE,OAAO,EAAE,4BAA4B,EACrC,OAAO,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,GACnC,OAAO,CAAC,aAAa,CAAC,CAgCxB"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * VirusTotal Analyses GET Services
3
+ * Exports all GET-based analysis services
4
+ */
5
+ export { getAnalysisResult } from './getAnalysisResult';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/api/services/virustotal/analyses/GET/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * VirusTotal Analyses Services
3
+ * Aggregates all analysis-related services
4
+ */
5
+ export { getAnalysisResult } from './GET';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/services/virustotal/analyses/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * VirusTotal Files POST Services
3
+ * Exports all POST-based file services
4
+ */
5
+ export { uploadFileForScanning } from './uploadFileForScanning';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/api/services/virustotal/files/POST/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC"}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Upload File for Virus Scanning via VirusTotal
3
+ * Uploads a file to VirusTotal for malware/virus analysis
4
+ *
5
+ * @see https://developers.virustotal.com/reference/files-scan
6
+ */
7
+ import type { ServiceOptions } from '@plyaz/types/api';
8
+ import type { EndpointsList } from '@/api/endpoints';
9
+ import type { FetchResponse } from 'fetchff';
10
+ import type { VirusTotalUploadFileRequest } from '@plyaz/types/api';
11
+ /**
12
+ * Upload file to VirusTotal for scanning
13
+ * Uses endpoint: POST /files
14
+ *
15
+ * @param payload - File upload request payload
16
+ * @param options - Optional service options (client override, config overrides)
17
+ * @returns Promise<FetchResponse> with VirusTotalUploadResponse
18
+ *
19
+ * @example
20
+ * ```typescript
21
+ * import { uploadFileForScanning } from '@plyaz/api/services';
22
+ *
23
+ * const fileBuffer = fs.readFileSync('suspicious-file.exe');
24
+ *
25
+ * const result = await uploadFileForScanning({
26
+ * file: fileBuffer,
27
+ * filename: 'suspicious-file.exe',
28
+ * });
29
+ *
30
+ * console.log('Analysis ID:', result.data.data.id);
31
+ * ```
32
+ *
33
+ * @throws {ApiPackageError} When the request fails or validation errors occur
34
+ */
35
+ export declare function uploadFileForScanning<TEndpoints = EndpointsList>(payload: VirusTotalUploadFileRequest, options?: ServiceOptions<TEndpoints>): Promise<FetchResponse>;
36
+ //# sourceMappingURL=uploadFileForScanning.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"uploadFileForScanning.d.ts","sourceRoot":"","sources":["../../../../../../src/api/services/virustotal/files/POST/uploadFileForScanning.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,kBAAkB,CAAC;AAEpE;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,wBAAsB,qBAAqB,CAAC,UAAU,GAAG,aAAa,EACpE,OAAO,EAAE,2BAA2B,EACpC,OAAO,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,GACnC,OAAO,CAAC,aAAa,CAAC,CAsDxB"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * VirusTotal Files Services
3
+ * Aggregates all file-related services
4
+ */
5
+ export { uploadFileForScanning } from './POST';
6
+ //# sourceMappingURL=index.d.ts.map