@abyss-project/main 37.1.0 → 37.3.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 (74) hide show
  1. package/dist/api/mailing.admin.api.d.ts +2 -1
  2. package/dist/api/mailing.admin.api.js +3 -1
  3. package/dist/api/mailing.admin.api.js.map +1 -1
  4. package/dist/api/organization-billing.api.d.ts +2 -3
  5. package/dist/api/organization-billing.api.js +1 -5
  6. package/dist/api/organization-billing.api.js.map +1 -1
  7. package/dist/billing-metric-label/billing-metric-label.labels.d.ts +0 -6
  8. package/dist/billing-metric-label/billing-metric-label.labels.js +0 -6
  9. package/dist/billing-metric-label/billing-metric-label.labels.js.map +1 -1
  10. package/dist/constants/billing-catalog.constants.js +0 -28
  11. package/dist/constants/billing-catalog.constants.js.map +1 -1
  12. package/dist/constants/catalog-plan-quotas.constants.js +0 -9
  13. package/dist/constants/catalog-plan-quotas.constants.js.map +1 -1
  14. package/dist/constants/enforcement-registry.constants.js +0 -18
  15. package/dist/constants/enforcement-registry.constants.js.map +1 -1
  16. package/dist/constants/metric-price-scale.constants.js +0 -8
  17. package/dist/constants/metric-price-scale.constants.js.map +1 -1
  18. package/dist/constants/module-catalog.constants.d.ts +0 -2
  19. package/dist/constants/module-catalog.constants.js +0 -24
  20. package/dist/constants/module-catalog.constants.js.map +1 -1
  21. package/dist/constants/overage-base-rates.constants.js +0 -1
  22. package/dist/constants/overage-base-rates.constants.js.map +1 -1
  23. package/dist/constants/public-plans.constants.js +0 -81
  24. package/dist/constants/public-plans.constants.js.map +1 -1
  25. package/dist/constants/quota-metric-kind.constants.js +0 -3
  26. package/dist/constants/quota-metric-kind.constants.js.map +1 -1
  27. package/dist/constants/tests/billing-catalog.constants.spec.js +1 -114
  28. package/dist/constants/tests/billing-catalog.constants.spec.js.map +1 -1
  29. package/dist/constants/tests/catalog-plan-quotas.coherence.spec.js +0 -16
  30. package/dist/constants/tests/catalog-plan-quotas.coherence.spec.js.map +1 -1
  31. package/dist/constants/tests/metric-price-scale.constants.spec.js +1 -5
  32. package/dist/constants/tests/metric-price-scale.constants.spec.js.map +1 -1
  33. package/dist/constants/tests/module-calibration.constants.spec.js +0 -1
  34. package/dist/constants/tests/module-calibration.constants.spec.js.map +1 -1
  35. package/dist/constants/tests/module-catalog.constants.spec.js +2 -58
  36. package/dist/constants/tests/module-catalog.constants.spec.js.map +1 -1
  37. package/dist/index.d.ts +1 -1
  38. package/dist/index.js +1 -1
  39. package/dist/index.js.map +1 -1
  40. package/dist/types/enum/email-send.enum.d.ts +3 -0
  41. package/dist/types/enum/email-send.enum.js +3 -0
  42. package/dist/types/enum/email-send.enum.js.map +1 -1
  43. package/dist/types/enum/email-type.enum.d.ts +2 -1
  44. package/dist/types/enum/email-type.enum.js +2 -1
  45. package/dist/types/enum/email-type.enum.js.map +1 -1
  46. package/dist/types/enum/index.d.ts +1 -0
  47. package/dist/types/enum/index.js +1 -0
  48. package/dist/types/enum/index.js.map +1 -1
  49. package/dist/types/enum/monitor-channel-mail.enum.d.ts +12 -0
  50. package/dist/types/enum/monitor-channel-mail.enum.js +18 -0
  51. package/dist/types/enum/monitor-channel-mail.enum.js.map +1 -0
  52. package/dist/types/enum/organization-billing.enum.d.ts +0 -3
  53. package/dist/types/enum/organization-billing.enum.js +0 -3
  54. package/dist/types/enum/organization-billing.enum.js.map +1 -1
  55. package/dist/types/enum/user-notification-category.enum.js +0 -1
  56. package/dist/types/enum/user-notification-category.enum.js.map +1 -1
  57. package/dist/types/enum/user-notification-content-type.enum.d.ts +0 -9
  58. package/dist/types/enum/user-notification-content-type.enum.js +1 -2
  59. package/dist/types/enum/user-notification-content-type.enum.js.map +1 -1
  60. package/dist/types/interface/api/index.d.ts +2 -0
  61. package/dist/types/interface/api/index.js +2 -0
  62. package/dist/types/interface/api/index.js.map +1 -1
  63. package/dist/types/interface/api/requests/mailing-monitor-channel.request.d.ts +30 -0
  64. package/dist/types/interface/api/requests/mailing-monitor-channel.request.js +3 -0
  65. package/dist/types/interface/api/requests/mailing-monitor-channel.request.js.map +1 -0
  66. package/dist/types/interface/api/requests/organization-billing.request.d.ts +0 -11
  67. package/dist/types/interface/api/responses/mailing-monitor-channel.response.d.ts +12 -0
  68. package/dist/types/interface/api/responses/mailing-monitor-channel.response.js +3 -0
  69. package/dist/types/interface/api/responses/mailing-monitor-channel.response.js.map +1 -0
  70. package/dist/types/interface/api/responses/organization-billing.response.d.ts +0 -4
  71. package/package.json +1 -1
  72. package/dist/api/tests/sdk-resource-alert.spec.d.ts +0 -1
  73. package/dist/api/tests/sdk-resource-alert.spec.js +0 -27
  74. package/dist/api/tests/sdk-resource-alert.spec.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mailing-monitor-channel.request.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/requests/mailing-monitor-channel.request.ts"],"names":[],"mappings":""}
@@ -244,14 +244,3 @@ export interface IListOrgDailySnapshotsQuery {
244
244
  from: string;
245
245
  to: string;
246
246
  }
247
- export interface IReportResourceAlertOrganizationParams {
248
- organizationId: string;
249
- }
250
- export interface IReportResourceAlertOrganizationBody {
251
- metric: BillingMetric;
252
- resourceId: string;
253
- resourceLabel: string;
254
- threshold: number;
255
- period: string;
256
- actionUrl: string;
257
- }
@@ -0,0 +1,12 @@
1
+ import { MonitorChannelMailOutcome } from '../../../enum';
2
+ import { IResponse } from '../type-message/response';
3
+ export interface IMonitorChannelMailResult {
4
+ idempotencyKey: string;
5
+ outcome: MonitorChannelMailOutcome;
6
+ retryAfterSeconds?: number;
7
+ }
8
+ export interface ISendMonitorChannelMailAdminData {
9
+ available: boolean;
10
+ result: IMonitorChannelMailResult;
11
+ }
12
+ export type ISendMonitorChannelMailAdminResponse = IResponse<ISendMonitorChannelMailAdminData>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=mailing-monitor-channel.response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mailing-monitor-channel.response.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/mailing-monitor-channel.response.ts"],"names":[],"mappings":""}
@@ -115,10 +115,6 @@ export interface IImportQuotaOrganizationData {
115
115
  swept: number;
116
116
  }
117
117
  export type IImportQuotaOrganizationResponse = IResponse<IImportQuotaOrganizationData>;
118
- export interface IReportResourceAlertOrganizationData {
119
- sent: boolean;
120
- }
121
- export type IReportResourceAlertOrganizationResponse = IResponse<IReportResourceAlertOrganizationData>;
122
118
  export interface ISetStorageSubtotalOrganizationData {
123
119
  poolBytes: number;
124
120
  limitBytes: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abyss-project/main",
3
- "version": "37.1.0",
3
+ "version": "37.3.0",
4
4
  "description": "Core package to interact with Abyss-Project",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1 +0,0 @@
1
- export {};
@@ -1,27 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const __1 = require("../..");
4
- describe('SDK — per-resource alerts (#844)', () => {
5
- it('posts the alert to the admin resource-alert route of the organization', async () => {
6
- const post = jest
7
- .spyOn(__1.AbyssCore.axios, 'post')
8
- .mockResolvedValue({ data: { data: { sent: true } } });
9
- const body = {
10
- metric: __1.BillingMetric.REFLEX_BOT_EVENTS_PER_MINUTE,
11
- resourceId: 'bot-1',
12
- resourceLabel: 'My bot',
13
- threshold: 80,
14
- period: '2026-11-21',
15
- actionUrl: 'https://abyss.example/reflex/bot-1',
16
- };
17
- const res = await __1.AbyssCore.sdk.organizationBilling.reportResourceAlertAdmin({ organizationId: 'org-1' }, body);
18
- expect(post).toHaveBeenCalledWith('admin/organization/org-1/quota/resource-alert', body);
19
- expect(res.data.sent).toBe(true);
20
- });
21
- it('declares the notification type, its category and the e-mail type', () => {
22
- expect(__1.UserNotificationContentType.BILLING_RESOURCE_THRESHOLD).toBe('billing-resource-threshold');
23
- expect(__1.USER_NOTIFICATION_CONTENT_TYPE_CATEGORY[__1.UserNotificationContentType.BILLING_RESOURCE_THRESHOLD]).toBe(__1.UserNotificationCategory.OPERATIONAL);
24
- expect(__1.EmailType.BILLING_RESOURCE_WARNING).toBe('BILLING_RESOURCE_WARNING');
25
- });
26
- });
27
- //# sourceMappingURL=sdk-resource-alert.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sdk-resource-alert.spec.js","sourceRoot":"","sources":["../../../src/api/tests/sdk-resource-alert.spec.ts"],"names":[],"mappings":";;AAAA,6BAOe;AAEf,QAAQ,CAAC,kCAAkC,EAAE,GAAG,EAAE;IAChD,EAAE,CAAC,uEAAuE,EAAE,KAAK,IAAI,EAAE;QACrF,MAAM,IAAI,GAAG,IAAI;aACd,KAAK,CAAC,aAAS,CAAC,KAAK,EAAE,MAAM,CAAC;aAC9B,iBAAiB,CAAC,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;QACzD,MAAM,IAAI,GAAG;YACX,MAAM,EAAE,iBAAa,CAAC,4BAA4B;YAClD,UAAU,EAAE,OAAO;YACnB,aAAa,EAAE,QAAQ;YACvB,SAAS,EAAE,EAAE;YACb,MAAM,EAAE,YAAY;YACpB,SAAS,EAAE,oCAAoC;SAChD,CAAC;QACF,MAAM,GAAG,GAAG,MAAM,aAAS,CAAC,GAAG,CAAC,mBAAmB,CAAC,wBAAwB,CAC1E,EAAE,cAAc,EAAE,OAAO,EAAE,EAC3B,IAAI,CACL,CAAC;QACF,MAAM,CAAC,IAAI,CAAC,CAAC,oBAAoB,CAAC,+CAA+C,EAAE,IAAI,CAAC,CAAC;QACzF,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACnC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,kEAAkE,EAAE,GAAG,EAAE;QAC1E,MAAM,CAAC,+BAA2B,CAAC,0BAA0B,CAAC,CAAC,IAAI,CACjE,4BAA4B,CAC7B,CAAC;QACF,MAAM,CACJ,2CAAuC,CACrC,+BAA2B,CAAC,0BAA0B,CACvD,CACF,CAAC,IAAI,CAAC,4BAAwB,CAAC,WAAW,CAAC,CAAC;QAC7C,MAAM,CAAC,aAAS,CAAC,wBAAwB,CAAC,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAC;IAC9E,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}