@distilled.cloud/cloudflare 0.19.0 → 0.19.1
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/lib/schemas.d.ts +7 -8
- package/lib/schemas.d.ts.map +1 -1
- package/lib/schemas.js +9 -12
- package/lib/schemas.js.map +1 -1
- package/lib/services/custom-pages.d.ts +40 -13
- package/lib/services/custom-pages.d.ts.map +1 -1
- package/lib/services/custom-pages.js +68 -15
- package/lib/services/custom-pages.js.map +1 -1
- package/lib/services/firewall.d.ts +66 -23
- package/lib/services/firewall.d.ts.map +1 -1
- package/lib/services/firewall.js +120 -26
- package/lib/services/firewall.js.map +1 -1
- package/lib/services/intel.d.ts +2 -0
- package/lib/services/intel.d.ts.map +1 -1
- package/lib/services/intel.js +2 -0
- package/lib/services/intel.js.map +1 -1
- package/lib/services/logpush.d.ts +157 -64
- package/lib/services/logpush.d.ts.map +1 -1
- package/lib/services/logpush.js +292 -63
- package/lib/services/logpush.js.map +1 -1
- package/lib/services/r2.d.ts +29 -2
- package/lib/services/r2.d.ts.map +1 -1
- package/lib/services/r2.js +20 -6
- package/lib/services/r2.js.map +1 -1
- package/lib/services/rulesets.d.ts +200 -65
- package/lib/services/rulesets.d.ts.map +1 -1
- package/lib/services/rulesets.js +371 -75
- package/lib/services/rulesets.js.map +1 -1
- package/lib/services/security-center.d.ts +66 -19
- package/lib/services/security-center.d.ts.map +1 -1
- package/lib/services/security-center.js +128 -22
- package/lib/services/security-center.js.map +1 -1
- package/lib/services/waiting-rooms.d.ts +14 -3
- package/lib/services/waiting-rooms.d.ts.map +1 -1
- package/lib/services/waiting-rooms.js +25 -7
- package/lib/services/waiting-rooms.js.map +1 -1
- package/lib/services/zero-trust.d.ts +579 -204
- package/lib/services/zero-trust.d.ts.map +1 -1
- package/lib/services/zero-trust.js +1159 -268
- package/lib/services/zero-trust.js.map +1 -1
- package/package.json +2 -2
- package/src/schemas.ts +19 -17
- package/src/services/custom-pages.ts +170 -66
- package/src/services/firewall.ts +300 -121
- package/src/services/intel.ts +4 -0
- package/src/services/logpush.ts +798 -372
- package/src/services/r2.ts +66 -9
- package/src/services/rulesets.ts +3991 -3426
- package/src/services/security-center.ts +247 -63
- package/src/services/waiting-rooms.ts +49 -11
- package/src/services/zero-trust.ts +4097 -2417
|
@@ -16,16 +16,41 @@ import { type DefaultErrors } from "../errors.ts";
|
|
|
16
16
|
// Insight
|
|
17
17
|
// =============================================================================
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
const ListInsightsBaseFields = {} as const;
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
21
|
+
interface ListInsightsBaseRequest {}
|
|
22
|
+
|
|
23
|
+
export interface ListInsightsForAccountRequest extends ListInsightsBaseRequest {
|
|
24
|
+
/** Path param: The Account ID to use for this endpoint. */
|
|
25
|
+
accountId: string;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface ListInsightsForZoneRequest extends ListInsightsBaseRequest {
|
|
29
|
+
/** Path param: The Zone ID to use for this endpoint. */
|
|
30
|
+
zoneId: string;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export const ListInsightsForAccountRequest =
|
|
34
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
35
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
36
|
+
...ListInsightsBaseFields,
|
|
37
|
+
}).pipe(
|
|
38
|
+
T.Http({
|
|
39
|
+
method: "GET",
|
|
40
|
+
path: "/accounts/{account_id}/security-center/insights",
|
|
41
|
+
}),
|
|
42
|
+
) as unknown as Schema.Schema<ListInsightsForAccountRequest>;
|
|
43
|
+
|
|
44
|
+
export const ListInsightsForZoneRequest =
|
|
45
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
46
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
47
|
+
...ListInsightsBaseFields,
|
|
48
|
+
}).pipe(
|
|
49
|
+
T.Http({
|
|
50
|
+
method: "GET",
|
|
51
|
+
path: "/zones/{zone_id}/security-center/insights",
|
|
52
|
+
}),
|
|
53
|
+
) as unknown as Schema.Schema<ListInsightsForZoneRequest>;
|
|
29
54
|
|
|
30
55
|
export interface ListInsightsResponse {
|
|
31
56
|
result: {
|
|
@@ -202,13 +227,31 @@ export const ListInsightsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
202
227
|
|
|
203
228
|
export type ListInsightsError = DefaultErrors;
|
|
204
229
|
|
|
205
|
-
export const
|
|
206
|
-
|
|
230
|
+
export const listInsightsForAccount: API.PaginatedOperationMethod<
|
|
231
|
+
ListInsightsForAccountRequest,
|
|
232
|
+
ListInsightsResponse,
|
|
233
|
+
ListInsightsError,
|
|
234
|
+
Credentials | HttpClient.HttpClient
|
|
235
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
236
|
+
input: ListInsightsForAccountRequest,
|
|
237
|
+
output: ListInsightsResponse,
|
|
238
|
+
errors: [],
|
|
239
|
+
pagination: {
|
|
240
|
+
mode: "page",
|
|
241
|
+
inputToken: "page",
|
|
242
|
+
outputToken: "resultInfo.page",
|
|
243
|
+
items: "result.items",
|
|
244
|
+
pageSize: "perPage",
|
|
245
|
+
} as const,
|
|
246
|
+
}));
|
|
247
|
+
|
|
248
|
+
export const listInsightsForZone: API.PaginatedOperationMethod<
|
|
249
|
+
ListInsightsForZoneRequest,
|
|
207
250
|
ListInsightsResponse,
|
|
208
251
|
ListInsightsError,
|
|
209
252
|
Credentials | HttpClient.HttpClient
|
|
210
253
|
> = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
211
|
-
input:
|
|
254
|
+
input: ListInsightsForZoneRequest,
|
|
212
255
|
output: ListInsightsResponse,
|
|
213
256
|
errors: [],
|
|
214
257
|
pagination: {
|
|
@@ -220,27 +263,48 @@ export const listInsights: API.PaginatedOperationMethod<
|
|
|
220
263
|
} as const,
|
|
221
264
|
}));
|
|
222
265
|
|
|
223
|
-
|
|
266
|
+
const DismissInsightBaseFields = {
|
|
267
|
+
issueId: Schema.String.pipe(T.HttpPath("issueId")),
|
|
268
|
+
dismiss: Schema.optional(Schema.Boolean),
|
|
269
|
+
} as const;
|
|
270
|
+
|
|
271
|
+
interface DismissInsightBaseRequest {
|
|
224
272
|
issueId: string;
|
|
225
|
-
/** Path param: The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. */
|
|
226
|
-
accountId?: string;
|
|
227
|
-
/** Path param: The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. */
|
|
228
|
-
zoneId?: string;
|
|
229
273
|
/** Body param: */
|
|
230
274
|
dismiss?: boolean;
|
|
231
275
|
}
|
|
232
276
|
|
|
233
|
-
export
|
|
234
|
-
|
|
235
|
-
accountId:
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
277
|
+
export interface DismissInsightForAccountRequest extends DismissInsightBaseRequest {
|
|
278
|
+
/** Path param: The Account ID to use for this endpoint. */
|
|
279
|
+
accountId: string;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
export interface DismissInsightForZoneRequest extends DismissInsightBaseRequest {
|
|
283
|
+
/** Path param: The Zone ID to use for this endpoint. */
|
|
284
|
+
zoneId: string;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
export const DismissInsightForAccountRequest =
|
|
288
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
289
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
290
|
+
...DismissInsightBaseFields,
|
|
291
|
+
}).pipe(
|
|
292
|
+
T.Http({
|
|
293
|
+
method: "PUT",
|
|
294
|
+
path: "/accounts/{account_id}/security-center/insights/{issueId}/dismiss",
|
|
295
|
+
}),
|
|
296
|
+
) as unknown as Schema.Schema<DismissInsightForAccountRequest>;
|
|
297
|
+
|
|
298
|
+
export const DismissInsightForZoneRequest =
|
|
299
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
300
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
301
|
+
...DismissInsightBaseFields,
|
|
302
|
+
}).pipe(
|
|
303
|
+
T.Http({
|
|
304
|
+
method: "PUT",
|
|
305
|
+
path: "/zones/{zone_id}/security-center/insights/{issueId}/dismiss",
|
|
306
|
+
}),
|
|
307
|
+
) as unknown as Schema.Schema<DismissInsightForZoneRequest>;
|
|
244
308
|
|
|
245
309
|
export interface DismissInsightResponse {
|
|
246
310
|
errors: {
|
|
@@ -319,13 +383,24 @@ export const DismissInsightResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
319
383
|
|
|
320
384
|
export type DismissInsightError = DefaultErrors;
|
|
321
385
|
|
|
322
|
-
export const
|
|
323
|
-
|
|
386
|
+
export const dismissInsightForAccount: API.OperationMethod<
|
|
387
|
+
DismissInsightForAccountRequest,
|
|
388
|
+
DismissInsightResponse,
|
|
389
|
+
DismissInsightError,
|
|
390
|
+
Credentials | HttpClient.HttpClient
|
|
391
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
392
|
+
input: DismissInsightForAccountRequest,
|
|
393
|
+
output: DismissInsightResponse,
|
|
394
|
+
errors: [],
|
|
395
|
+
}));
|
|
396
|
+
|
|
397
|
+
export const dismissInsightForZone: API.OperationMethod<
|
|
398
|
+
DismissInsightForZoneRequest,
|
|
324
399
|
DismissInsightResponse,
|
|
325
400
|
DismissInsightError,
|
|
326
401
|
Credentials | HttpClient.HttpClient
|
|
327
402
|
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
328
|
-
input:
|
|
403
|
+
input: DismissInsightForZoneRequest,
|
|
329
404
|
output: DismissInsightResponse,
|
|
330
405
|
errors: [],
|
|
331
406
|
}));
|
|
@@ -334,16 +409,41 @@ export const dismissInsight: API.OperationMethod<
|
|
|
334
409
|
// InsightClass
|
|
335
410
|
// =============================================================================
|
|
336
411
|
|
|
337
|
-
|
|
412
|
+
const GetInsightClassBaseFields = {} as const;
|
|
338
413
|
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
414
|
+
interface GetInsightClassBaseRequest {}
|
|
415
|
+
|
|
416
|
+
export interface GetInsightClassForAccountRequest extends GetInsightClassBaseRequest {
|
|
417
|
+
/** Path param: The Account ID to use for this endpoint. */
|
|
418
|
+
accountId: string;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
export interface GetInsightClassForZoneRequest extends GetInsightClassBaseRequest {
|
|
422
|
+
/** Path param: The Zone ID to use for this endpoint. */
|
|
423
|
+
zoneId: string;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
export const GetInsightClassForAccountRequest =
|
|
427
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
428
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
429
|
+
...GetInsightClassBaseFields,
|
|
430
|
+
}).pipe(
|
|
431
|
+
T.Http({
|
|
432
|
+
method: "GET",
|
|
433
|
+
path: "/accounts/{account_id}/security-center/insights/class",
|
|
434
|
+
}),
|
|
435
|
+
) as unknown as Schema.Schema<GetInsightClassForAccountRequest>;
|
|
436
|
+
|
|
437
|
+
export const GetInsightClassForZoneRequest =
|
|
438
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
439
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
440
|
+
...GetInsightClassBaseFields,
|
|
441
|
+
}).pipe(
|
|
442
|
+
T.Http({
|
|
443
|
+
method: "GET",
|
|
444
|
+
path: "/zones/{zone_id}/security-center/insights/class",
|
|
445
|
+
}),
|
|
446
|
+
) as unknown as Schema.Schema<GetInsightClassForZoneRequest>;
|
|
347
447
|
|
|
348
448
|
export type GetInsightClassResponse = {
|
|
349
449
|
count?: number | null;
|
|
@@ -361,13 +461,24 @@ export const GetInsightClassResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
|
361
461
|
|
|
362
462
|
export type GetInsightClassError = DefaultErrors;
|
|
363
463
|
|
|
364
|
-
export const
|
|
365
|
-
|
|
464
|
+
export const getInsightClassForAccount: API.OperationMethod<
|
|
465
|
+
GetInsightClassForAccountRequest,
|
|
366
466
|
GetInsightClassResponse,
|
|
367
467
|
GetInsightClassError,
|
|
368
468
|
Credentials | HttpClient.HttpClient
|
|
369
469
|
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
370
|
-
input:
|
|
470
|
+
input: GetInsightClassForAccountRequest,
|
|
471
|
+
output: GetInsightClassResponse,
|
|
472
|
+
errors: [],
|
|
473
|
+
}));
|
|
474
|
+
|
|
475
|
+
export const getInsightClassForZone: API.OperationMethod<
|
|
476
|
+
GetInsightClassForZoneRequest,
|
|
477
|
+
GetInsightClassResponse,
|
|
478
|
+
GetInsightClassError,
|
|
479
|
+
Credentials | HttpClient.HttpClient
|
|
480
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
481
|
+
input: GetInsightClassForZoneRequest,
|
|
371
482
|
output: GetInsightClassResponse,
|
|
372
483
|
errors: [],
|
|
373
484
|
}));
|
|
@@ -376,15 +487,41 @@ export const getInsightClass: API.OperationMethod<
|
|
|
376
487
|
// InsightSeverity
|
|
377
488
|
// =============================================================================
|
|
378
489
|
|
|
379
|
-
|
|
490
|
+
const GetInsightSeverityBaseFields = {} as const;
|
|
491
|
+
|
|
492
|
+
interface GetInsightSeverityBaseRequest {}
|
|
493
|
+
|
|
494
|
+
export interface GetInsightSeverityForAccountRequest extends GetInsightSeverityBaseRequest {
|
|
495
|
+
/** Path param: The Account ID to use for this endpoint. */
|
|
496
|
+
accountId: string;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
export interface GetInsightSeverityForZoneRequest extends GetInsightSeverityBaseRequest {
|
|
500
|
+
/** Path param: The Zone ID to use for this endpoint. */
|
|
501
|
+
zoneId: string;
|
|
502
|
+
}
|
|
380
503
|
|
|
381
|
-
export const
|
|
382
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
504
|
+
export const GetInsightSeverityForAccountRequest =
|
|
505
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
506
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
507
|
+
...GetInsightSeverityBaseFields,
|
|
508
|
+
}).pipe(
|
|
383
509
|
T.Http({
|
|
384
510
|
method: "GET",
|
|
385
|
-
path: "/
|
|
511
|
+
path: "/accounts/{account_id}/security-center/insights/severity",
|
|
386
512
|
}),
|
|
387
|
-
) as unknown as Schema.Schema<
|
|
513
|
+
) as unknown as Schema.Schema<GetInsightSeverityForAccountRequest>;
|
|
514
|
+
|
|
515
|
+
export const GetInsightSeverityForZoneRequest =
|
|
516
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
517
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
518
|
+
...GetInsightSeverityBaseFields,
|
|
519
|
+
}).pipe(
|
|
520
|
+
T.Http({
|
|
521
|
+
method: "GET",
|
|
522
|
+
path: "/zones/{zone_id}/security-center/insights/severity",
|
|
523
|
+
}),
|
|
524
|
+
) as unknown as Schema.Schema<GetInsightSeverityForZoneRequest>;
|
|
388
525
|
|
|
389
526
|
export type GetInsightSeverityResponse = {
|
|
390
527
|
count?: number | null;
|
|
@@ -403,13 +540,24 @@ export const GetInsightSeverityResponse =
|
|
|
403
540
|
|
|
404
541
|
export type GetInsightSeverityError = DefaultErrors;
|
|
405
542
|
|
|
406
|
-
export const
|
|
407
|
-
|
|
543
|
+
export const getInsightSeverityForAccount: API.OperationMethod<
|
|
544
|
+
GetInsightSeverityForAccountRequest,
|
|
408
545
|
GetInsightSeverityResponse,
|
|
409
546
|
GetInsightSeverityError,
|
|
410
547
|
Credentials | HttpClient.HttpClient
|
|
411
548
|
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
412
|
-
input:
|
|
549
|
+
input: GetInsightSeverityForAccountRequest,
|
|
550
|
+
output: GetInsightSeverityResponse,
|
|
551
|
+
errors: [],
|
|
552
|
+
}));
|
|
553
|
+
|
|
554
|
+
export const getInsightSeverityForZone: API.OperationMethod<
|
|
555
|
+
GetInsightSeverityForZoneRequest,
|
|
556
|
+
GetInsightSeverityResponse,
|
|
557
|
+
GetInsightSeverityError,
|
|
558
|
+
Credentials | HttpClient.HttpClient
|
|
559
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
560
|
+
input: GetInsightSeverityForZoneRequest,
|
|
413
561
|
output: GetInsightSeverityResponse,
|
|
414
562
|
errors: [],
|
|
415
563
|
}));
|
|
@@ -418,16 +566,41 @@ export const getInsightSeverity: API.OperationMethod<
|
|
|
418
566
|
// InsightType
|
|
419
567
|
// =============================================================================
|
|
420
568
|
|
|
421
|
-
|
|
569
|
+
const GetInsightTypeBaseFields = {} as const;
|
|
422
570
|
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
571
|
+
interface GetInsightTypeBaseRequest {}
|
|
572
|
+
|
|
573
|
+
export interface GetInsightTypeForAccountRequest extends GetInsightTypeBaseRequest {
|
|
574
|
+
/** Path param: The Account ID to use for this endpoint. */
|
|
575
|
+
accountId: string;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
export interface GetInsightTypeForZoneRequest extends GetInsightTypeBaseRequest {
|
|
579
|
+
/** Path param: The Zone ID to use for this endpoint. */
|
|
580
|
+
zoneId: string;
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
export const GetInsightTypeForAccountRequest =
|
|
584
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
585
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
586
|
+
...GetInsightTypeBaseFields,
|
|
587
|
+
}).pipe(
|
|
588
|
+
T.Http({
|
|
589
|
+
method: "GET",
|
|
590
|
+
path: "/accounts/{account_id}/security-center/insights/type",
|
|
591
|
+
}),
|
|
592
|
+
) as unknown as Schema.Schema<GetInsightTypeForAccountRequest>;
|
|
593
|
+
|
|
594
|
+
export const GetInsightTypeForZoneRequest =
|
|
595
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
596
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
597
|
+
...GetInsightTypeBaseFields,
|
|
598
|
+
}).pipe(
|
|
599
|
+
T.Http({
|
|
600
|
+
method: "GET",
|
|
601
|
+
path: "/zones/{zone_id}/security-center/insights/type",
|
|
602
|
+
}),
|
|
603
|
+
) as unknown as Schema.Schema<GetInsightTypeForZoneRequest>;
|
|
431
604
|
|
|
432
605
|
export type GetInsightTypeResponse = {
|
|
433
606
|
count?: number | null;
|
|
@@ -445,13 +618,24 @@ export const GetInsightTypeResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
|
445
618
|
|
|
446
619
|
export type GetInsightTypeError = DefaultErrors;
|
|
447
620
|
|
|
448
|
-
export const
|
|
449
|
-
|
|
621
|
+
export const getInsightTypeForAccount: API.OperationMethod<
|
|
622
|
+
GetInsightTypeForAccountRequest,
|
|
623
|
+
GetInsightTypeResponse,
|
|
624
|
+
GetInsightTypeError,
|
|
625
|
+
Credentials | HttpClient.HttpClient
|
|
626
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
627
|
+
input: GetInsightTypeForAccountRequest,
|
|
628
|
+
output: GetInsightTypeResponse,
|
|
629
|
+
errors: [],
|
|
630
|
+
}));
|
|
631
|
+
|
|
632
|
+
export const getInsightTypeForZone: API.OperationMethod<
|
|
633
|
+
GetInsightTypeForZoneRequest,
|
|
450
634
|
GetInsightTypeResponse,
|
|
451
635
|
GetInsightTypeError,
|
|
452
636
|
Credentials | HttpClient.HttpClient
|
|
453
637
|
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
454
|
-
input:
|
|
638
|
+
input: GetInsightTypeForZoneRequest,
|
|
455
639
|
output: GetInsightTypeResponse,
|
|
456
640
|
errors: [],
|
|
457
641
|
}));
|
|
@@ -2150,15 +2150,35 @@ export const getWaitingRoom: API.OperationMethod<
|
|
|
2150
2150
|
errors: [],
|
|
2151
2151
|
}));
|
|
2152
2152
|
|
|
2153
|
-
|
|
2153
|
+
const ListWaitingRoomsBaseFields = {} as const;
|
|
2154
2154
|
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2155
|
+
interface ListWaitingRoomsBaseRequest {}
|
|
2156
|
+
|
|
2157
|
+
export interface ListWaitingRoomsForAccountRequest extends ListWaitingRoomsBaseRequest {
|
|
2158
|
+
/** Path param: The Account ID to use for this endpoint. */
|
|
2159
|
+
accountId: string;
|
|
2160
|
+
}
|
|
2161
|
+
|
|
2162
|
+
export interface ListWaitingRoomsForZoneRequest extends ListWaitingRoomsBaseRequest {
|
|
2163
|
+
/** Path param: The Zone ID to use for this endpoint. */
|
|
2164
|
+
zoneId: string;
|
|
2165
|
+
}
|
|
2166
|
+
|
|
2167
|
+
export const ListWaitingRoomsForAccountRequest =
|
|
2168
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2169
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2170
|
+
...ListWaitingRoomsBaseFields,
|
|
2171
|
+
}).pipe(
|
|
2172
|
+
T.Http({ method: "GET", path: "/accounts/{account_id}/waiting_rooms" }),
|
|
2173
|
+
) as unknown as Schema.Schema<ListWaitingRoomsForAccountRequest>;
|
|
2174
|
+
|
|
2175
|
+
export const ListWaitingRoomsForZoneRequest =
|
|
2176
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2177
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
2178
|
+
...ListWaitingRoomsBaseFields,
|
|
2179
|
+
}).pipe(
|
|
2180
|
+
T.Http({ method: "GET", path: "/zones/{zone_id}/waiting_rooms" }),
|
|
2181
|
+
) as unknown as Schema.Schema<ListWaitingRoomsForZoneRequest>;
|
|
2162
2182
|
|
|
2163
2183
|
export interface ListWaitingRoomsResponse {
|
|
2164
2184
|
result: {
|
|
@@ -2451,13 +2471,31 @@ export const ListWaitingRoomsResponse =
|
|
|
2451
2471
|
|
|
2452
2472
|
export type ListWaitingRoomsError = DefaultErrors;
|
|
2453
2473
|
|
|
2454
|
-
export const
|
|
2455
|
-
|
|
2474
|
+
export const listWaitingRoomsForAccount: API.PaginatedOperationMethod<
|
|
2475
|
+
ListWaitingRoomsForAccountRequest,
|
|
2476
|
+
ListWaitingRoomsResponse,
|
|
2477
|
+
ListWaitingRoomsError,
|
|
2478
|
+
Credentials | HttpClient.HttpClient
|
|
2479
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
2480
|
+
input: ListWaitingRoomsForAccountRequest,
|
|
2481
|
+
output: ListWaitingRoomsResponse,
|
|
2482
|
+
errors: [],
|
|
2483
|
+
pagination: {
|
|
2484
|
+
mode: "page",
|
|
2485
|
+
inputToken: "page",
|
|
2486
|
+
outputToken: "resultInfo.page",
|
|
2487
|
+
items: "result",
|
|
2488
|
+
pageSize: "perPage",
|
|
2489
|
+
} as const,
|
|
2490
|
+
}));
|
|
2491
|
+
|
|
2492
|
+
export const listWaitingRoomsForZone: API.PaginatedOperationMethod<
|
|
2493
|
+
ListWaitingRoomsForZoneRequest,
|
|
2456
2494
|
ListWaitingRoomsResponse,
|
|
2457
2495
|
ListWaitingRoomsError,
|
|
2458
2496
|
Credentials | HttpClient.HttpClient
|
|
2459
2497
|
> = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
2460
|
-
input:
|
|
2498
|
+
input: ListWaitingRoomsForZoneRequest,
|
|
2461
2499
|
output: ListWaitingRoomsResponse,
|
|
2462
2500
|
errors: [],
|
|
2463
2501
|
pagination: {
|