@vibes.diy/api-types 11.1.3 → 11.1.5

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/geo.d.ts ADDED
@@ -0,0 +1 @@
1
+ export declare function isUsCountry(country: string | undefined): boolean;
package/geo.js ADDED
@@ -0,0 +1,4 @@
1
+ export function isUsCountry(country) {
2
+ return country === "US";
3
+ }
4
+ //# sourceMappingURL=geo.js.map
package/geo.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geo.js","sourceRoot":"","sources":["../jsr/geo.ts"],"names":[],"mappings":"AAWA,MAAM,UAAU,WAAW,CAAC,OAA2B;IACrD,OAAO,OAAO,KAAK,IAAI,CAAC;AAC1B,CAAC"}
package/index.d.ts CHANGED
@@ -22,6 +22,7 @@ export * from "./vibes-diy-api.js";
22
22
  export * from "./invite.js";
23
23
  export * from "./cf-env.js";
24
24
  export * from "./auth.js";
25
+ export * from "./geo.js";
25
26
  export * from "./prompt.js";
26
27
  export * from "./research.js";
27
28
  export * from "./app-documents.js";
package/index.js CHANGED
@@ -21,6 +21,7 @@ export * from "./vibes-diy-api.js";
21
21
  export * from "./invite.js";
22
22
  export * from "./cf-env.js";
23
23
  export * from "./auth.js";
24
+ export * from "./geo.js";
24
25
  export * from "./prompt.js";
25
26
  export * from "./research.js";
26
27
  export * from "./app-documents.js";
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../jsr/index.ts"],"names":[],"mappings":"AAEA,cAAc,YAAY,CAAC;AAC3B,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;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-1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibes.diy/api-types",
3
- "version": "11.1.3",
3
+ "version": "11.1.5",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -16,9 +16,9 @@
16
16
  "dependencies": {
17
17
  "@adviser/cement": "~0.5.34",
18
18
  "@cloudflare/workers-types": "~5.20260715.1",
19
- "@vibes.diy/call-ai-v2": "11.1.3",
20
- "@vibes.diy/identity": "11.1.3",
21
- "@vibes.diy/vibe-types": "11.1.3",
19
+ "@vibes.diy/call-ai-v2": "11.1.5",
20
+ "@vibes.diy/identity": "11.1.5",
21
+ "@vibes.diy/vibe-types": "11.1.5",
22
22
  "arktype": "~2.2.3"
23
23
  },
24
24
  "repository": {
package/settings.d.ts CHANGED
@@ -1056,6 +1056,27 @@ export type ReqEnsureAppSettings = ReqPublicAccess | ReqRequest | ReqEnsureAppSe
1056
1056
  export declare function isReqEnsureAppSettings(obj: unknown): obj is ReqEnsureAppSettings;
1057
1057
  export declare const AppSettings: import("arktype/internal/variants/object.ts").ObjectType<{
1058
1058
  entries: ({
1059
+ type: "active.cached-suggestion";
1060
+ key: string;
1061
+ fsId: string;
1062
+ sourceFsId: string;
1063
+ } | {
1064
+ type: "active.cached-suggestion-bless";
1065
+ key: string;
1066
+ fsId?: string | undefined;
1067
+ sourceFsId?: string | undefined;
1068
+ targetOwnerHandle?: string | undefined;
1069
+ targetAppSlug?: string | undefined;
1070
+ approvedBy: string;
1071
+ approvedAt: string;
1072
+ } | {
1073
+ type: "active.db-acl";
1074
+ dbName: string;
1075
+ acl: {
1076
+ read?: ("editors" | "members" | "readers" | "submitters")[] | undefined;
1077
+ write?: ("editors" | "members" | "readers" | "submitters")[] | undefined;
1078
+ };
1079
+ } | {
1059
1080
  type: "app.acl.active.invite";
1060
1081
  role: "editor";
1061
1082
  state: "pending";
@@ -1327,27 +1348,6 @@ export declare const AppSettings: import("arktype/internal/variants/object.ts").
1327
1348
  type: "active.seed-control";
1328
1349
  dontRun?: boolean | undefined;
1329
1350
  suppressed?: string[] | undefined;
1330
- } | {
1331
- type: "active.db-acl";
1332
- dbName: string;
1333
- acl: {
1334
- read?: ("editors" | "members" | "readers" | "submitters")[] | undefined;
1335
- write?: ("editors" | "members" | "readers" | "submitters")[] | undefined;
1336
- };
1337
- } | {
1338
- type: "active.cached-suggestion";
1339
- key: string;
1340
- fsId: string;
1341
- sourceFsId: string;
1342
- } | {
1343
- type: "active.cached-suggestion-bless";
1344
- key: string;
1345
- fsId?: string | undefined;
1346
- sourceFsId?: string | undefined;
1347
- targetOwnerHandle?: string | undefined;
1348
- targetAppSlug?: string | undefined;
1349
- approvedBy: string;
1350
- approvedAt: string;
1351
1351
  } | {
1352
1352
  type: "active.recommended-curated";
1353
1353
  items: {
@@ -1477,6 +1477,27 @@ export declare const resEnsureAppSettings: import("arktype/internal/variants/obj
1477
1477
  error?: string | undefined;
1478
1478
  settings: {
1479
1479
  entries: ({
1480
+ type: "active.cached-suggestion";
1481
+ key: string;
1482
+ fsId: string;
1483
+ sourceFsId: string;
1484
+ } | {
1485
+ type: "active.cached-suggestion-bless";
1486
+ key: string;
1487
+ fsId?: string | undefined;
1488
+ sourceFsId?: string | undefined;
1489
+ targetOwnerHandle?: string | undefined;
1490
+ targetAppSlug?: string | undefined;
1491
+ approvedBy: string;
1492
+ approvedAt: string;
1493
+ } | {
1494
+ type: "active.db-acl";
1495
+ dbName: string;
1496
+ acl: {
1497
+ read?: ("editors" | "members" | "readers" | "submitters")[] | undefined;
1498
+ write?: ("editors" | "members" | "readers" | "submitters")[] | undefined;
1499
+ };
1500
+ } | {
1480
1501
  type: "app.acl.active.invite";
1481
1502
  role: "editor";
1482
1503
  state: "pending";
@@ -1748,27 +1769,6 @@ export declare const resEnsureAppSettings: import("arktype/internal/variants/obj
1748
1769
  type: "active.seed-control";
1749
1770
  dontRun?: boolean | undefined;
1750
1771
  suppressed?: string[] | undefined;
1751
- } | {
1752
- type: "active.db-acl";
1753
- dbName: string;
1754
- acl: {
1755
- read?: ("editors" | "members" | "readers" | "submitters")[] | undefined;
1756
- write?: ("editors" | "members" | "readers" | "submitters")[] | undefined;
1757
- };
1758
- } | {
1759
- type: "active.cached-suggestion";
1760
- key: string;
1761
- fsId: string;
1762
- sourceFsId: string;
1763
- } | {
1764
- type: "active.cached-suggestion-bless";
1765
- key: string;
1766
- fsId?: string | undefined;
1767
- sourceFsId?: string | undefined;
1768
- targetOwnerHandle?: string | undefined;
1769
- targetAppSlug?: string | undefined;
1770
- approvedBy: string;
1771
- approvedAt: string;
1772
1772
  } | {
1773
1773
  type: "active.recommended-curated";
1774
1774
  items: {
@@ -1956,6 +1956,27 @@ export declare const evtAppSetting: import("arktype/internal/variants/object.ts"
1956
1956
  ownerHandle: string;
1957
1957
  appSlug: string;
1958
1958
  settings: ({
1959
+ type: "active.cached-suggestion";
1960
+ key: string;
1961
+ fsId: string;
1962
+ sourceFsId: string;
1963
+ } | {
1964
+ type: "active.cached-suggestion-bless";
1965
+ key: string;
1966
+ fsId?: string | undefined;
1967
+ sourceFsId?: string | undefined;
1968
+ targetOwnerHandle?: string | undefined;
1969
+ targetAppSlug?: string | undefined;
1970
+ approvedBy: string;
1971
+ approvedAt: string;
1972
+ } | {
1973
+ type: "active.db-acl";
1974
+ dbName: string;
1975
+ acl: {
1976
+ read?: ("editors" | "members" | "readers" | "submitters")[] | undefined;
1977
+ write?: ("editors" | "members" | "readers" | "submitters")[] | undefined;
1978
+ };
1979
+ } | {
1959
1980
  type: "app.acl.active.invite";
1960
1981
  role: "editor";
1961
1982
  state: "pending";
@@ -2227,27 +2248,6 @@ export declare const evtAppSetting: import("arktype/internal/variants/object.ts"
2227
2248
  type: "active.seed-control";
2228
2249
  dontRun?: boolean | undefined;
2229
2250
  suppressed?: string[] | undefined;
2230
- } | {
2231
- type: "active.db-acl";
2232
- dbName: string;
2233
- acl: {
2234
- read?: ("editors" | "members" | "readers" | "submitters")[] | undefined;
2235
- write?: ("editors" | "members" | "readers" | "submitters")[] | undefined;
2236
- };
2237
- } | {
2238
- type: "active.cached-suggestion";
2239
- key: string;
2240
- fsId: string;
2241
- sourceFsId: string;
2242
- } | {
2243
- type: "active.cached-suggestion-bless";
2244
- key: string;
2245
- fsId?: string | undefined;
2246
- sourceFsId?: string | undefined;
2247
- targetOwnerHandle?: string | undefined;
2248
- targetAppSlug?: string | undefined;
2249
- approvedBy: string;
2250
- approvedAt: string;
2251
2251
  } | {
2252
2252
  type: "active.recommended-curated";
2253
2253
  items: {