@vibes.diy/api-types 2.0.0-dev-cli-9 → 2.0.0-dev-cli-a

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/msg-types.d.ts +404 -404
  2. package/package.json +3 -2
package/msg-types.d.ts CHANGED
@@ -1109,21 +1109,6 @@ export declare const resEnsureAppSlugError: import("arktype/internal/variants/ob
1109
1109
  stack?: string[] | undefined;
1110
1110
  }, {}>;
1111
1111
  export declare const resEnsureAppSlug: import("arktype/internal/variants/object.ts").ObjectType<{
1112
- type: "vibes.diy.error";
1113
- message: string;
1114
- code: "require-login";
1115
- stack?: string[] | undefined;
1116
- } | {
1117
- type: "vibes.diy.error";
1118
- message: string;
1119
- code: "user-slug-invalid";
1120
- stack?: string[] | undefined;
1121
- } | {
1122
- type: "vibes.diy.error";
1123
- message: string;
1124
- code: "app-slug-invalid";
1125
- stack?: string[] | undefined;
1126
- } | {
1127
1112
  appSlug: string;
1128
1113
  userSlug: string;
1129
1114
  mode: "dev" | "production";
@@ -1152,6 +1137,21 @@ export declare const resEnsureAppSlug: import("arktype/internal/variants/object.
1152
1137
  entryPoint?: boolean | undefined;
1153
1138
  size: number;
1154
1139
  }[];
1140
+ } | {
1141
+ type: "vibes.diy.error";
1142
+ message: string;
1143
+ code: "require-login";
1144
+ stack?: string[] | undefined;
1145
+ } | {
1146
+ type: "vibes.diy.error";
1147
+ message: string;
1148
+ code: "user-slug-invalid";
1149
+ stack?: string[] | undefined;
1150
+ } | {
1151
+ type: "vibes.diy.error";
1152
+ message: string;
1153
+ code: "app-slug-invalid";
1154
+ stack?: string[] | undefined;
1155
1155
  }, {}>;
1156
1156
  export type ResEnsureAppSlugError = typeof resEnsureAppSlugError.infer;
1157
1157
  export type ResEnsureAppSlug = typeof resEnsureAppSlug.infer;
@@ -1448,53 +1448,6 @@ export declare const reqEnsureAppSettingsAcl: import("arktype/internal/variants/
1448
1448
  userSlug: string;
1449
1449
  aclEntry: {
1450
1450
  entry: {
1451
- type: "app.acl.active.request";
1452
- role: "viewer";
1453
- state: "pending";
1454
- request: {
1455
- key: string;
1456
- provider: "clerk" | "github" | "google";
1457
- msg?: string | undefined;
1458
- userId: string;
1459
- created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1460
- };
1461
- } | {
1462
- type: "app.acl.active.request";
1463
- role: "editor" | "viewer";
1464
- state: "approved";
1465
- request: {
1466
- key: string;
1467
- provider: "clerk" | "github" | "google";
1468
- msg?: string | undefined;
1469
- userId: string;
1470
- created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1471
- };
1472
- tick: {
1473
- count: number;
1474
- last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1475
- };
1476
- grant: {
1477
- ownerId: string;
1478
- key?: string | undefined;
1479
- on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1480
- };
1481
- } | {
1482
- type: "app.acl.active.request";
1483
- role: "editor" | "viewer";
1484
- state: "rejected";
1485
- request: {
1486
- key: string;
1487
- provider: "clerk" | "github" | "google";
1488
- msg?: string | undefined;
1489
- userId: string;
1490
- created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1491
- };
1492
- grant: {
1493
- ownerId: string;
1494
- key?: string | undefined;
1495
- on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1496
- };
1497
- } | {
1498
1451
  type: "app.acl.active.invite";
1499
1452
  role: "editor";
1500
1453
  state: "pending";
@@ -1580,6 +1533,53 @@ export declare const reqEnsureAppSettingsAcl: import("arktype/internal/variants/
1580
1533
  count: number;
1581
1534
  last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1582
1535
  };
1536
+ } | {
1537
+ type: "app.acl.active.request";
1538
+ role: "viewer";
1539
+ state: "pending";
1540
+ request: {
1541
+ key: string;
1542
+ provider: "clerk" | "github" | "google";
1543
+ msg?: string | undefined;
1544
+ userId: string;
1545
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1546
+ };
1547
+ } | {
1548
+ type: "app.acl.active.request";
1549
+ role: "editor" | "viewer";
1550
+ state: "approved";
1551
+ request: {
1552
+ key: string;
1553
+ provider: "clerk" | "github" | "google";
1554
+ msg?: string | undefined;
1555
+ userId: string;
1556
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1557
+ };
1558
+ tick: {
1559
+ count: number;
1560
+ last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1561
+ };
1562
+ grant: {
1563
+ ownerId: string;
1564
+ key?: string | undefined;
1565
+ on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1566
+ };
1567
+ } | {
1568
+ type: "app.acl.active.request";
1569
+ role: "editor" | "viewer";
1570
+ state: "rejected";
1571
+ request: {
1572
+ key: string;
1573
+ provider: "clerk" | "github" | "google";
1574
+ msg?: string | undefined;
1575
+ userId: string;
1576
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1577
+ };
1578
+ grant: {
1579
+ ownerId: string;
1580
+ key?: string | undefined;
1581
+ on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1582
+ };
1583
1583
  };
1584
1584
  op: "delete" | "upsert";
1585
1585
  };
@@ -1676,60 +1676,6 @@ export type ReqEnsureAppSettings = ReqPublicAccess | ReqRequest | ReqEnsureAppSe
1676
1676
  export declare function isReqEnsureAppSettings(obj: unknown): obj is ReqEnsureAppSettings;
1677
1677
  export declare const AppSettings: import("arktype/internal/variants/object.ts").ObjectType<{
1678
1678
  entries: ({
1679
- type: "app.public.access";
1680
- enable: boolean;
1681
- tick?: {
1682
- count: number;
1683
- last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1684
- } | undefined;
1685
- } | {
1686
- type: "app.acl.active.request";
1687
- role: "viewer";
1688
- state: "pending";
1689
- request: {
1690
- key: string;
1691
- provider: "clerk" | "github" | "google";
1692
- msg?: string | undefined;
1693
- userId: string;
1694
- created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1695
- };
1696
- } | {
1697
- type: "app.acl.active.request";
1698
- role: "editor" | "viewer";
1699
- state: "approved";
1700
- request: {
1701
- key: string;
1702
- provider: "clerk" | "github" | "google";
1703
- msg?: string | undefined;
1704
- userId: string;
1705
- created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1706
- };
1707
- tick: {
1708
- count: number;
1709
- last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1710
- };
1711
- grant: {
1712
- ownerId: string;
1713
- key?: string | undefined;
1714
- on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1715
- };
1716
- } | {
1717
- type: "app.acl.active.request";
1718
- role: "editor" | "viewer";
1719
- state: "rejected";
1720
- request: {
1721
- key: string;
1722
- provider: "clerk" | "github" | "google";
1723
- msg?: string | undefined;
1724
- userId: string;
1725
- created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1726
- };
1727
- grant: {
1728
- ownerId: string;
1729
- key?: string | undefined;
1730
- on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1731
- };
1732
- } | {
1733
1679
  type: "app.acl.active.invite";
1734
1680
  role: "editor";
1735
1681
  state: "pending";
@@ -1815,6 +1761,60 @@ export declare const AppSettings: import("arktype/internal/variants/object.ts").
1815
1761
  count: number;
1816
1762
  last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1817
1763
  };
1764
+ } | {
1765
+ type: "app.acl.active.request";
1766
+ role: "viewer";
1767
+ state: "pending";
1768
+ request: {
1769
+ key: string;
1770
+ provider: "clerk" | "github" | "google";
1771
+ msg?: string | undefined;
1772
+ userId: string;
1773
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1774
+ };
1775
+ } | {
1776
+ type: "app.acl.active.request";
1777
+ role: "editor" | "viewer";
1778
+ state: "approved";
1779
+ request: {
1780
+ key: string;
1781
+ provider: "clerk" | "github" | "google";
1782
+ msg?: string | undefined;
1783
+ userId: string;
1784
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1785
+ };
1786
+ tick: {
1787
+ count: number;
1788
+ last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1789
+ };
1790
+ grant: {
1791
+ ownerId: string;
1792
+ key?: string | undefined;
1793
+ on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1794
+ };
1795
+ } | {
1796
+ type: "app.acl.active.request";
1797
+ role: "editor" | "viewer";
1798
+ state: "rejected";
1799
+ request: {
1800
+ key: string;
1801
+ provider: "clerk" | "github" | "google";
1802
+ msg?: string | undefined;
1803
+ userId: string;
1804
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1805
+ };
1806
+ grant: {
1807
+ ownerId: string;
1808
+ key?: string | undefined;
1809
+ on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1810
+ };
1811
+ } | {
1812
+ type: "app.public.access";
1813
+ enable: boolean;
1814
+ tick?: {
1815
+ count: number;
1816
+ last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1817
+ } | undefined;
1818
1818
  } | {
1819
1819
  type: "app.request";
1820
1820
  enable: boolean;
@@ -1885,77 +1885,23 @@ export declare const resEnsureAppSettings: import("arktype/internal/variants/obj
1885
1885
  error?: string | undefined;
1886
1886
  settings: {
1887
1887
  entries: ({
1888
- type: "app.public.access";
1889
- enable: boolean;
1890
- tick?: {
1891
- count: number;
1892
- last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1893
- } | undefined;
1888
+ type: "app.acl.active.invite";
1889
+ role: "editor";
1890
+ state: "pending";
1891
+ invite: {
1892
+ email: string;
1893
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1894
+ };
1895
+ token: string;
1894
1896
  } | {
1895
- type: "app.acl.active.request";
1897
+ type: "app.acl.active.invite";
1896
1898
  role: "viewer";
1897
1899
  state: "pending";
1898
- request: {
1899
- key: string;
1900
- provider: "clerk" | "github" | "google";
1901
- msg?: string | undefined;
1902
- userId: string;
1900
+ invite: {
1901
+ email: string;
1903
1902
  created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1904
1903
  };
1905
- } | {
1906
- type: "app.acl.active.request";
1907
- role: "editor" | "viewer";
1908
- state: "approved";
1909
- request: {
1910
- key: string;
1911
- provider: "clerk" | "github" | "google";
1912
- msg?: string | undefined;
1913
- userId: string;
1914
- created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1915
- };
1916
- tick: {
1917
- count: number;
1918
- last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1919
- };
1920
- grant: {
1921
- ownerId: string;
1922
- key?: string | undefined;
1923
- on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1924
- };
1925
- } | {
1926
- type: "app.acl.active.request";
1927
- role: "editor" | "viewer";
1928
- state: "rejected";
1929
- request: {
1930
- key: string;
1931
- provider: "clerk" | "github" | "google";
1932
- msg?: string | undefined;
1933
- userId: string;
1934
- created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1935
- };
1936
- grant: {
1937
- ownerId: string;
1938
- key?: string | undefined;
1939
- on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1940
- };
1941
- } | {
1942
- type: "app.acl.active.invite";
1943
- role: "editor";
1944
- state: "pending";
1945
- invite: {
1946
- email: string;
1947
- created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1948
- };
1949
- token: string;
1950
- } | {
1951
- type: "app.acl.active.invite";
1952
- role: "viewer";
1953
- state: "pending";
1954
- invite: {
1955
- email: string;
1956
- created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1957
- };
1958
- token: string;
1904
+ token: string;
1959
1905
  } | {
1960
1906
  type: "app.acl.active.invite";
1961
1907
  role: "editor";
@@ -2024,6 +1970,60 @@ export declare const resEnsureAppSettings: import("arktype/internal/variants/obj
2024
1970
  count: number;
2025
1971
  last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2026
1972
  };
1973
+ } | {
1974
+ type: "app.acl.active.request";
1975
+ role: "viewer";
1976
+ state: "pending";
1977
+ request: {
1978
+ key: string;
1979
+ provider: "clerk" | "github" | "google";
1980
+ msg?: string | undefined;
1981
+ userId: string;
1982
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1983
+ };
1984
+ } | {
1985
+ type: "app.acl.active.request";
1986
+ role: "editor" | "viewer";
1987
+ state: "approved";
1988
+ request: {
1989
+ key: string;
1990
+ provider: "clerk" | "github" | "google";
1991
+ msg?: string | undefined;
1992
+ userId: string;
1993
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1994
+ };
1995
+ tick: {
1996
+ count: number;
1997
+ last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1998
+ };
1999
+ grant: {
2000
+ ownerId: string;
2001
+ key?: string | undefined;
2002
+ on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2003
+ };
2004
+ } | {
2005
+ type: "app.acl.active.request";
2006
+ role: "editor" | "viewer";
2007
+ state: "rejected";
2008
+ request: {
2009
+ key: string;
2010
+ provider: "clerk" | "github" | "google";
2011
+ msg?: string | undefined;
2012
+ userId: string;
2013
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2014
+ };
2015
+ grant: {
2016
+ ownerId: string;
2017
+ key?: string | undefined;
2018
+ on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2019
+ };
2020
+ } | {
2021
+ type: "app.public.access";
2022
+ enable: boolean;
2023
+ tick?: {
2024
+ count: number;
2025
+ last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2026
+ } | undefined;
2027
2027
  } | {
2028
2028
  type: "app.request";
2029
2029
  enable: boolean;
@@ -2133,53 +2133,6 @@ export declare const KeyGrantKey: import("arktype/internal/variants/object.ts").
2133
2133
  export type KeyGrantKey = typeof KeyGrantKey.infer;
2134
2134
  export declare const ResKeyGrantItem: import("arktype/internal/variants/object.ts").ObjectType<{
2135
2135
  entry: {
2136
- type: "app.acl.active.request";
2137
- role: "viewer";
2138
- state: "pending";
2139
- request: {
2140
- key: string;
2141
- provider: "clerk" | "github" | "google";
2142
- msg?: string | undefined;
2143
- userId: string;
2144
- created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2145
- };
2146
- } | {
2147
- type: "app.acl.active.request";
2148
- role: "editor" | "viewer";
2149
- state: "approved";
2150
- request: {
2151
- key: string;
2152
- provider: "clerk" | "github" | "google";
2153
- msg?: string | undefined;
2154
- userId: string;
2155
- created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2156
- };
2157
- tick: {
2158
- count: number;
2159
- last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2160
- };
2161
- grant: {
2162
- ownerId: string;
2163
- key?: string | undefined;
2164
- on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2165
- };
2166
- } | {
2167
- type: "app.acl.active.request";
2168
- role: "editor" | "viewer";
2169
- state: "rejected";
2170
- request: {
2171
- key: string;
2172
- provider: "clerk" | "github" | "google";
2173
- msg?: string | undefined;
2174
- userId: string;
2175
- created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2176
- };
2177
- grant: {
2178
- ownerId: string;
2179
- key?: string | undefined;
2180
- on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2181
- };
2182
- } | {
2183
2136
  type: "app.acl.active.invite";
2184
2137
  role: "editor";
2185
2138
  state: "pending";
@@ -2265,6 +2218,53 @@ export declare const ResKeyGrantItem: import("arktype/internal/variants/object.t
2265
2218
  count: number;
2266
2219
  last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2267
2220
  };
2221
+ } | {
2222
+ type: "app.acl.active.request";
2223
+ role: "viewer";
2224
+ state: "pending";
2225
+ request: {
2226
+ key: string;
2227
+ provider: "clerk" | "github" | "google";
2228
+ msg?: string | undefined;
2229
+ userId: string;
2230
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2231
+ };
2232
+ } | {
2233
+ type: "app.acl.active.request";
2234
+ role: "editor" | "viewer";
2235
+ state: "approved";
2236
+ request: {
2237
+ key: string;
2238
+ provider: "clerk" | "github" | "google";
2239
+ msg?: string | undefined;
2240
+ userId: string;
2241
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2242
+ };
2243
+ tick: {
2244
+ count: number;
2245
+ last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2246
+ };
2247
+ grant: {
2248
+ ownerId: string;
2249
+ key?: string | undefined;
2250
+ on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2251
+ };
2252
+ } | {
2253
+ type: "app.acl.active.request";
2254
+ role: "editor" | "viewer";
2255
+ state: "rejected";
2256
+ request: {
2257
+ key: string;
2258
+ provider: "clerk" | "github" | "google";
2259
+ msg?: string | undefined;
2260
+ userId: string;
2261
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2262
+ };
2263
+ grant: {
2264
+ ownerId: string;
2265
+ key?: string | undefined;
2266
+ on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2267
+ };
2268
2268
  };
2269
2269
  grantUserId?: string | undefined;
2270
2270
  grantType: "invite" | "request";
@@ -2293,53 +2293,6 @@ export declare const ResListKeyGrants: import("arktype/internal/variants/object.
2293
2293
  items: {
2294
2294
  key: string;
2295
2295
  entry: {
2296
- type: "app.acl.active.request";
2297
- role: "viewer";
2298
- state: "pending";
2299
- request: {
2300
- key: string;
2301
- provider: "clerk" | "github" | "google";
2302
- msg?: string | undefined;
2303
- userId: string;
2304
- created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2305
- };
2306
- } | {
2307
- type: "app.acl.active.request";
2308
- role: "editor" | "viewer";
2309
- state: "approved";
2310
- request: {
2311
- key: string;
2312
- provider: "clerk" | "github" | "google";
2313
- msg?: string | undefined;
2314
- userId: string;
2315
- created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2316
- };
2317
- tick: {
2318
- count: number;
2319
- last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2320
- };
2321
- grant: {
2322
- ownerId: string;
2323
- key?: string | undefined;
2324
- on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2325
- };
2326
- } | {
2327
- type: "app.acl.active.request";
2328
- role: "editor" | "viewer";
2329
- state: "rejected";
2330
- request: {
2331
- key: string;
2332
- provider: "clerk" | "github" | "google";
2333
- msg?: string | undefined;
2334
- userId: string;
2335
- created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2336
- };
2337
- grant: {
2338
- ownerId: string;
2339
- key?: string | undefined;
2340
- on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2341
- };
2342
- } | {
2343
2296
  type: "app.acl.active.invite";
2344
2297
  role: "editor";
2345
2298
  state: "pending";
@@ -2404,16 +2357,67 @@ export declare const ResListKeyGrants: import("arktype/internal/variants/object.
2404
2357
  key?: string | undefined;
2405
2358
  on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2406
2359
  };
2407
- tick: {
2408
- count: number;
2409
- last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2410
- };
2360
+ tick: {
2361
+ count: number;
2362
+ last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2363
+ };
2364
+ } | {
2365
+ type: "app.acl.active.invite";
2366
+ role: "viewer";
2367
+ state: "revoked";
2368
+ invite: {
2369
+ email: string;
2370
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2371
+ };
2372
+ grant: {
2373
+ ownerId: string;
2374
+ key?: string | undefined;
2375
+ on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2376
+ };
2377
+ tick: {
2378
+ count: number;
2379
+ last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2380
+ };
2381
+ } | {
2382
+ type: "app.acl.active.request";
2383
+ role: "viewer";
2384
+ state: "pending";
2385
+ request: {
2386
+ key: string;
2387
+ provider: "clerk" | "github" | "google";
2388
+ msg?: string | undefined;
2389
+ userId: string;
2390
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2391
+ };
2392
+ } | {
2393
+ type: "app.acl.active.request";
2394
+ role: "editor" | "viewer";
2395
+ state: "approved";
2396
+ request: {
2397
+ key: string;
2398
+ provider: "clerk" | "github" | "google";
2399
+ msg?: string | undefined;
2400
+ userId: string;
2401
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2402
+ };
2403
+ tick: {
2404
+ count: number;
2405
+ last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2406
+ };
2407
+ grant: {
2408
+ ownerId: string;
2409
+ key?: string | undefined;
2410
+ on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2411
+ };
2411
2412
  } | {
2412
- type: "app.acl.active.invite";
2413
- role: "viewer";
2414
- state: "revoked";
2415
- invite: {
2416
- email: string;
2413
+ type: "app.acl.active.request";
2414
+ role: "editor" | "viewer";
2415
+ state: "rejected";
2416
+ request: {
2417
+ key: string;
2418
+ provider: "clerk" | "github" | "google";
2419
+ msg?: string | undefined;
2420
+ userId: string;
2417
2421
  created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2418
2422
  };
2419
2423
  grant: {
@@ -2421,10 +2425,6 @@ export declare const ResListKeyGrants: import("arktype/internal/variants/object.
2421
2425
  key?: string | undefined;
2422
2426
  on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2423
2427
  };
2424
- tick: {
2425
- count: number;
2426
- last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2427
- };
2428
2428
  };
2429
2429
  grantUserId?: string | undefined;
2430
2430
  updated: string;
@@ -2446,53 +2446,6 @@ export declare const ReqUpsertKeyGrant: import("arktype/internal/variants/object
2446
2446
  appSlug: string;
2447
2447
  userSlug: string;
2448
2448
  entry: {
2449
- type: "app.acl.active.request";
2450
- role: "viewer";
2451
- state: "pending";
2452
- request: {
2453
- key: string;
2454
- provider: "clerk" | "github" | "google";
2455
- msg?: string | undefined;
2456
- userId: string;
2457
- created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2458
- };
2459
- } | {
2460
- type: "app.acl.active.request";
2461
- role: "editor" | "viewer";
2462
- state: "approved";
2463
- request: {
2464
- key: string;
2465
- provider: "clerk" | "github" | "google";
2466
- msg?: string | undefined;
2467
- userId: string;
2468
- created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2469
- };
2470
- tick: {
2471
- count: number;
2472
- last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2473
- };
2474
- grant: {
2475
- ownerId: string;
2476
- key?: string | undefined;
2477
- on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2478
- };
2479
- } | {
2480
- type: "app.acl.active.request";
2481
- role: "editor" | "viewer";
2482
- state: "rejected";
2483
- request: {
2484
- key: string;
2485
- provider: "clerk" | "github" | "google";
2486
- msg?: string | undefined;
2487
- userId: string;
2488
- created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2489
- };
2490
- grant: {
2491
- ownerId: string;
2492
- key?: string | undefined;
2493
- on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2494
- };
2495
- } | {
2496
2449
  type: "app.acl.active.invite";
2497
2450
  role: "editor";
2498
2451
  state: "pending";
@@ -2578,16 +2531,7 @@ export declare const ReqUpsertKeyGrant: import("arktype/internal/variants/object
2578
2531
  count: number;
2579
2532
  last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2580
2533
  };
2581
- };
2582
- }, {}>;
2583
- export type ReqUpsertKeyGrant = typeof ReqUpsertKeyGrant.infer;
2584
- export declare function isReqUpsertKeyGrant(obj: unknown): obj is ReqUpsertKeyGrant;
2585
- export declare const ResUpsertKeyGrant: import("arktype/internal/variants/object.ts").ObjectType<{
2586
- appSlug: string;
2587
- userSlug: string;
2588
- grantType: "invite" | "request";
2589
- key: string;
2590
- entry: {
2534
+ } | {
2591
2535
  type: "app.acl.active.request";
2592
2536
  role: "viewer";
2593
2537
  state: "pending";
@@ -2634,7 +2578,16 @@ export declare const ResUpsertKeyGrant: import("arktype/internal/variants/object
2634
2578
  key?: string | undefined;
2635
2579
  on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2636
2580
  };
2637
- } | {
2581
+ };
2582
+ }, {}>;
2583
+ export type ReqUpsertKeyGrant = typeof ReqUpsertKeyGrant.infer;
2584
+ export declare function isReqUpsertKeyGrant(obj: unknown): obj is ReqUpsertKeyGrant;
2585
+ export declare const ResUpsertKeyGrant: import("arktype/internal/variants/object.ts").ObjectType<{
2586
+ appSlug: string;
2587
+ userSlug: string;
2588
+ grantType: "invite" | "request";
2589
+ key: string;
2590
+ entry: {
2638
2591
  type: "app.acl.active.invite";
2639
2592
  role: "editor";
2640
2593
  state: "pending";
@@ -2720,6 +2673,53 @@ export declare const ResUpsertKeyGrant: import("arktype/internal/variants/object
2720
2673
  count: number;
2721
2674
  last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2722
2675
  };
2676
+ } | {
2677
+ type: "app.acl.active.request";
2678
+ role: "viewer";
2679
+ state: "pending";
2680
+ request: {
2681
+ key: string;
2682
+ provider: "clerk" | "github" | "google";
2683
+ msg?: string | undefined;
2684
+ userId: string;
2685
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2686
+ };
2687
+ } | {
2688
+ type: "app.acl.active.request";
2689
+ role: "editor" | "viewer";
2690
+ state: "approved";
2691
+ request: {
2692
+ key: string;
2693
+ provider: "clerk" | "github" | "google";
2694
+ msg?: string | undefined;
2695
+ userId: string;
2696
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2697
+ };
2698
+ tick: {
2699
+ count: number;
2700
+ last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2701
+ };
2702
+ grant: {
2703
+ ownerId: string;
2704
+ key?: string | undefined;
2705
+ on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2706
+ };
2707
+ } | {
2708
+ type: "app.acl.active.request";
2709
+ role: "editor" | "viewer";
2710
+ state: "rejected";
2711
+ request: {
2712
+ key: string;
2713
+ provider: "clerk" | "github" | "google";
2714
+ msg?: string | undefined;
2715
+ userId: string;
2716
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2717
+ };
2718
+ grant: {
2719
+ ownerId: string;
2720
+ key?: string | undefined;
2721
+ on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2722
+ };
2723
2723
  };
2724
2724
  grantUserId?: string | undefined;
2725
2725
  updated: string;
@@ -3786,60 +3786,6 @@ export declare const evtAppSetting: import("arktype/internal/variants/object.ts"
3786
3786
  userSlug: string;
3787
3787
  appSlug: string;
3788
3788
  settings: ({
3789
- type: "app.public.access";
3790
- enable: boolean;
3791
- tick?: {
3792
- count: number;
3793
- last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
3794
- } | undefined;
3795
- } | {
3796
- type: "app.acl.active.request";
3797
- role: "viewer";
3798
- state: "pending";
3799
- request: {
3800
- key: string;
3801
- provider: "clerk" | "github" | "google";
3802
- msg?: string | undefined;
3803
- userId: string;
3804
- created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
3805
- };
3806
- } | {
3807
- type: "app.acl.active.request";
3808
- role: "editor" | "viewer";
3809
- state: "approved";
3810
- request: {
3811
- key: string;
3812
- provider: "clerk" | "github" | "google";
3813
- msg?: string | undefined;
3814
- userId: string;
3815
- created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
3816
- };
3817
- tick: {
3818
- count: number;
3819
- last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
3820
- };
3821
- grant: {
3822
- ownerId: string;
3823
- key?: string | undefined;
3824
- on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
3825
- };
3826
- } | {
3827
- type: "app.acl.active.request";
3828
- role: "editor" | "viewer";
3829
- state: "rejected";
3830
- request: {
3831
- key: string;
3832
- provider: "clerk" | "github" | "google";
3833
- msg?: string | undefined;
3834
- userId: string;
3835
- created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
3836
- };
3837
- grant: {
3838
- ownerId: string;
3839
- key?: string | undefined;
3840
- on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
3841
- };
3842
- } | {
3843
3789
  type: "app.acl.active.invite";
3844
3790
  role: "editor";
3845
3791
  state: "pending";
@@ -3925,6 +3871,60 @@ export declare const evtAppSetting: import("arktype/internal/variants/object.ts"
3925
3871
  count: number;
3926
3872
  last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
3927
3873
  };
3874
+ } | {
3875
+ type: "app.acl.active.request";
3876
+ role: "viewer";
3877
+ state: "pending";
3878
+ request: {
3879
+ key: string;
3880
+ provider: "clerk" | "github" | "google";
3881
+ msg?: string | undefined;
3882
+ userId: string;
3883
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
3884
+ };
3885
+ } | {
3886
+ type: "app.acl.active.request";
3887
+ role: "editor" | "viewer";
3888
+ state: "approved";
3889
+ request: {
3890
+ key: string;
3891
+ provider: "clerk" | "github" | "google";
3892
+ msg?: string | undefined;
3893
+ userId: string;
3894
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
3895
+ };
3896
+ tick: {
3897
+ count: number;
3898
+ last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
3899
+ };
3900
+ grant: {
3901
+ ownerId: string;
3902
+ key?: string | undefined;
3903
+ on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
3904
+ };
3905
+ } | {
3906
+ type: "app.acl.active.request";
3907
+ role: "editor" | "viewer";
3908
+ state: "rejected";
3909
+ request: {
3910
+ key: string;
3911
+ provider: "clerk" | "github" | "google";
3912
+ msg?: string | undefined;
3913
+ userId: string;
3914
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
3915
+ };
3916
+ grant: {
3917
+ ownerId: string;
3918
+ key?: string | undefined;
3919
+ on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
3920
+ };
3921
+ } | {
3922
+ type: "app.public.access";
3923
+ enable: boolean;
3924
+ tick?: {
3925
+ count: number;
3926
+ last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
3927
+ } | undefined;
3928
3928
  } | {
3929
3929
  type: "app.request";
3930
3930
  enable: boolean;
@@ -4166,6 +4166,9 @@ export declare const ResFPCloudTokenGrant: import("arktype/internal/variants/obj
4166
4166
  export type ResFPCloudTokenGrant = typeof ResFPCloudTokenGrant.infer;
4167
4167
  export declare function isResFPCloudTokenGrant(obj: unknown): obj is ResFPCloudTokenGrant;
4168
4168
  export declare const ResFPCloudToken: import("arktype/internal/variants/object.ts").ObjectType<{
4169
+ type: "vibes.diy.res-fpcloud-token";
4170
+ grant: "no-grant";
4171
+ } | {
4169
4172
  type: "vibes.diy.res-fpcloud-token";
4170
4173
  grant: "invite-editor" | "invite-viewer" | "owner" | "public" | "request-editor" | "request-viewer";
4171
4174
  token: {
@@ -4207,9 +4210,6 @@ export declare const ResFPCloudToken: import("arktype/internal/variants/object.t
4207
4210
  dbName: string;
4208
4211
  ledger: string;
4209
4212
  tenant: string;
4210
- } | {
4211
- type: "vibes.diy.res-fpcloud-token";
4212
- grant: "no-grant";
4213
4213
  }, {}>;
4214
4214
  export type ResFPCloudToken = typeof ResFPCloudToken.infer;
4215
4215
  export declare function isResFPCloudToken(obj: unknown): obj is ResFPCloudToken;
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@vibes.diy/api-types",
3
- "version": "2.0.0-dev-cli-9",
3
+ "version": "2.0.0-dev-cli-a",
4
4
  "type": "module",
5
+ "main": "./index.js",
5
6
  "scripts": {
6
7
  "build": "core-cli tsc"
7
8
  },
@@ -13,7 +14,7 @@
13
14
  "@fireproof/core-types-base": "~0.24.13",
14
15
  "@fireproof/core-types-protocols-cloud": "~0.24.13",
15
16
  "@fireproof/core-types-protocols-dashboard": "~0.24.13",
16
- "@vibes.diy/call-ai-v2": "2.0.0-dev-cli-9",
17
+ "@vibes.diy/call-ai-v2": "2.0.0-dev-cli-a",
17
18
  "arktype": "~2.2.0"
18
19
  },
19
20
  "repository": {