@rearray/sdk 0.1.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.
@@ -0,0 +1,833 @@
1
+ /**
2
+ * This file was auto-generated by openapi-typescript.
3
+ * Do not make direct changes to the file.
4
+ */
5
+ interface paths {
6
+ "/executions": {
7
+ parameters: {
8
+ query?: never;
9
+ header?: never;
10
+ path?: never;
11
+ cookie?: never;
12
+ };
13
+ /** List executions */
14
+ get: {
15
+ parameters: {
16
+ query?: {
17
+ status?: string;
18
+ task_id?: string;
19
+ agent_id?: string;
20
+ reference?: string;
21
+ from?: string;
22
+ to?: string;
23
+ cursor?: string;
24
+ limit?: number;
25
+ };
26
+ header?: never;
27
+ path?: never;
28
+ cookie?: never;
29
+ };
30
+ requestBody?: never;
31
+ responses: {
32
+ /** @description OK */
33
+ 200: {
34
+ headers: {
35
+ [name: string]: unknown;
36
+ };
37
+ content: {
38
+ "application/json": {
39
+ data?: components["schemas"]["Execution"][];
40
+ next_cursor?: string | null;
41
+ request_id?: string;
42
+ };
43
+ };
44
+ };
45
+ };
46
+ };
47
+ put?: never;
48
+ /** Create execution */
49
+ post: {
50
+ parameters: {
51
+ query?: {
52
+ validate_only?: boolean;
53
+ };
54
+ header?: {
55
+ "Idempotency-Key"?: string;
56
+ };
57
+ path?: never;
58
+ cookie?: never;
59
+ };
60
+ requestBody: {
61
+ content: {
62
+ "application/json": components["schemas"]["CreateExecutionRequest"];
63
+ };
64
+ };
65
+ responses: {
66
+ /** @description Idempotent replay or validate_only response. */
67
+ 200: {
68
+ headers: {
69
+ [name: string]: unknown;
70
+ };
71
+ content: {
72
+ "application/json": components["schemas"]["CreateExecutionResponse"];
73
+ };
74
+ };
75
+ /** @description Execution queued. */
76
+ 201: {
77
+ headers: {
78
+ [name: string]: unknown;
79
+ };
80
+ content: {
81
+ "application/json": components["schemas"]["CreateExecutionResponse"];
82
+ };
83
+ };
84
+ /** @description Validation error. */
85
+ 422: {
86
+ headers: {
87
+ [name: string]: unknown;
88
+ };
89
+ content: {
90
+ "application/json": components["schemas"]["Error"];
91
+ };
92
+ };
93
+ };
94
+ };
95
+ delete?: never;
96
+ options?: never;
97
+ head?: never;
98
+ patch?: never;
99
+ trace?: never;
100
+ };
101
+ "/executions/{id}": {
102
+ parameters: {
103
+ query?: never;
104
+ header?: never;
105
+ path: {
106
+ id: string;
107
+ };
108
+ cookie?: never;
109
+ };
110
+ /** Get execution by id */
111
+ get: {
112
+ parameters: {
113
+ query?: never;
114
+ header?: never;
115
+ path: {
116
+ id: string;
117
+ };
118
+ cookie?: never;
119
+ };
120
+ requestBody?: never;
121
+ responses: {
122
+ /** @description OK */
123
+ 200: {
124
+ headers: {
125
+ [name: string]: unknown;
126
+ };
127
+ content: {
128
+ "application/json": components["schemas"]["ExecutionDetail"];
129
+ };
130
+ };
131
+ /** @description Not found. */
132
+ 404: {
133
+ headers: {
134
+ [name: string]: unknown;
135
+ };
136
+ content: {
137
+ "application/json": components["schemas"]["Error"];
138
+ };
139
+ };
140
+ };
141
+ };
142
+ put?: never;
143
+ post?: never;
144
+ delete?: never;
145
+ options?: never;
146
+ head?: never;
147
+ patch?: never;
148
+ trace?: never;
149
+ };
150
+ "/executions/{id}/cancel": {
151
+ parameters: {
152
+ query?: never;
153
+ header?: never;
154
+ path: {
155
+ id: string;
156
+ };
157
+ cookie?: never;
158
+ };
159
+ get?: never;
160
+ put?: never;
161
+ /** Cancel execution */
162
+ post: {
163
+ parameters: {
164
+ query?: never;
165
+ header?: never;
166
+ path: {
167
+ id: string;
168
+ };
169
+ cookie?: never;
170
+ };
171
+ requestBody?: never;
172
+ responses: {
173
+ /** @description Cancelled. */
174
+ 200: {
175
+ headers: {
176
+ [name: string]: unknown;
177
+ };
178
+ content: {
179
+ "application/json": components["schemas"]["CancelExecutionResponse"];
180
+ };
181
+ };
182
+ };
183
+ };
184
+ delete?: never;
185
+ options?: never;
186
+ head?: never;
187
+ patch?: never;
188
+ trace?: never;
189
+ };
190
+ "/executions/{id}/artifacts": {
191
+ parameters: {
192
+ query?: never;
193
+ header?: never;
194
+ path: {
195
+ id: string;
196
+ };
197
+ cookie?: never;
198
+ };
199
+ /** List execution artifacts (videos, downloads, prints, screenshots) */
200
+ get: {
201
+ parameters: {
202
+ query?: never;
203
+ header?: never;
204
+ path: {
205
+ id: string;
206
+ };
207
+ cookie?: never;
208
+ };
209
+ requestBody?: never;
210
+ responses: {
211
+ /** @description Signed video URLs and protected file links. */
212
+ 200: {
213
+ headers: {
214
+ [name: string]: unknown;
215
+ };
216
+ content: {
217
+ "application/json": components["schemas"]["ArtifactsResponse"];
218
+ };
219
+ };
220
+ /** @description Not found. */
221
+ 404: {
222
+ headers: {
223
+ [name: string]: unknown;
224
+ };
225
+ content: {
226
+ "application/json": components["schemas"]["Error"];
227
+ };
228
+ };
229
+ };
230
+ };
231
+ put?: never;
232
+ post?: never;
233
+ delete?: never;
234
+ options?: never;
235
+ head?: never;
236
+ patch?: never;
237
+ trace?: never;
238
+ };
239
+ "/executions/{id}/files/{fileId}": {
240
+ parameters: {
241
+ query?: never;
242
+ header?: never;
243
+ path: {
244
+ id: string;
245
+ fileId: string;
246
+ };
247
+ cookie?: never;
248
+ };
249
+ /** Download one execution file */
250
+ get: {
251
+ parameters: {
252
+ query?: never;
253
+ header?: never;
254
+ path: {
255
+ id: string;
256
+ fileId: string;
257
+ };
258
+ cookie?: never;
259
+ };
260
+ requestBody?: never;
261
+ responses: {
262
+ /** @description Redirect to short-lived signed storage URL. */
263
+ 302: {
264
+ headers: {
265
+ [name: string]: unknown;
266
+ };
267
+ content?: never;
268
+ };
269
+ };
270
+ };
271
+ put?: never;
272
+ post?: never;
273
+ delete?: never;
274
+ options?: never;
275
+ head?: never;
276
+ patch?: never;
277
+ trace?: never;
278
+ };
279
+ "/tasks": {
280
+ parameters: {
281
+ query?: never;
282
+ header?: never;
283
+ path?: never;
284
+ cookie?: never;
285
+ };
286
+ /** List runnable tasks for this API key */
287
+ get: {
288
+ parameters: {
289
+ query?: never;
290
+ header?: never;
291
+ path?: never;
292
+ cookie?: never;
293
+ };
294
+ requestBody?: never;
295
+ responses: {
296
+ /** @description OK */
297
+ 200: {
298
+ headers: {
299
+ [name: string]: unknown;
300
+ };
301
+ content: {
302
+ "application/json": components["schemas"]["TaskListResponse"];
303
+ };
304
+ };
305
+ };
306
+ };
307
+ put?: never;
308
+ post?: never;
309
+ delete?: never;
310
+ options?: never;
311
+ head?: never;
312
+ patch?: never;
313
+ trace?: never;
314
+ };
315
+ "/tasks/{id}": {
316
+ parameters: {
317
+ query?: never;
318
+ header?: never;
319
+ path: {
320
+ id: string;
321
+ };
322
+ cookie?: never;
323
+ };
324
+ /** Get task */
325
+ get: {
326
+ parameters: {
327
+ query?: never;
328
+ header?: never;
329
+ path: {
330
+ id: string;
331
+ };
332
+ cookie?: never;
333
+ };
334
+ requestBody?: never;
335
+ responses: {
336
+ /** @description OK */
337
+ 200: {
338
+ headers: {
339
+ [name: string]: unknown;
340
+ };
341
+ content: {
342
+ "application/json": components["schemas"]["TaskDetail"];
343
+ };
344
+ };
345
+ /** @description Not found. */
346
+ 404: {
347
+ headers: {
348
+ [name: string]: unknown;
349
+ };
350
+ content: {
351
+ "application/json": components["schemas"]["Error"];
352
+ };
353
+ };
354
+ };
355
+ };
356
+ put?: never;
357
+ post?: never;
358
+ delete?: never;
359
+ options?: never;
360
+ head?: never;
361
+ patch?: never;
362
+ trace?: never;
363
+ };
364
+ "/tasks/{id}/params-schema": {
365
+ parameters: {
366
+ query?: never;
367
+ header?: never;
368
+ path: {
369
+ id: string;
370
+ };
371
+ cookie?: never;
372
+ };
373
+ /** Get params schema for a task version */
374
+ get: {
375
+ parameters: {
376
+ query?: {
377
+ version?: string;
378
+ };
379
+ header?: never;
380
+ path: {
381
+ id: string;
382
+ };
383
+ cookie?: never;
384
+ };
385
+ requestBody?: never;
386
+ responses: {
387
+ /** @description OK */
388
+ 200: {
389
+ headers: {
390
+ [name: string]: unknown;
391
+ };
392
+ content: {
393
+ "application/json": components["schemas"]["ParamsSchemaResponse"];
394
+ };
395
+ };
396
+ /** @description Not found. */
397
+ 404: {
398
+ headers: {
399
+ [name: string]: unknown;
400
+ };
401
+ content: {
402
+ "application/json": components["schemas"]["Error"];
403
+ };
404
+ };
405
+ };
406
+ };
407
+ put?: never;
408
+ post?: never;
409
+ delete?: never;
410
+ options?: never;
411
+ head?: never;
412
+ patch?: never;
413
+ trace?: never;
414
+ };
415
+ "/agents": {
416
+ parameters: {
417
+ query?: never;
418
+ header?: never;
419
+ path?: never;
420
+ cookie?: never;
421
+ };
422
+ /** List agents available to this API key */
423
+ get: {
424
+ parameters: {
425
+ query?: never;
426
+ header?: never;
427
+ path?: never;
428
+ cookie?: never;
429
+ };
430
+ requestBody?: never;
431
+ responses: {
432
+ /** @description OK */
433
+ 200: {
434
+ headers: {
435
+ [name: string]: unknown;
436
+ };
437
+ content: {
438
+ "application/json": components["schemas"]["AgentListResponse"];
439
+ };
440
+ };
441
+ };
442
+ };
443
+ put?: never;
444
+ post?: never;
445
+ delete?: never;
446
+ options?: never;
447
+ head?: never;
448
+ patch?: never;
449
+ trace?: never;
450
+ };
451
+ "/webhooks/test": {
452
+ parameters: {
453
+ query?: never;
454
+ header?: never;
455
+ path?: never;
456
+ cookie?: never;
457
+ };
458
+ get?: never;
459
+ put?: never;
460
+ /** Send a test webhook to a target URL */
461
+ post: {
462
+ parameters: {
463
+ query?: never;
464
+ header?: never;
465
+ path?: never;
466
+ cookie?: never;
467
+ };
468
+ requestBody: {
469
+ content: {
470
+ "application/json": components["schemas"]["WebhookTestRequest"];
471
+ };
472
+ };
473
+ responses: {
474
+ /** @description Enqueued. */
475
+ 202: {
476
+ headers: {
477
+ [name: string]: unknown;
478
+ };
479
+ content: {
480
+ "application/json": components["schemas"]["WebhookTestResponse"];
481
+ };
482
+ };
483
+ };
484
+ };
485
+ delete?: never;
486
+ options?: never;
487
+ head?: never;
488
+ patch?: never;
489
+ trace?: never;
490
+ };
491
+ }
492
+ interface components {
493
+ schemas: {
494
+ Error: {
495
+ error: {
496
+ /** @enum {string} */
497
+ code: "unauthorized" | "forbidden" | "ip_not_allowed" | "rate_limited" | "concurrency_limit_reached" | "idempotency_conflict" | "invalid_params" | "invalid_request" | "task_not_runnable" | "agent_unavailable" | "version_not_found" | "not_found" | "method_not_allowed" | "payload_too_large" | "internal_error";
498
+ message: string;
499
+ details?: unknown;
500
+ request_id?: string;
501
+ };
502
+ };
503
+ Execution: {
504
+ /** Format: uuid */
505
+ id?: string;
506
+ status?: string;
507
+ /** Format: uuid */
508
+ task_id?: string;
509
+ /** Format: uuid */
510
+ task_version_id?: string | null;
511
+ /** Format: uuid */
512
+ agent_id?: string;
513
+ reference?: string | null;
514
+ metadata?: {
515
+ [key: string]: unknown;
516
+ } | null;
517
+ params?: {
518
+ [key: string]: unknown;
519
+ } | null;
520
+ result?: unknown;
521
+ error_message?: string | null;
522
+ /** Format: date-time */
523
+ started_at?: string | null;
524
+ /** Format: date-time */
525
+ stopped_at?: string | null;
526
+ /** Format: date-time */
527
+ created_at?: string;
528
+ /** Format: date-time */
529
+ updated_at?: string;
530
+ /** Format: date-time */
531
+ scheduled_at?: string | null;
532
+ priority?: number;
533
+ downloads?: components["schemas"]["ExecutionFile"][];
534
+ prints?: components["schemas"]["ExecutionFile"][];
535
+ screenshots?: components["schemas"]["ExecutionFile"][];
536
+ };
537
+ ExecutionDetail: {
538
+ /** Format: uuid */
539
+ execution_id?: string;
540
+ status?: string;
541
+ /** Format: uuid */
542
+ task_id?: string;
543
+ /** Format: uuid */
544
+ task_version_id?: string | null;
545
+ /** Format: uuid */
546
+ agent_id?: string;
547
+ reference?: string | null;
548
+ metadata?: {
549
+ [key: string]: unknown;
550
+ } | null;
551
+ params?: {
552
+ [key: string]: unknown;
553
+ } | null;
554
+ result?: unknown;
555
+ error_message?: string | null;
556
+ /** Format: date-time */
557
+ started_at?: string | null;
558
+ /** Format: date-time */
559
+ stopped_at?: string | null;
560
+ /** Format: date-time */
561
+ created_at?: string;
562
+ /** Format: date-time */
563
+ updated_at?: string;
564
+ /** Format: date-time */
565
+ scheduled_at?: string | null;
566
+ priority?: number;
567
+ downloads?: components["schemas"]["ExecutionFile"][];
568
+ prints?: components["schemas"]["ExecutionFile"][];
569
+ screenshots?: components["schemas"]["ExecutionFile"][];
570
+ request_id?: string;
571
+ };
572
+ ExecutionFile: {
573
+ /** Format: uuid */
574
+ id?: string;
575
+ file_name?: string;
576
+ content_type?: string;
577
+ size_bytes?: number;
578
+ /** Format: uri */
579
+ url?: string;
580
+ };
581
+ ExecutionVideo: {
582
+ platform_id?: string | null;
583
+ handler?: string | null;
584
+ started_offset_ms?: number;
585
+ storage_key?: string;
586
+ /** Format: uri */
587
+ signed_url?: string | null;
588
+ expires_in_seconds?: number;
589
+ error?: string | null;
590
+ };
591
+ Task: {
592
+ /** Format: uuid */
593
+ id?: string;
594
+ name?: string | null;
595
+ description?: string | null;
596
+ /** Format: uuid */
597
+ current_version_id?: string | null;
598
+ /** Format: date-time */
599
+ created_at?: string;
600
+ /** Format: date-time */
601
+ updated_at?: string;
602
+ };
603
+ TaskDetail: {
604
+ /** Format: uuid */
605
+ id?: string;
606
+ name?: string | null;
607
+ description?: string | null;
608
+ current_version?: {
609
+ /** Format: uuid */
610
+ id?: string;
611
+ version_number?: number;
612
+ tag?: string | null;
613
+ params_schema?: unknown;
614
+ /** Format: date-time */
615
+ created_at?: string;
616
+ } | null;
617
+ platform_ids?: string[];
618
+ /** Format: date-time */
619
+ created_at?: string;
620
+ /** Format: date-time */
621
+ updated_at?: string;
622
+ request_id?: string;
623
+ };
624
+ TaskVersionSummary: {
625
+ /** Format: uuid */
626
+ id?: string;
627
+ version_number?: number;
628
+ tag?: string | null;
629
+ params_schema?: unknown;
630
+ /** Format: date-time */
631
+ created_at?: string;
632
+ };
633
+ Agent: {
634
+ /** Format: uuid */
635
+ id?: string;
636
+ name?: string | null;
637
+ description?: string | null;
638
+ enabled?: boolean;
639
+ /** Format: date-time */
640
+ created_at?: string;
641
+ /** Format: date-time */
642
+ updated_at?: string;
643
+ };
644
+ CreateExecutionRequest: {
645
+ /** Format: uuid */
646
+ task_id?: string;
647
+ /** Format: uuid */
648
+ task_version_id?: string;
649
+ /** Format: uuid */
650
+ agent_id: string;
651
+ params?: {
652
+ [key: string]: unknown;
653
+ };
654
+ version?: string;
655
+ reference?: string;
656
+ metadata?: {
657
+ [key: string]: unknown;
658
+ };
659
+ /** Format: uri */
660
+ callback_url?: string;
661
+ /** Format: date-time */
662
+ scheduled_at?: string;
663
+ priority?: number;
664
+ };
665
+ CreateExecutionResponse: {
666
+ /** Format: uuid */
667
+ execution_id?: string | null;
668
+ status?: string;
669
+ reference?: string | null;
670
+ metadata?: {
671
+ [key: string]: unknown;
672
+ } | null;
673
+ /** Format: uuid */
674
+ task_id?: string;
675
+ /** Format: uuid */
676
+ task_version_id?: string | null;
677
+ /** Format: date-time */
678
+ scheduled_at?: string | null;
679
+ priority?: number;
680
+ request_id?: string;
681
+ idempotent_replay?: boolean;
682
+ would_create?: boolean;
683
+ };
684
+ CancelExecutionResponse: {
685
+ /** Format: uuid */
686
+ execution_id?: string;
687
+ status?: string;
688
+ request_id?: string;
689
+ };
690
+ ArtifactsResponse: {
691
+ /** Format: uuid */
692
+ execution_id?: string;
693
+ status?: string;
694
+ /** Format: date-time */
695
+ started_at?: string | null;
696
+ /** Format: date-time */
697
+ stopped_at?: string | null;
698
+ videos?: components["schemas"]["ExecutionVideo"][];
699
+ downloads?: components["schemas"]["ExecutionFile"][];
700
+ prints?: components["schemas"]["ExecutionFile"][];
701
+ screenshots?: components["schemas"]["ExecutionFile"][];
702
+ request_id?: string;
703
+ };
704
+ ParamsSchemaResponse: {
705
+ version?: {
706
+ /** Format: uuid */
707
+ id?: string;
708
+ version_number?: number;
709
+ tag?: string | null;
710
+ /** Format: date-time */
711
+ created_at?: string;
712
+ };
713
+ params_schema?: unknown;
714
+ store_schema?: unknown;
715
+ request_id?: string;
716
+ };
717
+ TaskListResponse: {
718
+ data?: components["schemas"]["Task"][];
719
+ request_id?: string;
720
+ };
721
+ AgentListResponse: {
722
+ data?: components["schemas"]["Agent"][];
723
+ request_id?: string;
724
+ };
725
+ WebhookTestRequest: {
726
+ /** Format: uri */
727
+ callback_url: string;
728
+ };
729
+ WebhookTestResponse: {
730
+ delivery_id?: unknown;
731
+ /** Format: uuid */
732
+ event_id?: string;
733
+ request_id?: string;
734
+ };
735
+ };
736
+ responses: never;
737
+ parameters: never;
738
+ requestBodies: never;
739
+ headers: never;
740
+ pathItems: never;
741
+ }
742
+
743
+ /** Webhook callback payload (not yet in OpenAPI). */
744
+ type WebhookEvent = {
745
+ event_id: string;
746
+ type: string;
747
+ occurred_at: string;
748
+ request_id?: string;
749
+ reference?: string | null;
750
+ metadata?: Record<string, unknown>;
751
+ execution?: Record<string, unknown> | null;
752
+ message?: string;
753
+ };
754
+ type CreateExecutionRequest = components['schemas']['CreateExecutionRequest'];
755
+ type CreateExecutionResponse = components['schemas']['CreateExecutionResponse'];
756
+ type Execution$1 = components['schemas']['Execution'];
757
+ type ExecutionDetail = components['schemas']['ExecutionDetail'];
758
+ type ArtifactsResponse = components['schemas']['ArtifactsResponse'];
759
+ type Task = components['schemas']['Task'];
760
+ type TaskDetail = components['schemas']['TaskDetail'];
761
+ type ParamsSchemaResponse = components['schemas']['ParamsSchemaResponse'];
762
+ type Agent = components['schemas']['Agent'];
763
+ type ListExecutionsParams$1 = NonNullable<paths['/executions']['get']['parameters']['query']>;
764
+ type ListExecutionsResponse$1 = paths['/executions']['get']['responses'][200]['content']['application/json'];
765
+ type CreateExecutionOptions = {
766
+ idempotencyKey?: string;
767
+ validateOnly?: boolean;
768
+ };
769
+ type GetTaskParamsSchemaOptions = {
770
+ version?: string;
771
+ };
772
+ type RearrayClientOptions = {
773
+ apiKey: string;
774
+ baseUrl?: string;
775
+ fetch?: typeof fetch;
776
+ };
777
+ declare class RearrayClient {
778
+ private readonly apiKey;
779
+ private readonly baseUrl;
780
+ private readonly fetchFn;
781
+ constructor(options: RearrayClientOptions);
782
+ createExecution(body: CreateExecutionRequest, options?: CreateExecutionOptions): Promise<CreateExecutionResponse>;
783
+ listExecutions(params?: ListExecutionsParams$1): Promise<ListExecutionsResponse$1>;
784
+ iterateExecutions(params?: ListExecutionsParams$1): AsyncGenerator<Execution$1, void, undefined>;
785
+ getExecution(id: string): Promise<ExecutionDetail>;
786
+ cancelExecution(id: string): Promise<components['schemas']['CancelExecutionResponse']>;
787
+ getExecutionArtifacts(id: string): Promise<ArtifactsResponse>;
788
+ listTasks(): Promise<{
789
+ data?: Task[];
790
+ request_id?: string;
791
+ }>;
792
+ getTask(id: string): Promise<TaskDetail>;
793
+ getTaskParamsSchema(id: string, options?: GetTaskParamsSchemaOptions): Promise<ParamsSchemaResponse>;
794
+ listAgents(): Promise<{
795
+ data?: Agent[];
796
+ request_id?: string;
797
+ }>;
798
+ testWebhook(callbackUrl: string): Promise<components['schemas']['WebhookTestResponse']>;
799
+ private request;
800
+ }
801
+
802
+ type RearrayErrorCode = components['schemas']['Error']['error']['code'];
803
+ type RearrayErrorBody = components['schemas']['Error'];
804
+ declare class RearrayApiError extends Error {
805
+ readonly code: RearrayErrorCode;
806
+ readonly status: number;
807
+ readonly requestId?: string;
808
+ readonly details?: unknown;
809
+ constructor(code: RearrayErrorCode, message: string, status: number, requestId?: string, details?: unknown);
810
+ static fromBody(body: RearrayErrorBody, status: number): RearrayApiError;
811
+ }
812
+ declare function isRearrayApiError(error: unknown): error is RearrayApiError;
813
+ declare function parseErrorBody(body: unknown): RearrayErrorBody | null;
814
+
815
+ type Execution = components['schemas']['Execution'];
816
+ type ListExecutionsParams = NonNullable<paths['/executions']['get']['parameters']['query']>;
817
+ type ListExecutionsResponse = paths['/executions']['get']['responses'][200]['content']['application/json'];
818
+ type ExecutionLister = {
819
+ listExecutions(params?: ListExecutionsParams): Promise<ListExecutionsResponse>;
820
+ };
821
+ declare function iterateExecutions(client: ExecutionLister, params?: ListExecutionsParams): AsyncGenerator<Execution, void, undefined>;
822
+
823
+ type VerifyWebhookSignatureOptions = {
824
+ payload: string;
825
+ timestamp: string;
826
+ signature: string;
827
+ secret: string;
828
+ /** Reject timestamps older than this many seconds (default: 300). Set to 0 to skip. */
829
+ toleranceSeconds?: number;
830
+ };
831
+ declare function verifyWebhookSignature(options: VerifyWebhookSignatureOptions): Promise<boolean>;
832
+
833
+ export { type Agent, type ArtifactsResponse, type CreateExecutionOptions, type CreateExecutionRequest, type CreateExecutionResponse, type Execution$1 as Execution, type ExecutionDetail, type ExecutionLister, type GetTaskParamsSchemaOptions, type ListExecutionsParams$1 as ListExecutionsParams, type ListExecutionsResponse$1 as ListExecutionsResponse, type ParamsSchemaResponse, RearrayApiError, RearrayClient, type RearrayClientOptions, type RearrayErrorBody, type RearrayErrorCode, type Task, type TaskDetail, type VerifyWebhookSignatureOptions, type WebhookEvent, type components, isRearrayApiError, iterateExecutions, parseErrorBody, type paths, verifyWebhookSignature };