@fantastic.dev/better-stripe 0.101.0 → 0.103.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.
Files changed (55) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +1 -1
  3. package/dist/client/billing/renewalAttach/internal/c10/appendAck.d.ts +7 -0
  4. package/dist/client/billing/renewalAttach/internal/c10/appendAck.d.ts.map +1 -1
  5. package/dist/client/billing/renewalAttach/internal/c10/appendAck.js +13 -1
  6. package/dist/client/billing/renewalAttach/internal/c10/appendAck.js.map +1 -1
  7. package/dist/client/billing/renewalAttach/internal/c10/configureEvents.d.ts +23 -0
  8. package/dist/client/billing/renewalAttach/internal/c10/configureEvents.d.ts.map +1 -1
  9. package/dist/client/billing/renewalAttach/internal/c10/configureEvents.js +34 -2
  10. package/dist/client/billing/renewalAttach/internal/c10/configureEvents.js.map +1 -1
  11. package/dist/client/billing/renewalAttach/internal/producer/classOwnedActionRoot.d.ts +2 -0
  12. package/dist/client/billing/renewalAttach/internal/producer/classOwnedActionRoot.d.ts.map +1 -1
  13. package/dist/client/billing/renewalAttach/internal/producer/classOwnedActionRoot.js +16 -0
  14. package/dist/client/billing/renewalAttach/internal/producer/classOwnedActionRoot.js.map +1 -1
  15. package/dist/client/billing/renewalAttach/internal/producer/configureAdmission.d.ts +7 -0
  16. package/dist/client/billing/renewalAttach/internal/producer/configureAdmission.d.ts.map +1 -0
  17. package/dist/client/billing/renewalAttach/internal/producer/configureAdmission.js +117 -0
  18. package/dist/client/billing/renewalAttach/internal/producer/configureAdmission.js.map +1 -0
  19. package/dist/client/billing/renewalAttach/internal/producer/configureJournalData.d.ts +53 -0
  20. package/dist/client/billing/renewalAttach/internal/producer/configureJournalData.d.ts.map +1 -0
  21. package/dist/client/billing/renewalAttach/internal/producer/configureJournalData.js +198 -0
  22. package/dist/client/billing/renewalAttach/internal/producer/configureJournalData.js.map +1 -0
  23. package/dist/client/billing/renewalAttach/internal/producer/configureJournalWork.d.ts +6 -0
  24. package/dist/client/billing/renewalAttach/internal/producer/configureJournalWork.d.ts.map +1 -0
  25. package/dist/client/billing/renewalAttach/internal/producer/configureJournalWork.js +49 -0
  26. package/dist/client/billing/renewalAttach/internal/producer/configureJournalWork.js.map +1 -0
  27. package/dist/client/billing/renewalAttach/internal/producer/configureLineage.d.ts +959 -0
  28. package/dist/client/billing/renewalAttach/internal/producer/configureLineage.d.ts.map +1 -0
  29. package/dist/client/billing/renewalAttach/internal/producer/configureLineage.js +115 -0
  30. package/dist/client/billing/renewalAttach/internal/producer/configureLineage.js.map +1 -0
  31. package/dist/client/billing/renewalAttach/internal/producer/invocationProducer.d.ts +2 -0
  32. package/dist/client/billing/renewalAttach/internal/producer/invocationProducer.d.ts.map +1 -1
  33. package/dist/client/billing/renewalAttach/internal/producer/invocationProducer.js +4 -0
  34. package/dist/client/billing/renewalAttach/internal/producer/invocationProducer.js.map +1 -1
  35. package/dist/client/billing/renewalAttach/internal/producer/lineageAuthority.d.ts +1 -0
  36. package/dist/client/billing/renewalAttach/internal/producer/lineageAuthority.d.ts.map +1 -1
  37. package/dist/client/billing/renewalAttach/internal/producer/lineageAuthority.js +1 -0
  38. package/dist/client/billing/renewalAttach/internal/producer/lineageAuthority.js.map +1 -1
  39. package/docs/renewal-context-reads.md +81 -3
  40. package/package.json +1 -1
  41. package/src/client/billing/renewalAttach/internal/c10/appendAck.ts +17 -0
  42. package/src/client/billing/renewalAttach/internal/c10/configureEvents.ts +45 -2
  43. package/src/client/billing/renewalAttach/internal/producer/classOwnedActionRoot.ts +21 -0
  44. package/src/client/billing/renewalAttach/internal/producer/configureAdmission.ts +179 -0
  45. package/src/client/billing/renewalAttach/internal/producer/configureJournalData.ts +248 -0
  46. package/src/client/billing/renewalAttach/internal/producer/configureJournalWork.ts +53 -0
  47. package/src/client/billing/renewalAttach/internal/producer/configureLineage.ts +166 -0
  48. package/src/client/billing/renewalAttach/internal/producer/invocationProducer.ts +13 -0
  49. package/src/client/billing/renewalAttach/internal/producer/lineageAuthority.ts +2 -0
  50. package/src/client/billing/renewalAttach/internal/producer/producerConfigureAdmission.integration.test.ts +203 -0
  51. package/src/client/billing/renewalAttach/internal/producer/producerConfigureChannelControls.integration.test.ts +542 -0
  52. package/src/client/billing/renewalAttach/internal/producer/producerConfigureChannels.integration.test.ts +321 -0
  53. package/src/client/billing/renewalAttach/internal/producer/producerConfigureControls.integration.test.ts +566 -0
  54. package/src/client/billing/renewalAttach/internal/test-fixtures/producerConfigureAdmission.ts +353 -0
  55. package/src/client/billing/renewalAttach/internal/test-fixtures/producerInitialOperation.ts +61 -3
@@ -0,0 +1,248 @@
1
+ import { types } from "node:util";
2
+ import type { Value } from "convex/values";
3
+ import {
4
+ admitJournalValue,
5
+ canonicalJournalRecord,
6
+ journalReservationMaterial,
7
+ } from "../../../../../shared/renewalOperationJournal.js";
8
+ import { closed } from "../operations/types.js";
9
+
10
+ export function configureAdmissionStop(): never {
11
+ throw Error("CONFIGURE_ADMISSION_UNBOUND");
12
+ }
13
+ export function requireConfigure(value: unknown): asserts value {
14
+ if (!value) configureAdmissionStop();
15
+ }
16
+ export function text(value: unknown): string {
17
+ requireConfigure(typeof value === "string" && value.length > 0);
18
+ return value;
19
+ }
20
+ export function object(raw: unknown): Record<string, unknown> {
21
+ requireConfigure(
22
+ raw &&
23
+ typeof raw === "object" &&
24
+ !types.isProxy(raw) &&
25
+ !Array.isArray(raw),
26
+ );
27
+ const keys = Reflect.ownKeys(raw);
28
+ requireConfigure(
29
+ keys.length <= 10000 && keys.every((key) => typeof key === "string"),
30
+ );
31
+ return closed(
32
+ raw,
33
+ keys.filter((key): key is string => typeof key === "string"),
34
+ );
35
+ }
36
+ /** Complete own-DATA equality, then the actual component return-value byte limit.
37
+ * Expected values are independently constructed finite wire DATA, not API types.
38
+ */
39
+ export function matchConfigureDATA(raw: unknown, expected: unknown): void {
40
+ let nodes = 0;
41
+ function match(value: unknown, wanted: unknown, depth: number): void {
42
+ requireConfigure(++nodes <= 10000 && depth <= 40 && !types.isProxy(value));
43
+ if (wanted === null || typeof wanted !== "object") {
44
+ requireConfigure(value === wanted);
45
+ return;
46
+ }
47
+ if (Array.isArray(wanted)) {
48
+ requireConfigure(
49
+ Array.isArray(value) &&
50
+ Object.getPrototypeOf(value) === Array.prototype &&
51
+ value.length === wanted.length,
52
+ );
53
+ const own = Reflect.ownKeys(value);
54
+ requireConfigure(own.length === wanted.length + 1);
55
+ for (let index = 0; index < wanted.length; index++) {
56
+ const d = Object.getOwnPropertyDescriptor(value, String(index));
57
+ requireConfigure(d && d.enumerable && "value" in d);
58
+ match(d.value, wanted[index], depth + 1);
59
+ }
60
+ return;
61
+ }
62
+ const actual = closed(value, Object.keys(wanted));
63
+ for (const [key, child] of Object.entries(wanted))
64
+ match(actual[key], child, depth + 1);
65
+ }
66
+ match(raw, expected, 0);
67
+ // The complete finite graph has just been matched, before this DATA-only cast.
68
+ admitJournalValue(expected as Value);
69
+ }
70
+ const reservationKeys = [
71
+ "operationId",
72
+ "attemptId",
73
+ "payloadId",
74
+ "authorizationScope",
75
+ "authorizationId",
76
+ "authorizationRevision",
77
+ "logicalOperationId",
78
+ "requestBinding",
79
+ "key",
80
+ "apiVersion",
81
+ "accountJSON",
82
+ "firstDispatchedAt",
83
+ "ordinal",
84
+ "preparedRevision",
85
+ "committedRevision",
86
+ "recordJSON",
87
+ "stage",
88
+ "recordVersion",
89
+ "timingPolicyJSON",
90
+ ];
91
+ /** Rebuild the complete current wire contract; generated references stay untouched. */
92
+ export function captureOperationalReservation(
93
+ raw: unknown,
94
+ stage: "attach" | "configure",
95
+ ) {
96
+ const own = closed(raw, reservationKeys);
97
+ const full = canonicalJournalRecord(text(own.recordJSON));
98
+ const material = journalReservationMaterial(full);
99
+ requireConfigure("recordVersion" in material && material.stage === stage);
100
+ const id = (value: unknown) => {
101
+ const result = text(value);
102
+ requireConfigure(result.length <= 255);
103
+ return result;
104
+ };
105
+ const result = Object.freeze({
106
+ operationId: id(own.operationId),
107
+ attemptId: id(own.attemptId),
108
+ payloadId: id(own.payloadId),
109
+ authorizationScope: full.authorizationScope,
110
+ authorizationId: full.authorizationId,
111
+ authorizationRevision: full.authorizationRevision,
112
+ logicalOperationId: full.logicalOperationId,
113
+ requestBinding: full.requestBinding,
114
+ ordinal: 1 as const,
115
+ preparedRevision: 0 as const,
116
+ committedRevision: 1 as const,
117
+ recordJSON: full.json,
118
+ ...material,
119
+ stage,
120
+ });
121
+ matchConfigureDATA(raw, result);
122
+ return result;
123
+ }
124
+ export type OperationalReservationDATA = ReturnType<
125
+ typeof captureOperationalReservation
126
+ >;
127
+ export function configureBasisDescriptor(
128
+ reservation: OperationalReservationDATA,
129
+ basisJSON: string,
130
+ ) {
131
+ return {
132
+ version: 1 as const,
133
+ attemptId: reservation.attemptId,
134
+ sourcePayloadId: reservation.payloadId,
135
+ stage: reservation.stage,
136
+ policyJSON: reservation.timingPolicyJSON,
137
+ basisJSON,
138
+ };
139
+ }
140
+ export function checkOperationLoad(
141
+ raw: unknown,
142
+ reservation: OperationalReservationDATA,
143
+ basisJSON: string,
144
+ allowUnbound = false,
145
+ ) {
146
+ const own = closed(raw, [
147
+ "operationId",
148
+ "recordJSON",
149
+ "revision",
150
+ "recordVersion",
151
+ "activeAttempt",
152
+ "initialBasis",
153
+ ]);
154
+ const { recordJSON, ...summary } = reservation;
155
+ const basis =
156
+ allowUnbound && own.initialBasis === null
157
+ ? null
158
+ : configureBasisDescriptor(reservation, basisJSON);
159
+ matchConfigureDATA(raw, {
160
+ operationId: reservation.operationId,
161
+ recordJSON,
162
+ revision: 1,
163
+ recordVersion: 2,
164
+ activeAttempt: summary,
165
+ initialBasis: basis,
166
+ });
167
+ }
168
+ export function checkEmptyConfigureHistory(
169
+ raw: unknown,
170
+ reservation: OperationalReservationDATA,
171
+ ) {
172
+ matchConfigureDATA(raw, { reservation, events: [] });
173
+ }
174
+ export function captureParentHistory(
175
+ raw: unknown,
176
+ reservation: OperationalReservationDATA,
177
+ ) {
178
+ const own = closed(raw, ["reservation", "events"]);
179
+ requireConfigure(
180
+ !types.isProxy(own.events) &&
181
+ Array.isArray(own.events) &&
182
+ Object.getPrototypeOf(own.events) === Array.prototype &&
183
+ own.events.length === 3,
184
+ );
185
+ const events = Array.from({ length: 3 }, (_, index) => {
186
+ const descriptor = Object.getOwnPropertyDescriptor(
187
+ own.events,
188
+ String(index),
189
+ );
190
+ requireConfigure(
191
+ descriptor && descriptor.enumerable && "value" in descriptor,
192
+ );
193
+ const event = closed(descriptor.value, [
194
+ "operationId",
195
+ "attemptId",
196
+ "stage",
197
+ "sourcePayloadId",
198
+ "sequence",
199
+ "binding",
200
+ "payloadId",
201
+ "eventId",
202
+ ]);
203
+ return {
204
+ operationId: reservation.operationId,
205
+ attemptId: reservation.attemptId,
206
+ stage: "attach" as const,
207
+ sourcePayloadId: reservation.payloadId,
208
+ sequence:
209
+ index === 0 ? (1 as const) : index === 1 ? (2 as const) : (3 as const),
210
+ binding: text(event.binding),
211
+ payloadId: text(event.payloadId),
212
+ eventId: text(event.eventId),
213
+ };
214
+ });
215
+ requireConfigure(
216
+ new Set(events.map((event) => event.eventId)).size === 3 &&
217
+ new Set(events.map((event) => event.payloadId)).size === 3,
218
+ );
219
+ matchConfigureDATA(raw, { reservation, events });
220
+ return events;
221
+ }
222
+ export function checkParentAcknowledgement(
223
+ raw: unknown,
224
+ reservation: OperationalReservationDATA,
225
+ events: ReturnType<typeof captureParentHistory>,
226
+ receiptJSON: string,
227
+ receiptBinding: string,
228
+ ) {
229
+ const own = closed(raw, ["retention", "receiptJSON"]);
230
+ const retained = object(own.retention);
231
+ matchConfigureDATA(raw, {
232
+ receiptJSON,
233
+ retention: {
234
+ status: "retained",
235
+ operationId: reservation.operationId,
236
+ schemaVersion: 1,
237
+ stage: "attach",
238
+ attemptId: reservation.attemptId,
239
+ sourcePayloadId: reservation.payloadId,
240
+ dispatchEventId: events[0].eventId,
241
+ dispatchPayloadId: events[0].payloadId,
242
+ responseEventId: events[1].eventId,
243
+ responsePayloadId: events[1].payloadId,
244
+ receiptPayloadId: text(retained.receiptPayloadId),
245
+ receiptBinding,
246
+ },
247
+ });
248
+ }
@@ -0,0 +1,53 @@
1
+ import { readConfigureLineage } from "./configureLineage.js";
2
+ import { requireConfigure } from "./configureJournalData.js";
3
+
4
+ const journals = new WeakMap<object, ReturnType<typeof construct>>();
5
+ function construct(token: object) {
6
+ const original = readConfigureLineage(token);
7
+ let pending = 0;
8
+ function gate() {
9
+ const current = readConfigureLineage(token);
10
+ requireConfigure(
11
+ current.journal === original.journal &&
12
+ current.originalReservation === original.originalReservation &&
13
+ current.owner === original.owner,
14
+ );
15
+ }
16
+ return Object.freeze({
17
+ captureSend() {
18
+ requireConfigure(arguments.length === 0);
19
+ gate();
20
+ // Original class-owned object custody; captured reservation DATA cannot send.
21
+ const send = original.journal.createC10Send(original.originalReservation);
22
+ return async (
23
+ record: Parameters<typeof send>[0],
24
+ ack: Parameters<typeof send>[1],
25
+ ) => {
26
+ gate();
27
+ pending++;
28
+ try {
29
+ await send(record, ack);
30
+ gate();
31
+ } finally {
32
+ pending--;
33
+ }
34
+ };
35
+ },
36
+ idle() {
37
+ requireConfigure(arguments.length === 0);
38
+ gate();
39
+ return pending === 0;
40
+ },
41
+ });
42
+ }
43
+ /** Actual RPC settlement is tracked independently of channel closure or timeout. */
44
+ export function journalWorkForConfigureLineage(token: object) {
45
+ requireConfigure(arguments.length === 1);
46
+ readConfigureLineage(token);
47
+ let work = journals.get(token);
48
+ if (!work) {
49
+ work = construct(token);
50
+ journals.set(token, work);
51
+ }
52
+ return work;
53
+ }
@@ -0,0 +1,166 @@
1
+ import { consumeInitialClassReservation } from "../operationJournal.js";
2
+ import { readInitialLineage } from "./lineageAuthority.js";
3
+ import { readAttachAcknowledgementForLineage } from "./attachAcknowledgement.js";
4
+ import { ownerForInitialLineage } from "./ownerFactory.js";
5
+ import { journalWorkForInitialLineage } from "./journalWorkFactory.js";
6
+ import { checkConfigureJournalAssociation } from "./classOwnedActionRoot.js";
7
+ import { captureConfigureSource } from "../c10/eventCapture.js";
8
+ import { canonicalInitialBasis } from "../../../../../shared/renewalOperationJournal.js";
9
+ import { closed } from "../operations/types.js";
10
+ import {
11
+ captureOperationalReservation,
12
+ matchConfigureDATA,
13
+ requireConfigure,
14
+ object,
15
+ text,
16
+ } from "./configureJournalData.js";
17
+
18
+ type Parent = ReturnType<typeof readInitialLineage>;
19
+ export type ConfigureAdmission = Readonly<{
20
+ owner: ReturnType<typeof ownerForInitialLineage>;
21
+ basisJSON: string;
22
+ operationalAuthority: false;
23
+ }>;
24
+ type State = {
25
+ phase: "pending" | "ready" | "failed";
26
+ parentToken: object;
27
+ parent: Parent;
28
+ owner: ConfigureAdmission["owner"];
29
+ acknowledgement: ReturnType<typeof readAttachAcknowledgementForLineage>;
30
+ consumed: ReturnType<typeof consumeInitialClassReservation>;
31
+ reservation: ReturnType<typeof captureOperationalReservation>;
32
+ parentReservation: ReturnType<typeof captureOperationalReservation>;
33
+ configuration: ReturnType<typeof captureConfigureSource>;
34
+ source: Record<string, unknown>;
35
+ original: Record<string, unknown>;
36
+ receiptJSON: string;
37
+ receiptBinding: string;
38
+ };
39
+ const lineages = new WeakMap<object, State>();
40
+
41
+ /** Original fresh CAS custody is spent before admission reflection or awaits. */
42
+ export function consumeConfigureLineage(
43
+ parentToken: object,
44
+ call: unknown,
45
+ journal: unknown,
46
+ arity: number,
47
+ ): ConfigureAdmission {
48
+ const consumed = consumeInitialClassReservation(call, journal);
49
+ requireConfigure(arity === 2);
50
+ const parent = readInitialLineage(parentToken);
51
+ const acknowledgement = readAttachAcknowledgementForLineage(parentToken);
52
+ const owner = ownerForInitialLineage(parentToken);
53
+ owner.check();
54
+ checkConfigureJournalAssociation(parent.binding, consumed.binding);
55
+ const reservation = captureOperationalReservation(
56
+ consumed.reservation,
57
+ "configure",
58
+ );
59
+ const parentReservation = captureOperationalReservation(
60
+ parent.reservation,
61
+ "attach",
62
+ );
63
+ const original = object(JSON.parse(reservation.recordJSON));
64
+ const parentOriginal = object(JSON.parse(parentReservation.recordJSON));
65
+ const source = closed(original.configureRecord, [
66
+ "configuration",
67
+ "request",
68
+ "attachReceipt",
69
+ "originalBundle",
70
+ ]);
71
+ const configuration = captureConfigureSource(source.configuration);
72
+ matchConfigureDATA(source.configuration, configuration);
73
+ const receipt = object(acknowledgement.receipt);
74
+ const receiptJSON = JSON.stringify(acknowledgement.receipt);
75
+ const receiptBinding = text(receipt.binding);
76
+ matchConfigureDATA(original.parentAttachment, {
77
+ operationId: parentReservation.operationId,
78
+ attemptId: parentReservation.attemptId,
79
+ sourcePayloadId: parentReservation.payloadId,
80
+ receiptBinding,
81
+ });
82
+ matchConfigureDATA(source.attachReceipt, acknowledgement.receipt);
83
+ matchConfigureDATA(
84
+ configuration.attachReceipt.attachRequest,
85
+ parentOriginal.attachRequest,
86
+ );
87
+ matchConfigureDATA(source.originalBundle, parentOriginal.originalBundle);
88
+ matchConfigureDATA(original.account, parentOriginal.account);
89
+ requireConfigure(original.apiVersion === parentOriginal.apiVersion);
90
+ const policy = object(JSON.parse(reservation.timingPolicyJSON));
91
+ const parentPolicy = object(JSON.parse(parentReservation.timingPolicyJSON));
92
+ for (const key of ["workEndWallMs", "endWallMs", "periodStart", "periodEnd"])
93
+ requireConfigure(policy[key] === parentPolicy[key]);
94
+ const basis = canonicalInitialBasis(
95
+ reservation.timingPolicyJSON,
96
+ parent.basisJSON,
97
+ );
98
+ requireConfigure(basis.basisJSON === parent.basisJSON);
99
+ const token = Object.freeze({
100
+ owner,
101
+ basisJSON: parent.basisJSON,
102
+ operationalAuthority: false as const,
103
+ });
104
+ lineages.set(token, {
105
+ phase: "pending",
106
+ parentToken,
107
+ parent,
108
+ owner,
109
+ acknowledgement,
110
+ consumed,
111
+ reservation,
112
+ parentReservation,
113
+ configuration,
114
+ source,
115
+ original,
116
+ receiptJSON,
117
+ receiptBinding,
118
+ });
119
+ checkConfigureLineage(token);
120
+ return token;
121
+ }
122
+ /** Identity checks do not select a client, create an Owner or capture an origin. */
123
+ export function checkConfigureLineage(token: object) {
124
+ const state = lineages.get(token);
125
+ requireConfigure(state && state.phase !== "failed");
126
+ requireConfigure(readInitialLineage(state.parentToken) === state.parent);
127
+ state.owner.check();
128
+ checkConfigureJournalAssociation(
129
+ state.parent.binding,
130
+ state.consumed.binding,
131
+ );
132
+ const actual = readAttachAcknowledgementForLineage(state.parentToken);
133
+ requireConfigure(
134
+ actual === state.acknowledgement &&
135
+ actual.receipt === state.acknowledgement.receipt &&
136
+ actual.output === state.acknowledgement.output,
137
+ );
138
+ requireConfigure(journalWorkForInitialLineage(state.parentToken).idle());
139
+ return state;
140
+ }
141
+ export function finishConfigureLineage(
142
+ token: ConfigureAdmission,
143
+ ): ConfigureAdmission {
144
+ const state = checkConfigureLineage(token);
145
+ requireConfigure(state.phase === "pending");
146
+ state.phase = "ready";
147
+ return token;
148
+ }
149
+ export function closeConfigureLineage(token: object): void {
150
+ const state = lineages.get(token);
151
+ if (state) state.phase = "failed";
152
+ }
153
+ /** Trusted private consumers can only read a fully admitted original token. */
154
+ export function readConfigureLineage(token: object) {
155
+ const state = checkConfigureLineage(token);
156
+ requireConfigure(state.phase === "ready");
157
+ return Object.freeze({
158
+ parentToken: state.parentToken,
159
+ owner: state.owner,
160
+ parent: state.parent,
161
+ reservation: state.reservation,
162
+ originalReservation: state.consumed.reservation,
163
+ journal: state.consumed.journal,
164
+ configuration: state.configuration,
165
+ });
166
+ }
@@ -1,3 +1,4 @@
1
+ import { captureConfigureAdmission } from "./configureAdmission.js";
1
2
  import { mintInitialLineage, readInitialLineage } from "./lineageAuthority.js";
2
3
  import { captureLiveAttachRecovery } from "./recoveryEntry.js";
3
4
  import { readAttachAcknowledgementForLineage } from "./attachAcknowledgement.js";
@@ -28,6 +29,10 @@ export type InitialInvocationCore = Readonly<{
28
29
  attachAcknowledgement(): ReturnType<
29
30
  typeof readAttachAcknowledgementForLineage
30
31
  >;
32
+ admitConfigure(
33
+ call: unknown,
34
+ journal: unknown,
35
+ ): ReturnType<typeof captureConfigureAdmission>;
31
36
  operationalAuthority: false;
32
37
  }>;
33
38
 
@@ -98,6 +103,14 @@ export async function captureInitialInvocationCore(
98
103
  if (arguments.length !== 0) throw Error("INITIAL_OPERATION_UNBOUND");
99
104
  return readAttachAcknowledgementForLineage(token);
100
105
  },
106
+ admitConfigure(call: unknown, journal: unknown) {
107
+ return captureConfigureAdmission(
108
+ token,
109
+ call,
110
+ journal,
111
+ arguments.length,
112
+ );
113
+ },
101
114
  operationalAuthority: false,
102
115
  });
103
116
  } catch (error) {
@@ -19,6 +19,7 @@ class InitialLineage {}
19
19
  class InitialOrigin {}
20
20
  type Lineage = Readonly<{
21
21
  originAssociation: object;
22
+ binding: object;
22
23
  journal: ReturnType<typeof consumeInitialClassReservation>["journal"];
23
24
  reservation: ReturnType<typeof consumeInitialClassReservation>["reservation"];
24
25
  selection: ReturnType<typeof captureInitialJournalSelection>;
@@ -128,6 +129,7 @@ export function mintInitialLineage(
128
129
  token,
129
130
  Object.freeze({
130
131
  originAssociation: Object.freeze(new InitialOrigin()),
132
+ binding,
131
133
  journal: originalJournal,
132
134
  reservation,
133
135
  selection,