@abyss-project/reflex 6.3.0 → 6.6.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 (123) hide show
  1. package/.prettierrc +5 -5
  2. package/dist/api/function-run.api.d.ts +3 -1
  3. package/dist/api/function-run.api.js +5 -1
  4. package/dist/api/function-run.api.js.map +1 -1
  5. package/dist/api/function-settings.api.d.ts +3 -1
  6. package/dist/api/function-settings.api.js +7 -1
  7. package/dist/api/function-settings.api.js.map +1 -1
  8. package/dist/api/index.d.ts +1 -0
  9. package/dist/api/index.js +1 -0
  10. package/dist/api/index.js.map +1 -1
  11. package/dist/api/storage-surplus.admin.api.d.ts +5 -0
  12. package/dist/api/storage-surplus.admin.api.js +17 -0
  13. package/dist/api/storage-surplus.admin.api.js.map +1 -0
  14. package/dist/discord/discord-command-tree.d.ts +5 -0
  15. package/dist/discord/discord-command-tree.js +38 -0
  16. package/dist/discord/discord-command-tree.js.map +1 -0
  17. package/dist/discord/discord-event-filter-cases.js +27 -11
  18. package/dist/discord/discord-event-filter-cases.js.map +1 -1
  19. package/dist/discord/discord-event-filters.js +7 -3
  20. package/dist/discord/discord-event-filters.js.map +1 -1
  21. package/dist/discord/discord-event-intents.d.ts +8 -2
  22. package/dist/discord/discord-event-intents.js +13 -2
  23. package/dist/discord/discord-event-intents.js.map +1 -1
  24. package/dist/discord/index.d.ts +1 -0
  25. package/dist/discord/index.js +1 -0
  26. package/dist/discord/index.js.map +1 -1
  27. package/dist/index.d.ts +17 -0
  28. package/dist/index.js +20 -1
  29. package/dist/index.js.map +1 -1
  30. package/dist/types/enum/discord-command-node-type.enum.d.ts +5 -0
  31. package/dist/types/enum/discord-command-node-type.enum.js +10 -0
  32. package/dist/types/enum/discord-command-node-type.enum.js.map +1 -0
  33. package/dist/types/enum/discord-command-type.enum.d.ts +5 -0
  34. package/dist/types/enum/discord-command-type.enum.js +10 -0
  35. package/dist/types/enum/discord-command-type.enum.js.map +1 -0
  36. package/dist/types/enum/discord-event-type.enum.d.ts +3 -1
  37. package/dist/types/enum/discord-event-type.enum.js +2 -0
  38. package/dist/types/enum/discord-event-type.enum.js.map +1 -1
  39. package/dist/types/enum/index.d.ts +2 -0
  40. package/dist/types/enum/index.js +2 -0
  41. package/dist/types/enum/index.js.map +1 -1
  42. package/dist/types/enum/reflex-error-code.enum.d.ts +14 -1
  43. package/dist/types/enum/reflex-error-code.enum.js +13 -0
  44. package/dist/types/enum/reflex-error-code.enum.js.map +1 -1
  45. package/dist/types/interface/api/requests/application-run-settings.request.d.ts +1 -0
  46. package/dist/types/interface/api/requests/function-run.request.d.ts +16 -0
  47. package/dist/types/interface/api/requests/function-settings.request.d.ts +12 -0
  48. package/dist/types/interface/api/requests/index.d.ts +1 -0
  49. package/dist/types/interface/api/requests/index.js +1 -0
  50. package/dist/types/interface/api/requests/index.js.map +1 -1
  51. package/dist/types/interface/api/requests/service-discord.request.d.ts +7 -3
  52. package/dist/types/interface/api/requests/service.request.d.ts +1 -0
  53. package/dist/types/interface/api/requests/storage-surplus.admin.request.d.ts +8 -0
  54. package/dist/types/interface/api/requests/storage-surplus.admin.request.js +3 -0
  55. package/dist/types/interface/api/requests/storage-surplus.admin.request.js.map +1 -0
  56. package/dist/types/interface/api/responses/function-run.response.d.ts +12 -0
  57. package/dist/types/interface/api/responses/function-settings.response.d.ts +5 -1
  58. package/dist/types/interface/api/responses/index.d.ts +1 -0
  59. package/dist/types/interface/api/responses/index.js +1 -0
  60. package/dist/types/interface/api/responses/index.js.map +1 -1
  61. package/dist/types/interface/api/responses/storage-surplus.admin.response.d.ts +8 -0
  62. package/dist/types/interface/api/responses/storage-surplus.admin.response.js +3 -0
  63. package/dist/types/interface/api/responses/storage-surplus.admin.response.js.map +1 -0
  64. package/dist/types/interface/models/index.d.ts +2 -0
  65. package/dist/types/interface/models/index.js +2 -0
  66. package/dist/types/interface/models/index.js.map +1 -1
  67. package/dist/types/interface/models/reflex-discord.model.d.ts +18 -2
  68. package/dist/types/interface/models/reflex-discord.model.js +4 -0
  69. package/dist/types/interface/models/reflex-discord.model.js.map +1 -1
  70. package/dist/types/interface/models/reflex-run-retention.model.d.ts +13 -0
  71. package/dist/types/interface/models/reflex-run-retention.model.js +8 -0
  72. package/dist/types/interface/models/reflex-run-retention.model.js.map +1 -0
  73. package/dist/types/interface/models/reflex-run-settings.model.d.ts +4 -0
  74. package/dist/types/interface/models/reflex-run.model.d.ts +9 -0
  75. package/dist/types/interface/models/reflex-run.model.js +4 -1
  76. package/dist/types/interface/models/reflex-run.model.js.map +1 -1
  77. package/dist/types/interface/models/reflex-service-deployment.model.d.ts +2 -2
  78. package/dist/types/interface/models/reflex-service.model.d.ts +1 -0
  79. package/dist/types/interface/models/reflex-storage-surplus.model.d.ts +11 -0
  80. package/dist/types/interface/models/reflex-storage-surplus.model.js +3 -0
  81. package/dist/types/interface/models/reflex-storage-surplus.model.js.map +1 -0
  82. package/package.json +1 -1
  83. package/src/api/application-run-settings.api.test.ts +62 -51
  84. package/src/api/function-run.api.ts +34 -0
  85. package/src/api/function-settings.api.ts +96 -74
  86. package/src/api/function.api.test.ts +346 -291
  87. package/src/api/index.ts +27 -26
  88. package/src/api/service.api.test.ts +220 -215
  89. package/src/api/storage-surplus.admin.api.test.ts +66 -0
  90. package/src/api/storage-surplus.admin.api.ts +45 -0
  91. package/src/discord/discord-command-tree.test.ts +47 -0
  92. package/src/discord/discord-command-tree.ts +60 -0
  93. package/src/discord/discord-event-filter-cases.ts +54 -16
  94. package/src/discord/discord-event-filters.test.ts +33 -4
  95. package/src/discord/discord-event-filters.ts +13 -5
  96. package/src/discord/discord-event-intents.test.ts +27 -0
  97. package/src/discord/discord-event-intents.ts +31 -6
  98. package/src/discord/index.ts +1 -0
  99. package/src/index.ts +44 -0
  100. package/src/types/enum/discord-command-node-type.enum.ts +10 -0
  101. package/src/types/enum/discord-command-type.enum.ts +9 -0
  102. package/src/types/enum/discord-event-type.enum.ts +4 -0
  103. package/src/types/enum/index.ts +2 -0
  104. package/src/types/enum/reflex-error-code.enum.ts +112 -73
  105. package/src/types/interface/api/requests/application-run-settings.request.ts +13 -11
  106. package/src/types/interface/api/requests/function-run.request.ts +53 -32
  107. package/src/types/interface/api/requests/function-settings.request.ts +50 -34
  108. package/src/types/interface/api/requests/index.ts +25 -24
  109. package/src/types/interface/api/requests/service-discord.request.ts +19 -6
  110. package/src/types/interface/api/requests/service.request.ts +48 -46
  111. package/src/types/interface/api/requests/storage-surplus.admin.request.ts +12 -0
  112. package/src/types/interface/api/responses/function-run.response.ts +35 -18
  113. package/src/types/interface/api/responses/function-settings.response.ts +57 -50
  114. package/src/types/interface/api/responses/index.ts +25 -24
  115. package/src/types/interface/api/responses/storage-surplus.admin.response.ts +10 -0
  116. package/src/types/interface/models/index.ts +29 -27
  117. package/src/types/interface/models/reflex-discord.model.ts +45 -4
  118. package/src/types/interface/models/reflex-run-retention.model.ts +24 -0
  119. package/src/types/interface/models/reflex-run-settings.model.ts +39 -28
  120. package/src/types/interface/models/reflex-run.model.ts +317 -299
  121. package/src/types/interface/models/reflex-service-deployment.model.ts +48 -46
  122. package/src/types/interface/models/reflex-service.model.ts +47 -45
  123. package/src/types/interface/models/reflex-storage-surplus.model.ts +23 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"discord-command-node-type.enum.js","sourceRoot":"","sources":["../../../src/types/enum/discord-command-node-type.enum.ts"],"names":[],"mappings":";;;AAKA,IAAY,sBAIX;AAJD,WAAY,sBAAsB;IAChC,6CAAmB,CAAA;IACnB,+DAAqC,CAAA;IACrC,mDAAyB,CAAA;AAC3B,CAAC,EAJW,sBAAsB,sCAAtB,sBAAsB,QAIjC"}
@@ -0,0 +1,5 @@
1
+ export declare enum DiscordCommandType {
2
+ CHAT_INPUT = "CHAT_INPUT",
3
+ USER = "USER",
4
+ MESSAGE = "MESSAGE"
5
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DiscordCommandType = void 0;
4
+ var DiscordCommandType;
5
+ (function (DiscordCommandType) {
6
+ DiscordCommandType["CHAT_INPUT"] = "CHAT_INPUT";
7
+ DiscordCommandType["USER"] = "USER";
8
+ DiscordCommandType["MESSAGE"] = "MESSAGE";
9
+ })(DiscordCommandType || (exports.DiscordCommandType = DiscordCommandType = {}));
10
+ //# sourceMappingURL=discord-command-type.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"discord-command-type.enum.js","sourceRoot":"","sources":["../../../src/types/enum/discord-command-type.enum.ts"],"names":[],"mappings":";;;AACA,IAAY,kBAOX;AAPD,WAAY,kBAAkB;IAE5B,+CAAyB,CAAA;IAEzB,mCAAa,CAAA;IAEb,yCAAmB,CAAA;AACrB,CAAC,EAPW,kBAAkB,kCAAlB,kBAAkB,QAO7B"}
@@ -2,5 +2,7 @@ export declare enum DiscordEventType {
2
2
  GUILD_MEMBER_ADD = "GUILD_MEMBER_ADD",
3
3
  GUILD_MEMBER_REMOVE = "GUILD_MEMBER_REMOVE",
4
4
  MESSAGE_CREATE = "MESSAGE_CREATE",
5
- MESSAGE_REACTION_ADD = "MESSAGE_REACTION_ADD"
5
+ MESSAGE_REACTION_ADD = "MESSAGE_REACTION_ADD",
6
+ MESSAGE_POLL_VOTE_ADD = "MESSAGE_POLL_VOTE_ADD",
7
+ MESSAGE_POLL_VOTE_REMOVE = "MESSAGE_POLL_VOTE_REMOVE"
6
8
  }
@@ -7,5 +7,7 @@ var DiscordEventType;
7
7
  DiscordEventType["GUILD_MEMBER_REMOVE"] = "GUILD_MEMBER_REMOVE";
8
8
  DiscordEventType["MESSAGE_CREATE"] = "MESSAGE_CREATE";
9
9
  DiscordEventType["MESSAGE_REACTION_ADD"] = "MESSAGE_REACTION_ADD";
10
+ DiscordEventType["MESSAGE_POLL_VOTE_ADD"] = "MESSAGE_POLL_VOTE_ADD";
11
+ DiscordEventType["MESSAGE_POLL_VOTE_REMOVE"] = "MESSAGE_POLL_VOTE_REMOVE";
10
12
  })(DiscordEventType || (exports.DiscordEventType = DiscordEventType = {}));
11
13
  //# sourceMappingURL=discord-event-type.enum.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"discord-event-type.enum.js","sourceRoot":"","sources":["../../../src/types/enum/discord-event-type.enum.ts"],"names":[],"mappings":";;;AACA,IAAY,gBAKX;AALD,WAAY,gBAAgB;IAC1B,yDAAqC,CAAA;IACrC,+DAA2C,CAAA;IAC3C,qDAAiC,CAAA;IACjC,iEAA6C,CAAA;AAC/C,CAAC,EALW,gBAAgB,gCAAhB,gBAAgB,QAK3B"}
1
+ {"version":3,"file":"discord-event-type.enum.js","sourceRoot":"","sources":["../../../src/types/enum/discord-event-type.enum.ts"],"names":[],"mappings":";;;AACA,IAAY,gBASX;AATD,WAAY,gBAAgB;IAC1B,yDAAqC,CAAA;IACrC,+DAA2C,CAAA;IAC3C,qDAAiC,CAAA;IACjC,iEAA6C,CAAA;IAE7C,mEAA+C,CAAA;IAE/C,yEAAqD,CAAA;AACvD,CAAC,EATW,gBAAgB,gCAAhB,gBAAgB,QAS3B"}
@@ -20,6 +20,8 @@ export * from './vault-visibility.enum';
20
20
  export * from './configuration-read-as.enum';
21
21
  export * from './service-version-change-kind.enum';
22
22
  export * from './discord-option-type.enum';
23
+ export * from './discord-command-type.enum';
24
+ export * from './discord-command-node-type.enum';
23
25
  export * from './discord-component-kind.enum';
24
26
  export * from './discord-sync-status.enum';
25
27
  export * from './discord-token-state.enum';
@@ -36,6 +36,8 @@ __exportStar(require("./vault-visibility.enum"), exports);
36
36
  __exportStar(require("./configuration-read-as.enum"), exports);
37
37
  __exportStar(require("./service-version-change-kind.enum"), exports);
38
38
  __exportStar(require("./discord-option-type.enum"), exports);
39
+ __exportStar(require("./discord-command-type.enum"), exports);
40
+ __exportStar(require("./discord-command-node-type.enum"), exports);
39
41
  __exportStar(require("./discord-component-kind.enum"), exports);
40
42
  __exportStar(require("./discord-sync-status.enum"), exports);
41
43
  __exportStar(require("./discord-token-state.enum"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/enum/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,6DAA2C;AAC3C,6DAA2C;AAC3C,kDAAgC;AAChC,oDAAkC;AAClC,2DAAyC;AACzC,2DAAyC;AACzC,qDAAmC;AACnC,2DAAyC;AACzC,wDAAsC;AACtC,mEAAiD;AACjD,yDAAuC;AACvC,uDAAqC;AACrC,sDAAoC;AACpC,sDAAoC;AACpC,mEAAiD;AACjD,mEAAiD;AACjD,4DAA0C;AAC1C,0DAAwC;AACxC,+DAA6C;AAC7C,qEAAmD;AACnD,6DAA2C;AAC3C,gEAA8C;AAC9C,6DAA2C;AAC3C,6DAA2C;AAC3C,iEAA+C;AAC/C,+DAA6C;AAC7C,+DAA6C;AAC7C,sEAAoD;AACpD,8DAA4C;AAC5C,8DAA4C;AAC5C,8DAA4C;AAC5C,oEAAkD;AAClD,4DAA0C;AAC1C,8DAA4C;AAC5C,mEAAiD;AACjD,mEAAiD;AACjD,gEAA8C;AAC9C,yDAAuC;AACvC,sDAAoC;AACpC,8DAA4C;AAC5C,wDAAsC;AACtC,6DAA2C;AAC3C,sDAAoC;AACpC,wDAAsC;AACtC,4DAA0C;AAC1C,6DAA2C;AAC3C,yEAAuD;AACvD,+DAA6C;AAC7C,8DAA4C;AAC5C,oEAAkD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/enum/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,6DAA2C;AAC3C,6DAA2C;AAC3C,kDAAgC;AAChC,oDAAkC;AAClC,2DAAyC;AACzC,2DAAyC;AACzC,qDAAmC;AACnC,2DAAyC;AACzC,wDAAsC;AACtC,mEAAiD;AACjD,yDAAuC;AACvC,uDAAqC;AACrC,sDAAoC;AACpC,sDAAoC;AACpC,mEAAiD;AACjD,mEAAiD;AACjD,4DAA0C;AAC1C,0DAAwC;AACxC,+DAA6C;AAC7C,qEAAmD;AACnD,6DAA2C;AAC3C,8DAA4C;AAC5C,mEAAiD;AACjD,gEAA8C;AAC9C,6DAA2C;AAC3C,6DAA2C;AAC3C,iEAA+C;AAC/C,+DAA6C;AAC7C,+DAA6C;AAC7C,sEAAoD;AACpD,8DAA4C;AAC5C,8DAA4C;AAC5C,8DAA4C;AAC5C,oEAAkD;AAClD,4DAA0C;AAC1C,8DAA4C;AAC5C,mEAAiD;AACjD,mEAAiD;AACjD,gEAA8C;AAC9C,yDAAuC;AACvC,sDAAoC;AACpC,8DAA4C;AAC5C,wDAAsC;AACtC,6DAA2C;AAC3C,sDAAoC;AACpC,wDAAsC;AACtC,4DAA0C;AAC1C,6DAA2C;AAC3C,yEAAuD;AACvD,+DAA6C;AAC7C,8DAA4C;AAC5C,oEAAkD"}
@@ -14,6 +14,16 @@ export declare enum ReflexErrorCode {
14
14
  DISCORD_TOKEN_REJECTED = "DISCORD_TOKEN_REJECTED",
15
15
  DISCORD_TEST_GUILD_REQUIRED = "DISCORD_TEST_GUILD_REQUIRED",
16
16
  DISCORD_COMMAND_CONFLICT = "DISCORD_COMMAND_CONFLICT",
17
+ DISCORD_COMMAND_TREE_INVALID = "DISCORD_COMMAND_TREE_INVALID",
18
+ DISCORD_COMMAND_ROOT_ONLY_FIELD = "DISCORD_COMMAND_ROOT_ONLY_FIELD",
19
+ DISCORD_COMMAND_EMPTY_PARENT = "DISCORD_COMMAND_EMPTY_PARENT",
20
+ DISCORD_COMMAND_LIMIT = "DISCORD_COMMAND_LIMIT",
21
+ REPLAY_NOT_EVENT_RUN = "REPLAY_NOT_EVENT_RUN",
22
+ RUN_DETAIL_GONE = "RUN_DETAIL_GONE",
23
+ REPLAY_INPUT_TRUNCATED = "REPLAY_INPUT_TRUNCATED",
24
+ REPLAY_TRIGGER_GONE = "REPLAY_TRIGGER_GONE",
25
+ BOT_EVENTS_BLOCKED = "BOT_EVENTS_BLOCKED",
26
+ REPLAY_RATE_LIMITED = "REPLAY_RATE_LIMITED",
17
27
  DISCORD_COMPONENT_PREFIX_CONFLICT = "DISCORD_COMPONENT_PREFIX_CONFLICT",
18
28
  SERVICE_TYPE_FIELD_REFUSED = "SERVICE_TYPE_FIELD_REFUSED",
19
29
  ROUTE_SEGMENT_RESERVED = "ROUTE_SEGMENT_RESERVED",
@@ -25,5 +35,8 @@ export declare enum ReflexErrorCode {
25
35
  CONTRACT_INVALID = "CONTRACT_INVALID",
26
36
  CONSUMER_LIMIT_REACHED = "CONSUMER_LIMIT_REACHED",
27
37
  CONSUMER_KEY_LIMIT_REACHED = "CONSUMER_KEY_LIMIT_REACHED",
28
- COMPLETION_WEBHOOK_URL_REFUSED = "COMPLETION_WEBHOOK_URL_REFUSED"
38
+ COMPLETION_WEBHOOK_URL_REFUSED = "COMPLETION_WEBHOOK_URL_REFUSED",
39
+ ARCHIVE_UNAVAILABLE = "ARCHIVE_UNAVAILABLE",
40
+ ARCHIVE_DELETED = "ARCHIVE_DELETED",
41
+ STORAGE_PUBLISH_REFUSED = "STORAGE_PUBLISH_REFUSED"
29
42
  }
@@ -18,6 +18,16 @@ var ReflexErrorCode;
18
18
  ReflexErrorCode["DISCORD_TOKEN_REJECTED"] = "DISCORD_TOKEN_REJECTED";
19
19
  ReflexErrorCode["DISCORD_TEST_GUILD_REQUIRED"] = "DISCORD_TEST_GUILD_REQUIRED";
20
20
  ReflexErrorCode["DISCORD_COMMAND_CONFLICT"] = "DISCORD_COMMAND_CONFLICT";
21
+ ReflexErrorCode["DISCORD_COMMAND_TREE_INVALID"] = "DISCORD_COMMAND_TREE_INVALID";
22
+ ReflexErrorCode["DISCORD_COMMAND_ROOT_ONLY_FIELD"] = "DISCORD_COMMAND_ROOT_ONLY_FIELD";
23
+ ReflexErrorCode["DISCORD_COMMAND_EMPTY_PARENT"] = "DISCORD_COMMAND_EMPTY_PARENT";
24
+ ReflexErrorCode["DISCORD_COMMAND_LIMIT"] = "DISCORD_COMMAND_LIMIT";
25
+ ReflexErrorCode["REPLAY_NOT_EVENT_RUN"] = "REPLAY_NOT_EVENT_RUN";
26
+ ReflexErrorCode["RUN_DETAIL_GONE"] = "RUN_DETAIL_GONE";
27
+ ReflexErrorCode["REPLAY_INPUT_TRUNCATED"] = "REPLAY_INPUT_TRUNCATED";
28
+ ReflexErrorCode["REPLAY_TRIGGER_GONE"] = "REPLAY_TRIGGER_GONE";
29
+ ReflexErrorCode["BOT_EVENTS_BLOCKED"] = "BOT_EVENTS_BLOCKED";
30
+ ReflexErrorCode["REPLAY_RATE_LIMITED"] = "REPLAY_RATE_LIMITED";
21
31
  ReflexErrorCode["DISCORD_COMPONENT_PREFIX_CONFLICT"] = "DISCORD_COMPONENT_PREFIX_CONFLICT";
22
32
  ReflexErrorCode["SERVICE_TYPE_FIELD_REFUSED"] = "SERVICE_TYPE_FIELD_REFUSED";
23
33
  ReflexErrorCode["ROUTE_SEGMENT_RESERVED"] = "ROUTE_SEGMENT_RESERVED";
@@ -30,5 +40,8 @@ var ReflexErrorCode;
30
40
  ReflexErrorCode["CONSUMER_LIMIT_REACHED"] = "CONSUMER_LIMIT_REACHED";
31
41
  ReflexErrorCode["CONSUMER_KEY_LIMIT_REACHED"] = "CONSUMER_KEY_LIMIT_REACHED";
32
42
  ReflexErrorCode["COMPLETION_WEBHOOK_URL_REFUSED"] = "COMPLETION_WEBHOOK_URL_REFUSED";
43
+ ReflexErrorCode["ARCHIVE_UNAVAILABLE"] = "ARCHIVE_UNAVAILABLE";
44
+ ReflexErrorCode["ARCHIVE_DELETED"] = "ARCHIVE_DELETED";
45
+ ReflexErrorCode["STORAGE_PUBLISH_REFUSED"] = "STORAGE_PUBLISH_REFUSED";
33
46
  })(ReflexErrorCode || (exports.ReflexErrorCode = ReflexErrorCode = {}));
34
47
  //# sourceMappingURL=reflex-error-code.enum.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"reflex-error-code.enum.js","sourceRoot":"","sources":["../../../src/types/enum/reflex-error-code.enum.ts"],"names":[],"mappings":";;;AACA,IAAY,eAuEX;AAvED,WAAY,eAAe;IAEzB,4DAAyC,CAAA;IAEzC,sDAAmC,CAAA;IAEnC,4CAAyB,CAAA;IAEzB,8DAA2C,CAAA;IAE3C,kEAA+C,CAAA;IAE/C,oDAAiC,CAAA;IAEjC,8EAA2D,CAAA;IAE3D,oDAAiC,CAAA;IAEjC,8DAA2C,CAAA;IAE3C,oDAAiC,CAAA;IAEjC,0DAAuC,CAAA;IAEvC,kEAA+C,CAAA;IAE/C,oEAAiD,CAAA;IAEjD,8EAA2D,CAAA;IAE3D,wEAAqD,CAAA;IAErD,0FAAuE,CAAA;IAEvE,4EAAyD,CAAA;IAKzD,oEAAiD,CAAA;IAEjD,4EAAyD,CAAA;IAEzD,4EAAyD,CAAA;IAKzD,sDAAmC,CAAA;IAKnC,0DAAuC,CAAA;IAMvC,oDAAiC,CAAA;IAEjC,wDAAqC,CAAA;IAErC,oEAAiD,CAAA;IAEjD,4EAAyD,CAAA;IAKzD,oFAAiE,CAAA;AACnE,CAAC,EAvEW,eAAe,+BAAf,eAAe,QAuE1B"}
1
+ {"version":3,"file":"reflex-error-code.enum.js","sourceRoot":"","sources":["../../../src/types/enum/reflex-error-code.enum.ts"],"names":[],"mappings":";;;AACA,IAAY,eA8GX;AA9GD,WAAY,eAAe;IAEzB,4DAAyC,CAAA;IAEzC,sDAAmC,CAAA;IAEnC,4CAAyB,CAAA;IAEzB,8DAA2C,CAAA;IAE3C,kEAA+C,CAAA;IAE/C,oDAAiC,CAAA;IAEjC,8EAA2D,CAAA;IAE3D,oDAAiC,CAAA;IAEjC,8DAA2C,CAAA;IAE3C,oDAAiC,CAAA;IAEjC,0DAAuC,CAAA;IAEvC,kEAA+C,CAAA;IAE/C,oEAAiD,CAAA;IAEjD,8EAA2D,CAAA;IAE3D,wEAAqD,CAAA;IAKrD,gFAA6D,CAAA;IAE7D,sFAAmE,CAAA;IAEnE,gFAA6D,CAAA;IAE7D,kEAA+C,CAAA;IAE/C,gEAA6C,CAAA;IAE7C,sDAAmC,CAAA;IAEnC,oEAAiD,CAAA;IAEjD,8DAA2C,CAAA;IAE3C,4DAAyC,CAAA;IAEzC,8DAA2C,CAAA;IAE3C,0FAAuE,CAAA;IAEvE,4EAAyD,CAAA;IAKzD,oEAAiD,CAAA;IAEjD,4EAAyD,CAAA;IAEzD,4EAAyD,CAAA;IAKzD,sDAAmC,CAAA;IAKnC,0DAAuC,CAAA;IAMvC,oDAAiC,CAAA;IAEjC,wDAAqC,CAAA;IAErC,oEAAiD,CAAA;IAEjD,4EAAyD,CAAA;IAKzD,oFAAiE,CAAA;IAKjE,8DAA2C,CAAA;IAK3C,sDAAmC,CAAA;IAMnC,sEAAmD,CAAA;AACrD,CAAC,EA9GW,eAAe,+BAAf,eAAe,QA8G1B"}
@@ -6,4 +6,5 @@ export interface ISetApplicationRunSettingsParams {
6
6
  }
7
7
  export interface ISetApplicationRunSettingsBody {
8
8
  maxLogLinesPerRun: number | null;
9
+ runRetentionDays?: number | null;
9
10
  }
@@ -1,4 +1,12 @@
1
1
  import type { RunMode } from '../../../enum';
2
+ export interface IReplayFunctionRunParams {
3
+ applicationId: string;
4
+ functionId: string;
5
+ runId: string;
6
+ }
7
+ export interface IReplayFunctionRunBody {
8
+ mode: RunMode.DRY_RUN | RunMode.LIVE;
9
+ }
2
10
  export interface IListFunctionRunParams {
3
11
  applicationId: string;
4
12
  functionId: string;
@@ -21,3 +29,11 @@ export interface IGetFunctionRunStateParams {
21
29
  functionId: string;
22
30
  runId: string;
23
31
  }
32
+ export interface ISetFunctionRunFavoriteParams {
33
+ applicationId: string;
34
+ functionId: string;
35
+ runId: string;
36
+ }
37
+ export interface ISetFunctionRunFavoriteBody {
38
+ isFavorite: boolean;
39
+ }
@@ -24,3 +24,15 @@ export interface ISetFunctionLogCapParams {
24
24
  functionId: string;
25
25
  }
26
26
  export type ISetFunctionLogCapBody = IReflexFunctionLogCap;
27
+ export interface IGetFunctionRunRetentionParams {
28
+ applicationId: string;
29
+ functionId: string;
30
+ }
31
+ export interface ISetFunctionRunRetentionParams {
32
+ applicationId: string;
33
+ functionId: string;
34
+ }
35
+ export interface ISetFunctionRunRetentionBody {
36
+ runRetentionDays?: number | null;
37
+ versionsKept?: number;
38
+ }
@@ -22,3 +22,4 @@ export * from './service-consumer.request';
22
22
  export * from './service-openapi.request';
23
23
  export * from './service-limits.request';
24
24
  export * from './service-completion-webhook.request';
25
+ export * from './storage-surplus.admin.request';
@@ -38,4 +38,5 @@ __exportStar(require("./service-consumer.request"), exports);
38
38
  __exportStar(require("./service-openapi.request"), exports);
39
39
  __exportStar(require("./service-limits.request"), exports);
40
40
  __exportStar(require("./service-completion-webhook.request"), exports);
41
+ __exportStar(require("./storage-surplus.admin.request"), exports);
41
42
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/requests/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,4DAA0C;AAC1C,0DAAwC;AACxC,6DAA2C;AAC3C,yDAAuC;AACvC,8DAA4C;AAC5C,oDAAkC;AAClC,0DAAwC;AACxC,4DAA0C;AAC1C,+DAA6C;AAC7C,kEAAgD;AAChD,4DAA0C;AAC1C,yDAAuC;AACvC,kEAAgD;AAChD,6DAA2C;AAC3C,qEAAmD;AACnD,iEAA+C;AAC/C,uDAAqC;AACrC,wDAAsC;AACtC,8DAA4C;AAC5C,6DAA2C;AAC3C,4DAA0C;AAC1C,2DAAyC;AACzC,uEAAqD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/requests/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,4DAA0C;AAC1C,0DAAwC;AACxC,6DAA2C;AAC3C,yDAAuC;AACvC,8DAA4C;AAC5C,oDAAkC;AAClC,0DAAwC;AACxC,4DAA0C;AAC1C,+DAA6C;AAC7C,kEAAgD;AAChD,4DAA0C;AAC1C,yDAAuC;AACvC,kEAAgD;AAChD,6DAA2C;AAC3C,qEAAmD;AACnD,iEAA+C;AAC/C,uDAAqC;AACrC,wDAAsC;AACtC,8DAA4C;AAC5C,6DAA2C;AAC3C,4DAA0C;AAC1C,2DAAyC;AACzC,uEAAqD;AACrD,kEAAgD"}
@@ -1,4 +1,4 @@
1
- import type { DiscordActivityType, DiscordComponentKind, DiscordPresenceStatus } from '../../../enum';
1
+ import type { DiscordActivityType, DiscordCommandNodeType, DiscordCommandType, DiscordComponentKind, DiscordPresenceStatus } from '../../../enum';
2
2
  import type { IReflexDiscordCommandOption, ReflexDiscordLocalizations } from '../../models';
3
3
  export interface IListServiceDiscordCommandParams {
4
4
  applicationId: string;
@@ -9,10 +9,13 @@ export interface ICreateServiceDiscordCommandParams {
9
9
  serviceId: string;
10
10
  }
11
11
  export interface ICreateServiceDiscordCommandBody {
12
+ type?: DiscordCommandType;
13
+ nodeType?: DiscordCommandNodeType;
14
+ parentId?: string;
12
15
  name: string;
13
- description: string;
16
+ description?: string;
14
17
  options?: IReflexDiscordCommandOption[];
15
- functionId: string;
18
+ functionId?: string;
16
19
  defaultMemberPermissions?: string | null;
17
20
  allowedInDirectMessages?: boolean;
18
21
  nameLocalizations?: ReflexDiscordLocalizations | null;
@@ -91,6 +94,7 @@ export interface ISetServiceDiscordEnvironmentBody {
91
94
  activityType?: DiscordActivityType | null;
92
95
  activityText?: string | null;
93
96
  maxAttachmentBytes?: number;
97
+ pollVotesEnabled?: boolean;
94
98
  }
95
99
  export interface ICheckServiceDiscordConnectionParams {
96
100
  applicationId: string;
@@ -25,6 +25,7 @@ export interface IUpdateServiceBody {
25
25
  name?: string;
26
26
  cors?: IReflexServiceCors;
27
27
  rateLimitPerIpPerMinute?: number;
28
+ versionsKept?: number;
28
29
  }
29
30
  export interface IDeleteServiceParams {
30
31
  applicationId: string;
@@ -0,0 +1,8 @@
1
+ import type { IReflexStorageSurplusOwner } from '../../models';
2
+ export interface IListStorageSurplusAdminBody {
3
+ owner: IReflexStorageSurplusOwner;
4
+ }
5
+ export interface IApplyStorageSurplusAdminBody {
6
+ owner: IReflexStorageSurplusOwner;
7
+ itemIds: string[];
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=storage-surplus.admin.request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storage-surplus.admin.request.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/requests/storage-surplus.admin.request.ts"],"names":[],"mappings":""}
@@ -1,5 +1,6 @@
1
1
  import type { IReflexExecutionState, IReflexRun, IReflexRunDetail } from '../../models';
2
2
  import type { IResponse } from '../response';
3
+ import type { RunMode } from '../../../enum';
3
4
  export interface IListFunctionRunData {
4
5
  runs: IReflexRun[];
5
6
  }
@@ -8,7 +9,18 @@ export interface IGetFunctionRunData {
8
9
  run: IReflexRunDetail;
9
10
  }
10
11
  export type IGetFunctionRunResponse = IResponse<IGetFunctionRunData>;
12
+ export interface IReplayFunctionRunData {
13
+ mode: RunMode.DRY_RUN | RunMode.LIVE;
14
+ masked: boolean;
15
+ run?: IReflexRun;
16
+ eventId?: string;
17
+ }
18
+ export type IReplayFunctionRunResponse = IResponse<IReplayFunctionRunData>;
11
19
  export interface IGetFunctionRunStateData {
12
20
  state: IReflexExecutionState;
13
21
  }
14
22
  export type IGetFunctionRunStateResponse = IResponse<IGetFunctionRunStateData>;
23
+ export interface ISetFunctionRunFavoriteData {
24
+ run: IReflexRun;
25
+ }
26
+ export type ISetFunctionRunFavoriteResponse = IResponse<ISetFunctionRunFavoriteData>;
@@ -1,4 +1,4 @@
1
- import type { IReflexEffectiveExecutionSettings, IReflexExecutionSettings, IReflexExecutionSettingsValues, IReflexFunctionLogCap, IReflexIssuedCompletionSecret, IReflexPriceList } from '../../models';
1
+ import type { IReflexEffectiveExecutionSettings, IReflexExecutionSettings, IReflexExecutionSettingsValues, IReflexFunctionLogCap, IReflexFunctionRunRetention, IReflexIssuedCompletionSecret, IReflexPriceList } from '../../models';
2
2
  import type { IResponse } from '../response';
3
3
  export interface IGetFunctionSettingsData {
4
4
  default: IReflexExecutionSettings | null;
@@ -23,3 +23,7 @@ export type IRemoveFunctionEnvironmentSettingsData = Record<string, never>;
23
23
  export type IRemoveFunctionEnvironmentSettingsResponse = IResponse<IRemoveFunctionEnvironmentSettingsData>;
24
24
  export type ISetFunctionLogCapData = IReflexFunctionLogCap;
25
25
  export type ISetFunctionLogCapResponse = IResponse<ISetFunctionLogCapData>;
26
+ export type IGetFunctionRunRetentionData = IReflexFunctionRunRetention;
27
+ export type IGetFunctionRunRetentionResponse = IResponse<IGetFunctionRunRetentionData>;
28
+ export type ISetFunctionRunRetentionData = IReflexFunctionRunRetention;
29
+ export type ISetFunctionRunRetentionResponse = IResponse<ISetFunctionRunRetentionData>;
@@ -22,3 +22,4 @@ export * from './service-consumer.response';
22
22
  export * from './service-openapi.response';
23
23
  export * from './service-limits.response';
24
24
  export * from './service-completion-webhook.response';
25
+ export * from './storage-surplus.admin.response';
@@ -38,4 +38,5 @@ __exportStar(require("./service-consumer.response"), exports);
38
38
  __exportStar(require("./service-openapi.response"), exports);
39
39
  __exportStar(require("./service-limits.response"), exports);
40
40
  __exportStar(require("./service-completion-webhook.response"), exports);
41
+ __exportStar(require("./storage-surplus.admin.response"), exports);
41
42
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,6DAA2C;AAC3C,2DAAyC;AACzC,8DAA4C;AAC5C,0DAAwC;AACxC,+DAA6C;AAC7C,qDAAmC;AACnC,2DAAyC;AACzC,6DAA2C;AAC3C,gEAA8C;AAC9C,mEAAiD;AACjD,6DAA2C;AAC3C,0DAAwC;AACxC,mEAAiD;AACjD,8DAA4C;AAC5C,sEAAoD;AACpD,kEAAgD;AAChD,wDAAsC;AACtC,yDAAuC;AACvC,+DAA6C;AAC7C,8DAA4C;AAC5C,6DAA2C;AAC3C,4DAA0C;AAC1C,wEAAsD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,6DAA2C;AAC3C,2DAAyC;AACzC,8DAA4C;AAC5C,0DAAwC;AACxC,+DAA6C;AAC7C,qDAAmC;AACnC,2DAAyC;AACzC,6DAA2C;AAC3C,gEAA8C;AAC9C,mEAAiD;AACjD,6DAA2C;AAC3C,0DAAwC;AACxC,mEAAiD;AACjD,8DAA4C;AAC5C,sEAAoD;AACpD,kEAAgD;AAChD,wDAAsC;AACtC,yDAAuC;AACvC,+DAA6C;AAC7C,8DAA4C;AAC5C,6DAA2C;AAC3C,4DAA0C;AAC1C,wEAAsD;AACtD,mEAAiD"}
@@ -0,0 +1,8 @@
1
+ import type { IReflexStorageSurplusItem } from '../../models';
2
+ import type { IResponse } from '../response';
3
+ export interface IListStorageSurplusAdminData {
4
+ items: IReflexStorageSurplusItem[];
5
+ }
6
+ export type IListStorageSurplusAdminResponse = IResponse<IListStorageSurplusAdminData>;
7
+ export type IApplyStorageSurplusAdminData = Record<string, never>;
8
+ export type IApplyStorageSurplusAdminResponse = IResponse<IApplyStorageSurplusAdminData>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=storage-surplus.admin.response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storage-surplus.admin.response.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/storage-surplus.admin.response.ts"],"names":[],"mappings":""}
@@ -25,3 +25,5 @@ export * from './reflex-route-contract.model';
25
25
  export * from './reflex-consumer.model';
26
26
  export * from './reflex-service-limits.model';
27
27
  export * from './reflex-completion-webhook.model';
28
+ export * from './reflex-run-retention.model';
29
+ export * from './reflex-storage-surplus.model';
@@ -41,4 +41,6 @@ __exportStar(require("./reflex-route-contract.model"), exports);
41
41
  __exportStar(require("./reflex-consumer.model"), exports);
42
42
  __exportStar(require("./reflex-service-limits.model"), exports);
43
43
  __exportStar(require("./reflex-completion-webhook.model"), exports);
44
+ __exportStar(require("./reflex-run-retention.model"), exports);
45
+ __exportStar(require("./reflex-storage-surplus.model"), exports);
44
46
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/interface/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,0DAAwC;AACxC,kEAAgD;AAChD,8DAA4C;AAC5C,qDAAmC;AACnC,oEAAkD;AAClD,4DAA0C;AAC1C,4DAA0C;AAC1C,yDAAuC;AACvC,uDAAqC;AACrC,iEAA+C;AAC/C,oEAAkD;AAClD,uEAAqD;AACrD,yDAAuC;AACvC,sDAAoC;AACpC,+DAA6C;AAC7C,4DAA0C;AAC1C,0DAAwC;AACxC,mEAAiD;AACjD,8DAA4C;AAC5C,4DAA0C;AAC1C,gEAA8C;AAC9C,mEAAiD;AACjD,gEAA8C;AAC9C,0DAAwC;AACxC,gEAA8C;AAC9C,oEAAkD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/interface/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,0DAAwC;AACxC,kEAAgD;AAChD,8DAA4C;AAC5C,qDAAmC;AACnC,oEAAkD;AAClD,4DAA0C;AAC1C,4DAA0C;AAC1C,yDAAuC;AACvC,uDAAqC;AACrC,iEAA+C;AAC/C,oEAAkD;AAClD,uEAAqD;AACrD,yDAAuC;AACvC,sDAAoC;AACpC,+DAA6C;AAC7C,4DAA0C;AAC1C,0DAAwC;AACxC,mEAAiD;AACjD,8DAA4C;AAC5C,4DAA0C;AAC1C,gEAA8C;AAC9C,mEAAiD;AACjD,gEAA8C;AAC9C,0DAAwC;AACxC,gEAA8C;AAC9C,oEAAkD;AAClD,+DAA6C;AAC7C,iEAA+C"}
@@ -1,9 +1,13 @@
1
- import type { DiscordActivityType, DiscordChannelType, DiscordComponentKind, DiscordLocale, DiscordGatewayFailureCode, DiscordGatewayState, DiscordOptionType, DiscordPresenceStatus, DiscordTokenState } from '../../enum';
1
+ import type { DiscordActivityType, DiscordChannelType, DiscordCommandNodeType, DiscordCommandType, DiscordComponentKind, DiscordLocale, DiscordGatewayFailureCode, DiscordGatewayState, DiscordOptionType, DiscordPresenceStatus, DiscordTokenState } from '../../enum';
2
2
  export declare const REFLEX_DISCORD_LIMITS: {
3
3
  readonly commandNamePattern: RegExp;
4
4
  readonly localizedNamePattern: RegExp;
5
5
  readonly commandDescriptionMaxLength: 100;
6
6
  readonly commandsPerServiceMax: 100;
7
+ readonly userCommandsPerServiceMax: 15;
8
+ readonly messageCommandsPerServiceMax: 15;
9
+ readonly contextMenuNameMaxLength: 32;
10
+ readonly subcommandsPerLevelMax: 25;
7
11
  readonly optionsPerCommandMax: 25;
8
12
  readonly choicesPerOptionMax: 25;
9
13
  readonly componentPrefixPattern: RegExp;
@@ -38,7 +42,10 @@ export interface IReflexDiscordCommandOption {
38
42
  export interface IReflexDiscordCommand {
39
43
  id: string;
40
44
  serviceId: string;
41
- functionId: string;
45
+ type: DiscordCommandType;
46
+ nodeType: DiscordCommandNodeType;
47
+ parentId: string | null;
48
+ functionId: string | null;
42
49
  name: string;
43
50
  description: string;
44
51
  options: IReflexDiscordCommandOption[];
@@ -63,7 +70,14 @@ export type IReflexDiscordCommandSnapshot = Pick<IReflexDiscordCommand, 'id' | '
63
70
  nameLocalizations?: ReflexDiscordLocalizations;
64
71
  descriptionLocalizations?: ReflexDiscordLocalizations;
65
72
  userInstallable?: true;
73
+ type?: DiscordCommandType;
74
+ nodeType?: DiscordCommandNodeType;
75
+ parentId?: string;
66
76
  };
77
+ export interface IReflexDiscordCommandTreeNode<T extends Pick<IReflexDiscordCommand, 'id' | 'parentId' | 'name'> = IReflexDiscordCommand> {
78
+ command: T;
79
+ children: IReflexDiscordCommandTreeNode<T>[];
80
+ }
67
81
  export type IReflexDiscordComponentSnapshot = Pick<IReflexDiscordComponent, 'id' | 'functionId' | 'customIdPrefix' | 'kind'>;
68
82
  export interface IReflexDiscordEnvironmentSettings {
69
83
  id: string;
@@ -75,6 +89,7 @@ export interface IReflexDiscordEnvironmentSettings {
75
89
  activityType: DiscordActivityType | null;
76
90
  activityText: string | null;
77
91
  maxAttachmentBytes: number;
92
+ pollVotesEnabled: boolean;
78
93
  createdAt: Date;
79
94
  updatedAt: Date;
80
95
  }
@@ -97,6 +112,7 @@ export interface IReflexDiscordEnvironmentConnection {
97
112
  activityType: DiscordActivityType | null;
98
113
  activityText: string | null;
99
114
  maxAttachmentBytes: number;
115
+ pollVotesEnabled: boolean;
100
116
  presence: IReflexDiscordPresence | null;
101
117
  interactionsUrl: string;
102
118
  inviteUrl: string | null;
@@ -6,6 +6,10 @@ exports.REFLEX_DISCORD_LIMITS = {
6
6
  localizedNamePattern: /^[-_'\p{L}\p{N}\p{sc=Deva}\p{sc=Thai}]{1,32}$/u,
7
7
  commandDescriptionMaxLength: 100,
8
8
  commandsPerServiceMax: 100,
9
+ userCommandsPerServiceMax: 15,
10
+ messageCommandsPerServiceMax: 15,
11
+ contextMenuNameMaxLength: 32,
12
+ subcommandsPerLevelMax: 25,
9
13
  optionsPerCommandMax: 25,
10
14
  choicesPerOptionMax: 25,
11
15
  componentPrefixPattern: /^[a-z0-9_-]{1,40}$/,
@@ -1 +1 @@
1
- {"version":3,"file":"reflex-discord.model.js","sourceRoot":"","sources":["../../../../src/types/interface/models/reflex-discord.model.ts"],"names":[],"mappings":";;;AAaa,QAAA,qBAAqB,GAAG;IAEnC,kBAAkB,EAAE,oBAAoB;IAKxC,oBAAoB,EAAE,gDAAgD;IACtE,2BAA2B,EAAE,GAAG;IAChC,qBAAqB,EAAE,GAAG;IAC1B,oBAAoB,EAAE,EAAE;IACxB,mBAAmB,EAAE,EAAE;IAEvB,sBAAsB,EAAE,oBAAoB;IAC5C,kBAAkB,EAAE,GAAG;IAEvB,eAAe,EAAE,IAAI;IAErB,mBAAmB,EAAE,GAAG;IAExB,yBAAyB,EAAE,CAAC,GAAG,IAAI,GAAG,IAAI;IAC1C,uBAAuB,EAAE,CAAC,GAAG,IAAI,GAAG,IAAI;CAChC,CAAC;AAGJ,MAAM,oBAAoB,GAAG,CAAC,IAAY,EAAW,EAAE,CAC5D,6BAAqB,CAAC,oBAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,KAAK,IAAI,CAAC,WAAW,EAAE,CAAC;AAD1E,QAAA,oBAAoB,wBACsD"}
1
+ {"version":3,"file":"reflex-discord.model.js","sourceRoot":"","sources":["../../../../src/types/interface/models/reflex-discord.model.ts"],"names":[],"mappings":";;;AAea,QAAA,qBAAqB,GAAG;IAEnC,kBAAkB,EAAE,oBAAoB;IAKxC,oBAAoB,EAAE,gDAAgD;IACtE,2BAA2B,EAAE,GAAG;IAEhC,qBAAqB,EAAE,GAAG;IAE1B,yBAAyB,EAAE,EAAE;IAC7B,4BAA4B,EAAE,EAAE;IAEhC,wBAAwB,EAAE,EAAE;IAE5B,sBAAsB,EAAE,EAAE;IAC1B,oBAAoB,EAAE,EAAE;IACxB,mBAAmB,EAAE,EAAE;IAEvB,sBAAsB,EAAE,oBAAoB;IAC5C,kBAAkB,EAAE,GAAG;IAEvB,eAAe,EAAE,IAAI;IAErB,mBAAmB,EAAE,GAAG;IAExB,yBAAyB,EAAE,CAAC,GAAG,IAAI,GAAG,IAAI;IAC1C,uBAAuB,EAAE,CAAC,GAAG,IAAI,GAAG,IAAI;CAChC,CAAC;AAGJ,MAAM,oBAAoB,GAAG,CAAC,IAAY,EAAW,EAAE,CAC5D,6BAAqB,CAAC,oBAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,KAAK,IAAI,CAAC,WAAW,EAAE,CAAC;AAD1E,QAAA,oBAAoB,wBACsD"}
@@ -0,0 +1,13 @@
1
+ export declare const REFLEX_RUN_RETENTION_TIER_DAYS: readonly [3, 7, 15, 30, 90, 180, 365];
2
+ export declare const REFLEX_VERSIONS_KEPT: {
3
+ readonly default: 20;
4
+ readonly min: 5;
5
+ readonly max: 100;
6
+ };
7
+ export declare const REFLEX_RUN_ARCHIVE_AFTER_DAYS = 30;
8
+ export declare const REFLEX_RUN_ARCHIVE_MIN_TIER_DAYS = 90;
9
+ export interface IReflexFunctionRunRetention {
10
+ runRetentionDays: number | null;
11
+ inheritedDays: number | null;
12
+ versionsKept: number;
13
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.REFLEX_RUN_ARCHIVE_MIN_TIER_DAYS = exports.REFLEX_RUN_ARCHIVE_AFTER_DAYS = exports.REFLEX_VERSIONS_KEPT = exports.REFLEX_RUN_RETENTION_TIER_DAYS = void 0;
4
+ exports.REFLEX_RUN_RETENTION_TIER_DAYS = [3, 7, 15, 30, 90, 180, 365];
5
+ exports.REFLEX_VERSIONS_KEPT = { default: 20, min: 5, max: 100 };
6
+ exports.REFLEX_RUN_ARCHIVE_AFTER_DAYS = 30;
7
+ exports.REFLEX_RUN_ARCHIVE_MIN_TIER_DAYS = 90;
8
+ //# sourceMappingURL=reflex-run-retention.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reflex-run-retention.model.js","sourceRoot":"","sources":["../../../../src/types/interface/models/reflex-run-retention.model.ts"],"names":[],"mappings":";;;AAIa,QAAA,8BAA8B,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,CAAU,CAAC;AAGvE,QAAA,oBAAoB,GAAG,EAAE,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,EAAW,CAAC;AAGlE,QAAA,6BAA6B,GAAG,EAAE,CAAC;AAGnC,QAAA,gCAAgC,GAAG,EAAE,CAAC"}
@@ -11,6 +11,10 @@ export interface IReflexApplicationRunSettings {
11
11
  applicationId: string;
12
12
  maxLogLinesPerRun: number | null;
13
13
  retentionDays: number | null;
14
+ runRetentionDays: number | null;
15
+ historyMinimal: boolean;
16
+ storedBytesOnline: number;
17
+ storedBytesArchive: number;
14
18
  monitorActivated: boolean;
15
19
  }
16
20
  export interface IReflexFunctionLogCap {
@@ -65,6 +65,9 @@ export interface IReflexRunTrace {
65
65
  truncated: boolean;
66
66
  truncatedFields: string[];
67
67
  }
68
+ export declare const REFLEX_REPLAY_LIMITS: {
69
+ readonly liveReplaysPerMinute: 10;
70
+ };
68
71
  export interface IReflexRun {
69
72
  id: string;
70
73
  functionId: string;
@@ -79,6 +82,7 @@ export interface IReflexRun {
79
82
  componentId: string | null;
80
83
  taskId: string | null;
81
84
  eventTriggerId: string | null;
85
+ replayOfRunId: string | null;
82
86
  traceId: string | null;
83
87
  scheduledRunOrigin: ScheduledRunOrigin | null;
84
88
  originLabel: string | null;
@@ -97,6 +101,11 @@ export interface IReflexRun {
97
101
  delivery?: IReflexCompletionDelivery;
98
102
  createdByUserId: string | null;
99
103
  createdAt: Date;
104
+ expiresAt: string | null;
105
+ isFavorite: boolean;
106
+ historyMinimal: boolean;
107
+ storedBytes: number | null;
108
+ detailArchivedAt: string | null;
100
109
  }
101
110
  export interface IReflexRunConsumer {
102
111
  id: string;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.REFLEX_RUN_DETAIL_LIMITS = void 0;
3
+ exports.REFLEX_REPLAY_LIMITS = exports.REFLEX_RUN_DETAIL_LIMITS = void 0;
4
4
  exports.REFLEX_RUN_DETAIL_LIMITS = {
5
5
  totalBytes: 65_536,
6
6
  errorBytes: 4_096,
@@ -9,4 +9,7 @@ exports.REFLEX_RUN_DETAIL_LIMITS = {
9
9
  responseBytes: 16_384,
10
10
  entryBytes: 4_096,
11
11
  };
12
+ exports.REFLEX_REPLAY_LIMITS = {
13
+ liveReplaysPerMinute: 10,
14
+ };
12
15
  //# sourceMappingURL=reflex-run.model.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"reflex-run.model.js","sourceRoot":"","sources":["../../../../src/types/interface/models/reflex-run.model.ts"],"names":[],"mappings":";;;AAoDa,QAAA,wBAAwB,GAAG;IAEtC,UAAU,EAAE,MAAM;IAElB,UAAU,EAAE,KAAK;IAEjB,gBAAgB,EAAE,KAAK;IAEvB,gBAAgB,EAAE,MAAM;IAExB,aAAa,EAAE,MAAM;IAErB,UAAU,EAAE,KAAK;CACT,CAAC"}
1
+ {"version":3,"file":"reflex-run.model.js","sourceRoot":"","sources":["../../../../src/types/interface/models/reflex-run.model.ts"],"names":[],"mappings":";;;AAoDa,QAAA,wBAAwB,GAAG;IAEtC,UAAU,EAAE,MAAM;IAElB,UAAU,EAAE,KAAK;IAEjB,gBAAgB,EAAE,KAAK;IAEvB,gBAAgB,EAAE,MAAM;IAExB,aAAa,EAAE,MAAM;IAErB,UAAU,EAAE,KAAK;CACT,CAAC;AAkDE,QAAA,oBAAoB,GAAG;IAElC,oBAAoB,EAAE,EAAE;CAChB,CAAC"}
@@ -9,8 +9,8 @@ export interface IReflexServiceDeployment {
9
9
  serviceId: string;
10
10
  environmentId: string;
11
11
  environmentSlug: string;
12
- serviceVersionId: string;
13
- serviceVersionNumber: number;
12
+ serviceVersionId: string | null;
13
+ serviceVersionNumber: number | null;
14
14
  action: ServiceDeploymentAction;
15
15
  status: ServiceDeploymentStatus;
16
16
  grants: IReflexServiceDeploymentGrant[];
@@ -25,6 +25,7 @@ export interface IReflexService {
25
25
  discordTokenSecretId: string | null;
26
26
  cors: IReflexServiceCors;
27
27
  rateLimitPerIpPerMinute: number;
28
+ versionsKept: number;
28
29
  createdByUserId: string;
29
30
  updatedByUserId: string;
30
31
  createdAt: Date;
@@ -0,0 +1,11 @@
1
+ export interface IReflexStorageSurplusOwner {
2
+ organizationId?: string | null;
3
+ userId?: string | null;
4
+ }
5
+ export interface IReflexStorageSurplusItem {
6
+ id: string;
7
+ sizeBytes: number;
8
+ createdAt: Date | string;
9
+ isFavorite: boolean;
10
+ label: string;
11
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=reflex-storage-surplus.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reflex-storage-surplus.model.js","sourceRoot":"","sources":["../../../../src/types/interface/models/reflex-storage-surplus.model.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abyss-project/reflex",
3
- "version": "6.3.0",
3
+ "version": "6.6.0",
4
4
  "description": "Core package to interact with AbyssReflex",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",