@blazingagents/sdk 0.22.0 → 0.23.0
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.
|
@@ -53,7 +53,6 @@ export declare const spendingLimitResponseSchema: z.ZodObject<{
|
|
|
53
53
|
availableUsd: z.ZodNumber;
|
|
54
54
|
}, z.core.$strict>>;
|
|
55
55
|
nextResetAt: z.ZodNullable<z.ZodISODateTime>;
|
|
56
|
-
scheduleChangeAt: z.ZodNullable<z.ZodISODateTime>;
|
|
57
56
|
}, z.core.$strict>;
|
|
58
57
|
export declare const spendingLimitStopDetailsSchema: z.ZodObject<{
|
|
59
58
|
scope: z.ZodEnum<{
|
|
@@ -76,7 +75,6 @@ export type SpendingLimit = z.infer<typeof spendingLimitSchema>;
|
|
|
76
75
|
export type SpendingLimitResponse = z.infer<typeof spendingLimitResponseSchema>;
|
|
77
76
|
export type SpendingLimitStopDetails = z.infer<typeof spendingLimitStopDetailsSchema>;
|
|
78
77
|
export type UpdateSpendingLimitBody = z.infer<typeof updateSpendingLimitBodySchema>;
|
|
79
|
-
/** A schedule edit uses the active period end as `after` for its first new boundary. */
|
|
80
78
|
export declare function nextSpendingLimitReset(schedule: Pick<SpendingLimit, "resetStartDate" | "resetInterval">, after: string | Date): string;
|
|
81
79
|
export declare const spendingLimitStopEventSchema: z.ZodObject<{
|
|
82
80
|
type: z.ZodLiteral<"data-model-spending-limit">;
|
|
@@ -34,7 +34,6 @@ export const spendingLimitResponseSchema = z
|
|
|
34
34
|
spendingLimit: spendingLimitSchema.nullable(),
|
|
35
35
|
period: spendingLimitPeriodSchema.nullable(),
|
|
36
36
|
nextResetAt: z.iso.datetime({ offset: true }).nullable(),
|
|
37
|
-
scheduleChangeAt: z.iso.datetime({ offset: true }).nullable(),
|
|
38
37
|
})
|
|
39
38
|
.strict()
|
|
40
39
|
.meta({ id: "ModelSpendingLimitStatus" });
|
|
@@ -48,7 +47,6 @@ export const spendingLimitStopDetailsSchema = z
|
|
|
48
47
|
nextResetAt: z.iso.datetime({ offset: true }).nullable(),
|
|
49
48
|
})
|
|
50
49
|
.strict();
|
|
51
|
-
/** A schedule edit uses the active period end as `after` for its first new boundary. */
|
|
52
50
|
export function nextSpendingLimitReset(schedule, after) {
|
|
53
51
|
const anchor = new Date(`${schedule.resetStartDate}T00:00:00.000Z`);
|
|
54
52
|
const instant = new Date(after).getTime();
|