@deliverd/sdk 0.7.1 → 0.8.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.
package/dist/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import { HttpClient } from "./http.js";
2
2
  import { Approvals, FAST_POLL_SCHEDULE } from "./approvals.js";
3
+ import { Gates } from "./gates.js";
3
4
  import { Comments, Reports, Schedules } from "./reports.js";
4
5
  import { Reviews } from "./reviews.js";
5
6
  import { Collections } from "./collections.js";
@@ -8,6 +9,7 @@ import { Webhooks } from "./webhooks.js";
8
9
  import { developmentFetch } from "./dev.js";
9
10
  import { durationMs } from "./duration.js";
10
11
  export { Approval, Approvals, POLL_SCHEDULE } from "./approvals.js";
12
+ export { Gate, Gates } from "./gates.js";
11
13
  export { Comments, Reports, Schedules } from "./reports.js";
12
14
  export { Review, Reviews } from "./reviews.js";
13
15
  export { Collection, Collections } from "./collections.js";
@@ -39,6 +41,7 @@ export const DEFAULT_EXPIRY = "24h";
39
41
  */
40
42
  export class Deliverd {
41
43
  approvals;
44
+ gates;
42
45
  reviews;
43
46
  collections;
44
47
  flows;
@@ -60,6 +63,7 @@ export class Deliverd {
60
63
  fetch: this.development ? developmentFetch(options.development) : options.fetch,
61
64
  });
62
65
  this.approvals = new Approvals(this.http);
66
+ this.gates = new Gates(this.http);
63
67
  this.reviews = new Reviews(this.http);
64
68
  this.collections = new Collections(this.http);
65
69
  /*
@@ -120,6 +124,58 @@ export class Deliverd {
120
124
  });
121
125
  return settled.toDecision();
122
126
  }
127
+ /**
128
+ * Ask whether to act, and wait if a person has to decide.
129
+ *
130
+ * The other primitives ask a person to look at work already done. This one
131
+ * asks first, and the answer comes from **policy the developer does not
132
+ * own** — which is the whole point: what needs a human is an organisation's
133
+ * decision, not a line in your code. Most calls never reach a person at all,
134
+ * because a rule already settles them.
135
+ *
136
+ * ```ts
137
+ * const decision = await deliverd.gate({
138
+ * action: "finance.refund",
139
+ * externalId: `refund:${order.id}`,
140
+ * input: { customer_id: order.customerId, amount: 1240, currency: "GBP" },
141
+ * });
142
+ * if (!decision.allowed) return;
143
+ * await stripe.refunds.create(decision.input);
144
+ * ```
145
+ *
146
+ * **Execute with `decision.input`, not your own object.** It is what the
147
+ * action's schema validated and what an approver actually saw. Passing the
148
+ * original works right up until somebody edits a value before approving, and
149
+ * then it spends an approval for £1200 on a refund of £1240.
150
+ *
151
+ * It does not throw on a refusal — a no is an answer, and `if
152
+ * (decision.allowed)` is the line that follows. It throws when the action is
153
+ * not registered, when the input does not match its schema, or when the wait
154
+ * itself failed.
155
+ *
156
+ * `wait: false` returns a pending decision immediately; `deliverd.gates`
157
+ * is the same thing with the handle exposed.
158
+ */
159
+ async gate(options) {
160
+ const { action, timeout, onPoll, signal, wait, pollIntervals, ...rest } = options;
161
+ const gate = await this.gates.create({ actionId: action, ...rest }, signal);
162
+ /*
163
+ * No wait when the caller said not to, and none when there is nothing to
164
+ * wait for — a rule that allowed or denied it has already answered, which
165
+ * is the common case and must not cost a poll.
166
+ */
167
+ if (wait === false || !gate.pending)
168
+ return gate.toDecision();
169
+ const settled = await gate.wait({
170
+ onPoll,
171
+ signal,
172
+ /* The same reasoning as `approve()`: an imaginary approver is instant, so
173
+ * a wait still running after a moment is one that never settles. */
174
+ timeout: durationOrUndefined(timeout) ?? (this.development ? 2_000 : undefined),
175
+ ...(pollIntervals ? { pollIntervals } : this.development ? { pollIntervals: FAST_POLL_SCHEDULE } : {}),
176
+ });
177
+ return settled.toDecision();
178
+ }
123
179
  /**
124
180
  * A yes or no on something small: same mechanism, lower ceremony.
125
181
  *
@@ -25,5 +25,42 @@
25
25
  * them would mean asserting a surface nobody checked at the time, which is the
26
26
  * kind of entry that reads like a fact and is a guess.
27
27
  */
28
+ /**
29
+ * Every version of this package npm has served.
30
+ *
31
+ * Written down because a test cannot reach the registry, and kept *here*
32
+ * rather than in a test because it was in two tests and went stale in both.
33
+ * `version.test.ts` used it to refuse a republish and had stopped at 0.6.2
34
+ * after 0.7.0 shipped, so a behaviour change sat under a published number.
35
+ * `release.test.ts` used the newest entry as a floor and said "0.6.1" — three
36
+ * releases low, which is not false but had stopped refusing 0.6.5, the exact
37
+ * 403 it was written to prevent.
38
+ *
39
+ * Two copies of one fact, drifting apart at different speeds. This is the
40
+ * fact; both read it, and `version.test.ts` holds it against CHANGELOG.md so
41
+ * a release that updates one and not the other fails rather than rots.
42
+ *
43
+ * **Add the version here when you publish it, not before.** An entry is a
44
+ * claim that `npm install @deliverd/sdk@x` works today.
45
+ */
46
+ export declare const PUBLISHED_TO_NPM: readonly ["0.1.0", "0.2.0", "0.3.0", "0.4.0", "0.5.0", "0.6.0", "0.6.1", "0.6.2", "0.7.0", "0.7.1"];
47
+ /**
48
+ * A fingerprint of what each *published* version recorded.
49
+ *
50
+ * The entry beside this one is a claim about a tarball that exists on a
51
+ * registry and can never change, and the guard that was supposed to hold it
52
+ * still said so in a comment — "a change to an old entry fails here" — while
53
+ * asserting only that the list has no duplicates and more than fifty items.
54
+ * Removing a name from 0.7.0 passed. The comment described a guard nobody had
55
+ * written, which is the most expensive kind of comment.
56
+ *
57
+ * So: sha256 over the entry's items joined by newlines. Editing a published
58
+ * list now means editing this too, which is not something done by accident.
59
+ *
60
+ * Only published versions appear. The working version's surface is *supposed*
61
+ * to move — freezing it would fail on the first honest addition, and a guard
62
+ * that fires on correct work is one somebody deletes.
63
+ */
64
+ export declare const FROZEN: Record<string, string>;
28
65
  export declare const RELEASED: Record<string, readonly string[]>;
29
66
  //# sourceMappingURL=released.d.ts.map
@@ -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,CA2uBtD,CAAC"}
1
+ {"version":3,"file":"released.d.ts","sourceRoot":"","sources":["../src/released.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,gBAAgB,qGAWnB,CAAC;AAEX;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAIzC,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAwoCtD,CAAC"}
package/dist/released.js CHANGED
@@ -25,6 +25,58 @@
25
25
  * them would mean asserting a surface nobody checked at the time, which is the
26
26
  * kind of entry that reads like a fact and is a guess.
27
27
  */
28
+ /**
29
+ * Every version of this package npm has served.
30
+ *
31
+ * Written down because a test cannot reach the registry, and kept *here*
32
+ * rather than in a test because it was in two tests and went stale in both.
33
+ * `version.test.ts` used it to refuse a republish and had stopped at 0.6.2
34
+ * after 0.7.0 shipped, so a behaviour change sat under a published number.
35
+ * `release.test.ts` used the newest entry as a floor and said "0.6.1" — three
36
+ * releases low, which is not false but had stopped refusing 0.6.5, the exact
37
+ * 403 it was written to prevent.
38
+ *
39
+ * Two copies of one fact, drifting apart at different speeds. This is the
40
+ * fact; both read it, and `version.test.ts` holds it against CHANGELOG.md so
41
+ * a release that updates one and not the other fails rather than rots.
42
+ *
43
+ * **Add the version here when you publish it, not before.** An entry is a
44
+ * claim that `npm install @deliverd/sdk@x` works today.
45
+ */
46
+ export const PUBLISHED_TO_NPM = [
47
+ "0.1.0",
48
+ "0.2.0",
49
+ "0.3.0",
50
+ "0.4.0",
51
+ "0.5.0",
52
+ "0.6.0",
53
+ "0.6.1",
54
+ "0.6.2",
55
+ "0.7.0",
56
+ "0.7.1",
57
+ ];
58
+ /**
59
+ * A fingerprint of what each *published* version recorded.
60
+ *
61
+ * The entry beside this one is a claim about a tarball that exists on a
62
+ * registry and can never change, and the guard that was supposed to hold it
63
+ * still said so in a comment — "a change to an old entry fails here" — while
64
+ * asserting only that the list has no duplicates and more than fifty items.
65
+ * Removing a name from 0.7.0 passed. The comment described a guard nobody had
66
+ * written, which is the most expensive kind of comment.
67
+ *
68
+ * So: sha256 over the entry's items joined by newlines. Editing a published
69
+ * list now means editing this too, which is not something done by accident.
70
+ *
71
+ * Only published versions appear. The working version's surface is *supposed*
72
+ * to move — freezing it would fail on the first honest addition, and a guard
73
+ * that fires on correct work is one somebody deletes.
74
+ */
75
+ export const FROZEN = {
76
+ "0.7.0": "da25740012f88b6a29cc963d8b354ab6b123c5e2e599c200dc546df351d84d25",
77
+ // Identical to 0.7.0's on purpose: 0.7.1 changed behaviour, not surface.
78
+ "0.7.1": "da25740012f88b6a29cc963d8b354ab6b123c5e2e599c200dc546df351d84d25",
79
+ };
28
80
  export const RELEASED = {
29
81
  /*
30
82
  * The first recorded surface, and a minor rather than a patch.
@@ -772,4 +824,417 @@ export const RELEASED = {
772
824
  "event:schedule.due",
773
825
  "verifySignature",
774
826
  ],
827
+ /*
828
+ * The working version, and nothing is published under it yet.
829
+ *
830
+ * 0.7.1 went to npm, which makes `package.json` at 0.7.1 the exact state the
831
+ * guard below refuses: new code cannot land under a number the registry has
832
+ * already served, because it succeeds everywhere except `npm install`. So
833
+ * the working version steps forward the moment a release lands, and this
834
+ * entry starts as a copy of what shipped.
835
+ *
836
+ * It carries no CHANGELOG.md heading on purpose. There is nothing to say
837
+ * about 0.7.2 yet; the heading arrives with the first change that needs
838
+ * describing, which is also when this list stops matching 0.7.1's. If that
839
+ * first change *adds* to the surface, the number is wrong — additions are a
840
+ * minor, and `version.test.ts` says so rather than leaving it to whoever
841
+ * remembers.
842
+ */
843
+ "0.8.0": [
844
+ "Approval",
845
+ "ApprovalData.approvalsSoFar",
846
+ "ApprovalData.approvers",
847
+ "ApprovalData.createdAt",
848
+ "ApprovalData.decidedAt",
849
+ "ApprovalData.decidedBy",
850
+ "ApprovalData.decidedById",
851
+ "ApprovalData.description",
852
+ "ApprovalData.expiresAt",
853
+ "ApprovalData.externalId",
854
+ "ApprovalData.factors",
855
+ "ApprovalData.id",
856
+ "ApprovalData.links",
857
+ "ApprovalData.metadata",
858
+ "ApprovalData.note",
859
+ "ApprovalData.questions",
860
+ "ApprovalData.reportId",
861
+ "ApprovalData.requestedBy",
862
+ "ApprovalData.requiredApprovals",
863
+ "ApprovalData.risk",
864
+ "ApprovalData.status",
865
+ "ApprovalData.title",
866
+ "ApprovalData.url",
867
+ "ApprovalFactor.detail",
868
+ "ApprovalFactor.label",
869
+ "ApprovalFactor.status",
870
+ "ApprovalLink.label",
871
+ "ApprovalLink.url",
872
+ "ApprovalQuestion.answer",
873
+ "ApprovalQuestion.answeredAt",
874
+ "ApprovalQuestion.askedAt",
875
+ "ApprovalQuestion.id",
876
+ "ApprovalQuestion.question",
877
+ "Approvals",
878
+ "ApproveOptions",
879
+ "ClientOptions",
880
+ "CollectOptions",
881
+ "CollectWaitOptions",
882
+ "CollectedAnswers.answers",
883
+ "CollectedAnswers.collection",
884
+ "CollectedAnswers.complete",
885
+ "CollectedAnswers.id",
886
+ "CollectedAnswers.responses",
887
+ "CollectedAnswers.status",
888
+ "CollectedAnswers.url",
889
+ "Collection",
890
+ "CollectionData.askedCount",
891
+ "CollectionData.createdAt",
892
+ "CollectionData.dueAt",
893
+ "CollectionData.expiresAt",
894
+ "CollectionData.externalId",
895
+ "CollectionData.id",
896
+ "CollectionData.instructions",
897
+ "CollectionData.metadata",
898
+ "CollectionData.questions",
899
+ "CollectionData.reportId",
900
+ "CollectionData.requestedBy",
901
+ "CollectionData.requiredResponses",
902
+ "CollectionData.responses",
903
+ "CollectionData.settledAt",
904
+ "CollectionData.status",
905
+ "CollectionData.submittedCount",
906
+ "CollectionData.title",
907
+ "CollectionData.url",
908
+ "CollectionQuestion.help",
909
+ "CollectionQuestion.id",
910
+ "CollectionQuestion.kind",
911
+ "CollectionQuestion.options",
912
+ "CollectionQuestion.prompt",
913
+ "CollectionQuestion.required",
914
+ "CollectionReply.answers",
915
+ "CollectionReply.respondent",
916
+ "CollectionReply.status",
917
+ "CollectionReply.submittedAt",
918
+ "Collections",
919
+ "CommentThread.messages",
920
+ "CommentThread.quote",
921
+ "CommentThread.status",
922
+ "CommentThread.threadId",
923
+ "Comments",
924
+ "CreateApprovalInput.approvers",
925
+ "CreateApprovalInput.description",
926
+ "CreateApprovalInput.expiresAt",
927
+ "CreateApprovalInput.externalId",
928
+ "CreateApprovalInput.factors",
929
+ "CreateApprovalInput.flowId",
930
+ "CreateApprovalInput.links",
931
+ "CreateApprovalInput.metadata",
932
+ "CreateApprovalInput.reportId",
933
+ "CreateApprovalInput.risk",
934
+ "CreateApprovalInput.title",
935
+ "CreateCollectionInput.dueAt",
936
+ "CreateCollectionInput.expiresAt",
937
+ "CreateCollectionInput.externalId",
938
+ "CreateCollectionInput.flowId",
939
+ "CreateCollectionInput.instructions",
940
+ "CreateCollectionInput.metadata",
941
+ "CreateCollectionInput.questions",
942
+ "CreateCollectionInput.reportId",
943
+ "CreateCollectionInput.requiredResponses",
944
+ "CreateCollectionInput.respondents",
945
+ "CreateCollectionInput.title",
946
+ "CreateFlowInput.description",
947
+ "CreateFlowInput.externalId",
948
+ "CreateFlowInput.metadata",
949
+ "CreateFlowInput.title",
950
+ "CreateFlowInput.workspaceId",
951
+ "CreateGateInput.actionId",
952
+ "CreateGateInput.environment",
953
+ "CreateGateInput.externalId",
954
+ "CreateGateInput.flowId",
955
+ "CreateGateInput.input",
956
+ "CreateGateInput.reason",
957
+ "CreateReviewInput.expiresAt",
958
+ "CreateReviewInput.externalId",
959
+ "CreateReviewInput.flowId",
960
+ "CreateReviewInput.instructions",
961
+ "CreateReviewInput.metadata",
962
+ "CreateReviewInput.reportId",
963
+ "CreateReviewInput.requiredApprovals",
964
+ "CreateReviewInput.reviewers",
965
+ "CreateReviewInput.title",
966
+ "CreateReviewInput.versionId",
967
+ "DEFAULT_BASE_URL",
968
+ "DEFAULT_EXPIRY",
969
+ "DELIVERY_HEADER",
970
+ "Decision.approval",
971
+ "Decision.approved",
972
+ "Decision.decidedAt",
973
+ "Decision.decidedBy",
974
+ "Decision.decidedById",
975
+ "Decision.id",
976
+ "Decision.note",
977
+ "Decision.status",
978
+ "Decision.url",
979
+ "Deliverd",
980
+ "DeliverdError",
981
+ "DeliverdOptions",
982
+ "DeliverdTimeoutError",
983
+ "Duration",
984
+ "EVENT_HEADER",
985
+ "EvidenceEvent.actor",
986
+ "EvidenceEvent.actorType",
987
+ "EvidenceEvent.at",
988
+ "EvidenceEvent.event",
989
+ "EvidenceEvent.metadata",
990
+ "EvidenceEvent.step",
991
+ "EvidenceOutcome.at",
992
+ "EvidenceOutcome.note",
993
+ "EvidenceOutcome.said",
994
+ "EvidenceOutcome.who",
995
+ "EvidencePack.generatedAt",
996
+ "EvidencePack.generatedBy",
997
+ "EvidencePack.integrity",
998
+ "EvidencePack.organisation",
999
+ "EvidencePack.packVersion",
1000
+ "EvidencePack.steps",
1001
+ "EvidencePack.subject",
1002
+ "EvidencePack.summary",
1003
+ "EvidencePack.timeline",
1004
+ "EvidenceStep.asked",
1005
+ "EvidenceStep.createdAt",
1006
+ "EvidenceStep.detail",
1007
+ "EvidenceStep.id",
1008
+ "EvidenceStep.kind",
1009
+ "EvidenceStep.outcomes",
1010
+ "EvidenceStep.requestedBy",
1011
+ "EvidenceStep.requestedByAgent",
1012
+ "EvidenceStep.settledAt",
1013
+ "EvidenceStep.status",
1014
+ "EvidenceStep.title",
1015
+ "EvidenceStep.url",
1016
+ "Flow",
1017
+ "FlowData.allSettled",
1018
+ "FlowData.createdAt",
1019
+ "FlowData.description",
1020
+ "FlowData.externalId",
1021
+ "FlowData.id",
1022
+ "FlowData.memberCount",
1023
+ "FlowData.members",
1024
+ "FlowData.metadata",
1025
+ "FlowData.openCount",
1026
+ "FlowData.settledAt",
1027
+ "FlowData.startedBy",
1028
+ "FlowData.status",
1029
+ "FlowData.timeline",
1030
+ "FlowData.title",
1031
+ "FlowData.url",
1032
+ "FlowEvent.actor",
1033
+ "FlowEvent.actorType",
1034
+ "FlowEvent.at",
1035
+ "FlowEvent.event",
1036
+ "FlowEvent.resourceId",
1037
+ "FlowEvent.resourceType",
1038
+ "FlowMember.createdAt",
1039
+ "FlowMember.id",
1040
+ "FlowMember.kind",
1041
+ "FlowMember.open",
1042
+ "FlowMember.status",
1043
+ "FlowMember.title",
1044
+ "FlowPrimitives",
1045
+ "Flows",
1046
+ "Gate",
1047
+ "GateData.allowed",
1048
+ "GateData.approvalId",
1049
+ "GateData.approvalUrl",
1050
+ "GateData.basis",
1051
+ "GateData.id",
1052
+ "GateData.input",
1053
+ "GateData.outcome",
1054
+ "GateData.policyVersionId",
1055
+ "GateData.reason",
1056
+ "GateData.reused",
1057
+ "GateData.rule",
1058
+ "GateData.settledAt",
1059
+ "GateData.status",
1060
+ "GateDecision.allowed",
1061
+ "GateDecision.approvalUrl",
1062
+ "GateDecision.gate",
1063
+ "GateDecision.id",
1064
+ "GateDecision.input",
1065
+ "GateDecision.reason",
1066
+ "GateDecision.rule",
1067
+ "GateDecision.status",
1068
+ "GateOptions",
1069
+ "GateWaitOptions",
1070
+ "Gates",
1071
+ "InlineFile.content",
1072
+ "InlineFile.encoding",
1073
+ "InlineFile.path",
1074
+ "ListApprovalsInput.cursor",
1075
+ "ListApprovalsInput.externalId",
1076
+ "ListApprovalsInput.limit",
1077
+ "ListApprovalsInput.status",
1078
+ "ListCollectionsInput.cursor",
1079
+ "ListCollectionsInput.externalId",
1080
+ "ListCollectionsInput.limit",
1081
+ "ListCollectionsInput.status",
1082
+ "ListFlowsInput.cursor",
1083
+ "ListFlowsInput.externalId",
1084
+ "ListFlowsInput.limit",
1085
+ "ListFlowsInput.status",
1086
+ "ListReviewsInput.cursor",
1087
+ "ListReviewsInput.externalId",
1088
+ "ListReviewsInput.limit",
1089
+ "ListReviewsInput.reportId",
1090
+ "ListReviewsInput.status",
1091
+ "OpenThread.author",
1092
+ "OpenThread.authorType",
1093
+ "OpenThread.lastActivityAt",
1094
+ "OpenThread.messages",
1095
+ "OpenThread.quote",
1096
+ "OpenThread.reportId",
1097
+ "OpenThread.reportOwnerId",
1098
+ "OpenThread.reportSlug",
1099
+ "OpenThread.reportTitle",
1100
+ "OpenThread.threadId",
1101
+ "OrgAnalytics.activeReports",
1102
+ "OrgAnalytics.days",
1103
+ "OrgAnalytics.externallySharedReports",
1104
+ "OrgAnalytics.inactiveReports",
1105
+ "OrgAnalytics.publicReports",
1106
+ "OrgAnalytics.publishesInPeriod",
1107
+ "OrgAnalytics.topReports",
1108
+ "OrgAnalytics.totalViews",
1109
+ "OrgAnalytics.uniqueViewers",
1110
+ "POLL_SCHEDULE",
1111
+ "PublishReportInput.audience",
1112
+ "PublishReportInput.changeSummary",
1113
+ "PublishReportInput.classification",
1114
+ "PublishReportInput.content",
1115
+ "PublishReportInput.description",
1116
+ "PublishReportInput.expectedVersion",
1117
+ "PublishReportInput.files",
1118
+ "PublishReportInput.living",
1119
+ "PublishReportInput.slug",
1120
+ "PublishReportInput.sourceModel",
1121
+ "PublishReportInput.sourceTool",
1122
+ "PublishReportInput.title",
1123
+ "PublishReportInput.uploadId",
1124
+ "PublishReportInput.workspaceId",
1125
+ "PublishResult.approval",
1126
+ "PublishResult.report",
1127
+ "PublishResult.status",
1128
+ "PublishResult.version",
1129
+ "PublishResult.warnings",
1130
+ "QuestionInput.help",
1131
+ "QuestionInput.kind",
1132
+ "QuestionInput.options",
1133
+ "QuestionInput.prompt",
1134
+ "QuestionInput.required",
1135
+ "ReportAnalytics.byDay",
1136
+ "ReportAnalytics.byVersion",
1137
+ "ReportAnalytics.externalViewers",
1138
+ "ReportAnalytics.firstViewedAt",
1139
+ "ReportAnalytics.internalViewers",
1140
+ "ReportAnalytics.lastViewedAt",
1141
+ "ReportAnalytics.recentViewers",
1142
+ "ReportAnalytics.reportId",
1143
+ "ReportAnalytics.title",
1144
+ "ReportAnalytics.totalViews",
1145
+ "ReportAnalytics.uniqueViewers",
1146
+ "ReportData.currentVersion",
1147
+ "ReportData.id",
1148
+ "ReportData.slug",
1149
+ "ReportData.status",
1150
+ "ReportData.title",
1151
+ "ReportData.url",
1152
+ "Reports",
1153
+ "Review",
1154
+ "ReviewData.createdAt",
1155
+ "ReviewData.expiresAt",
1156
+ "ReviewData.externalId",
1157
+ "ReviewData.id",
1158
+ "ReviewData.instructions",
1159
+ "ReviewData.metadata",
1160
+ "ReviewData.reportId",
1161
+ "ReviewData.requestedBy",
1162
+ "ReviewData.requiredApprovals",
1163
+ "ReviewData.reviewers",
1164
+ "ReviewData.settledAt",
1165
+ "ReviewData.status",
1166
+ "ReviewData.threadCount",
1167
+ "ReviewData.title",
1168
+ "ReviewData.url",
1169
+ "ReviewData.verdicts",
1170
+ "ReviewData.versionId",
1171
+ "ReviewOptions",
1172
+ "ReviewOutcome.approved",
1173
+ "ReviewOutcome.id",
1174
+ "ReviewOutcome.review",
1175
+ "ReviewOutcome.status",
1176
+ "ReviewOutcome.threadCount",
1177
+ "ReviewOutcome.url",
1178
+ "ReviewOutcome.verdicts",
1179
+ "ReviewVerdict.at",
1180
+ "ReviewVerdict.by",
1181
+ "ReviewVerdict.note",
1182
+ "ReviewVerdict.verdict",
1183
+ "ReviewWaitOptions",
1184
+ "ReviewerRef.id",
1185
+ "ReviewerRef.kind",
1186
+ "ReviewerRef.label",
1187
+ "Reviews",
1188
+ "SIGNATURE_HEADER",
1189
+ "ScheduleSummary.agentId",
1190
+ "ScheduleSummary.agentName",
1191
+ "ScheduleSummary.currentVersion",
1192
+ "ScheduleSummary.due",
1193
+ "ScheduleSummary.dueSince",
1194
+ "ScheduleSummary.enabled",
1195
+ "ScheduleSummary.id",
1196
+ "ScheduleSummary.lastRunAt",
1197
+ "ScheduleSummary.nextRunAt",
1198
+ "ScheduleSummary.recurrence",
1199
+ "ScheduleSummary.reportId",
1200
+ "ScheduleSummary.reportSlug",
1201
+ "ScheduleSummary.reportTitle",
1202
+ "ScheduleSummary.reportUrl",
1203
+ "Schedules",
1204
+ "SendResult.alreadyHadAccess",
1205
+ "SendResult.sent",
1206
+ "TOLERANCE_SECONDS",
1207
+ "WaitOptions",
1208
+ "WebhookEvent.data",
1209
+ "WebhookEvent.event",
1210
+ "WebhookEvent.sentAt",
1211
+ "WebhookEvent.test",
1212
+ "Webhooks",
1213
+ "constructEvent",
1214
+ "deliverd",
1215
+ "durationMs",
1216
+ "event:access.requested",
1217
+ "event:approval.answered",
1218
+ "event:approval.approved",
1219
+ "event:approval.escalated",
1220
+ "event:approval.expired",
1221
+ "event:approval.question",
1222
+ "event:approval.rejected",
1223
+ "event:approval.requested",
1224
+ "event:collection.completed",
1225
+ "event:collection.requested",
1226
+ "event:comment.created",
1227
+ "event:flow.completed",
1228
+ "event:gate.denied",
1229
+ "event:publish.held",
1230
+ "event:report.published",
1231
+ "event:report.shared",
1232
+ "event:report.updated",
1233
+ "event:report.viewed",
1234
+ "event:review.approved",
1235
+ "event:review.changes_requested",
1236
+ "event:review.requested",
1237
+ "event:schedule.due",
1238
+ "verifySignature",
1239
+ ],
775
1240
  };