@delta-base/core 1.7.3 → 1.7.4

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.
package/dist/openapi.json CHANGED
@@ -4777,26 +4777,82 @@
4777
4777
  "type": "object",
4778
4778
  "properties": {
4779
4779
  "retryPolicy": {
4780
- "type": "object",
4781
- "properties": {
4782
- "maxAttempts": {
4783
- "type": "integer",
4784
- "minimum": 0,
4785
- "exclusiveMinimum": true,
4786
- "description": "Maximum number of delivery attempts before giving up"
4780
+ "anyOf": [
4781
+ {
4782
+ "type": "object",
4783
+ "properties": {
4784
+ "strategy": {
4785
+ "type": "string",
4786
+ "enum": [
4787
+ "exponential",
4788
+ "linear",
4789
+ "fixed"
4790
+ ],
4791
+ "description": "The retry strategy to use"
4792
+ },
4793
+ "maxAttempts": {
4794
+ "type": "integer",
4795
+ "minimum": 0,
4796
+ "exclusiveMinimum": true,
4797
+ "description": "Maximum number of delivery attempts"
4798
+ },
4799
+ "initialDelayMs": {
4800
+ "type": "integer",
4801
+ "minimum": 0,
4802
+ "exclusiveMinimum": true,
4803
+ "description": "Initial delay in milliseconds before first retry"
4804
+ },
4805
+ "maxDelayMs": {
4806
+ "type": "integer",
4807
+ "minimum": 0,
4808
+ "exclusiveMinimum": true,
4809
+ "description": "Maximum delay in milliseconds between retries"
4810
+ },
4811
+ "multiplier": {
4812
+ "type": "number",
4813
+ "minimum": 0,
4814
+ "exclusiveMinimum": true,
4815
+ "description": "Multiplier for exponential backoff (default: 2)"
4816
+ },
4817
+ "jitterPercent": {
4818
+ "type": "number",
4819
+ "minimum": 0,
4820
+ "maximum": 100,
4821
+ "description": "Percentage of jitter to add (0-100) to prevent thundering herd"
4822
+ }
4823
+ },
4824
+ "required": [
4825
+ "strategy",
4826
+ "maxAttempts",
4827
+ "initialDelayMs",
4828
+ "maxDelayMs"
4829
+ ],
4830
+ "description": "V2 retry policy configuration"
4787
4831
  },
4788
- "backoffMinutes": {
4789
- "type": "integer",
4790
- "minimum": 0,
4791
- "exclusiveMinimum": true,
4792
- "description": "How many minutes to wait between retry attempts"
4832
+ {
4833
+ "type": "object",
4834
+ "properties": {
4835
+ "maxAttempts": {
4836
+ "type": "integer",
4837
+ "minimum": 0,
4838
+ "exclusiveMinimum": true,
4839
+ "description": "Maximum number of delivery attempts"
4840
+ },
4841
+ "backoffMinutes": {
4842
+ "type": "integer",
4843
+ "minimum": 0,
4844
+ "exclusiveMinimum": true,
4845
+ "description": "Minutes between retry attempts (deprecated, use V2 format)"
4846
+ }
4847
+ },
4848
+ "required": [
4849
+ "maxAttempts",
4850
+ "backoffMinutes"
4851
+ ],
4852
+ "description": "Legacy (V1) retry policy — deprecated, use V2 format"
4793
4853
  }
4794
- },
4795
- "required": [
4796
- "maxAttempts",
4797
- "backoffMinutes"
4798
4854
  ],
4799
- "description": "Configuration for retry behavior"
4855
+ "description": "Retry policy. Accepts V2 format (strategy, initialDelayMs, etc.) or legacy V1 format (maxAttempts + backoffMinutes, deprecated)."
4800
4856
  },
4801
4857
  "namespace": {
4802
4858
  "type": "string",
@@ -4832,26 +4888,82 @@
4832
4888
  "type": "object",
4833
4889
  "properties": {
4834
4890
  "retryPolicy": {
4835
- "type": "object",
4836
- "properties": {
4837
- "maxAttempts": {
4838
- "type": "integer",
4839
- "minimum": 0,
4840
- "exclusiveMinimum": true,
4841
- "description": "Maximum number of delivery attempts before giving up"
4891
+ "anyOf": [
4892
+ {
4893
+ "type": "object",
4894
+ "properties": {
4895
+ "strategy": {
4896
+ "type": "string",
4897
+ "enum": [
4898
+ "exponential",
4899
+ "linear",
4900
+ "fixed"
4901
+ ],
4902
+ "description": "The retry strategy to use"
4903
+ },
4904
+ "maxAttempts": {
4905
+ "type": "integer",
4906
+ "minimum": 0,
4907
+ "exclusiveMinimum": true,
4908
+ "description": "Maximum number of delivery attempts"
4909
+ },
4910
+ "initialDelayMs": {
4911
+ "type": "integer",
4912
+ "minimum": 0,
4913
+ "exclusiveMinimum": true,
4914
+ "description": "Initial delay in milliseconds before first retry"
4915
+ },
4916
+ "maxDelayMs": {
4917
+ "type": "integer",
4918
+ "minimum": 0,
4919
+ "exclusiveMinimum": true,
4920
+ "description": "Maximum delay in milliseconds between retries"
4921
+ },
4922
+ "multiplier": {
4923
+ "type": "number",
4924
+ "minimum": 0,
4925
+ "exclusiveMinimum": true,
4926
+ "description": "Multiplier for exponential backoff (default: 2)"
4927
+ },
4928
+ "jitterPercent": {
4929
+ "type": "number",
4930
+ "minimum": 0,
4931
+ "maximum": 100,
4932
+ "description": "Percentage of jitter to add (0-100) to prevent thundering herd"
4933
+ }
4934
+ },
4935
+ "required": [
4936
+ "strategy",
4937
+ "maxAttempts",
4938
+ "initialDelayMs",
4939
+ "maxDelayMs"
4940
+ ],
4941
+ "description": "V2 retry policy configuration"
4842
4942
  },
4843
- "backoffMinutes": {
4844
- "type": "integer",
4845
- "minimum": 0,
4846
- "exclusiveMinimum": true,
4847
- "description": "How many minutes to wait between retry attempts"
4943
+ {
4944
+ "type": "object",
4945
+ "properties": {
4946
+ "maxAttempts": {
4947
+ "type": "integer",
4948
+ "minimum": 0,
4949
+ "exclusiveMinimum": true,
4950
+ "description": "Maximum number of delivery attempts"
4951
+ },
4952
+ "backoffMinutes": {
4953
+ "type": "integer",
4954
+ "minimum": 0,
4955
+ "exclusiveMinimum": true,
4956
+ "description": "Minutes between retry attempts (deprecated, use V2 format)"
4957
+ }
4958
+ },
4959
+ "required": [
4960
+ "maxAttempts",
4961
+ "backoffMinutes"
4962
+ ],
4963
+ "description": "Legacy (V1) retry policy — deprecated, use V2 format"
4848
4964
  }
4849
- },
4850
- "required": [
4851
- "maxAttempts",
4852
- "backoffMinutes"
4853
4965
  ],
4854
- "description": "Configuration for retry behavior"
4966
+ "description": "Retry policy. Accepts V2 format (strategy, initialDelayMs, etc.) or legacy V1 format (maxAttempts + backoffMinutes, deprecated)."
4855
4967
  },
4856
4968
  "url": {
4857
4969
  "type": "string",
@@ -4896,26 +5008,82 @@
4896
5008
  "type": "object",
4897
5009
  "properties": {
4898
5010
  "retryPolicy": {
4899
- "type": "object",
4900
- "properties": {
4901
- "maxAttempts": {
4902
- "type": "integer",
4903
- "minimum": 0,
4904
- "exclusiveMinimum": true,
4905
- "description": "Maximum number of delivery attempts before giving up"
5011
+ "anyOf": [
5012
+ {
5013
+ "type": "object",
5014
+ "properties": {
5015
+ "strategy": {
5016
+ "type": "string",
5017
+ "enum": [
5018
+ "exponential",
5019
+ "linear",
5020
+ "fixed"
5021
+ ],
5022
+ "description": "The retry strategy to use"
5023
+ },
5024
+ "maxAttempts": {
5025
+ "type": "integer",
5026
+ "minimum": 0,
5027
+ "exclusiveMinimum": true,
5028
+ "description": "Maximum number of delivery attempts"
5029
+ },
5030
+ "initialDelayMs": {
5031
+ "type": "integer",
5032
+ "minimum": 0,
5033
+ "exclusiveMinimum": true,
5034
+ "description": "Initial delay in milliseconds before first retry"
5035
+ },
5036
+ "maxDelayMs": {
5037
+ "type": "integer",
5038
+ "minimum": 0,
5039
+ "exclusiveMinimum": true,
5040
+ "description": "Maximum delay in milliseconds between retries"
5041
+ },
5042
+ "multiplier": {
5043
+ "type": "number",
5044
+ "minimum": 0,
5045
+ "exclusiveMinimum": true,
5046
+ "description": "Multiplier for exponential backoff (default: 2)"
5047
+ },
5048
+ "jitterPercent": {
5049
+ "type": "number",
5050
+ "minimum": 0,
5051
+ "maximum": 100,
5052
+ "description": "Percentage of jitter to add (0-100) to prevent thundering herd"
5053
+ }
5054
+ },
5055
+ "required": [
5056
+ "strategy",
5057
+ "maxAttempts",
5058
+ "initialDelayMs",
5059
+ "maxDelayMs"
5060
+ ],
5061
+ "description": "V2 retry policy configuration"
4906
5062
  },
4907
- "backoffMinutes": {
4908
- "type": "integer",
4909
- "minimum": 0,
4910
- "exclusiveMinimum": true,
4911
- "description": "How many minutes to wait between retry attempts"
5063
+ {
5064
+ "type": "object",
5065
+ "properties": {
5066
+ "maxAttempts": {
5067
+ "type": "integer",
5068
+ "minimum": 0,
5069
+ "exclusiveMinimum": true,
5070
+ "description": "Maximum number of delivery attempts"
5071
+ },
5072
+ "backoffMinutes": {
5073
+ "type": "integer",
5074
+ "minimum": 0,
5075
+ "exclusiveMinimum": true,
5076
+ "description": "Minutes between retry attempts (deprecated, use V2 format)"
5077
+ }
5078
+ },
5079
+ "required": [
5080
+ "maxAttempts",
5081
+ "backoffMinutes"
5082
+ ],
5083
+ "description": "Legacy (V1) retry policy — deprecated, use V2 format"
4912
5084
  }
4913
- },
4914
- "required": [
4915
- "maxAttempts",
4916
- "backoffMinutes"
4917
5085
  ],
4918
- "description": "Configuration for retry behavior"
5086
+ "description": "Retry policy. Accepts V2 format (strategy, initialDelayMs, etc.) or legacy V1 format (maxAttempts + backoffMinutes, deprecated)."
4919
5087
  },
4920
5088
  "queueName": {
4921
5089
  "type": "string",
@@ -4956,26 +5124,82 @@
4956
5124
  "type": "object",
4957
5125
  "properties": {
4958
5126
  "retryPolicy": {
4959
- "type": "object",
4960
- "properties": {
4961
- "maxAttempts": {
4962
- "type": "integer",
4963
- "minimum": 0,
4964
- "exclusiveMinimum": true,
4965
- "description": "Maximum number of delivery attempts before giving up"
5127
+ "anyOf": [
5128
+ {
5129
+ "type": "object",
5130
+ "properties": {
5131
+ "strategy": {
5132
+ "type": "string",
5133
+ "enum": [
5134
+ "exponential",
5135
+ "linear",
5136
+ "fixed"
5137
+ ],
5138
+ "description": "The retry strategy to use"
5139
+ },
5140
+ "maxAttempts": {
5141
+ "type": "integer",
5142
+ "minimum": 0,
5143
+ "exclusiveMinimum": true,
5144
+ "description": "Maximum number of delivery attempts"
5145
+ },
5146
+ "initialDelayMs": {
5147
+ "type": "integer",
5148
+ "minimum": 0,
5149
+ "exclusiveMinimum": true,
5150
+ "description": "Initial delay in milliseconds before first retry"
5151
+ },
5152
+ "maxDelayMs": {
5153
+ "type": "integer",
5154
+ "minimum": 0,
5155
+ "exclusiveMinimum": true,
5156
+ "description": "Maximum delay in milliseconds between retries"
5157
+ },
5158
+ "multiplier": {
5159
+ "type": "number",
5160
+ "minimum": 0,
5161
+ "exclusiveMinimum": true,
5162
+ "description": "Multiplier for exponential backoff (default: 2)"
5163
+ },
5164
+ "jitterPercent": {
5165
+ "type": "number",
5166
+ "minimum": 0,
5167
+ "maximum": 100,
5168
+ "description": "Percentage of jitter to add (0-100) to prevent thundering herd"
5169
+ }
5170
+ },
5171
+ "required": [
5172
+ "strategy",
5173
+ "maxAttempts",
5174
+ "initialDelayMs",
5175
+ "maxDelayMs"
5176
+ ],
5177
+ "description": "V2 retry policy configuration"
4966
5178
  },
4967
- "backoffMinutes": {
4968
- "type": "integer",
4969
- "minimum": 0,
4970
- "exclusiveMinimum": true,
4971
- "description": "How many minutes to wait between retry attempts"
5179
+ {
5180
+ "type": "object",
5181
+ "properties": {
5182
+ "maxAttempts": {
5183
+ "type": "integer",
5184
+ "minimum": 0,
5185
+ "exclusiveMinimum": true,
5186
+ "description": "Maximum number of delivery attempts"
5187
+ },
5188
+ "backoffMinutes": {
5189
+ "type": "integer",
5190
+ "minimum": 0,
5191
+ "exclusiveMinimum": true,
5192
+ "description": "Minutes between retry attempts (deprecated, use V2 format)"
5193
+ }
5194
+ },
5195
+ "required": [
5196
+ "maxAttempts",
5197
+ "backoffMinutes"
5198
+ ],
5199
+ "description": "Legacy (V1) retry policy — deprecated, use V2 format"
4972
5200
  }
4973
- },
4974
- "required": [
4975
- "maxAttempts",
4976
- "backoffMinutes"
4977
5201
  ],
4978
- "description": "Configuration for retry behavior"
5202
+ "description": "Retry policy. Accepts V2 format (strategy, initialDelayMs, etc.) or legacy V1 format (maxAttempts + backoffMinutes, deprecated)."
4979
5203
  },
4980
5204
  "bindingName": {
4981
5205
  "type": "string",
@@ -5006,26 +5230,82 @@
5006
5230
  "type": "object",
5007
5231
  "properties": {
5008
5232
  "retryPolicy": {
5009
- "type": "object",
5010
- "properties": {
5011
- "maxAttempts": {
5012
- "type": "integer",
5013
- "minimum": 0,
5014
- "exclusiveMinimum": true,
5015
- "description": "Maximum number of delivery attempts before giving up"
5233
+ "anyOf": [
5234
+ {
5235
+ "type": "object",
5236
+ "properties": {
5237
+ "strategy": {
5238
+ "type": "string",
5239
+ "enum": [
5240
+ "exponential",
5241
+ "linear",
5242
+ "fixed"
5243
+ ],
5244
+ "description": "The retry strategy to use"
5245
+ },
5246
+ "maxAttempts": {
5247
+ "type": "integer",
5248
+ "minimum": 0,
5249
+ "exclusiveMinimum": true,
5250
+ "description": "Maximum number of delivery attempts"
5251
+ },
5252
+ "initialDelayMs": {
5253
+ "type": "integer",
5254
+ "minimum": 0,
5255
+ "exclusiveMinimum": true,
5256
+ "description": "Initial delay in milliseconds before first retry"
5257
+ },
5258
+ "maxDelayMs": {
5259
+ "type": "integer",
5260
+ "minimum": 0,
5261
+ "exclusiveMinimum": true,
5262
+ "description": "Maximum delay in milliseconds between retries"
5263
+ },
5264
+ "multiplier": {
5265
+ "type": "number",
5266
+ "minimum": 0,
5267
+ "exclusiveMinimum": true,
5268
+ "description": "Multiplier for exponential backoff (default: 2)"
5269
+ },
5270
+ "jitterPercent": {
5271
+ "type": "number",
5272
+ "minimum": 0,
5273
+ "maximum": 100,
5274
+ "description": "Percentage of jitter to add (0-100) to prevent thundering herd"
5275
+ }
5276
+ },
5277
+ "required": [
5278
+ "strategy",
5279
+ "maxAttempts",
5280
+ "initialDelayMs",
5281
+ "maxDelayMs"
5282
+ ],
5283
+ "description": "V2 retry policy configuration"
5016
5284
  },
5017
- "backoffMinutes": {
5018
- "type": "integer",
5019
- "minimum": 0,
5020
- "exclusiveMinimum": true,
5021
- "description": "How many minutes to wait between retry attempts"
5285
+ {
5286
+ "type": "object",
5287
+ "properties": {
5288
+ "maxAttempts": {
5289
+ "type": "integer",
5290
+ "minimum": 0,
5291
+ "exclusiveMinimum": true,
5292
+ "description": "Maximum number of delivery attempts"
5293
+ },
5294
+ "backoffMinutes": {
5295
+ "type": "integer",
5296
+ "minimum": 0,
5297
+ "exclusiveMinimum": true,
5298
+ "description": "Minutes between retry attempts (deprecated, use V2 format)"
5299
+ }
5300
+ },
5301
+ "required": [
5302
+ "maxAttempts",
5303
+ "backoffMinutes"
5304
+ ],
5305
+ "description": "Legacy (V1) retry policy — deprecated, use V2 format"
5022
5306
  }
5023
- },
5024
- "required": [
5025
- "maxAttempts",
5026
- "backoffMinutes"
5027
5307
  ],
5028
- "description": "Configuration for retry behavior"
5308
+ "description": "Retry policy. Accepts V2 format (strategy, initialDelayMs, etc.) or legacy V1 format (maxAttempts + backoffMinutes, deprecated)."
5029
5309
  },
5030
5310
  "managerId": {
5031
5311
  "type": "string",
@@ -5063,7 +5343,7 @@
5063
5343
  },
5064
5344
  "examples": {
5065
5345
  "webhook": {
5066
- "summary": "Basic webhook subscription",
5346
+ "summary": "Webhook subscription with V2 retry policy",
5067
5347
  "value": {
5068
5348
  "eventFilter": "user.*",
5069
5349
  "subscriber": {
@@ -5073,6 +5353,26 @@
5073
5353
  "headers": {
5074
5354
  "X-API-Key": "your-secret-key"
5075
5355
  },
5356
+ "retryPolicy": {
5357
+ "strategy": "exponential",
5358
+ "maxAttempts": 5,
5359
+ "initialDelayMs": 1000,
5360
+ "maxDelayMs": 3600000,
5361
+ "multiplier": 2,
5362
+ "jitterPercent": 10
5363
+ }
5364
+ }
5365
+ }
5366
+ }
5367
+ },
5368
+ "webhookLegacy": {
5369
+ "summary": "Webhook subscription with legacy retry policy (deprecated)",
5370
+ "value": {
5371
+ "eventFilter": "user.*",
5372
+ "subscriber": {
5373
+ "type": "webhook",
5374
+ "config": {
5375
+ "url": "https://example.com/webhooks/events",
5076
5376
  "retryPolicy": {
5077
5377
  "maxAttempts": 5,
5078
5378
  "backoffMinutes": 10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delta-base/core",
3
- "version": "1.7.3",
3
+ "version": "1.7.4",
4
4
  "description": "Deltabase Core",
5
5
  "type": "module",
6
6
  "private": false,
@@ -27,8 +27,8 @@
27
27
  "hono": "^4.10.6",
28
28
  "nanoid": "^5.0.9",
29
29
  "zod": "^4.1.13",
30
- "@delta-base/api-keys": "0.1.11",
31
- "@delta-base/auth": "0.2.5",
30
+ "@delta-base/api-keys": "0.1.12",
31
+ "@delta-base/auth": "0.2.6",
32
32
  "@delta-base/toolkit": "0.5.0"
33
33
  },
34
34
  "devDependencies": {