@stacksjs/types 0.75.765 → 0.75.770

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/cli.d.ts CHANGED
@@ -183,6 +183,10 @@ export type ActionOptions = {
183
183
  dryRun?: boolean // used in buddy release
184
184
  /** The job or record an action targets, used by `queue:retry` / `queue:inspect`. */
185
185
  id?: string | number
186
+ /** The job class an action targets, used by `queue:unlock` / `queue:unquarantine`. */
187
+ name?: string
188
+ /** A unique job's lock key, used by `queue:unlock`. */
189
+ key?: string
186
190
  /**
187
191
  * Become the action instead of waiting on it: the calling process is
188
192
  * replaced by the action's, where the platform allows. For a command whose
@@ -25,6 +25,7 @@ export declare interface JobOptions<T = unknown> {
25
25
  rate?: string | Every
26
26
  enabled?: boolean
27
27
  timeout?: number
28
+ lease?: { ttlSeconds: number }
28
29
  key?: string
29
30
  ttl?: number
30
31
  immediate?: boolean
package/dist/desktop.d.ts CHANGED
@@ -166,9 +166,13 @@ export declare interface MacosDesktopConfig {
166
166
  output?: string
167
167
  agent?: boolean | MacosAgentConfig
168
168
  webkit?: boolean
169
+ maps?: boolean
169
170
  defaultBrowser?: boolean
170
171
  permissions?: MacosPermissions
171
172
  dockMenu?: MacosDockMenuItem[]
173
+ menuBarOnly?: boolean
174
+ statusItems?: MacosStatusItem[]
175
+ globalShortcuts?: MacosGlobalShortcut[]
172
176
  updates?: DesktopUpdatesConfig
173
177
  }
174
178
  export declare interface MacosAgentConfig {
@@ -186,6 +190,35 @@ export declare interface MacosPermissions {
186
190
  downloads?: boolean | 'read-only'
187
191
  printing?: boolean
188
192
  }
193
+ export declare interface MacosStatusItem {
194
+ id: string
195
+ title?: string
196
+ icon?: string
197
+ template?: boolean
198
+ tooltip?: string
199
+ accessibilityLabel?: string
200
+ menu?: MacosMenuItem[]
201
+ popover?: {
202
+ screen: string
203
+ width?: number
204
+ height?: number
205
+ params?: Record<string, unknown>
206
+ pinned?: boolean
207
+ }
208
+ }
209
+ export declare interface MacosMenuItem {
210
+ id?: string
211
+ label?: string
212
+ shortcut?: string
213
+ separator?: boolean
214
+ disabled?: boolean
215
+ checked?: boolean
216
+ icon?: string
217
+ }
218
+ export declare interface MacosGlobalShortcut {
219
+ id: string
220
+ accelerator: string
221
+ }
189
222
  export declare interface MacosDockMenuItem {
190
223
  title: string
191
224
  action: string
@@ -127,6 +127,19 @@ export declare interface NotificationOptions {
127
127
  }
128
128
  }
129
129
  }
130
+ webhooks?: OutboundWebhookConfig
131
+ }
132
+ /** One event an app sends to its customers' endpoints. */
133
+ export declare interface WebhookEventDefinition {
134
+ description: string
135
+ }
136
+ export declare interface OutboundWebhookConfig {
137
+ events?: Record<string, WebhookEventDefinition>
138
+ retentionDays?: number | false
139
+ maxAttempts?: number
140
+ disableAfterFailures?: number
141
+ timeoutMs?: number
142
+ maxPayloadBytes?: number
130
143
  }
131
144
  /** A channel a notification can be delivered on. */
132
145
  export type NotificationChannelName = 'email' | 'sms' | 'chat' | 'database' | 'push' | 'broadcast';
package/dist/queue.d.ts CHANGED
@@ -201,6 +201,7 @@ export declare interface RedisConnectionConfig {
201
201
  metrics?: QueueMetricsConfig
202
202
  stalledJobCheckInterval?: number
203
203
  maxStalledJobRetries?: number
204
+ stalledThreshold?: number
204
205
  distributedLock?: boolean
205
206
  defaultDeadLetterOptions?: DeadLetterQueueConfig
206
207
  horizontalScaling?: HorizontalScalingConfig
@@ -62,6 +62,7 @@ export declare interface SecurityOptions {
62
62
  limit: { max: number, per: 'second' | 'minute' | 'hour' | 'day' | number }
63
63
  | ((request: any) => { max: number, per: 'second' | 'minute' | 'hour' | 'day' | number } | Promise<{ max: number, per: 'second' | 'minute' | 'hour' | 'day' | number }>)
64
64
  cacheSeconds?: number
65
+ refusal?: (info: { retryAfter: number, limit: number, headers: Record<string, string> }, request: any) => Response | Promise<Response>
65
66
  }>
66
67
  rateLimit: RateLimitSecurityOptions
67
68
  trustedProxies?: readonly string[]
package/dist/utils.d.ts CHANGED
@@ -38,7 +38,14 @@ export type DeepMerge<F, S> = S extends MergeLeaf | readonly unknown[] ? S
38
38
  : K extends keyof S ? S[K] : K extends keyof F ? F[K] : never
39
39
  } : S
40
40
  : S;
41
- export type DeepPartial<T> = {
41
+ /**
42
+ * Every property optional, all the way down. Functions are left whole: mapping
43
+ * over one turned it into `{}`, so a function-valued option (a rate limiter's
44
+ * `key` or `refusal`, say) accepted any value and gave its callback no
45
+ * parameter types.
46
+ */
47
+ // eslint-disable-next-line pickier/no-unused-vars
48
+ export type DeepPartial<T> = T extends (...args: any[]) => any ? T : {
42
49
  [P in keyof T]?: DeepPartial<T[P]>
43
50
  }
44
51
  export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/types",
3
3
  "type": "module",
4
- "version": "0.75.765",
4
+ "version": "0.75.770",
5
5
  "description": "The Stacks framework types.",
6
6
  "author": "Chris Breuer",
7
7
  "contributors": [
@@ -70,17 +70,17 @@
70
70
  "dependencies": {
71
71
  "@stacksjs/bunpress": "^0.2.36",
72
72
  "@stacksjs/clapp": "^0.2.17",
73
- "@stacksjs/events": "0.75.765",
74
- "@stacksjs/hq": "0.75.765",
75
- "@stacksjs/strings": "0.75.765",
73
+ "@stacksjs/events": "0.75.770",
74
+ "@stacksjs/hq": "0.75.770",
75
+ "@stacksjs/strings": "0.75.770",
76
76
  "@stacksjs/stx": "^0.2.983",
77
77
  "@stacksjs/ts-validation": "^0.5.7",
78
- "bun-query-builder": "^0.6.5",
78
+ "bun-query-builder": "^0.6.7",
79
79
  "meilisearch": "^0.62.0",
80
- "stripe": "23.0.0"
80
+ "stripe": "^23.2.0"
81
81
  },
82
82
  "devDependencies": {
83
- "@stacksjs/validation": "0.75.765",
83
+ "@stacksjs/validation": "0.75.770",
84
84
  "better-dx": "^0.2.42"
85
85
  },
86
86
  "sideEffects": false,
@@ -112,7 +112,7 @@
112
112
  }
113
113
  },
114
114
  "peerDependencies": {
115
- "@stacksjs/actions": "0.75.765",
116
- "@stacksjs/scheduler": "0.75.765"
115
+ "@stacksjs/actions": "0.75.770",
116
+ "@stacksjs/scheduler": "0.75.770"
117
117
  }
118
118
  }