@deliverd/sdk 0.7.0 → 0.7.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/dist/http.js +15 -2
- package/dist/released.d.ts.map +1 -1
- package/dist/released.js +373 -0
- package/package.json +1 -1
- package/src/http.ts +15 -2
- package/src/released.ts +373 -0
package/dist/http.js
CHANGED
|
@@ -117,9 +117,22 @@ export class HttpClient {
|
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
export const USER_AGENT = "deliverd-sdk";
|
|
120
|
-
/**
|
|
120
|
+
/**
|
|
121
|
+
* A 5xx the server might get right next time. 501 is not one of them: it means
|
|
122
|
+
* the call is not built, which is a fact about the server rather than about
|
|
123
|
+
* this moment — the same argument as a 4xx.
|
|
124
|
+
*
|
|
125
|
+
* Ported from the Python SDK, which found it first and where the symptom was a
|
|
126
|
+
* development-mode call taking two and a half seconds to say three times that
|
|
127
|
+
* it is not implemented. The fix was never brought back here, and nothing
|
|
128
|
+
* compared the two until `packages/conformance/cases.json` existed.
|
|
129
|
+
*/
|
|
130
|
+
const RETRYABLE_5XX_EXCEPTIONS = new Set([501]);
|
|
131
|
+
/** 429 and most 5xx: a 4xx will be just as wrong on the next attempt. */
|
|
121
132
|
function isRetryable(status) {
|
|
122
|
-
|
|
133
|
+
if (status === 429)
|
|
134
|
+
return true;
|
|
135
|
+
return status >= 500 && !RETRYABLE_5XX_EXCEPTIONS.has(status);
|
|
123
136
|
}
|
|
124
137
|
function parseRetryAfter(header) {
|
|
125
138
|
if (!header)
|
package/dist/released.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"released.d.ts","sourceRoot":"","sources":["../src/released.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"released.d.ts","sourceRoot":"","sources":["../src/released.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CA2uBtD,CAAC"}
|
package/dist/released.js
CHANGED
|
@@ -399,4 +399,377 @@ export const RELEASED = {
|
|
|
399
399
|
"event:schedule.due",
|
|
400
400
|
"verifySignature",
|
|
401
401
|
],
|
|
402
|
+
/*
|
|
403
|
+
* 0.7.1 offers exactly what 0.7.0 offered. It is a behaviour release, not a
|
|
404
|
+
* surface one: TypeScript retried a 501 three times where Python had stopped,
|
|
405
|
+
* and nothing compared the two until `packages/conformance/cases.json`. The
|
|
406
|
+
* entry is copied rather than shared with 0.7.0's, because each entry is a
|
|
407
|
+
* claim about one tarball — pointing two versions at one array would make
|
|
408
|
+
* editing either of them silently rewrite the other.
|
|
409
|
+
*/
|
|
410
|
+
"0.7.1": [
|
|
411
|
+
"Approval",
|
|
412
|
+
"ApprovalData.approvalsSoFar",
|
|
413
|
+
"ApprovalData.approvers",
|
|
414
|
+
"ApprovalData.createdAt",
|
|
415
|
+
"ApprovalData.decidedAt",
|
|
416
|
+
"ApprovalData.decidedBy",
|
|
417
|
+
"ApprovalData.decidedById",
|
|
418
|
+
"ApprovalData.description",
|
|
419
|
+
"ApprovalData.expiresAt",
|
|
420
|
+
"ApprovalData.externalId",
|
|
421
|
+
"ApprovalData.factors",
|
|
422
|
+
"ApprovalData.id",
|
|
423
|
+
"ApprovalData.links",
|
|
424
|
+
"ApprovalData.metadata",
|
|
425
|
+
"ApprovalData.note",
|
|
426
|
+
"ApprovalData.questions",
|
|
427
|
+
"ApprovalData.reportId",
|
|
428
|
+
"ApprovalData.requestedBy",
|
|
429
|
+
"ApprovalData.requiredApprovals",
|
|
430
|
+
"ApprovalData.risk",
|
|
431
|
+
"ApprovalData.status",
|
|
432
|
+
"ApprovalData.title",
|
|
433
|
+
"ApprovalData.url",
|
|
434
|
+
"ApprovalFactor.detail",
|
|
435
|
+
"ApprovalFactor.label",
|
|
436
|
+
"ApprovalFactor.status",
|
|
437
|
+
"ApprovalLink.label",
|
|
438
|
+
"ApprovalLink.url",
|
|
439
|
+
"ApprovalQuestion.answer",
|
|
440
|
+
"ApprovalQuestion.answeredAt",
|
|
441
|
+
"ApprovalQuestion.askedAt",
|
|
442
|
+
"ApprovalQuestion.id",
|
|
443
|
+
"ApprovalQuestion.question",
|
|
444
|
+
"Approvals",
|
|
445
|
+
"ApproveOptions",
|
|
446
|
+
"ClientOptions",
|
|
447
|
+
"CollectOptions",
|
|
448
|
+
"CollectWaitOptions",
|
|
449
|
+
"CollectedAnswers.answers",
|
|
450
|
+
"CollectedAnswers.collection",
|
|
451
|
+
"CollectedAnswers.complete",
|
|
452
|
+
"CollectedAnswers.id",
|
|
453
|
+
"CollectedAnswers.responses",
|
|
454
|
+
"CollectedAnswers.status",
|
|
455
|
+
"CollectedAnswers.url",
|
|
456
|
+
"Collection",
|
|
457
|
+
"CollectionData.askedCount",
|
|
458
|
+
"CollectionData.createdAt",
|
|
459
|
+
"CollectionData.dueAt",
|
|
460
|
+
"CollectionData.expiresAt",
|
|
461
|
+
"CollectionData.externalId",
|
|
462
|
+
"CollectionData.id",
|
|
463
|
+
"CollectionData.instructions",
|
|
464
|
+
"CollectionData.metadata",
|
|
465
|
+
"CollectionData.questions",
|
|
466
|
+
"CollectionData.reportId",
|
|
467
|
+
"CollectionData.requestedBy",
|
|
468
|
+
"CollectionData.requiredResponses",
|
|
469
|
+
"CollectionData.responses",
|
|
470
|
+
"CollectionData.settledAt",
|
|
471
|
+
"CollectionData.status",
|
|
472
|
+
"CollectionData.submittedCount",
|
|
473
|
+
"CollectionData.title",
|
|
474
|
+
"CollectionData.url",
|
|
475
|
+
"CollectionQuestion.help",
|
|
476
|
+
"CollectionQuestion.id",
|
|
477
|
+
"CollectionQuestion.kind",
|
|
478
|
+
"CollectionQuestion.options",
|
|
479
|
+
"CollectionQuestion.prompt",
|
|
480
|
+
"CollectionQuestion.required",
|
|
481
|
+
"CollectionReply.answers",
|
|
482
|
+
"CollectionReply.respondent",
|
|
483
|
+
"CollectionReply.status",
|
|
484
|
+
"CollectionReply.submittedAt",
|
|
485
|
+
"Collections",
|
|
486
|
+
"CommentThread.messages",
|
|
487
|
+
"CommentThread.quote",
|
|
488
|
+
"CommentThread.status",
|
|
489
|
+
"CommentThread.threadId",
|
|
490
|
+
"Comments",
|
|
491
|
+
"CreateApprovalInput.approvers",
|
|
492
|
+
"CreateApprovalInput.description",
|
|
493
|
+
"CreateApprovalInput.expiresAt",
|
|
494
|
+
"CreateApprovalInput.externalId",
|
|
495
|
+
"CreateApprovalInput.factors",
|
|
496
|
+
"CreateApprovalInput.flowId",
|
|
497
|
+
"CreateApprovalInput.links",
|
|
498
|
+
"CreateApprovalInput.metadata",
|
|
499
|
+
"CreateApprovalInput.reportId",
|
|
500
|
+
"CreateApprovalInput.risk",
|
|
501
|
+
"CreateApprovalInput.title",
|
|
502
|
+
"CreateCollectionInput.dueAt",
|
|
503
|
+
"CreateCollectionInput.expiresAt",
|
|
504
|
+
"CreateCollectionInput.externalId",
|
|
505
|
+
"CreateCollectionInput.flowId",
|
|
506
|
+
"CreateCollectionInput.instructions",
|
|
507
|
+
"CreateCollectionInput.metadata",
|
|
508
|
+
"CreateCollectionInput.questions",
|
|
509
|
+
"CreateCollectionInput.reportId",
|
|
510
|
+
"CreateCollectionInput.requiredResponses",
|
|
511
|
+
"CreateCollectionInput.respondents",
|
|
512
|
+
"CreateCollectionInput.title",
|
|
513
|
+
"CreateFlowInput.description",
|
|
514
|
+
"CreateFlowInput.externalId",
|
|
515
|
+
"CreateFlowInput.metadata",
|
|
516
|
+
"CreateFlowInput.title",
|
|
517
|
+
"CreateFlowInput.workspaceId",
|
|
518
|
+
"CreateReviewInput.expiresAt",
|
|
519
|
+
"CreateReviewInput.externalId",
|
|
520
|
+
"CreateReviewInput.flowId",
|
|
521
|
+
"CreateReviewInput.instructions",
|
|
522
|
+
"CreateReviewInput.metadata",
|
|
523
|
+
"CreateReviewInput.reportId",
|
|
524
|
+
"CreateReviewInput.requiredApprovals",
|
|
525
|
+
"CreateReviewInput.reviewers",
|
|
526
|
+
"CreateReviewInput.title",
|
|
527
|
+
"CreateReviewInput.versionId",
|
|
528
|
+
"DEFAULT_BASE_URL",
|
|
529
|
+
"DEFAULT_EXPIRY",
|
|
530
|
+
"DELIVERY_HEADER",
|
|
531
|
+
"Decision.approval",
|
|
532
|
+
"Decision.approved",
|
|
533
|
+
"Decision.decidedAt",
|
|
534
|
+
"Decision.decidedBy",
|
|
535
|
+
"Decision.decidedById",
|
|
536
|
+
"Decision.id",
|
|
537
|
+
"Decision.note",
|
|
538
|
+
"Decision.status",
|
|
539
|
+
"Decision.url",
|
|
540
|
+
"Deliverd",
|
|
541
|
+
"DeliverdError",
|
|
542
|
+
"DeliverdOptions",
|
|
543
|
+
"DeliverdTimeoutError",
|
|
544
|
+
"Duration",
|
|
545
|
+
"EVENT_HEADER",
|
|
546
|
+
"EvidenceEvent.actor",
|
|
547
|
+
"EvidenceEvent.actorType",
|
|
548
|
+
"EvidenceEvent.at",
|
|
549
|
+
"EvidenceEvent.event",
|
|
550
|
+
"EvidenceEvent.metadata",
|
|
551
|
+
"EvidenceEvent.step",
|
|
552
|
+
"EvidenceOutcome.at",
|
|
553
|
+
"EvidenceOutcome.note",
|
|
554
|
+
"EvidenceOutcome.said",
|
|
555
|
+
"EvidenceOutcome.who",
|
|
556
|
+
"EvidencePack.generatedAt",
|
|
557
|
+
"EvidencePack.generatedBy",
|
|
558
|
+
"EvidencePack.integrity",
|
|
559
|
+
"EvidencePack.organisation",
|
|
560
|
+
"EvidencePack.packVersion",
|
|
561
|
+
"EvidencePack.steps",
|
|
562
|
+
"EvidencePack.subject",
|
|
563
|
+
"EvidencePack.summary",
|
|
564
|
+
"EvidencePack.timeline",
|
|
565
|
+
"EvidenceStep.asked",
|
|
566
|
+
"EvidenceStep.createdAt",
|
|
567
|
+
"EvidenceStep.detail",
|
|
568
|
+
"EvidenceStep.id",
|
|
569
|
+
"EvidenceStep.kind",
|
|
570
|
+
"EvidenceStep.outcomes",
|
|
571
|
+
"EvidenceStep.requestedBy",
|
|
572
|
+
"EvidenceStep.requestedByAgent",
|
|
573
|
+
"EvidenceStep.settledAt",
|
|
574
|
+
"EvidenceStep.status",
|
|
575
|
+
"EvidenceStep.title",
|
|
576
|
+
"EvidenceStep.url",
|
|
577
|
+
"Flow",
|
|
578
|
+
"FlowData.allSettled",
|
|
579
|
+
"FlowData.createdAt",
|
|
580
|
+
"FlowData.description",
|
|
581
|
+
"FlowData.externalId",
|
|
582
|
+
"FlowData.id",
|
|
583
|
+
"FlowData.memberCount",
|
|
584
|
+
"FlowData.members",
|
|
585
|
+
"FlowData.metadata",
|
|
586
|
+
"FlowData.openCount",
|
|
587
|
+
"FlowData.settledAt",
|
|
588
|
+
"FlowData.startedBy",
|
|
589
|
+
"FlowData.status",
|
|
590
|
+
"FlowData.timeline",
|
|
591
|
+
"FlowData.title",
|
|
592
|
+
"FlowData.url",
|
|
593
|
+
"FlowEvent.actor",
|
|
594
|
+
"FlowEvent.actorType",
|
|
595
|
+
"FlowEvent.at",
|
|
596
|
+
"FlowEvent.event",
|
|
597
|
+
"FlowEvent.resourceId",
|
|
598
|
+
"FlowEvent.resourceType",
|
|
599
|
+
"FlowMember.createdAt",
|
|
600
|
+
"FlowMember.id",
|
|
601
|
+
"FlowMember.kind",
|
|
602
|
+
"FlowMember.open",
|
|
603
|
+
"FlowMember.status",
|
|
604
|
+
"FlowMember.title",
|
|
605
|
+
"FlowPrimitives",
|
|
606
|
+
"Flows",
|
|
607
|
+
"InlineFile.content",
|
|
608
|
+
"InlineFile.encoding",
|
|
609
|
+
"InlineFile.path",
|
|
610
|
+
"ListApprovalsInput.cursor",
|
|
611
|
+
"ListApprovalsInput.externalId",
|
|
612
|
+
"ListApprovalsInput.limit",
|
|
613
|
+
"ListApprovalsInput.status",
|
|
614
|
+
"ListCollectionsInput.cursor",
|
|
615
|
+
"ListCollectionsInput.externalId",
|
|
616
|
+
"ListCollectionsInput.limit",
|
|
617
|
+
"ListCollectionsInput.status",
|
|
618
|
+
"ListFlowsInput.cursor",
|
|
619
|
+
"ListFlowsInput.externalId",
|
|
620
|
+
"ListFlowsInput.limit",
|
|
621
|
+
"ListFlowsInput.status",
|
|
622
|
+
"ListReviewsInput.cursor",
|
|
623
|
+
"ListReviewsInput.externalId",
|
|
624
|
+
"ListReviewsInput.limit",
|
|
625
|
+
"ListReviewsInput.reportId",
|
|
626
|
+
"ListReviewsInput.status",
|
|
627
|
+
"OpenThread.author",
|
|
628
|
+
"OpenThread.authorType",
|
|
629
|
+
"OpenThread.lastActivityAt",
|
|
630
|
+
"OpenThread.messages",
|
|
631
|
+
"OpenThread.quote",
|
|
632
|
+
"OpenThread.reportId",
|
|
633
|
+
"OpenThread.reportOwnerId",
|
|
634
|
+
"OpenThread.reportSlug",
|
|
635
|
+
"OpenThread.reportTitle",
|
|
636
|
+
"OpenThread.threadId",
|
|
637
|
+
"OrgAnalytics.activeReports",
|
|
638
|
+
"OrgAnalytics.days",
|
|
639
|
+
"OrgAnalytics.externallySharedReports",
|
|
640
|
+
"OrgAnalytics.inactiveReports",
|
|
641
|
+
"OrgAnalytics.publicReports",
|
|
642
|
+
"OrgAnalytics.publishesInPeriod",
|
|
643
|
+
"OrgAnalytics.topReports",
|
|
644
|
+
"OrgAnalytics.totalViews",
|
|
645
|
+
"OrgAnalytics.uniqueViewers",
|
|
646
|
+
"POLL_SCHEDULE",
|
|
647
|
+
"PublishReportInput.audience",
|
|
648
|
+
"PublishReportInput.changeSummary",
|
|
649
|
+
"PublishReportInput.classification",
|
|
650
|
+
"PublishReportInput.content",
|
|
651
|
+
"PublishReportInput.description",
|
|
652
|
+
"PublishReportInput.expectedVersion",
|
|
653
|
+
"PublishReportInput.files",
|
|
654
|
+
"PublishReportInput.living",
|
|
655
|
+
"PublishReportInput.slug",
|
|
656
|
+
"PublishReportInput.sourceModel",
|
|
657
|
+
"PublishReportInput.sourceTool",
|
|
658
|
+
"PublishReportInput.title",
|
|
659
|
+
"PublishReportInput.uploadId",
|
|
660
|
+
"PublishReportInput.workspaceId",
|
|
661
|
+
"PublishResult.approval",
|
|
662
|
+
"PublishResult.report",
|
|
663
|
+
"PublishResult.status",
|
|
664
|
+
"PublishResult.version",
|
|
665
|
+
"PublishResult.warnings",
|
|
666
|
+
"QuestionInput.help",
|
|
667
|
+
"QuestionInput.kind",
|
|
668
|
+
"QuestionInput.options",
|
|
669
|
+
"QuestionInput.prompt",
|
|
670
|
+
"QuestionInput.required",
|
|
671
|
+
"ReportAnalytics.byDay",
|
|
672
|
+
"ReportAnalytics.byVersion",
|
|
673
|
+
"ReportAnalytics.externalViewers",
|
|
674
|
+
"ReportAnalytics.firstViewedAt",
|
|
675
|
+
"ReportAnalytics.internalViewers",
|
|
676
|
+
"ReportAnalytics.lastViewedAt",
|
|
677
|
+
"ReportAnalytics.recentViewers",
|
|
678
|
+
"ReportAnalytics.reportId",
|
|
679
|
+
"ReportAnalytics.title",
|
|
680
|
+
"ReportAnalytics.totalViews",
|
|
681
|
+
"ReportAnalytics.uniqueViewers",
|
|
682
|
+
"ReportData.currentVersion",
|
|
683
|
+
"ReportData.id",
|
|
684
|
+
"ReportData.slug",
|
|
685
|
+
"ReportData.status",
|
|
686
|
+
"ReportData.title",
|
|
687
|
+
"ReportData.url",
|
|
688
|
+
"Reports",
|
|
689
|
+
"Review",
|
|
690
|
+
"ReviewData.createdAt",
|
|
691
|
+
"ReviewData.expiresAt",
|
|
692
|
+
"ReviewData.externalId",
|
|
693
|
+
"ReviewData.id",
|
|
694
|
+
"ReviewData.instructions",
|
|
695
|
+
"ReviewData.metadata",
|
|
696
|
+
"ReviewData.reportId",
|
|
697
|
+
"ReviewData.requestedBy",
|
|
698
|
+
"ReviewData.requiredApprovals",
|
|
699
|
+
"ReviewData.reviewers",
|
|
700
|
+
"ReviewData.settledAt",
|
|
701
|
+
"ReviewData.status",
|
|
702
|
+
"ReviewData.threadCount",
|
|
703
|
+
"ReviewData.title",
|
|
704
|
+
"ReviewData.url",
|
|
705
|
+
"ReviewData.verdicts",
|
|
706
|
+
"ReviewData.versionId",
|
|
707
|
+
"ReviewOptions",
|
|
708
|
+
"ReviewOutcome.approved",
|
|
709
|
+
"ReviewOutcome.id",
|
|
710
|
+
"ReviewOutcome.review",
|
|
711
|
+
"ReviewOutcome.status",
|
|
712
|
+
"ReviewOutcome.threadCount",
|
|
713
|
+
"ReviewOutcome.url",
|
|
714
|
+
"ReviewOutcome.verdicts",
|
|
715
|
+
"ReviewVerdict.at",
|
|
716
|
+
"ReviewVerdict.by",
|
|
717
|
+
"ReviewVerdict.note",
|
|
718
|
+
"ReviewVerdict.verdict",
|
|
719
|
+
"ReviewWaitOptions",
|
|
720
|
+
"ReviewerRef.id",
|
|
721
|
+
"ReviewerRef.kind",
|
|
722
|
+
"ReviewerRef.label",
|
|
723
|
+
"Reviews",
|
|
724
|
+
"SIGNATURE_HEADER",
|
|
725
|
+
"ScheduleSummary.agentId",
|
|
726
|
+
"ScheduleSummary.agentName",
|
|
727
|
+
"ScheduleSummary.currentVersion",
|
|
728
|
+
"ScheduleSummary.due",
|
|
729
|
+
"ScheduleSummary.dueSince",
|
|
730
|
+
"ScheduleSummary.enabled",
|
|
731
|
+
"ScheduleSummary.id",
|
|
732
|
+
"ScheduleSummary.lastRunAt",
|
|
733
|
+
"ScheduleSummary.nextRunAt",
|
|
734
|
+
"ScheduleSummary.recurrence",
|
|
735
|
+
"ScheduleSummary.reportId",
|
|
736
|
+
"ScheduleSummary.reportSlug",
|
|
737
|
+
"ScheduleSummary.reportTitle",
|
|
738
|
+
"ScheduleSummary.reportUrl",
|
|
739
|
+
"Schedules",
|
|
740
|
+
"SendResult.alreadyHadAccess",
|
|
741
|
+
"SendResult.sent",
|
|
742
|
+
"TOLERANCE_SECONDS",
|
|
743
|
+
"WaitOptions",
|
|
744
|
+
"WebhookEvent.data",
|
|
745
|
+
"WebhookEvent.event",
|
|
746
|
+
"WebhookEvent.sentAt",
|
|
747
|
+
"WebhookEvent.test",
|
|
748
|
+
"Webhooks",
|
|
749
|
+
"constructEvent",
|
|
750
|
+
"deliverd",
|
|
751
|
+
"durationMs",
|
|
752
|
+
"event:access.requested",
|
|
753
|
+
"event:approval.answered",
|
|
754
|
+
"event:approval.approved",
|
|
755
|
+
"event:approval.escalated",
|
|
756
|
+
"event:approval.expired",
|
|
757
|
+
"event:approval.question",
|
|
758
|
+
"event:approval.rejected",
|
|
759
|
+
"event:approval.requested",
|
|
760
|
+
"event:collection.completed",
|
|
761
|
+
"event:collection.requested",
|
|
762
|
+
"event:comment.created",
|
|
763
|
+
"event:flow.completed",
|
|
764
|
+
"event:publish.held",
|
|
765
|
+
"event:report.published",
|
|
766
|
+
"event:report.shared",
|
|
767
|
+
"event:report.updated",
|
|
768
|
+
"event:report.viewed",
|
|
769
|
+
"event:review.approved",
|
|
770
|
+
"event:review.changes_requested",
|
|
771
|
+
"event:review.requested",
|
|
772
|
+
"event:schedule.due",
|
|
773
|
+
"verifySignature",
|
|
774
|
+
],
|
|
402
775
|
};
|
package/package.json
CHANGED
package/src/http.ts
CHANGED
|
@@ -175,9 +175,22 @@ export class HttpClient {
|
|
|
175
175
|
|
|
176
176
|
export const USER_AGENT = "deliverd-sdk";
|
|
177
177
|
|
|
178
|
-
/**
|
|
178
|
+
/**
|
|
179
|
+
* A 5xx the server might get right next time. 501 is not one of them: it means
|
|
180
|
+
* the call is not built, which is a fact about the server rather than about
|
|
181
|
+
* this moment — the same argument as a 4xx.
|
|
182
|
+
*
|
|
183
|
+
* Ported from the Python SDK, which found it first and where the symptom was a
|
|
184
|
+
* development-mode call taking two and a half seconds to say three times that
|
|
185
|
+
* it is not implemented. The fix was never brought back here, and nothing
|
|
186
|
+
* compared the two until `packages/conformance/cases.json` existed.
|
|
187
|
+
*/
|
|
188
|
+
const RETRYABLE_5XX_EXCEPTIONS = new Set([501]);
|
|
189
|
+
|
|
190
|
+
/** 429 and most 5xx: a 4xx will be just as wrong on the next attempt. */
|
|
179
191
|
function isRetryable(status: number): boolean {
|
|
180
|
-
|
|
192
|
+
if (status === 429) return true;
|
|
193
|
+
return status >= 500 && !RETRYABLE_5XX_EXCEPTIONS.has(status);
|
|
181
194
|
}
|
|
182
195
|
|
|
183
196
|
function parseRetryAfter(header: string | null): number | undefined {
|
package/src/released.ts
CHANGED
|
@@ -400,4 +400,377 @@ export const RELEASED: Record<string, readonly string[]> = {
|
|
|
400
400
|
"event:schedule.due",
|
|
401
401
|
"verifySignature",
|
|
402
402
|
],
|
|
403
|
+
/*
|
|
404
|
+
* 0.7.1 offers exactly what 0.7.0 offered. It is a behaviour release, not a
|
|
405
|
+
* surface one: TypeScript retried a 501 three times where Python had stopped,
|
|
406
|
+
* and nothing compared the two until `packages/conformance/cases.json`. The
|
|
407
|
+
* entry is copied rather than shared with 0.7.0's, because each entry is a
|
|
408
|
+
* claim about one tarball — pointing two versions at one array would make
|
|
409
|
+
* editing either of them silently rewrite the other.
|
|
410
|
+
*/
|
|
411
|
+
"0.7.1": [
|
|
412
|
+
"Approval",
|
|
413
|
+
"ApprovalData.approvalsSoFar",
|
|
414
|
+
"ApprovalData.approvers",
|
|
415
|
+
"ApprovalData.createdAt",
|
|
416
|
+
"ApprovalData.decidedAt",
|
|
417
|
+
"ApprovalData.decidedBy",
|
|
418
|
+
"ApprovalData.decidedById",
|
|
419
|
+
"ApprovalData.description",
|
|
420
|
+
"ApprovalData.expiresAt",
|
|
421
|
+
"ApprovalData.externalId",
|
|
422
|
+
"ApprovalData.factors",
|
|
423
|
+
"ApprovalData.id",
|
|
424
|
+
"ApprovalData.links",
|
|
425
|
+
"ApprovalData.metadata",
|
|
426
|
+
"ApprovalData.note",
|
|
427
|
+
"ApprovalData.questions",
|
|
428
|
+
"ApprovalData.reportId",
|
|
429
|
+
"ApprovalData.requestedBy",
|
|
430
|
+
"ApprovalData.requiredApprovals",
|
|
431
|
+
"ApprovalData.risk",
|
|
432
|
+
"ApprovalData.status",
|
|
433
|
+
"ApprovalData.title",
|
|
434
|
+
"ApprovalData.url",
|
|
435
|
+
"ApprovalFactor.detail",
|
|
436
|
+
"ApprovalFactor.label",
|
|
437
|
+
"ApprovalFactor.status",
|
|
438
|
+
"ApprovalLink.label",
|
|
439
|
+
"ApprovalLink.url",
|
|
440
|
+
"ApprovalQuestion.answer",
|
|
441
|
+
"ApprovalQuestion.answeredAt",
|
|
442
|
+
"ApprovalQuestion.askedAt",
|
|
443
|
+
"ApprovalQuestion.id",
|
|
444
|
+
"ApprovalQuestion.question",
|
|
445
|
+
"Approvals",
|
|
446
|
+
"ApproveOptions",
|
|
447
|
+
"ClientOptions",
|
|
448
|
+
"CollectOptions",
|
|
449
|
+
"CollectWaitOptions",
|
|
450
|
+
"CollectedAnswers.answers",
|
|
451
|
+
"CollectedAnswers.collection",
|
|
452
|
+
"CollectedAnswers.complete",
|
|
453
|
+
"CollectedAnswers.id",
|
|
454
|
+
"CollectedAnswers.responses",
|
|
455
|
+
"CollectedAnswers.status",
|
|
456
|
+
"CollectedAnswers.url",
|
|
457
|
+
"Collection",
|
|
458
|
+
"CollectionData.askedCount",
|
|
459
|
+
"CollectionData.createdAt",
|
|
460
|
+
"CollectionData.dueAt",
|
|
461
|
+
"CollectionData.expiresAt",
|
|
462
|
+
"CollectionData.externalId",
|
|
463
|
+
"CollectionData.id",
|
|
464
|
+
"CollectionData.instructions",
|
|
465
|
+
"CollectionData.metadata",
|
|
466
|
+
"CollectionData.questions",
|
|
467
|
+
"CollectionData.reportId",
|
|
468
|
+
"CollectionData.requestedBy",
|
|
469
|
+
"CollectionData.requiredResponses",
|
|
470
|
+
"CollectionData.responses",
|
|
471
|
+
"CollectionData.settledAt",
|
|
472
|
+
"CollectionData.status",
|
|
473
|
+
"CollectionData.submittedCount",
|
|
474
|
+
"CollectionData.title",
|
|
475
|
+
"CollectionData.url",
|
|
476
|
+
"CollectionQuestion.help",
|
|
477
|
+
"CollectionQuestion.id",
|
|
478
|
+
"CollectionQuestion.kind",
|
|
479
|
+
"CollectionQuestion.options",
|
|
480
|
+
"CollectionQuestion.prompt",
|
|
481
|
+
"CollectionQuestion.required",
|
|
482
|
+
"CollectionReply.answers",
|
|
483
|
+
"CollectionReply.respondent",
|
|
484
|
+
"CollectionReply.status",
|
|
485
|
+
"CollectionReply.submittedAt",
|
|
486
|
+
"Collections",
|
|
487
|
+
"CommentThread.messages",
|
|
488
|
+
"CommentThread.quote",
|
|
489
|
+
"CommentThread.status",
|
|
490
|
+
"CommentThread.threadId",
|
|
491
|
+
"Comments",
|
|
492
|
+
"CreateApprovalInput.approvers",
|
|
493
|
+
"CreateApprovalInput.description",
|
|
494
|
+
"CreateApprovalInput.expiresAt",
|
|
495
|
+
"CreateApprovalInput.externalId",
|
|
496
|
+
"CreateApprovalInput.factors",
|
|
497
|
+
"CreateApprovalInput.flowId",
|
|
498
|
+
"CreateApprovalInput.links",
|
|
499
|
+
"CreateApprovalInput.metadata",
|
|
500
|
+
"CreateApprovalInput.reportId",
|
|
501
|
+
"CreateApprovalInput.risk",
|
|
502
|
+
"CreateApprovalInput.title",
|
|
503
|
+
"CreateCollectionInput.dueAt",
|
|
504
|
+
"CreateCollectionInput.expiresAt",
|
|
505
|
+
"CreateCollectionInput.externalId",
|
|
506
|
+
"CreateCollectionInput.flowId",
|
|
507
|
+
"CreateCollectionInput.instructions",
|
|
508
|
+
"CreateCollectionInput.metadata",
|
|
509
|
+
"CreateCollectionInput.questions",
|
|
510
|
+
"CreateCollectionInput.reportId",
|
|
511
|
+
"CreateCollectionInput.requiredResponses",
|
|
512
|
+
"CreateCollectionInput.respondents",
|
|
513
|
+
"CreateCollectionInput.title",
|
|
514
|
+
"CreateFlowInput.description",
|
|
515
|
+
"CreateFlowInput.externalId",
|
|
516
|
+
"CreateFlowInput.metadata",
|
|
517
|
+
"CreateFlowInput.title",
|
|
518
|
+
"CreateFlowInput.workspaceId",
|
|
519
|
+
"CreateReviewInput.expiresAt",
|
|
520
|
+
"CreateReviewInput.externalId",
|
|
521
|
+
"CreateReviewInput.flowId",
|
|
522
|
+
"CreateReviewInput.instructions",
|
|
523
|
+
"CreateReviewInput.metadata",
|
|
524
|
+
"CreateReviewInput.reportId",
|
|
525
|
+
"CreateReviewInput.requiredApprovals",
|
|
526
|
+
"CreateReviewInput.reviewers",
|
|
527
|
+
"CreateReviewInput.title",
|
|
528
|
+
"CreateReviewInput.versionId",
|
|
529
|
+
"DEFAULT_BASE_URL",
|
|
530
|
+
"DEFAULT_EXPIRY",
|
|
531
|
+
"DELIVERY_HEADER",
|
|
532
|
+
"Decision.approval",
|
|
533
|
+
"Decision.approved",
|
|
534
|
+
"Decision.decidedAt",
|
|
535
|
+
"Decision.decidedBy",
|
|
536
|
+
"Decision.decidedById",
|
|
537
|
+
"Decision.id",
|
|
538
|
+
"Decision.note",
|
|
539
|
+
"Decision.status",
|
|
540
|
+
"Decision.url",
|
|
541
|
+
"Deliverd",
|
|
542
|
+
"DeliverdError",
|
|
543
|
+
"DeliverdOptions",
|
|
544
|
+
"DeliverdTimeoutError",
|
|
545
|
+
"Duration",
|
|
546
|
+
"EVENT_HEADER",
|
|
547
|
+
"EvidenceEvent.actor",
|
|
548
|
+
"EvidenceEvent.actorType",
|
|
549
|
+
"EvidenceEvent.at",
|
|
550
|
+
"EvidenceEvent.event",
|
|
551
|
+
"EvidenceEvent.metadata",
|
|
552
|
+
"EvidenceEvent.step",
|
|
553
|
+
"EvidenceOutcome.at",
|
|
554
|
+
"EvidenceOutcome.note",
|
|
555
|
+
"EvidenceOutcome.said",
|
|
556
|
+
"EvidenceOutcome.who",
|
|
557
|
+
"EvidencePack.generatedAt",
|
|
558
|
+
"EvidencePack.generatedBy",
|
|
559
|
+
"EvidencePack.integrity",
|
|
560
|
+
"EvidencePack.organisation",
|
|
561
|
+
"EvidencePack.packVersion",
|
|
562
|
+
"EvidencePack.steps",
|
|
563
|
+
"EvidencePack.subject",
|
|
564
|
+
"EvidencePack.summary",
|
|
565
|
+
"EvidencePack.timeline",
|
|
566
|
+
"EvidenceStep.asked",
|
|
567
|
+
"EvidenceStep.createdAt",
|
|
568
|
+
"EvidenceStep.detail",
|
|
569
|
+
"EvidenceStep.id",
|
|
570
|
+
"EvidenceStep.kind",
|
|
571
|
+
"EvidenceStep.outcomes",
|
|
572
|
+
"EvidenceStep.requestedBy",
|
|
573
|
+
"EvidenceStep.requestedByAgent",
|
|
574
|
+
"EvidenceStep.settledAt",
|
|
575
|
+
"EvidenceStep.status",
|
|
576
|
+
"EvidenceStep.title",
|
|
577
|
+
"EvidenceStep.url",
|
|
578
|
+
"Flow",
|
|
579
|
+
"FlowData.allSettled",
|
|
580
|
+
"FlowData.createdAt",
|
|
581
|
+
"FlowData.description",
|
|
582
|
+
"FlowData.externalId",
|
|
583
|
+
"FlowData.id",
|
|
584
|
+
"FlowData.memberCount",
|
|
585
|
+
"FlowData.members",
|
|
586
|
+
"FlowData.metadata",
|
|
587
|
+
"FlowData.openCount",
|
|
588
|
+
"FlowData.settledAt",
|
|
589
|
+
"FlowData.startedBy",
|
|
590
|
+
"FlowData.status",
|
|
591
|
+
"FlowData.timeline",
|
|
592
|
+
"FlowData.title",
|
|
593
|
+
"FlowData.url",
|
|
594
|
+
"FlowEvent.actor",
|
|
595
|
+
"FlowEvent.actorType",
|
|
596
|
+
"FlowEvent.at",
|
|
597
|
+
"FlowEvent.event",
|
|
598
|
+
"FlowEvent.resourceId",
|
|
599
|
+
"FlowEvent.resourceType",
|
|
600
|
+
"FlowMember.createdAt",
|
|
601
|
+
"FlowMember.id",
|
|
602
|
+
"FlowMember.kind",
|
|
603
|
+
"FlowMember.open",
|
|
604
|
+
"FlowMember.status",
|
|
605
|
+
"FlowMember.title",
|
|
606
|
+
"FlowPrimitives",
|
|
607
|
+
"Flows",
|
|
608
|
+
"InlineFile.content",
|
|
609
|
+
"InlineFile.encoding",
|
|
610
|
+
"InlineFile.path",
|
|
611
|
+
"ListApprovalsInput.cursor",
|
|
612
|
+
"ListApprovalsInput.externalId",
|
|
613
|
+
"ListApprovalsInput.limit",
|
|
614
|
+
"ListApprovalsInput.status",
|
|
615
|
+
"ListCollectionsInput.cursor",
|
|
616
|
+
"ListCollectionsInput.externalId",
|
|
617
|
+
"ListCollectionsInput.limit",
|
|
618
|
+
"ListCollectionsInput.status",
|
|
619
|
+
"ListFlowsInput.cursor",
|
|
620
|
+
"ListFlowsInput.externalId",
|
|
621
|
+
"ListFlowsInput.limit",
|
|
622
|
+
"ListFlowsInput.status",
|
|
623
|
+
"ListReviewsInput.cursor",
|
|
624
|
+
"ListReviewsInput.externalId",
|
|
625
|
+
"ListReviewsInput.limit",
|
|
626
|
+
"ListReviewsInput.reportId",
|
|
627
|
+
"ListReviewsInput.status",
|
|
628
|
+
"OpenThread.author",
|
|
629
|
+
"OpenThread.authorType",
|
|
630
|
+
"OpenThread.lastActivityAt",
|
|
631
|
+
"OpenThread.messages",
|
|
632
|
+
"OpenThread.quote",
|
|
633
|
+
"OpenThread.reportId",
|
|
634
|
+
"OpenThread.reportOwnerId",
|
|
635
|
+
"OpenThread.reportSlug",
|
|
636
|
+
"OpenThread.reportTitle",
|
|
637
|
+
"OpenThread.threadId",
|
|
638
|
+
"OrgAnalytics.activeReports",
|
|
639
|
+
"OrgAnalytics.days",
|
|
640
|
+
"OrgAnalytics.externallySharedReports",
|
|
641
|
+
"OrgAnalytics.inactiveReports",
|
|
642
|
+
"OrgAnalytics.publicReports",
|
|
643
|
+
"OrgAnalytics.publishesInPeriod",
|
|
644
|
+
"OrgAnalytics.topReports",
|
|
645
|
+
"OrgAnalytics.totalViews",
|
|
646
|
+
"OrgAnalytics.uniqueViewers",
|
|
647
|
+
"POLL_SCHEDULE",
|
|
648
|
+
"PublishReportInput.audience",
|
|
649
|
+
"PublishReportInput.changeSummary",
|
|
650
|
+
"PublishReportInput.classification",
|
|
651
|
+
"PublishReportInput.content",
|
|
652
|
+
"PublishReportInput.description",
|
|
653
|
+
"PublishReportInput.expectedVersion",
|
|
654
|
+
"PublishReportInput.files",
|
|
655
|
+
"PublishReportInput.living",
|
|
656
|
+
"PublishReportInput.slug",
|
|
657
|
+
"PublishReportInput.sourceModel",
|
|
658
|
+
"PublishReportInput.sourceTool",
|
|
659
|
+
"PublishReportInput.title",
|
|
660
|
+
"PublishReportInput.uploadId",
|
|
661
|
+
"PublishReportInput.workspaceId",
|
|
662
|
+
"PublishResult.approval",
|
|
663
|
+
"PublishResult.report",
|
|
664
|
+
"PublishResult.status",
|
|
665
|
+
"PublishResult.version",
|
|
666
|
+
"PublishResult.warnings",
|
|
667
|
+
"QuestionInput.help",
|
|
668
|
+
"QuestionInput.kind",
|
|
669
|
+
"QuestionInput.options",
|
|
670
|
+
"QuestionInput.prompt",
|
|
671
|
+
"QuestionInput.required",
|
|
672
|
+
"ReportAnalytics.byDay",
|
|
673
|
+
"ReportAnalytics.byVersion",
|
|
674
|
+
"ReportAnalytics.externalViewers",
|
|
675
|
+
"ReportAnalytics.firstViewedAt",
|
|
676
|
+
"ReportAnalytics.internalViewers",
|
|
677
|
+
"ReportAnalytics.lastViewedAt",
|
|
678
|
+
"ReportAnalytics.recentViewers",
|
|
679
|
+
"ReportAnalytics.reportId",
|
|
680
|
+
"ReportAnalytics.title",
|
|
681
|
+
"ReportAnalytics.totalViews",
|
|
682
|
+
"ReportAnalytics.uniqueViewers",
|
|
683
|
+
"ReportData.currentVersion",
|
|
684
|
+
"ReportData.id",
|
|
685
|
+
"ReportData.slug",
|
|
686
|
+
"ReportData.status",
|
|
687
|
+
"ReportData.title",
|
|
688
|
+
"ReportData.url",
|
|
689
|
+
"Reports",
|
|
690
|
+
"Review",
|
|
691
|
+
"ReviewData.createdAt",
|
|
692
|
+
"ReviewData.expiresAt",
|
|
693
|
+
"ReviewData.externalId",
|
|
694
|
+
"ReviewData.id",
|
|
695
|
+
"ReviewData.instructions",
|
|
696
|
+
"ReviewData.metadata",
|
|
697
|
+
"ReviewData.reportId",
|
|
698
|
+
"ReviewData.requestedBy",
|
|
699
|
+
"ReviewData.requiredApprovals",
|
|
700
|
+
"ReviewData.reviewers",
|
|
701
|
+
"ReviewData.settledAt",
|
|
702
|
+
"ReviewData.status",
|
|
703
|
+
"ReviewData.threadCount",
|
|
704
|
+
"ReviewData.title",
|
|
705
|
+
"ReviewData.url",
|
|
706
|
+
"ReviewData.verdicts",
|
|
707
|
+
"ReviewData.versionId",
|
|
708
|
+
"ReviewOptions",
|
|
709
|
+
"ReviewOutcome.approved",
|
|
710
|
+
"ReviewOutcome.id",
|
|
711
|
+
"ReviewOutcome.review",
|
|
712
|
+
"ReviewOutcome.status",
|
|
713
|
+
"ReviewOutcome.threadCount",
|
|
714
|
+
"ReviewOutcome.url",
|
|
715
|
+
"ReviewOutcome.verdicts",
|
|
716
|
+
"ReviewVerdict.at",
|
|
717
|
+
"ReviewVerdict.by",
|
|
718
|
+
"ReviewVerdict.note",
|
|
719
|
+
"ReviewVerdict.verdict",
|
|
720
|
+
"ReviewWaitOptions",
|
|
721
|
+
"ReviewerRef.id",
|
|
722
|
+
"ReviewerRef.kind",
|
|
723
|
+
"ReviewerRef.label",
|
|
724
|
+
"Reviews",
|
|
725
|
+
"SIGNATURE_HEADER",
|
|
726
|
+
"ScheduleSummary.agentId",
|
|
727
|
+
"ScheduleSummary.agentName",
|
|
728
|
+
"ScheduleSummary.currentVersion",
|
|
729
|
+
"ScheduleSummary.due",
|
|
730
|
+
"ScheduleSummary.dueSince",
|
|
731
|
+
"ScheduleSummary.enabled",
|
|
732
|
+
"ScheduleSummary.id",
|
|
733
|
+
"ScheduleSummary.lastRunAt",
|
|
734
|
+
"ScheduleSummary.nextRunAt",
|
|
735
|
+
"ScheduleSummary.recurrence",
|
|
736
|
+
"ScheduleSummary.reportId",
|
|
737
|
+
"ScheduleSummary.reportSlug",
|
|
738
|
+
"ScheduleSummary.reportTitle",
|
|
739
|
+
"ScheduleSummary.reportUrl",
|
|
740
|
+
"Schedules",
|
|
741
|
+
"SendResult.alreadyHadAccess",
|
|
742
|
+
"SendResult.sent",
|
|
743
|
+
"TOLERANCE_SECONDS",
|
|
744
|
+
"WaitOptions",
|
|
745
|
+
"WebhookEvent.data",
|
|
746
|
+
"WebhookEvent.event",
|
|
747
|
+
"WebhookEvent.sentAt",
|
|
748
|
+
"WebhookEvent.test",
|
|
749
|
+
"Webhooks",
|
|
750
|
+
"constructEvent",
|
|
751
|
+
"deliverd",
|
|
752
|
+
"durationMs",
|
|
753
|
+
"event:access.requested",
|
|
754
|
+
"event:approval.answered",
|
|
755
|
+
"event:approval.approved",
|
|
756
|
+
"event:approval.escalated",
|
|
757
|
+
"event:approval.expired",
|
|
758
|
+
"event:approval.question",
|
|
759
|
+
"event:approval.rejected",
|
|
760
|
+
"event:approval.requested",
|
|
761
|
+
"event:collection.completed",
|
|
762
|
+
"event:collection.requested",
|
|
763
|
+
"event:comment.created",
|
|
764
|
+
"event:flow.completed",
|
|
765
|
+
"event:publish.held",
|
|
766
|
+
"event:report.published",
|
|
767
|
+
"event:report.shared",
|
|
768
|
+
"event:report.updated",
|
|
769
|
+
"event:report.viewed",
|
|
770
|
+
"event:review.approved",
|
|
771
|
+
"event:review.changes_requested",
|
|
772
|
+
"event:review.requested",
|
|
773
|
+
"event:schedule.due",
|
|
774
|
+
"verifySignature",
|
|
775
|
+
],
|
|
403
776
|
};
|