shred-api-client 2.11.2 → 2.11.4
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/dist/index.d.ts +10 -0
- package/dist/index.js +11 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4193,14 +4193,18 @@ declare const ShredUStageRuleSchema: z.ZodObject<{
|
|
|
4193
4193
|
transport: TransportType;
|
|
4194
4194
|
}>;
|
|
4195
4195
|
declare const ShredUReminderBoundsSchema: z.ZodObject<{
|
|
4196
|
+
/** Which stage in `stages` a session's own lead replaces. */
|
|
4197
|
+
stageId: z.ZodString;
|
|
4196
4198
|
defaultLeadMs: z.ZodNumber;
|
|
4197
4199
|
minLeadMs: z.ZodNumber;
|
|
4198
4200
|
maxLeadMs: z.ZodNumber;
|
|
4199
4201
|
}, "strip", z.ZodTypeAny, {
|
|
4202
|
+
stageId: string;
|
|
4200
4203
|
defaultLeadMs: number;
|
|
4201
4204
|
minLeadMs: number;
|
|
4202
4205
|
maxLeadMs: number;
|
|
4203
4206
|
}, {
|
|
4207
|
+
stageId: string;
|
|
4204
4208
|
defaultLeadMs: number;
|
|
4205
4209
|
minLeadMs: number;
|
|
4206
4210
|
maxLeadMs: number;
|
|
@@ -4225,14 +4229,18 @@ declare const ShredUDispatchRulesSchema: z.ZodObject<{
|
|
|
4225
4229
|
transport: TransportType;
|
|
4226
4230
|
}>, "many">;
|
|
4227
4231
|
reminder: z.ZodObject<{
|
|
4232
|
+
/** Which stage in `stages` a session's own lead replaces. */
|
|
4233
|
+
stageId: z.ZodString;
|
|
4228
4234
|
defaultLeadMs: z.ZodNumber;
|
|
4229
4235
|
minLeadMs: z.ZodNumber;
|
|
4230
4236
|
maxLeadMs: z.ZodNumber;
|
|
4231
4237
|
}, "strip", z.ZodTypeAny, {
|
|
4238
|
+
stageId: string;
|
|
4232
4239
|
defaultLeadMs: number;
|
|
4233
4240
|
minLeadMs: number;
|
|
4234
4241
|
maxLeadMs: number;
|
|
4235
4242
|
}, {
|
|
4243
|
+
stageId: string;
|
|
4236
4244
|
defaultLeadMs: number;
|
|
4237
4245
|
minLeadMs: number;
|
|
4238
4246
|
maxLeadMs: number;
|
|
@@ -4245,6 +4253,7 @@ declare const ShredUDispatchRulesSchema: z.ZodObject<{
|
|
|
4245
4253
|
transport: TransportType;
|
|
4246
4254
|
}[];
|
|
4247
4255
|
reminder: {
|
|
4256
|
+
stageId: string;
|
|
4248
4257
|
defaultLeadMs: number;
|
|
4249
4258
|
minLeadMs: number;
|
|
4250
4259
|
maxLeadMs: number;
|
|
@@ -4257,6 +4266,7 @@ declare const ShredUDispatchRulesSchema: z.ZodObject<{
|
|
|
4257
4266
|
transport: TransportType;
|
|
4258
4267
|
}[];
|
|
4259
4268
|
reminder: {
|
|
4269
|
+
stageId: string;
|
|
4260
4270
|
defaultLeadMs: number;
|
|
4261
4271
|
minLeadMs: number;
|
|
4262
4272
|
maxLeadMs: number;
|
package/dist/index.js
CHANGED
|
@@ -156,11 +156,16 @@ var HTTPClient = class {
|
|
|
156
156
|
}
|
|
157
157
|
throw toException(response.status, message);
|
|
158
158
|
}
|
|
159
|
+
const raw = await response.text();
|
|
159
160
|
let result;
|
|
160
|
-
|
|
161
|
-
result =
|
|
162
|
-
}
|
|
163
|
-
|
|
161
|
+
if (raw === "") {
|
|
162
|
+
result = void 0;
|
|
163
|
+
} else {
|
|
164
|
+
try {
|
|
165
|
+
result = JSON.parse(raw);
|
|
166
|
+
} catch {
|
|
167
|
+
result = raw;
|
|
168
|
+
}
|
|
164
169
|
}
|
|
165
170
|
if (schema) return schema.parse(result);
|
|
166
171
|
return result;
|
|
@@ -6214,6 +6219,8 @@ var ShredUStageRuleSchema = external_exports.object({
|
|
|
6214
6219
|
transport: external_exports.nativeEnum(TransportType)
|
|
6215
6220
|
});
|
|
6216
6221
|
var ShredUReminderBoundsSchema = external_exports.object({
|
|
6222
|
+
/** Which stage in `stages` a session's own lead replaces. */
|
|
6223
|
+
stageId: external_exports.string(),
|
|
6217
6224
|
defaultLeadMs: external_exports.number(),
|
|
6218
6225
|
minLeadMs: external_exports.number(),
|
|
6219
6226
|
maxLeadMs: external_exports.number()
|