@vibes.diy/api-types 14.3.338 → 14.3.339

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibes.diy/api-types",
3
- "version": "14.3.338",
3
+ "version": "14.3.339",
4
4
  "license": "SEE LICENSE IN LICENSE.md",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -25,9 +25,9 @@
25
25
  "dependencies": {
26
26
  "@adviser/cement": "~0.5.37",
27
27
  "@cloudflare/workers-types": "~5.20261101.1",
28
- "@vibes.diy/call-ai-v2": "14.3.338",
29
- "@vibes.diy/identity": "14.3.338",
30
- "@vibes.diy/vibe-types": "14.3.338",
28
+ "@vibes.diy/call-ai-v2": "14.3.339",
29
+ "@vibes.diy/identity": "14.3.339",
30
+ "@vibes.diy/vibe-types": "14.3.339",
31
31
  "arktype": "~2.2.9"
32
32
  },
33
33
  "repository": {
package/settings.d.ts CHANGED
@@ -365,6 +365,18 @@ export declare const userSettingCreditMilestones: import("arktype/internal/varia
365
365
  }, {}>;
366
366
  export type UserSettingCreditMilestones = typeof userSettingCreditMilestones.infer;
367
367
  export declare function isUserSettingCreditMilestones(obj: unknown): obj is UserSettingCreditMilestones;
368
+ export declare const userSettingPlanAck: import("arktype/internal/variants/object.ts").ObjectType<{
369
+ type: "planAck";
370
+ entries: {
371
+ key: string;
372
+ state: "pending" | "sent";
373
+ at: string;
374
+ claimId: string;
375
+ }[];
376
+ updatedAt: string;
377
+ }, {}>;
378
+ export type UserSettingPlanAck = typeof userSettingPlanAck.infer;
379
+ export declare function isUserSettingPlanAck(obj: unknown): obj is UserSettingPlanAck;
368
380
  export declare const userSettingItem: import("arktype/internal/variants/object.ts").ObjectType<{
369
381
  type: "sharing";
370
382
  grants: {
@@ -632,6 +644,15 @@ export declare const userSettingItem: import("arktype/internal/variants/object.t
632
644
  thresholds: number[];
633
645
  updatedAt: string;
634
646
  claimId?: string | undefined;
647
+ } | {
648
+ type: "planAck";
649
+ entries: {
650
+ key: string;
651
+ state: "pending" | "sent";
652
+ at: string;
653
+ claimId: string;
654
+ }[];
655
+ updatedAt: string;
635
656
  } | ((In: {
636
657
  type: "defaultUserSlug";
637
658
  userSlug: string;
@@ -913,6 +934,15 @@ export declare const reqEnsureUserSettings: import("arktype/internal/variants/ob
913
934
  thresholds: number[];
914
935
  updatedAt: string;
915
936
  claimId?: string | undefined;
937
+ } | {
938
+ type: "planAck";
939
+ entries: {
940
+ key: string;
941
+ state: "pending" | "sent";
942
+ at: string;
943
+ claimId: string;
944
+ }[];
945
+ updatedAt: string;
916
946
  } | ((In: {
917
947
  type: "defaultUserSlug";
918
948
  userSlug: string;
@@ -1192,6 +1222,15 @@ export declare const resEnsureUserSettings: import("arktype/internal/variants/ob
1192
1222
  thresholds: number[];
1193
1223
  updatedAt: string;
1194
1224
  claimId?: string | undefined;
1225
+ } | {
1226
+ type: "planAck";
1227
+ entries: {
1228
+ key: string;
1229
+ state: "pending" | "sent";
1230
+ at: string;
1231
+ claimId: string;
1232
+ }[];
1233
+ updatedAt: string;
1195
1234
  } | ((In: {
1196
1235
  type: "defaultUserSlug";
1197
1236
  userSlug: string;
package/settings.js CHANGED
@@ -294,6 +294,19 @@ export const userSettingCreditMilestones = lazyType(() => type({
294
294
  export function isUserSettingCreditMilestones(obj) {
295
295
  return userSettingCreditMilestones.allows(obj);
296
296
  }
297
+ export const userSettingPlanAck = lazyType(() => type({
298
+ type: "'planAck'",
299
+ entries: type({
300
+ key: "string",
301
+ state: "'pending' | 'sent'",
302
+ at: "string",
303
+ claimId: "string",
304
+ }).array(),
305
+ updatedAt: "string",
306
+ }));
307
+ export function isUserSettingPlanAck(obj) {
308
+ return userSettingPlanAck.allows(obj);
309
+ }
297
310
  export const userSettingItem = lazyType(() => userSettingShareing
298
311
  .or(userSettingModelDefaults)
299
312
  .or(userSettingDefaultHandle)
@@ -317,7 +330,8 @@ export const userSettingItem = lazyType(() => userSettingShareing
317
330
  .or(userSettingGroupRoster)
318
331
  .or(userSettingTermsAck)
319
332
  .or(userSettingAppHistoryHidden)
320
- .or(userSettingCreditMilestones));
333
+ .or(userSettingCreditMilestones)
334
+ .or(userSettingPlanAck));
321
335
  export const reqEnsureUserSettings = lazyType(() => type({
322
336
  type: "'vibes.diy.req-ensure-user-settings'",
323
337
  auth: dashAuthType,