@anchrd/colab-sdk 0.1.27 → 0.1.28

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.
@@ -154,6 +154,7 @@ export declare const Credential: z.ZodObject<{
154
154
  personal: z.ZodBoolean;
155
155
  fallback: z.ZodBoolean;
156
156
  limitedAt: z.ZodNullable<z.ZodISODateTime>;
157
+ limitedUntil: z.ZodNullable<z.ZodISODateTime>;
157
158
  machineIds: z.ZodArray<z.ZodTemplateLiteral<`user_${string}`>>;
158
159
  createdAt: z.ZodISODateTime;
159
160
  createdBy: z.ZodNullable<z.ZodTemplateLiteral<`user_${string}`>>;
@@ -184,6 +185,7 @@ export declare const CredentialList: z.ZodObject<{
184
185
  personal: z.ZodBoolean;
185
186
  fallback: z.ZodBoolean;
186
187
  limitedAt: z.ZodNullable<z.ZodISODateTime>;
188
+ limitedUntil: z.ZodNullable<z.ZodISODateTime>;
187
189
  machineIds: z.ZodArray<z.ZodTemplateLiteral<`user_${string}`>>;
188
190
  createdAt: z.ZodISODateTime;
189
191
  createdBy: z.ZodNullable<z.ZodTemplateLiteral<`user_${string}`>>;
@@ -223,6 +225,7 @@ export declare const CredentialTested: z.ZodObject<{
223
225
  personal: z.ZodBoolean;
224
226
  fallback: z.ZodBoolean;
225
227
  limitedAt: z.ZodNullable<z.ZodISODateTime>;
228
+ limitedUntil: z.ZodNullable<z.ZodISODateTime>;
226
229
  machineIds: z.ZodArray<z.ZodTemplateLiteral<`user_${string}`>>;
227
230
  createdAt: z.ZodISODateTime;
228
231
  createdBy: z.ZodNullable<z.ZodTemplateLiteral<`user_${string}`>>;
@@ -206,8 +206,10 @@ export const Credential = z.object({
206
206
  personal: z.boolean(),
207
207
  // Ausweichen: a run that fails on it moves on to the next fitting credential in the order.
208
208
  fallback: z.boolean(),
209
- // When a run last met the provider's usage limit on it; for an hour the order skips it.
209
+ // When a run last met the provider's usage limit on it, and until when the order skips it: the
210
+ // time the provider named for its reset, else an hour (#890). Null where no limit was met.
210
211
  limitedAt: z.iso.datetime().nullable(),
212
+ limitedUntil: z.iso.datetime().nullable(),
211
213
  // The Operators that use it, archived ones left out: "Genutzt von n Operatoren", and while it is
212
214
  // invalid, the ones that pause because of it.
213
215
  machineIds: z.array(MachineId),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anchrd/colab-sdk",
3
- "version": "0.1.27",
3
+ "version": "0.1.28",
4
4
  "description": "Types, Zod schemas and the service client of Colab, the contract between its UI, backends and outside services.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",