@mestra-dev/contract 0.0.294 → 0.0.295

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 +433 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -2072,6 +2072,247 @@ declare const routes: import("hono/hono-base").HonoBase<{
2072
2072
  status: 201;
2073
2073
  };
2074
2074
  };
2075
+ } & {
2076
+ "/member/documents/:workspace": {
2077
+ $get: {
2078
+ input: {
2079
+ query: {
2080
+ collaboratorId: string;
2081
+ };
2082
+ } & {
2083
+ param: {
2084
+ workspace: string;
2085
+ };
2086
+ };
2087
+ output: {
2088
+ success: true;
2089
+ documents: {
2090
+ id: string;
2091
+ collaboratorId: string;
2092
+ name: string;
2093
+ number: string | null;
2094
+ issuer: string;
2095
+ issuedAt: string;
2096
+ expiresAt: string | null;
2097
+ file: {
2098
+ name: string;
2099
+ size: number;
2100
+ downloadUrl: string;
2101
+ } | null;
2102
+ createdAt: string;
2103
+ updatedAt: string;
2104
+ }[];
2105
+ };
2106
+ outputFormat: "json";
2107
+ status: 200;
2108
+ };
2109
+ };
2110
+ } & {
2111
+ "/member/documents": {
2112
+ $post: {
2113
+ input: {
2114
+ json: {
2115
+ name: string;
2116
+ number?: string | null | undefined;
2117
+ issuer: string;
2118
+ issuedAt: string;
2119
+ expiresAt: string | null;
2120
+ workspace: string;
2121
+ collaboratorId: string;
2122
+ };
2123
+ };
2124
+ output: {
2125
+ success: false;
2126
+ error: string;
2127
+ };
2128
+ outputFormat: "json";
2129
+ status: 403;
2130
+ } | {
2131
+ input: {
2132
+ json: {
2133
+ name: string;
2134
+ number?: string | null | undefined;
2135
+ issuer: string;
2136
+ issuedAt: string;
2137
+ expiresAt: string | null;
2138
+ workspace: string;
2139
+ collaboratorId: string;
2140
+ };
2141
+ };
2142
+ output: {
2143
+ success: false;
2144
+ error: string;
2145
+ };
2146
+ outputFormat: "json";
2147
+ status: 400;
2148
+ } | {
2149
+ input: {
2150
+ json: {
2151
+ name: string;
2152
+ number?: string | null | undefined;
2153
+ issuer: string;
2154
+ issuedAt: string;
2155
+ expiresAt: string | null;
2156
+ workspace: string;
2157
+ collaboratorId: string;
2158
+ };
2159
+ };
2160
+ output: {
2161
+ success: false;
2162
+ error: string;
2163
+ };
2164
+ outputFormat: "json";
2165
+ status: 404;
2166
+ } | {
2167
+ input: {
2168
+ json: {
2169
+ name: string;
2170
+ number?: string | null | undefined;
2171
+ issuer: string;
2172
+ issuedAt: string;
2173
+ expiresAt: string | null;
2174
+ workspace: string;
2175
+ collaboratorId: string;
2176
+ };
2177
+ };
2178
+ output: {
2179
+ success: true;
2180
+ document: {
2181
+ id: string;
2182
+ collaboratorId: string;
2183
+ name: string;
2184
+ number: string | null;
2185
+ issuer: string;
2186
+ issuedAt: string;
2187
+ expiresAt: string | null;
2188
+ file: {
2189
+ name: string;
2190
+ size: number;
2191
+ downloadUrl: string;
2192
+ } | null;
2193
+ createdAt: string;
2194
+ updatedAt: string;
2195
+ };
2196
+ };
2197
+ outputFormat: "json";
2198
+ status: 201;
2199
+ };
2200
+ };
2201
+ } & {
2202
+ "/member/documents/update": {
2203
+ $post: {
2204
+ input: {
2205
+ json: {
2206
+ name: string;
2207
+ number?: string | null | undefined;
2208
+ issuer: string;
2209
+ issuedAt: string;
2210
+ expiresAt: string | null;
2211
+ workspace: string;
2212
+ documentId: string;
2213
+ };
2214
+ };
2215
+ output: {
2216
+ success: false;
2217
+ error: string;
2218
+ };
2219
+ outputFormat: "json";
2220
+ status: 403;
2221
+ } | {
2222
+ input: {
2223
+ json: {
2224
+ name: string;
2225
+ number?: string | null | undefined;
2226
+ issuer: string;
2227
+ issuedAt: string;
2228
+ expiresAt: string | null;
2229
+ workspace: string;
2230
+ documentId: string;
2231
+ };
2232
+ };
2233
+ output: {
2234
+ success: false;
2235
+ error: string;
2236
+ };
2237
+ outputFormat: "json";
2238
+ status: 404;
2239
+ } | {
2240
+ input: {
2241
+ json: {
2242
+ name: string;
2243
+ number?: string | null | undefined;
2244
+ issuer: string;
2245
+ issuedAt: string;
2246
+ expiresAt: string | null;
2247
+ workspace: string;
2248
+ documentId: string;
2249
+ };
2250
+ };
2251
+ output: {
2252
+ success: true;
2253
+ document: {
2254
+ id: string;
2255
+ collaboratorId: string;
2256
+ name: string;
2257
+ number: string | null;
2258
+ issuer: string;
2259
+ issuedAt: string;
2260
+ expiresAt: string | null;
2261
+ file: {
2262
+ name: string;
2263
+ size: number;
2264
+ downloadUrl: string;
2265
+ } | null;
2266
+ createdAt: string;
2267
+ updatedAt: string;
2268
+ };
2269
+ };
2270
+ outputFormat: "json";
2271
+ status: 200;
2272
+ };
2273
+ };
2274
+ } & {
2275
+ "/member/documents/delete": {
2276
+ $post: {
2277
+ input: {
2278
+ json: {
2279
+ workspace: string;
2280
+ documentId: string;
2281
+ };
2282
+ };
2283
+ output: {
2284
+ success: false;
2285
+ error: string;
2286
+ };
2287
+ outputFormat: "json";
2288
+ status: 403;
2289
+ } | {
2290
+ input: {
2291
+ json: {
2292
+ workspace: string;
2293
+ documentId: string;
2294
+ };
2295
+ };
2296
+ output: {
2297
+ success: false;
2298
+ error: string;
2299
+ };
2300
+ outputFormat: "json";
2301
+ status: 404;
2302
+ } | {
2303
+ input: {
2304
+ json: {
2305
+ workspace: string;
2306
+ documentId: string;
2307
+ };
2308
+ };
2309
+ output: {
2310
+ success: true;
2311
+ };
2312
+ outputFormat: "json";
2313
+ status: 200;
2314
+ };
2315
+ };
2075
2316
  } & {
2076
2317
  "/settings": {
2077
2318
  $post: {
@@ -7348,6 +7589,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
7348
7589
  customerBytes: number;
7349
7590
  servicesBytes: number;
7350
7591
  financeBytes: number;
7592
+ membersBytes: number;
7351
7593
  limitBytes: number | null;
7352
7594
  };
7353
7595
  outputFormat: "json";
@@ -8159,6 +8401,197 @@ declare const routes: import("hono/hono-base").HonoBase<{
8159
8401
  status: import("hono/utils/http-status").ContentfulStatusCode;
8160
8402
  };
8161
8403
  };
8404
+ } & {
8405
+ "/upload-to-member-document": {
8406
+ $post: {
8407
+ input: {
8408
+ json: {
8409
+ filename: string;
8410
+ contentType: string;
8411
+ contentLength: number;
8412
+ workspace: string;
8413
+ documentId: string;
8414
+ };
8415
+ };
8416
+ output: {
8417
+ success: false;
8418
+ error: string;
8419
+ };
8420
+ outputFormat: "json";
8421
+ status: 403;
8422
+ } | {
8423
+ input: {
8424
+ json: {
8425
+ filename: string;
8426
+ contentType: string;
8427
+ contentLength: number;
8428
+ workspace: string;
8429
+ documentId: string;
8430
+ };
8431
+ };
8432
+ output: {
8433
+ success: false;
8434
+ error: string;
8435
+ };
8436
+ outputFormat: "json";
8437
+ status: 404;
8438
+ } | {
8439
+ input: {
8440
+ json: {
8441
+ filename: string;
8442
+ contentType: string;
8443
+ contentLength: number;
8444
+ workspace: string;
8445
+ documentId: string;
8446
+ };
8447
+ };
8448
+ output: {
8449
+ success: true;
8450
+ url: string;
8451
+ fields: {
8452
+ [x: string]: string;
8453
+ };
8454
+ key: string;
8455
+ maxSize: number;
8456
+ };
8457
+ outputFormat: "json";
8458
+ status: import("hono/utils/http-status").ContentfulStatusCode;
8459
+ };
8460
+ };
8461
+ } & {
8462
+ "/confirm-member-document-file": {
8463
+ $post: {
8464
+ input: {
8465
+ json: {
8466
+ filename: string;
8467
+ workspace: string;
8468
+ documentId: string;
8469
+ };
8470
+ };
8471
+ output: {
8472
+ success: false;
8473
+ error: string;
8474
+ };
8475
+ outputFormat: "json";
8476
+ status: 403;
8477
+ } | {
8478
+ input: {
8479
+ json: {
8480
+ filename: string;
8481
+ workspace: string;
8482
+ documentId: string;
8483
+ };
8484
+ };
8485
+ output: {
8486
+ success: false;
8487
+ error: string;
8488
+ };
8489
+ outputFormat: "json";
8490
+ status: 404;
8491
+ } | {
8492
+ input: {
8493
+ json: {
8494
+ filename: string;
8495
+ workspace: string;
8496
+ documentId: string;
8497
+ };
8498
+ };
8499
+ output: {
8500
+ success: true;
8501
+ key: string;
8502
+ document: {
8503
+ id: string;
8504
+ collaboratorId: string;
8505
+ name: string;
8506
+ number: string | null;
8507
+ issuer: string;
8508
+ issuedAt: string;
8509
+ expiresAt: string | null;
8510
+ file: {
8511
+ name: string;
8512
+ size: number;
8513
+ downloadUrl: string;
8514
+ } | null;
8515
+ createdAt: string;
8516
+ updatedAt: string;
8517
+ };
8518
+ };
8519
+ outputFormat: "json";
8520
+ status: import("hono/utils/http-status").ContentfulStatusCode;
8521
+ } | {
8522
+ input: {
8523
+ json: {
8524
+ filename: string;
8525
+ workspace: string;
8526
+ documentId: string;
8527
+ };
8528
+ };
8529
+ output: {
8530
+ success: false;
8531
+ error: string;
8532
+ };
8533
+ outputFormat: "json";
8534
+ status: 400;
8535
+ };
8536
+ };
8537
+ } & {
8538
+ "/delete-member-document-file": {
8539
+ $post: {
8540
+ input: {
8541
+ json: {
8542
+ workspace: string;
8543
+ documentId: string;
8544
+ };
8545
+ };
8546
+ output: {
8547
+ success: false;
8548
+ error: string;
8549
+ };
8550
+ outputFormat: "json";
8551
+ status: 403;
8552
+ } | {
8553
+ input: {
8554
+ json: {
8555
+ workspace: string;
8556
+ documentId: string;
8557
+ };
8558
+ };
8559
+ output: {
8560
+ success: false;
8561
+ error: string;
8562
+ };
8563
+ outputFormat: "json";
8564
+ status: 404;
8565
+ } | {
8566
+ input: {
8567
+ json: {
8568
+ workspace: string;
8569
+ documentId: string;
8570
+ };
8571
+ };
8572
+ output: {
8573
+ success: true;
8574
+ document: {
8575
+ id: string;
8576
+ collaboratorId: string;
8577
+ name: string;
8578
+ number: string | null;
8579
+ issuer: string;
8580
+ issuedAt: string;
8581
+ expiresAt: string | null;
8582
+ file: {
8583
+ name: string;
8584
+ size: number;
8585
+ downloadUrl: string;
8586
+ } | null;
8587
+ createdAt: string;
8588
+ updatedAt: string;
8589
+ };
8590
+ };
8591
+ outputFormat: "json";
8592
+ status: import("hono/utils/http-status").ContentfulStatusCode;
8593
+ };
8594
+ };
8162
8595
  } & {
8163
8596
  "/upload-to-finance": {
8164
8597
  $post: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mestra-dev/contract",
3
- "version": "0.0.294",
3
+ "version": "0.0.295",
4
4
  "description": "Types-only Hono AppType contract for the Mestra auth API",
5
5
  "type": "module",
6
6
  "sideEffects": false,