@bongos/core 1.24.23 → 1.24.24
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/.bongos-core.json +208 -53
- package/clients/bongos-client/README.md +1 -1
- package/clients/bongos-client/bongos-client.global.js +42 -0
- package/clients/bongos-client/index.cjs +42 -0
- package/clients/bongos-client/index.d.ts +55 -1
- package/clients/bongos-client/index.mjs +42 -0
- package/docs/api/openapi.json +1181 -207
- package/docs/api-reference.md +30 -5
- package/docs/architecture.md +42 -0
- package/docs/copy-inventory.md +18 -8
- package/docs/copy-registry.json +99 -9
- package/docs/module-api-changelog.md +2 -0
- package/docs/page-readings.json +64 -25
- package/migrations/core_291_payout_nda_tax.sql +75 -0
- package/migrations/core_292_module_sale_payouts.sql +170 -0
- package/migrations/core_293_cash_outs.sql +184 -0
- package/migrations/core_294_cash_out_attempts_sent_by_time.sql +21 -0
- package/modules/economy/ledger-check.js +360 -0
- package/modules/economy/migrations/economy_003_user_balances.sql +116 -0
- package/modules/economy/migrations/economy_004_module_share_payouts.sql +22 -0
- package/modules/economy/migrations/economy_005_project_account_holds_index.sql +20 -0
- package/modules/economy/migrations/economy_006_ledger_checks.sql +68 -0
- package/modules/economy/module.json +1 -1
- package/modules/economy/outflow.js +209 -0
- package/modules/economy/pollers/ledger-check.js +87 -0
- package/modules/economy/project-account.js +92 -7
- package/modules/economy/routes/balances.js +79 -0
- package/modules/economy/routes/project-account.js +40 -2
- package/modules/economy/user-balances.js +308 -0
- package/modules/government/decision-rules.js +1 -0
- package/modules/hall-ui/public/project-settings.css +18 -0
- package/modules/hall-ui/public/project-settings.html +15 -2
- package/modules/hall-ui/public/project-settings.js +142 -0
- package/modules/ideas/module.json +2 -1
- package/modules/ideas/routes/blockers.js +26 -0
- package/modules/lifecycle/db-claims.js +22 -0
- package/modules/lifecycle/db-ship.js +5 -5
- package/modules/lifecycle/funding-wall.js +253 -0
- package/modules/lifecycle/module.json +2 -1
- package/modules/lifecycle/routes/claims.js +9 -0
- package/modules/lifecycle/routes/pay-type-gates.js +7 -0
- package/modules/lifecycle/routes/project-settings.js +59 -2
- package/package-lock.json +2 -2
- package/package.json +1 -1
- package/release-notes.json +38 -0
- package/scripts/bongos/government-walk.js +1 -0
- package/scripts/bongos/plain-cards.js +18 -0
- package/scripts/bongos/run-unit-tests.js +28 -0
- package/src/bongos/builder-payouts.js +6 -1
- package/src/bongos/cash-outs.js +399 -0
- package/src/bongos/module-payouts.js +432 -0
- package/src/bongos/payout-approvals.js +5 -2
- package/src/bongos/payout-gates.js +44 -7
- package/src/bongos/project-settings.js +2 -0
- package/src/bongos/routes/module-payouts.js +114 -0
- package/src/bongos/routes/my-cash-outs.js +103 -0
- package/src/bongos/routes/payout-gates.js +42 -1
- package/src/bongos/routes.js +6 -0
- package/src/module-api.js +1 -1
- package/tests/builder_payouts_db.mjs +1 -0
- package/tests/cash_outs.mjs +96 -0
- package/tests/cash_outs_db.mjs +205 -0
- package/tests/funded_project_pays_proof_db.mjs +181 -0
- package/tests/funding_wall.mjs +205 -0
- package/tests/funding_wall_db.mjs +174 -0
- package/tests/government_act_alone_buildings.mjs +1 -0
- package/tests/ledger_check.mjs +189 -0
- package/tests/ledger_check_db.mjs +119 -0
- package/tests/module_payouts.mjs +295 -0
- package/tests/module_payouts_db.mjs +140 -0
- package/tests/own_scope_guard.mjs +5 -0
- package/tests/payout_gates.mjs +67 -6
- package/tests/payout_gates_db.mjs +23 -1
- package/tests/project_account_db.mjs +5 -2
- package/tests/project_outflow.mjs +103 -0
- package/tests/project_outflow_db.mjs +100 -0
- package/tests/user_balances.mjs +241 -0
- package/tests/user_balances_db.mjs +137 -0
|
@@ -238,6 +238,16 @@ function createClient(opts = {}) {
|
|
|
238
238
|
// POST /backup/trigger — rank: metic+archon — POST /backup/trigger
|
|
239
239
|
postBackupTrigger: (args) => request("POST", "/backup/trigger", { hasBody: true }, args),
|
|
240
240
|
},
|
|
241
|
+
"balances": {
|
|
242
|
+
// POST /balances/fund-project — rank: any-builder — POST /balances/fund-project
|
|
243
|
+
postBalancesFundProject: (args) => request("POST", "/balances/fund-project", { hasBody: true }, args),
|
|
244
|
+
// GET /balances/me — rank: any-builder — GET /balances/me
|
|
245
|
+
getBalancesMe: (args) => request("GET", "/balances/me", { hasBody: false }, args),
|
|
246
|
+
// POST /balances/pay — rank: any-builder — POST /balances/pay
|
|
247
|
+
postBalancesPay: (args) => request("POST", "/balances/pay", { hasBody: true }, args),
|
|
248
|
+
// GET /balances/project — rank: any-builder — GET /balances/project
|
|
249
|
+
getBalancesProject: (args) => request("GET", "/balances/project", { hasBody: false }, args),
|
|
250
|
+
},
|
|
241
251
|
"blockers": {
|
|
242
252
|
// GET /blockers — rank: public — GET /blockers
|
|
243
253
|
getBlockers: (args) => request("GET", "/blockers", { hasBody: false }, args),
|
|
@@ -793,6 +803,14 @@ function createClient(opts = {}) {
|
|
|
793
803
|
getMeAchievements: (args) => request("GET", "/me/achievements", { hasBody: false }, args),
|
|
794
804
|
// POST /me/anthropic-link — rank: any-builder — POST /me/anthropic-link
|
|
795
805
|
postMeAnthropicLink: (args) => request("POST", "/me/anthropic-link", { hasBody: true }, args),
|
|
806
|
+
// GET /me/cash-outs — rank: any-builder — GET /me/cash-outs
|
|
807
|
+
getMeCashOuts: (args) => request("GET", "/me/cash-outs", { hasBody: false }, args),
|
|
808
|
+
// POST /me/cash-outs — rank: any-builder — POST /me/cash-outs
|
|
809
|
+
postMeCashOuts: (args) => request("POST", "/me/cash-outs", { hasBody: true }, args),
|
|
810
|
+
// POST /me/cash-outs/{id}/cancel — rank: any-builder — POST /me/cash-outs/:id/cancel
|
|
811
|
+
postMeCashOutsIdCancel: (args) => request("POST", "/me/cash-outs/{id}/cancel", { hasBody: true }, args),
|
|
812
|
+
// POST /me/cash-outs/{id}/retry — rank: any-builder — POST /me/cash-outs/:id/retry
|
|
813
|
+
postMeCashOutsIdRetry: (args) => request("POST", "/me/cash-outs/{id}/retry", { hasBody: true }, args),
|
|
796
814
|
// PATCH /me/checkout-freshness — rank: any-builder — PATCH /me/checkout-freshness
|
|
797
815
|
patchMeCheckoutFreshness: (args) => request("PATCH", "/me/checkout-freshness", { hasBody: true }, args),
|
|
798
816
|
// PATCH /me/core-move-seen — rank: any-builder — PATCH /me/core-move-seen
|
|
@@ -1053,6 +1071,20 @@ function createClient(opts = {}) {
|
|
|
1053
1071
|
postPayoutsGrants: (args) => request("POST", "/payouts/grants", { hasBody: true }, args),
|
|
1054
1072
|
// POST /payouts/guardians — rank: archon — POST /payouts/guardians
|
|
1055
1073
|
postPayoutsGuardians: (args) => request("POST", "/payouts/guardians", { hasBody: true }, args),
|
|
1074
|
+
// POST /payouts/module-sales — rank: archon — POST /payouts/module-sales
|
|
1075
|
+
postPayoutsModuleSales: (args) => request("POST", "/payouts/module-sales", { hasBody: true }, args),
|
|
1076
|
+
// GET /payouts/module-shares — rank: archon — GET /payouts/module-shares
|
|
1077
|
+
getPayoutsModuleShares: (args) => request("GET", "/payouts/module-shares", { hasBody: false }, args),
|
|
1078
|
+
// POST /payouts/module-shares/{id}/pay — rank: archon — POST /payouts/module-shares/:id/pay
|
|
1079
|
+
postPayoutsModuleSharesIdPay: (args) => request("POST", "/payouts/module-shares/{id}/pay", { hasBody: true }, args),
|
|
1080
|
+
// GET /payouts/module-shares/mine — rank: any-builder — GET /payouts/module-shares/mine
|
|
1081
|
+
getPayoutsModuleSharesMine: (args) => request("GET", "/payouts/module-shares/mine", { hasBody: false }, args),
|
|
1082
|
+
// GET /payouts/module-splits/{moduleKey} — rank: archon — GET /payouts/module-splits/:moduleKey
|
|
1083
|
+
getPayoutsModuleSplitsModuleKey: (args) => request("GET", "/payouts/module-splits/{moduleKey}", { hasBody: false }, args),
|
|
1084
|
+
// POST /payouts/module-splits/{moduleKey} — rank: archon — POST /payouts/module-splits/:moduleKey
|
|
1085
|
+
postPayoutsModuleSplitsModuleKey: (args) => request("POST", "/payouts/module-splits/{moduleKey}", { hasBody: true }, args),
|
|
1086
|
+
// POST /payouts/ndas — rank: archon — POST /payouts/ndas
|
|
1087
|
+
postPayoutsNdas: (args) => request("POST", "/payouts/ndas", { hasBody: true }, args),
|
|
1056
1088
|
// GET /payouts/rules — rank: archon — GET /payouts/rules
|
|
1057
1089
|
getPayoutsRules: (args) => request("GET", "/payouts/rules", { hasBody: false }, args),
|
|
1058
1090
|
// POST /payouts/rules — rank: archon — POST /payouts/rules
|
|
@@ -1067,6 +1099,8 @@ function createClient(opts = {}) {
|
|
|
1067
1099
|
postPayoutsRulesIdRunsRunKeyHold: (args) => request("POST", "/payouts/rules/{id}/runs/{runKey}/hold", { hasBody: true }, args),
|
|
1068
1100
|
// POST /payouts/screenings — rank: archon — POST /payouts/screenings
|
|
1069
1101
|
postPayoutsScreenings: (args) => request("POST", "/payouts/screenings", { hasBody: true }, args),
|
|
1102
|
+
// POST /payouts/tax-details — rank: archon — POST /payouts/tax-details
|
|
1103
|
+
postPayoutsTaxDetails: (args) => request("POST", "/payouts/tax-details", { hasBody: true }, args),
|
|
1070
1104
|
},
|
|
1071
1105
|
"profiles": {
|
|
1072
1106
|
// GET /profiles/{handle} — rank: public — GET /profiles/:handle
|
|
@@ -1079,10 +1113,18 @@ function createClient(opts = {}) {
|
|
|
1079
1113
|
"projectAccount": {
|
|
1080
1114
|
// GET /project-account — rank: archon — GET /project-account
|
|
1081
1115
|
getProjectAccount: (args) => request("GET", "/project-account", { hasBody: false }, args),
|
|
1116
|
+
// GET /project-account/ledger-checks — rank: archon — GET /project-account/ledger-checks
|
|
1117
|
+
getProjectAccountLedgerChecks: (args) => request("GET", "/project-account/ledger-checks", { hasBody: false }, args),
|
|
1118
|
+
// GET /project-account/outflow — rank: archon — GET /project-account/outflow
|
|
1119
|
+
getProjectAccountOutflow: (args) => request("GET", "/project-account/outflow", { hasBody: false }, args),
|
|
1082
1120
|
},
|
|
1083
1121
|
"projectSettings": {
|
|
1084
1122
|
// GET /project-settings — rank: metic+archon — GET /project-settings
|
|
1085
1123
|
getProjectSettings: (args) => request("GET", "/project-settings", { hasBody: false }, args),
|
|
1124
|
+
// GET /project-settings/funding-wall — rank: any-builder — GET /project-settings/funding-wall
|
|
1125
|
+
getProjectSettingsFundingWall: (args) => request("GET", "/project-settings/funding-wall", { hasBody: false }, args),
|
|
1126
|
+
// PATCH /project-settings/funding-wall — rank: metic+archon — PATCH /project-settings/funding-wall
|
|
1127
|
+
patchProjectSettingsFundingWall: (args) => request("PATCH", "/project-settings/funding-wall", { hasBody: true }, args),
|
|
1086
1128
|
// PATCH /project-settings/pay-terms — rank: metic+archon — PATCH /project-settings/pay-terms
|
|
1087
1129
|
patchProjectSettingsPayTerms: (args) => request("PATCH", "/project-settings/pay-terms", { hasBody: true }, args),
|
|
1088
1130
|
// PATCH /project-settings/rot-days — rank: metic+archon — PATCH /project-settings/rot-days
|
|
@@ -237,6 +237,16 @@ function createClient(opts = {}) {
|
|
|
237
237
|
// POST /backup/trigger — rank: metic+archon — POST /backup/trigger
|
|
238
238
|
postBackupTrigger: (args) => request("POST", "/backup/trigger", { hasBody: true }, args),
|
|
239
239
|
},
|
|
240
|
+
"balances": {
|
|
241
|
+
// POST /balances/fund-project — rank: any-builder — POST /balances/fund-project
|
|
242
|
+
postBalancesFundProject: (args) => request("POST", "/balances/fund-project", { hasBody: true }, args),
|
|
243
|
+
// GET /balances/me — rank: any-builder — GET /balances/me
|
|
244
|
+
getBalancesMe: (args) => request("GET", "/balances/me", { hasBody: false }, args),
|
|
245
|
+
// POST /balances/pay — rank: any-builder — POST /balances/pay
|
|
246
|
+
postBalancesPay: (args) => request("POST", "/balances/pay", { hasBody: true }, args),
|
|
247
|
+
// GET /balances/project — rank: any-builder — GET /balances/project
|
|
248
|
+
getBalancesProject: (args) => request("GET", "/balances/project", { hasBody: false }, args),
|
|
249
|
+
},
|
|
240
250
|
"blockers": {
|
|
241
251
|
// GET /blockers — rank: public — GET /blockers
|
|
242
252
|
getBlockers: (args) => request("GET", "/blockers", { hasBody: false }, args),
|
|
@@ -792,6 +802,14 @@ function createClient(opts = {}) {
|
|
|
792
802
|
getMeAchievements: (args) => request("GET", "/me/achievements", { hasBody: false }, args),
|
|
793
803
|
// POST /me/anthropic-link — rank: any-builder — POST /me/anthropic-link
|
|
794
804
|
postMeAnthropicLink: (args) => request("POST", "/me/anthropic-link", { hasBody: true }, args),
|
|
805
|
+
// GET /me/cash-outs — rank: any-builder — GET /me/cash-outs
|
|
806
|
+
getMeCashOuts: (args) => request("GET", "/me/cash-outs", { hasBody: false }, args),
|
|
807
|
+
// POST /me/cash-outs — rank: any-builder — POST /me/cash-outs
|
|
808
|
+
postMeCashOuts: (args) => request("POST", "/me/cash-outs", { hasBody: true }, args),
|
|
809
|
+
// POST /me/cash-outs/{id}/cancel — rank: any-builder — POST /me/cash-outs/:id/cancel
|
|
810
|
+
postMeCashOutsIdCancel: (args) => request("POST", "/me/cash-outs/{id}/cancel", { hasBody: true }, args),
|
|
811
|
+
// POST /me/cash-outs/{id}/retry — rank: any-builder — POST /me/cash-outs/:id/retry
|
|
812
|
+
postMeCashOutsIdRetry: (args) => request("POST", "/me/cash-outs/{id}/retry", { hasBody: true }, args),
|
|
795
813
|
// PATCH /me/checkout-freshness — rank: any-builder — PATCH /me/checkout-freshness
|
|
796
814
|
patchMeCheckoutFreshness: (args) => request("PATCH", "/me/checkout-freshness", { hasBody: true }, args),
|
|
797
815
|
// PATCH /me/core-move-seen — rank: any-builder — PATCH /me/core-move-seen
|
|
@@ -1052,6 +1070,20 @@ function createClient(opts = {}) {
|
|
|
1052
1070
|
postPayoutsGrants: (args) => request("POST", "/payouts/grants", { hasBody: true }, args),
|
|
1053
1071
|
// POST /payouts/guardians — rank: archon — POST /payouts/guardians
|
|
1054
1072
|
postPayoutsGuardians: (args) => request("POST", "/payouts/guardians", { hasBody: true }, args),
|
|
1073
|
+
// POST /payouts/module-sales — rank: archon — POST /payouts/module-sales
|
|
1074
|
+
postPayoutsModuleSales: (args) => request("POST", "/payouts/module-sales", { hasBody: true }, args),
|
|
1075
|
+
// GET /payouts/module-shares — rank: archon — GET /payouts/module-shares
|
|
1076
|
+
getPayoutsModuleShares: (args) => request("GET", "/payouts/module-shares", { hasBody: false }, args),
|
|
1077
|
+
// POST /payouts/module-shares/{id}/pay — rank: archon — POST /payouts/module-shares/:id/pay
|
|
1078
|
+
postPayoutsModuleSharesIdPay: (args) => request("POST", "/payouts/module-shares/{id}/pay", { hasBody: true }, args),
|
|
1079
|
+
// GET /payouts/module-shares/mine — rank: any-builder — GET /payouts/module-shares/mine
|
|
1080
|
+
getPayoutsModuleSharesMine: (args) => request("GET", "/payouts/module-shares/mine", { hasBody: false }, args),
|
|
1081
|
+
// GET /payouts/module-splits/{moduleKey} — rank: archon — GET /payouts/module-splits/:moduleKey
|
|
1082
|
+
getPayoutsModuleSplitsModuleKey: (args) => request("GET", "/payouts/module-splits/{moduleKey}", { hasBody: false }, args),
|
|
1083
|
+
// POST /payouts/module-splits/{moduleKey} — rank: archon — POST /payouts/module-splits/:moduleKey
|
|
1084
|
+
postPayoutsModuleSplitsModuleKey: (args) => request("POST", "/payouts/module-splits/{moduleKey}", { hasBody: true }, args),
|
|
1085
|
+
// POST /payouts/ndas — rank: archon — POST /payouts/ndas
|
|
1086
|
+
postPayoutsNdas: (args) => request("POST", "/payouts/ndas", { hasBody: true }, args),
|
|
1055
1087
|
// GET /payouts/rules — rank: archon — GET /payouts/rules
|
|
1056
1088
|
getPayoutsRules: (args) => request("GET", "/payouts/rules", { hasBody: false }, args),
|
|
1057
1089
|
// POST /payouts/rules — rank: archon — POST /payouts/rules
|
|
@@ -1066,6 +1098,8 @@ function createClient(opts = {}) {
|
|
|
1066
1098
|
postPayoutsRulesIdRunsRunKeyHold: (args) => request("POST", "/payouts/rules/{id}/runs/{runKey}/hold", { hasBody: true }, args),
|
|
1067
1099
|
// POST /payouts/screenings — rank: archon — POST /payouts/screenings
|
|
1068
1100
|
postPayoutsScreenings: (args) => request("POST", "/payouts/screenings", { hasBody: true }, args),
|
|
1101
|
+
// POST /payouts/tax-details — rank: archon — POST /payouts/tax-details
|
|
1102
|
+
postPayoutsTaxDetails: (args) => request("POST", "/payouts/tax-details", { hasBody: true }, args),
|
|
1069
1103
|
},
|
|
1070
1104
|
"profiles": {
|
|
1071
1105
|
// GET /profiles/{handle} — rank: public — GET /profiles/:handle
|
|
@@ -1078,10 +1112,18 @@ function createClient(opts = {}) {
|
|
|
1078
1112
|
"projectAccount": {
|
|
1079
1113
|
// GET /project-account — rank: archon — GET /project-account
|
|
1080
1114
|
getProjectAccount: (args) => request("GET", "/project-account", { hasBody: false }, args),
|
|
1115
|
+
// GET /project-account/ledger-checks — rank: archon — GET /project-account/ledger-checks
|
|
1116
|
+
getProjectAccountLedgerChecks: (args) => request("GET", "/project-account/ledger-checks", { hasBody: false }, args),
|
|
1117
|
+
// GET /project-account/outflow — rank: archon — GET /project-account/outflow
|
|
1118
|
+
getProjectAccountOutflow: (args) => request("GET", "/project-account/outflow", { hasBody: false }, args),
|
|
1081
1119
|
},
|
|
1082
1120
|
"projectSettings": {
|
|
1083
1121
|
// GET /project-settings — rank: metic+archon — GET /project-settings
|
|
1084
1122
|
getProjectSettings: (args) => request("GET", "/project-settings", { hasBody: false }, args),
|
|
1123
|
+
// GET /project-settings/funding-wall — rank: any-builder — GET /project-settings/funding-wall
|
|
1124
|
+
getProjectSettingsFundingWall: (args) => request("GET", "/project-settings/funding-wall", { hasBody: false }, args),
|
|
1125
|
+
// PATCH /project-settings/funding-wall — rank: metic+archon — PATCH /project-settings/funding-wall
|
|
1126
|
+
patchProjectSettingsFundingWall: (args) => request("PATCH", "/project-settings/funding-wall", { hasBody: true }, args),
|
|
1085
1127
|
// PATCH /project-settings/pay-terms — rank: metic+archon — PATCH /project-settings/pay-terms
|
|
1086
1128
|
patchProjectSettingsPayTerms: (args) => request("PATCH", "/project-settings/pay-terms", { hasBody: true }, args),
|
|
1087
1129
|
// PATCH /project-settings/rot-days — rank: metic+archon — PATCH /project-settings/rot-days
|
|
@@ -141,11 +141,13 @@ export interface GetPageNotesIdResponse { note: unknown; images: unknown; ideas:
|
|
|
141
141
|
export interface GetPageNotesIdeasResponse { page_path: unknown; ideas: unknown }
|
|
142
142
|
export interface GetPageNotesResponse { page_id: unknown; notes: unknown }
|
|
143
143
|
export interface GetPageNotesSiteResponse { notes: unknown }
|
|
144
|
-
export interface GetPayTermsResponse { pay_terms: unknown }
|
|
144
|
+
export interface GetPayTermsResponse { pay_terms: unknown; funding_wall: unknown }
|
|
145
145
|
export interface GetPayTypeGatesResponse { gates: unknown }
|
|
146
146
|
export interface GetPayoutsApprovalsResponse { approvals: unknown }
|
|
147
147
|
export interface GetPayoutsBuilderPayoutsResponse { payouts: unknown; page: PageInfo }
|
|
148
148
|
export interface GetPayoutsGatesBuilderIdResponse { gate: unknown }
|
|
149
|
+
export interface GetPayoutsModuleSharesMineResponse { shares: unknown }
|
|
150
|
+
export interface GetPayoutsModuleSharesResponse { shares: unknown }
|
|
149
151
|
export interface GetPayoutsRulesResponse { rules: unknown }
|
|
150
152
|
export interface GetProfilesHandleResponse { account: unknown; cross_project: unknown }
|
|
151
153
|
export interface GetProjectManageLinkResponse { ok: boolean; link: unknown }
|
|
@@ -269,6 +271,7 @@ export interface PatchNotesIdRequest { kind: string }
|
|
|
269
271
|
export interface PatchNotesIdResponse { ok: boolean; note: unknown }
|
|
270
272
|
export interface PatchPageNotesIdRequest { body_md: string }
|
|
271
273
|
export interface PatchPageNotesIdResponse { ok: boolean; updated_at: unknown }
|
|
274
|
+
export interface PatchProjectSettingsFundingWallRequest { mode: string }
|
|
272
275
|
export interface PatchProjectSettingsPayTermsRequest { terms: unknown }
|
|
273
276
|
export interface PatchProjectSettingsPayTermsResponse { ok: boolean; row: unknown }
|
|
274
277
|
export interface PatchProjectSettingsRotDaysRequest { days: number }
|
|
@@ -482,6 +485,7 @@ export interface PostMarketWatchRulesProposalsRequest { step: string; change: Re
|
|
|
482
485
|
export interface PostMarketWatchRulesProposalsResponse { ok: boolean; proposal: unknown }
|
|
483
486
|
export interface PostMeAnthropicLinkRequest { anthropic_email: string; anthropic_user_id: string }
|
|
484
487
|
export interface PostMeAnthropicLinkResponse { linked: unknown }
|
|
488
|
+
export interface PostMeCashOutsRequest { amount_cents: unknown; instruction_id: StringifiableId }
|
|
485
489
|
export interface PostMeFilterViewsRequest { page: string; name: string; values: Record<string, unknown>; is_default?: boolean }
|
|
486
490
|
export interface PostMeFilterViewsResponse { page: unknown; view: unknown; views: unknown }
|
|
487
491
|
export interface PostMeGuardianCosignsRequest { approval_id?: StringifiableId; rule_id?: StringifiableId; run_key?: unknown }
|
|
@@ -542,6 +546,12 @@ export interface PostPayoutsFreezesRequest { builder_id: StringifiableId; notice
|
|
|
542
546
|
export interface PostPayoutsFreezesResponse { freeze: unknown }
|
|
543
547
|
export interface PostPayoutsGuardiansRequest { builder_id: StringifiableId; guardian_id: StringifiableId; guardian_account?: unknown; active: unknown }
|
|
544
548
|
export interface PostPayoutsGuardiansResponse { record: unknown }
|
|
549
|
+
export interface PostPayoutsModuleSalesRequest { processor_sale_ref: unknown }
|
|
550
|
+
export interface PostPayoutsModuleSharesIdPayRequest { approval_id: StringifiableId }
|
|
551
|
+
export interface PostPayoutsModuleSplitsModuleKeyRequest { seller_id: StringifiableId; seller_bps: unknown; contributors_bps: unknown; credit_row_kinds?: unknown }
|
|
552
|
+
export interface PostPayoutsModuleSplitsModuleKeyResponse { rule: unknown }
|
|
553
|
+
export interface PostPayoutsNdasRequest { builder_id: StringifiableId; status: unknown; nda_version: unknown; reference?: unknown }
|
|
554
|
+
export interface PostPayoutsNdasResponse { record: unknown }
|
|
545
555
|
export interface PostPayoutsRulesIdNarrowRequest { terms: unknown; note?: unknown }
|
|
546
556
|
export interface PostPayoutsRulesIdNarrowResponse { approval: unknown }
|
|
547
557
|
export interface PostPayoutsRulesIdRevokeRequest { note?: unknown }
|
|
@@ -554,6 +564,8 @@ export interface PostPayoutsRulesRequest { terms: unknown; note?: unknown }
|
|
|
554
564
|
export interface PostPayoutsRulesResponse { approval: unknown }
|
|
555
565
|
export interface PostPayoutsScreeningsRequest { builder_id: StringifiableId; result: unknown; reference?: unknown; valid_days?: unknown }
|
|
556
566
|
export interface PostPayoutsScreeningsResponse { record: unknown }
|
|
567
|
+
export interface PostPayoutsTaxDetailsRequest { builder_id: StringifiableId; status: unknown; reference?: unknown }
|
|
568
|
+
export interface PostPayoutsTaxDetailsResponse { record: unknown }
|
|
557
569
|
export interface PostProjectsInviteGuildRequest { client_id: string; guild: string }
|
|
558
570
|
export interface PostProjectsInviteGuildResponse { invited: boolean; guild: unknown; invites: unknown; count: unknown }
|
|
559
571
|
export interface PostProjectsInviteRequest { client_id: string; github_login: string }
|
|
@@ -878,6 +890,16 @@ export interface BongosClient {
|
|
|
878
890
|
/** POST /backup/trigger — rank: metic+archon */
|
|
879
891
|
postBackupTrigger(args?: RequestArgs): Promise<PostBackupTriggerResponse>;
|
|
880
892
|
};
|
|
893
|
+
"balances": {
|
|
894
|
+
/** POST /balances/fund-project — rank: any-builder */
|
|
895
|
+
postBalancesFundProject(args?: RequestArgs): Promise<ApiResponse>;
|
|
896
|
+
/** GET /balances/me — rank: any-builder */
|
|
897
|
+
getBalancesMe(args?: RequestArgs): Promise<ApiResponse>;
|
|
898
|
+
/** POST /balances/pay — rank: any-builder */
|
|
899
|
+
postBalancesPay(args?: RequestArgs): Promise<ApiResponse>;
|
|
900
|
+
/** GET /balances/project — rank: any-builder */
|
|
901
|
+
getBalancesProject(args?: RequestArgs): Promise<ApiResponse>;
|
|
902
|
+
};
|
|
881
903
|
"blockers": {
|
|
882
904
|
/** GET /blockers — rank: public */
|
|
883
905
|
getBlockers(args?: RequestArgs): Promise<GetBlockersResponse>;
|
|
@@ -1433,6 +1455,14 @@ export interface BongosClient {
|
|
|
1433
1455
|
getMeAchievements(args?: RequestArgs): Promise<GetMeAchievementsResponse>;
|
|
1434
1456
|
/** POST /me/anthropic-link — rank: any-builder */
|
|
1435
1457
|
postMeAnthropicLink(args: RequestArgs & { body: PostMeAnthropicLinkRequest }): Promise<PostMeAnthropicLinkResponse>;
|
|
1458
|
+
/** GET /me/cash-outs — rank: any-builder */
|
|
1459
|
+
getMeCashOuts(args?: RequestArgs): Promise<ApiResponse>;
|
|
1460
|
+
/** POST /me/cash-outs — rank: any-builder */
|
|
1461
|
+
postMeCashOuts(args: RequestArgs & { body: PostMeCashOutsRequest }): Promise<ApiResponse>;
|
|
1462
|
+
/** POST /me/cash-outs/{id}/cancel — rank: any-builder */
|
|
1463
|
+
postMeCashOutsIdCancel(args?: RequestArgs): Promise<ApiResponse>;
|
|
1464
|
+
/** POST /me/cash-outs/{id}/retry — rank: any-builder */
|
|
1465
|
+
postMeCashOutsIdRetry(args?: RequestArgs): Promise<ApiResponse>;
|
|
1436
1466
|
/** PATCH /me/checkout-freshness — rank: any-builder */
|
|
1437
1467
|
patchMeCheckoutFreshness(args: RequestArgs & { body: PatchMeCheckoutFreshnessRequest }): Promise<PatchMeCheckoutFreshnessResponse>;
|
|
1438
1468
|
/** PATCH /me/core-move-seen — rank: any-builder */
|
|
@@ -1693,6 +1723,20 @@ export interface BongosClient {
|
|
|
1693
1723
|
postPayoutsGrants(args?: RequestArgs): Promise<ApiResponse>;
|
|
1694
1724
|
/** POST /payouts/guardians — rank: archon */
|
|
1695
1725
|
postPayoutsGuardians(args: RequestArgs & { body: PostPayoutsGuardiansRequest }): Promise<PostPayoutsGuardiansResponse>;
|
|
1726
|
+
/** POST /payouts/module-sales — rank: archon */
|
|
1727
|
+
postPayoutsModuleSales(args: RequestArgs & { body: PostPayoutsModuleSalesRequest }): Promise<ApiResponse>;
|
|
1728
|
+
/** GET /payouts/module-shares — rank: archon */
|
|
1729
|
+
getPayoutsModuleShares(args?: RequestArgs): Promise<GetPayoutsModuleSharesResponse>;
|
|
1730
|
+
/** POST /payouts/module-shares/{id}/pay — rank: archon */
|
|
1731
|
+
postPayoutsModuleSharesIdPay(args: RequestArgs & { body: PostPayoutsModuleSharesIdPayRequest }): Promise<ApiResponse>;
|
|
1732
|
+
/** GET /payouts/module-shares/mine — rank: any-builder */
|
|
1733
|
+
getPayoutsModuleSharesMine(args?: RequestArgs): Promise<GetPayoutsModuleSharesMineResponse>;
|
|
1734
|
+
/** GET /payouts/module-splits/{moduleKey} — rank: archon */
|
|
1735
|
+
getPayoutsModuleSplitsModuleKey(args?: RequestArgs): Promise<ApiResponse>;
|
|
1736
|
+
/** POST /payouts/module-splits/{moduleKey} — rank: archon */
|
|
1737
|
+
postPayoutsModuleSplitsModuleKey(args: RequestArgs & { body: PostPayoutsModuleSplitsModuleKeyRequest }): Promise<PostPayoutsModuleSplitsModuleKeyResponse>;
|
|
1738
|
+
/** POST /payouts/ndas — rank: archon */
|
|
1739
|
+
postPayoutsNdas(args: RequestArgs & { body: PostPayoutsNdasRequest }): Promise<PostPayoutsNdasResponse>;
|
|
1696
1740
|
/** GET /payouts/rules — rank: archon */
|
|
1697
1741
|
getPayoutsRules(args?: RequestArgs): Promise<GetPayoutsRulesResponse>;
|
|
1698
1742
|
/** POST /payouts/rules — rank: archon */
|
|
@@ -1707,6 +1751,8 @@ export interface BongosClient {
|
|
|
1707
1751
|
postPayoutsRulesIdRunsRunKeyHold(args?: RequestArgs & { body?: PostPayoutsRulesIdRunsRunKeyHoldRequest }): Promise<PostPayoutsRulesIdRunsRunKeyHoldResponse>;
|
|
1708
1752
|
/** POST /payouts/screenings — rank: archon */
|
|
1709
1753
|
postPayoutsScreenings(args: RequestArgs & { body: PostPayoutsScreeningsRequest }): Promise<PostPayoutsScreeningsResponse>;
|
|
1754
|
+
/** POST /payouts/tax-details — rank: archon */
|
|
1755
|
+
postPayoutsTaxDetails(args: RequestArgs & { body: PostPayoutsTaxDetailsRequest }): Promise<PostPayoutsTaxDetailsResponse>;
|
|
1710
1756
|
};
|
|
1711
1757
|
"profiles": {
|
|
1712
1758
|
/** GET /profiles/{handle} — rank: public */
|
|
@@ -1719,10 +1765,18 @@ export interface BongosClient {
|
|
|
1719
1765
|
"projectAccount": {
|
|
1720
1766
|
/** GET /project-account — rank: archon */
|
|
1721
1767
|
getProjectAccount(args?: RequestArgs): Promise<ApiResponse>;
|
|
1768
|
+
/** GET /project-account/ledger-checks — rank: archon */
|
|
1769
|
+
getProjectAccountLedgerChecks(args?: RequestArgs): Promise<ApiResponse>;
|
|
1770
|
+
/** GET /project-account/outflow — rank: archon */
|
|
1771
|
+
getProjectAccountOutflow(args?: RequestArgs): Promise<ApiResponse>;
|
|
1722
1772
|
};
|
|
1723
1773
|
"projectSettings": {
|
|
1724
1774
|
/** GET /project-settings — rank: metic+archon */
|
|
1725
1775
|
getProjectSettings(args?: RequestArgs): Promise<GetProjectSettingsResponse>;
|
|
1776
|
+
/** GET /project-settings/funding-wall — rank: any-builder */
|
|
1777
|
+
getProjectSettingsFundingWall(args?: RequestArgs): Promise<ApiResponse>;
|
|
1778
|
+
/** PATCH /project-settings/funding-wall — rank: metic+archon */
|
|
1779
|
+
patchProjectSettingsFundingWall(args: RequestArgs & { body: PatchProjectSettingsFundingWallRequest }): Promise<ApiResponse>;
|
|
1726
1780
|
/** PATCH /project-settings/pay-terms — rank: metic+archon */
|
|
1727
1781
|
patchProjectSettingsPayTerms(args: RequestArgs & { body: PatchProjectSettingsPayTermsRequest }): Promise<PatchProjectSettingsPayTermsResponse>;
|
|
1728
1782
|
/** PATCH /project-settings/rot-days — rank: metic+archon */
|
|
@@ -234,6 +234,16 @@ export function createClient(opts = {}) {
|
|
|
234
234
|
// POST /backup/trigger — rank: metic+archon — POST /backup/trigger
|
|
235
235
|
postBackupTrigger: (args) => request("POST", "/backup/trigger", { hasBody: true }, args),
|
|
236
236
|
},
|
|
237
|
+
"balances": {
|
|
238
|
+
// POST /balances/fund-project — rank: any-builder — POST /balances/fund-project
|
|
239
|
+
postBalancesFundProject: (args) => request("POST", "/balances/fund-project", { hasBody: true }, args),
|
|
240
|
+
// GET /balances/me — rank: any-builder — GET /balances/me
|
|
241
|
+
getBalancesMe: (args) => request("GET", "/balances/me", { hasBody: false }, args),
|
|
242
|
+
// POST /balances/pay — rank: any-builder — POST /balances/pay
|
|
243
|
+
postBalancesPay: (args) => request("POST", "/balances/pay", { hasBody: true }, args),
|
|
244
|
+
// GET /balances/project — rank: any-builder — GET /balances/project
|
|
245
|
+
getBalancesProject: (args) => request("GET", "/balances/project", { hasBody: false }, args),
|
|
246
|
+
},
|
|
237
247
|
"blockers": {
|
|
238
248
|
// GET /blockers — rank: public — GET /blockers
|
|
239
249
|
getBlockers: (args) => request("GET", "/blockers", { hasBody: false }, args),
|
|
@@ -789,6 +799,14 @@ export function createClient(opts = {}) {
|
|
|
789
799
|
getMeAchievements: (args) => request("GET", "/me/achievements", { hasBody: false }, args),
|
|
790
800
|
// POST /me/anthropic-link — rank: any-builder — POST /me/anthropic-link
|
|
791
801
|
postMeAnthropicLink: (args) => request("POST", "/me/anthropic-link", { hasBody: true }, args),
|
|
802
|
+
// GET /me/cash-outs — rank: any-builder — GET /me/cash-outs
|
|
803
|
+
getMeCashOuts: (args) => request("GET", "/me/cash-outs", { hasBody: false }, args),
|
|
804
|
+
// POST /me/cash-outs — rank: any-builder — POST /me/cash-outs
|
|
805
|
+
postMeCashOuts: (args) => request("POST", "/me/cash-outs", { hasBody: true }, args),
|
|
806
|
+
// POST /me/cash-outs/{id}/cancel — rank: any-builder — POST /me/cash-outs/:id/cancel
|
|
807
|
+
postMeCashOutsIdCancel: (args) => request("POST", "/me/cash-outs/{id}/cancel", { hasBody: true }, args),
|
|
808
|
+
// POST /me/cash-outs/{id}/retry — rank: any-builder — POST /me/cash-outs/:id/retry
|
|
809
|
+
postMeCashOutsIdRetry: (args) => request("POST", "/me/cash-outs/{id}/retry", { hasBody: true }, args),
|
|
792
810
|
// PATCH /me/checkout-freshness — rank: any-builder — PATCH /me/checkout-freshness
|
|
793
811
|
patchMeCheckoutFreshness: (args) => request("PATCH", "/me/checkout-freshness", { hasBody: true }, args),
|
|
794
812
|
// PATCH /me/core-move-seen — rank: any-builder — PATCH /me/core-move-seen
|
|
@@ -1049,6 +1067,20 @@ export function createClient(opts = {}) {
|
|
|
1049
1067
|
postPayoutsGrants: (args) => request("POST", "/payouts/grants", { hasBody: true }, args),
|
|
1050
1068
|
// POST /payouts/guardians — rank: archon — POST /payouts/guardians
|
|
1051
1069
|
postPayoutsGuardians: (args) => request("POST", "/payouts/guardians", { hasBody: true }, args),
|
|
1070
|
+
// POST /payouts/module-sales — rank: archon — POST /payouts/module-sales
|
|
1071
|
+
postPayoutsModuleSales: (args) => request("POST", "/payouts/module-sales", { hasBody: true }, args),
|
|
1072
|
+
// GET /payouts/module-shares — rank: archon — GET /payouts/module-shares
|
|
1073
|
+
getPayoutsModuleShares: (args) => request("GET", "/payouts/module-shares", { hasBody: false }, args),
|
|
1074
|
+
// POST /payouts/module-shares/{id}/pay — rank: archon — POST /payouts/module-shares/:id/pay
|
|
1075
|
+
postPayoutsModuleSharesIdPay: (args) => request("POST", "/payouts/module-shares/{id}/pay", { hasBody: true }, args),
|
|
1076
|
+
// GET /payouts/module-shares/mine — rank: any-builder — GET /payouts/module-shares/mine
|
|
1077
|
+
getPayoutsModuleSharesMine: (args) => request("GET", "/payouts/module-shares/mine", { hasBody: false }, args),
|
|
1078
|
+
// GET /payouts/module-splits/{moduleKey} — rank: archon — GET /payouts/module-splits/:moduleKey
|
|
1079
|
+
getPayoutsModuleSplitsModuleKey: (args) => request("GET", "/payouts/module-splits/{moduleKey}", { hasBody: false }, args),
|
|
1080
|
+
// POST /payouts/module-splits/{moduleKey} — rank: archon — POST /payouts/module-splits/:moduleKey
|
|
1081
|
+
postPayoutsModuleSplitsModuleKey: (args) => request("POST", "/payouts/module-splits/{moduleKey}", { hasBody: true }, args),
|
|
1082
|
+
// POST /payouts/ndas — rank: archon — POST /payouts/ndas
|
|
1083
|
+
postPayoutsNdas: (args) => request("POST", "/payouts/ndas", { hasBody: true }, args),
|
|
1052
1084
|
// GET /payouts/rules — rank: archon — GET /payouts/rules
|
|
1053
1085
|
getPayoutsRules: (args) => request("GET", "/payouts/rules", { hasBody: false }, args),
|
|
1054
1086
|
// POST /payouts/rules — rank: archon — POST /payouts/rules
|
|
@@ -1063,6 +1095,8 @@ export function createClient(opts = {}) {
|
|
|
1063
1095
|
postPayoutsRulesIdRunsRunKeyHold: (args) => request("POST", "/payouts/rules/{id}/runs/{runKey}/hold", { hasBody: true }, args),
|
|
1064
1096
|
// POST /payouts/screenings — rank: archon — POST /payouts/screenings
|
|
1065
1097
|
postPayoutsScreenings: (args) => request("POST", "/payouts/screenings", { hasBody: true }, args),
|
|
1098
|
+
// POST /payouts/tax-details — rank: archon — POST /payouts/tax-details
|
|
1099
|
+
postPayoutsTaxDetails: (args) => request("POST", "/payouts/tax-details", { hasBody: true }, args),
|
|
1066
1100
|
},
|
|
1067
1101
|
"profiles": {
|
|
1068
1102
|
// GET /profiles/{handle} — rank: public — GET /profiles/:handle
|
|
@@ -1075,10 +1109,18 @@ export function createClient(opts = {}) {
|
|
|
1075
1109
|
"projectAccount": {
|
|
1076
1110
|
// GET /project-account — rank: archon — GET /project-account
|
|
1077
1111
|
getProjectAccount: (args) => request("GET", "/project-account", { hasBody: false }, args),
|
|
1112
|
+
// GET /project-account/ledger-checks — rank: archon — GET /project-account/ledger-checks
|
|
1113
|
+
getProjectAccountLedgerChecks: (args) => request("GET", "/project-account/ledger-checks", { hasBody: false }, args),
|
|
1114
|
+
// GET /project-account/outflow — rank: archon — GET /project-account/outflow
|
|
1115
|
+
getProjectAccountOutflow: (args) => request("GET", "/project-account/outflow", { hasBody: false }, args),
|
|
1078
1116
|
},
|
|
1079
1117
|
"projectSettings": {
|
|
1080
1118
|
// GET /project-settings — rank: metic+archon — GET /project-settings
|
|
1081
1119
|
getProjectSettings: (args) => request("GET", "/project-settings", { hasBody: false }, args),
|
|
1120
|
+
// GET /project-settings/funding-wall — rank: any-builder — GET /project-settings/funding-wall
|
|
1121
|
+
getProjectSettingsFundingWall: (args) => request("GET", "/project-settings/funding-wall", { hasBody: false }, args),
|
|
1122
|
+
// PATCH /project-settings/funding-wall — rank: metic+archon — PATCH /project-settings/funding-wall
|
|
1123
|
+
patchProjectSettingsFundingWall: (args) => request("PATCH", "/project-settings/funding-wall", { hasBody: true }, args),
|
|
1082
1124
|
// PATCH /project-settings/pay-terms — rank: metic+archon — PATCH /project-settings/pay-terms
|
|
1083
1125
|
patchProjectSettingsPayTerms: (args) => request("PATCH", "/project-settings/pay-terms", { hasBody: true }, args),
|
|
1084
1126
|
// PATCH /project-settings/rot-days — rank: metic+archon — PATCH /project-settings/rot-days
|