Skip to content

Commit 91eba92

Browse files
Sync public snapshot from freebuff-private
Source: CodebuffAI/freebuff-private@15f4b5eee20e2423e3edfe8e1e6702ac8aecd679
1 parent 8a84619 commit 91eba92

2 files changed

Lines changed: 30 additions & 2 deletions

File tree

‎bun.lock‎

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/** A recovered project offer is bound to one immutable, prepared snapshot. */
2+
export type MappedContributionOffer = {
3+
id: string
4+
title: string
5+
projectKey: string
6+
packageSha256: string
7+
commitSha: string | null
8+
termsVersion: string
9+
termsHash: string
10+
termsUrl: string
11+
status: 'pending' | 'dismissed' | 'accepted' | 'withdrawn'
12+
snoozedUntil: string | null
13+
}
14+
export type MappedContributionState = {
15+
offers: MappedContributionOffer[]
16+
nextCursor: string | null
17+
}
18+
export type MappedContributionRequest =
19+
| {
20+
action: 'accept'
21+
id: string
22+
packageSha256: string
23+
termsVersion: string
24+
termsHash: string
25+
accepted: true
26+
}
27+
| { action: 'dismiss' | 'withdraw'; id: string }
28+
export type MappedContributionResponse =
29+
| { ok: true; status: string }
30+
| { ok: false; error: string }

0 commit comments

Comments
 (0)