@mestra-dev/contract 0.0.296 → 0.0.297

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 (2) hide show
  1. package/dist/index.d.ts +4 -142
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -11510,6 +11510,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
11510
11510
  teamPromoCode: null;
11511
11511
  clientDiscountPercent: number;
11512
11512
  teamDiscountPercent: number;
11513
+ isAdmin: boolean;
11513
11514
  } | {
11514
11515
  status: "pending" | "active" | "suspended";
11515
11516
  suspensionReason: string | null;
@@ -11518,6 +11519,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
11518
11519
  teamPromoCode: string | null;
11519
11520
  clientDiscountPercent: number;
11520
11521
  teamDiscountPercent: number;
11522
+ isAdmin: boolean;
11521
11523
  };
11522
11524
  };
11523
11525
  outputFormat: "json";
@@ -11545,6 +11547,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
11545
11547
  teamPromoCode: null;
11546
11548
  clientDiscountPercent: number;
11547
11549
  teamDiscountPercent: number;
11550
+ isAdmin: boolean;
11548
11551
  } | {
11549
11552
  status: "pending" | "active" | "suspended";
11550
11553
  suspensionReason: string | null;
@@ -11553,6 +11556,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
11553
11556
  teamPromoCode: string | null;
11554
11557
  clientDiscountPercent: number;
11555
11558
  teamDiscountPercent: number;
11559
+ isAdmin: boolean;
11556
11560
  };
11557
11561
  };
11558
11562
  outputFormat: "json";
@@ -11872,14 +11876,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
11872
11876
  } & {
11873
11877
  "/admin/promo-requests": {
11874
11878
  $get: {
11875
- input: {};
11876
- output: {
11877
- success: false;
11878
- error: string;
11879
- };
11880
- outputFormat: "json";
11881
- status: 401;
11882
- } | {
11883
11879
  input: {};
11884
11880
  output: {
11885
11881
  success: true;
@@ -11901,22 +11897,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
11901
11897
  } & {
11902
11898
  "/admin/promo-requests/:requestId/approve": {
11903
11899
  $post: {
11904
- input: {
11905
- json: {
11906
- percent?: number | undefined;
11907
- };
11908
- } & {
11909
- param: {
11910
- requestId: string;
11911
- };
11912
- };
11913
- output: {
11914
- success: false;
11915
- error: string;
11916
- };
11917
- outputFormat: "json";
11918
- status: 401;
11919
- } | {
11920
11900
  input: {
11921
11901
  json: {
11922
11902
  percent?: number | undefined;
@@ -11936,22 +11916,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
11936
11916
  } & {
11937
11917
  "/admin/promo-requests/:requestId/reject": {
11938
11918
  $post: {
11939
- input: {
11940
- json: {
11941
- reason: string;
11942
- };
11943
- } & {
11944
- param: {
11945
- requestId: string;
11946
- };
11947
- };
11948
- output: {
11949
- success: false;
11950
- error: string;
11951
- };
11952
- outputFormat: "json";
11953
- status: 401;
11954
- } | {
11955
11919
  input: {
11956
11920
  json: {
11957
11921
  reason: string;
@@ -11971,14 +11935,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
11971
11935
  } & {
11972
11936
  "/admin/payouts": {
11973
11937
  $get: {
11974
- input: {};
11975
- output: {
11976
- success: false;
11977
- error: string;
11978
- };
11979
- outputFormat: "json";
11980
- status: 401;
11981
- } | {
11982
11938
  input: {};
11983
11939
  output: {
11984
11940
  success: true;
@@ -12008,18 +11964,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
12008
11964
  } & {
12009
11965
  "/admin/commissions/:entryId/reverse": {
12010
11966
  $post: {
12011
- input: {
12012
- param: {
12013
- entryId: string;
12014
- };
12015
- };
12016
- output: {
12017
- success: false;
12018
- error: string;
12019
- };
12020
- outputFormat: "json";
12021
- status: 401;
12022
- } | {
12023
11967
  input: {
12024
11968
  param: {
12025
11969
  entryId: string;
@@ -12039,18 +11983,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
12039
11983
  } & {
12040
11984
  "/admin": {
12041
11985
  $get: {
12042
- input: {
12043
- query: {
12044
- status?: "pending" | "active" | "suspended" | undefined;
12045
- };
12046
- };
12047
- output: {
12048
- success: false;
12049
- error: string;
12050
- };
12051
- outputFormat: "json";
12052
- status: 401;
12053
- } | {
12054
11986
  input: {
12055
11987
  query: {
12056
11988
  status?: "pending" | "active" | "suspended" | undefined;
@@ -12086,22 +12018,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
12086
12018
  } & {
12087
12019
  "/admin/:partnerId/activate": {
12088
12020
  $post: {
12089
- input: {
12090
- json: {
12091
- promoCode: string;
12092
- };
12093
- } & {
12094
- param: {
12095
- partnerId: string;
12096
- };
12097
- };
12098
- output: {
12099
- success: false;
12100
- error: string;
12101
- };
12102
- outputFormat: "json";
12103
- status: 401;
12104
- } | {
12105
12021
  input: {
12106
12022
  json: {
12107
12023
  promoCode: string;
@@ -12121,18 +12037,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
12121
12037
  } & {
12122
12038
  "/admin/:partnerId/reject": {
12123
12039
  $post: {
12124
- input: {
12125
- param: {
12126
- partnerId: string;
12127
- };
12128
- };
12129
- output: {
12130
- success: false;
12131
- error: string;
12132
- };
12133
- outputFormat: "json";
12134
- status: 401;
12135
- } | {
12136
12040
  input: {
12137
12041
  param: {
12138
12042
  partnerId: string;
@@ -12148,22 +12052,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
12148
12052
  } & {
12149
12053
  "/admin/:partnerId/suspend": {
12150
12054
  $post: {
12151
- input: {
12152
- json: {
12153
- reason: string;
12154
- };
12155
- } & {
12156
- param: {
12157
- partnerId: string;
12158
- };
12159
- };
12160
- output: {
12161
- success: false;
12162
- error: string;
12163
- };
12164
- outputFormat: "json";
12165
- status: 401;
12166
- } | {
12167
12055
  input: {
12168
12056
  json: {
12169
12057
  reason: string;
@@ -12183,18 +12071,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
12183
12071
  } & {
12184
12072
  "/admin/:partnerId/reactivate": {
12185
12073
  $post: {
12186
- input: {
12187
- param: {
12188
- partnerId: string;
12189
- };
12190
- };
12191
- output: {
12192
- success: false;
12193
- error: string;
12194
- };
12195
- outputFormat: "json";
12196
- status: 401;
12197
- } | {
12198
12074
  input: {
12199
12075
  param: {
12200
12076
  partnerId: string;
@@ -12210,20 +12086,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
12210
12086
  } & {
12211
12087
  "/admin/:partnerId/payouts/:period/paid": {
12212
12088
  $post: {
12213
- input: {
12214
- param: {
12215
- period: string;
12216
- } & {
12217
- partnerId: string;
12218
- };
12219
- };
12220
- output: {
12221
- success: false;
12222
- error: string;
12223
- };
12224
- outputFormat: "json";
12225
- status: 401;
12226
- } | {
12227
12089
  input: {
12228
12090
  param: {
12229
12091
  period: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mestra-dev/contract",
3
- "version": "0.0.296",
3
+ "version": "0.0.297",
4
4
  "description": "Types-only Hono AppType contract for the Mestra auth API",
5
5
  "type": "module",
6
6
  "sideEffects": false,