@fantastic.dev/better-stripe 0.110.0 → 0.112.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 (134) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +1 -1
  3. package/dist/client/billing/renewalAttach/internal/observation/freshActor.d.ts +564 -0
  4. package/dist/client/billing/renewalAttach/internal/observation/freshActor.d.ts.map +1 -1
  5. package/dist/client/billing/renewalAttach/internal/observation/freshActor.js +103 -21
  6. package/dist/client/billing/renewalAttach/internal/observation/freshActor.js.map +1 -1
  7. package/dist/client/billing/renewalAttach/internal/observation/freshTransport.d.ts +18 -1
  8. package/dist/client/billing/renewalAttach/internal/observation/freshTransport.d.ts.map +1 -1
  9. package/dist/client/billing/renewalAttach/internal/observation/freshTransport.js +54 -1
  10. package/dist/client/billing/renewalAttach/internal/observation/freshTransport.js.map +1 -1
  11. package/dist/client/billing/renewalAttach/internal/observation/invocation.d.ts +4 -0
  12. package/dist/client/billing/renewalAttach/internal/observation/invocation.d.ts.map +1 -1
  13. package/dist/client/billing/renewalAttach/internal/observation/invocation.js +1 -0
  14. package/dist/client/billing/renewalAttach/internal/observation/invocation.js.map +1 -1
  15. package/dist/client/billing/renewalAttach/internal/observation/readerAuthorization.d.ts +4 -0
  16. package/dist/client/billing/renewalAttach/internal/observation/readerAuthorization.d.ts.map +1 -1
  17. package/dist/client/billing/renewalAttach/internal/observation/readerAuthorization.js +6 -1
  18. package/dist/client/billing/renewalAttach/internal/observation/readerAuthorization.js.map +1 -1
  19. package/dist/client/billing/renewalAttach/internal/observation/witnessAuthorization.d.ts +38 -0
  20. package/dist/client/billing/renewalAttach/internal/observation/witnessAuthorization.d.ts.map +1 -0
  21. package/dist/client/billing/renewalAttach/internal/observation/witnessAuthorization.js +172 -0
  22. package/dist/client/billing/renewalAttach/internal/observation/witnessAuthorization.js.map +1 -0
  23. package/dist/client/billing/renewalAttach/internal/observation/witnessData.d.ts +135 -0
  24. package/dist/client/billing/renewalAttach/internal/observation/witnessData.d.ts.map +1 -0
  25. package/dist/client/billing/renewalAttach/internal/observation/witnessData.js +143 -0
  26. package/dist/client/billing/renewalAttach/internal/observation/witnessData.js.map +1 -0
  27. package/dist/client/billing/renewalAttach/internal/observation/witnessOperation.d.ts +85 -0
  28. package/dist/client/billing/renewalAttach/internal/observation/witnessOperation.d.ts.map +1 -0
  29. package/dist/client/billing/renewalAttach/internal/observation/witnessOperation.js +121 -0
  30. package/dist/client/billing/renewalAttach/internal/observation/witnessOperation.js.map +1 -0
  31. package/dist/client/billing/renewalAttach/internal/operations/witnessProfiles.d.ts +44 -0
  32. package/dist/client/billing/renewalAttach/internal/operations/witnessProfiles.d.ts.map +1 -0
  33. package/dist/client/billing/renewalAttach/internal/operations/witnessProfiles.js +4 -0
  34. package/dist/client/billing/renewalAttach/internal/operations/witnessProfiles.js.map +1 -0
  35. package/dist/client/billing/renewalAttach/internal/producer/configureJournalWork.d.ts +1 -1
  36. package/dist/client/billing/renewalAttach/internal/producer/configureLineage.d.ts +21 -21
  37. package/dist/client/billing/renewalAttach/internal/producer/journalWorkFactory.d.ts +3 -3
  38. package/dist/client/billing/renewalAttach/internal/producer/operationFactory.d.ts +1 -1
  39. package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +84 -32
  40. package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
  41. package/dist/client/connect/payoutExecutionTestHelpers.d.ts +26 -0
  42. package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +1 -1
  43. package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +84 -32
  44. package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +1 -1
  45. package/dist/client/connect/payoutSyncTestHelpers.d.ts +26 -0
  46. package/dist/client/connect/payoutSyncTestHelpers.d.ts.map +1 -1
  47. package/dist/component/_generated/api.d.ts +24 -0
  48. package/dist/component/_generated/api.d.ts.map +1 -1
  49. package/dist/component/_generated/api.js.map +1 -1
  50. package/dist/component/_generated/component.d.ts +94 -10
  51. package/dist/component/_generated/component.d.ts.map +1 -1
  52. package/dist/component/balanceFunding/internal/actions.d.ts +11 -11
  53. package/dist/component/balanceFunding/mutations.d.ts +16 -16
  54. package/dist/component/balanceFunding/preparationHandlers.d.ts +8 -8
  55. package/dist/component/balanceFunding/queries.d.ts +1 -1
  56. package/dist/component/balanceFunding/workflowValidators.d.ts +16 -16
  57. package/dist/component/earnings/triggers.d.ts +44 -0
  58. package/dist/component/earnings/triggers.d.ts.map +1 -1
  59. package/dist/component/financialObservations/settlementHelpers.d.ts +3 -3
  60. package/dist/component/renewalWitnesses/eligibility.d.ts +36 -0
  61. package/dist/component/renewalWitnesses/eligibility.d.ts.map +1 -0
  62. package/dist/component/renewalWitnesses/eligibility.js +60 -0
  63. package/dist/component/renewalWitnesses/eligibility.js.map +1 -0
  64. package/dist/component/renewalWitnesses/mutations.d.ts +45 -0
  65. package/dist/component/renewalWitnesses/mutations.d.ts.map +1 -0
  66. package/dist/component/renewalWitnesses/mutations.js +14 -0
  67. package/dist/component/renewalWitnesses/mutations.js.map +1 -0
  68. package/dist/component/renewalWitnesses/protocol.d.ts +75 -0
  69. package/dist/component/renewalWitnesses/protocol.d.ts.map +1 -0
  70. package/dist/component/renewalWitnesses/protocol.js +82 -0
  71. package/dist/component/renewalWitnesses/protocol.js.map +1 -0
  72. package/dist/component/renewalWitnesses/queries.d.ts +39 -0
  73. package/dist/component/renewalWitnesses/queries.d.ts.map +1 -0
  74. package/dist/component/renewalWitnesses/queries.js +11 -0
  75. package/dist/component/renewalWitnesses/queries.js.map +1 -0
  76. package/dist/component/renewalWitnesses/schema.d.ts +99 -0
  77. package/dist/component/renewalWitnesses/schema.d.ts.map +1 -0
  78. package/dist/component/renewalWitnesses/schema.js +36 -0
  79. package/dist/component/renewalWitnesses/schema.js.map +1 -0
  80. package/dist/component/renewalWitnesses/source.d.ts +22 -0
  81. package/dist/component/renewalWitnesses/source.d.ts.map +1 -0
  82. package/dist/component/renewalWitnesses/source.js +108 -0
  83. package/dist/component/renewalWitnesses/source.js.map +1 -0
  84. package/dist/component/schema.d.ts +42 -16
  85. package/dist/component/schema.js +2 -0
  86. package/dist/component/schema.js.map +1 -1
  87. package/dist/component/usage/allowance.fixtures.d.ts +42 -16
  88. package/dist/component/usage/allowance.fixtures.d.ts.map +1 -1
  89. package/dist/component/usageCredits/accounting.fixtures.d.ts +26 -0
  90. package/dist/component/usageCredits/accounting.fixtures.d.ts.map +1 -1
  91. package/dist/shared/renewalWitness.d.ts +51 -0
  92. package/dist/shared/renewalWitness.d.ts.map +1 -0
  93. package/dist/shared/renewalWitness.js +127 -0
  94. package/dist/shared/renewalWitness.js.map +1 -0
  95. package/docs/renewal-witness-protocol.md +139 -0
  96. package/package.json +1 -1
  97. package/src/client/billing/renewalAttach/internal/observation/freshActor.ts +142 -19
  98. package/src/client/billing/renewalAttach/internal/observation/freshTransport.ts +90 -1
  99. package/src/client/billing/renewalAttach/internal/observation/invocation.ts +2 -0
  100. package/src/client/billing/renewalAttach/internal/observation/readerAuthorization.ts +6 -1
  101. package/src/client/billing/renewalAttach/internal/observation/witnessAcquisition.integration.test.ts +348 -0
  102. package/src/client/billing/renewalAttach/internal/observation/witnessActor.integration.test.ts +204 -0
  103. package/src/client/billing/renewalAttach/internal/observation/witnessAuthorization.ts +239 -0
  104. package/src/client/billing/renewalAttach/internal/observation/witnessCapabilities.integration.test.ts +231 -0
  105. package/src/client/billing/renewalAttach/internal/observation/witnessData.ts +189 -0
  106. package/src/client/billing/renewalAttach/internal/observation/witnessHistorical.integration.test.ts +98 -0
  107. package/src/client/billing/renewalAttach/internal/observation/witnessImmutable.integration.test.ts +78 -0
  108. package/src/client/billing/renewalAttach/internal/observation/witnessInvoice.integration.test.ts +85 -0
  109. package/src/client/billing/renewalAttach/internal/observation/witnessLifecycle.integration.test.ts +264 -0
  110. package/src/client/billing/renewalAttach/internal/observation/witnessOperation.ts +205 -0
  111. package/src/client/billing/renewalAttach/internal/observation/witnessProfile.integration.test.ts +93 -0
  112. package/src/client/billing/renewalAttach/internal/observation/witnessRPCControls.integration.test.ts +256 -0
  113. package/src/client/billing/renewalAttach/internal/operations/witnessProfiles.ts +58 -0
  114. package/src/client/billing/renewalAttach/internal/test-fixtures/invoiceObservation.ts +3 -1
  115. package/src/client/billing/renewalAttach/internal/test-fixtures/producerConfigureAdmission.ts +8 -0
  116. package/src/client/billing/renewalAttach/internal/test-fixtures/producerInitialOperation.ts +18 -7
  117. package/src/client/billing/renewalAttach/internal/test-fixtures/witnessHistory.ts +70 -0
  118. package/src/client/billing/renewalAttach/internal/test-fixtures/witnessObservation.ts +353 -0
  119. package/src/component/_generated/api.ts +24 -0
  120. package/src/component/_generated/component.ts +98 -10
  121. package/src/component/renewalOperations/configureJournal.fixtures.ts +25 -3
  122. package/src/component/renewalWitnesses/bounds.test.ts +204 -0
  123. package/src/component/renewalWitnesses/codec.test.ts +84 -0
  124. package/src/component/renewalWitnesses/controls.test.ts +250 -0
  125. package/src/component/renewalWitnesses/eligibility.ts +78 -0
  126. package/src/component/renewalWitnesses/mutations.ts +17 -0
  127. package/src/component/renewalWitnesses/protocol.test.ts +63 -0
  128. package/src/component/renewalWitnesses/protocol.ts +103 -0
  129. package/src/component/renewalWitnesses/queries.ts +11 -0
  130. package/src/component/renewalWitnesses/routes.test.ts +154 -0
  131. package/src/component/renewalWitnesses/schema.ts +36 -0
  132. package/src/component/renewalWitnesses/source.ts +157 -0
  133. package/src/component/schema.ts +2 -0
  134. package/src/shared/renewalWitness.ts +179 -0
package/CHANGELOG.md CHANGED
@@ -26,6 +26,18 @@
26
26
  - Remove internal tracker references from public documentation and add a
27
27
  regression check that prevents their reintroduction.
28
28
 
29
+ ## [0.112.0](https://github.com/FantasticDevHQ/better-stripe/compare/v0.111.0...v0.112.0) (2026-11-01)
30
+
31
+ ### Features
32
+
33
+ - capture and read authorized renewal witnesses ([#467](https://github.com/FantasticDevHQ/better-stripe/issues/467)) ([600471a](https://github.com/FantasticDevHQ/better-stripe/commit/600471ab9baf3cce32ca893aa2ee3c31eb91500d))
34
+
35
+ ## [0.111.0](https://github.com/FantasticDevHQ/better-stripe/compare/v0.110.0...v0.111.0) (2026-11-01)
36
+
37
+ ### Features
38
+
39
+ - persist bounded immutable renewal witness data ([#465](https://github.com/FantasticDevHQ/better-stripe/issues/465)) ([8c39b27](https://github.com/FantasticDevHQ/better-stripe/commit/8c39b274532117a4f11265cb5c02183d3b4b0277))
40
+
29
41
  ## [0.110.0](https://github.com/FantasticDevHQ/better-stripe/compare/v0.109.1...v0.110.0) (2026-10-31)
30
42
 
31
43
  ### Features
package/README.md CHANGED
@@ -5,7 +5,7 @@ billing, and Connect marketplaces. It provides checkout, subscriptions, webhook
5
5
  syncing, marketplace fees and splits, payouts, refunds, and disputes, with React
6
6
  hooks and headless UI components.
7
7
 
8
- **Version**: `0.110.0` <!-- x-release-please-version --> (pre-1.0). API may change between minor versions until 1.0.
8
+ **Version**: `0.112.0` <!-- x-release-please-version --> (pre-1.0). API may change between minor versions until 1.0.
9
9
 
10
10
  Connect platforms use the default GA API version. Non-Connect merchants using
11
11
  customer-only Accounts v2 need preview access and an explicit preview version.
@@ -2,6 +2,130 @@ import type { ObservationReads, ReadFailure } from "./types.js";
2
2
  /** Fresh authorized bounded current evidence. No caller DATA can create an invocation. */
3
3
  export declare function captureFreshRenewalObservation(root: object, raw: unknown): Promise<Readonly<{
4
4
  invoke(): Promise<{
5
+ history: Awaited<ReturnType<typeof import("./history.js").captureRetainedObservationHistory>>;
6
+ authorization: ReturnType<typeof import("./readerAuthorization.js").captureReaderAuthorization>;
7
+ status: "fresh_observation_data" | "observation_conflict" | "observation_provider_rejected" | "unsupported_observation_profile";
8
+ witnessRetention: {
9
+ status: "conflict";
10
+ reason: "identity_changed";
11
+ } | {
12
+ status: "retained";
13
+ descriptor: {
14
+ version: number;
15
+ identity: Readonly<{
16
+ componentScope: string;
17
+ witnessId: string;
18
+ parentOperationId: string;
19
+ operationId: string;
20
+ }>;
21
+ payloadBinding: string;
22
+ capturedSubject: string;
23
+ observedAtMs: number;
24
+ customerAccountId: string;
25
+ customerId: string;
26
+ livemode: boolean;
27
+ subscriptionId: string;
28
+ scheduleId: string;
29
+ observedItemId: string;
30
+ nativePeriod: Readonly<{
31
+ start: number;
32
+ end: number;
33
+ }>;
34
+ operationalAuthority: boolean;
35
+ authenticationEstablished: boolean;
36
+ publicDeliveryEstablished: boolean;
37
+ providerQualificationRequired: boolean;
38
+ witnessRowId: string;
39
+ };
40
+ } | null;
41
+ invoiceContext?: Readonly<{
42
+ original: import("../../../renewalObservation/evidence-v1-types.js").InvoiceInventoryV1;
43
+ current: import("../../../renewalObservation/evidence-v1-types.js").InvoiceInventoryV1;
44
+ }> | null | undefined;
45
+ invoiceInventory?: string | undefined;
46
+ invoiceReason?: string | null | undefined;
47
+ reads: ObservationReads | null;
48
+ evidence: Readonly<{
49
+ version: 1;
50
+ kind: "renewal_evidence_data";
51
+ apiVersion: import("../../../renewalObservation/evidence-v1-types.js").API;
52
+ identity: import("../../../renewalObservation/evidence-v1-types.js").IdentityV1 | null;
53
+ lifecycle: import("../../../renewalObservation/evidence-v1-types.js").LifecycleV1;
54
+ currentMaterial: import("../../../renewalObservation/evidence-v1-types.js").CurrentMaterialV1;
55
+ historicalMaterial: import("../../../renewalObservation/evidence-v1-types.js").HistoricalMaterialV1;
56
+ invoiceEvidence: import("../../../renewalObservation/evidence-v1-types.js").InvoiceEvidenceV1;
57
+ acknowledgementEstablished: false;
58
+ authenticationEstablished: false;
59
+ operationalAuthority: false;
60
+ providerQualificationRequired: true;
61
+ }> | null;
62
+ couponInventory: "complete" | "incomplete" | "not_acquired";
63
+ observedAt: number;
64
+ analysis: "admitted" | "analysis_not_admitted";
65
+ reason: string | null;
66
+ failure: ReadFailure | null;
67
+ operationalAuthority: false;
68
+ } | {
69
+ history: Awaited<ReturnType<typeof import("./history.js").captureRetainedObservationHistory>>;
70
+ authorization: ReturnType<typeof import("./readerAuthorization.js").captureReaderAuthorization>;
71
+ status: "fresh_observation_data" | "observation_conflict" | "observation_provider_rejected" | "unsupported_observation_profile";
72
+ witness: {
73
+ descriptor: {
74
+ version: number;
75
+ identity: Readonly<{
76
+ componentScope: string;
77
+ witnessId: string;
78
+ parentOperationId: string;
79
+ operationId: string;
80
+ }>;
81
+ payloadBinding: string;
82
+ capturedSubject: string;
83
+ observedAtMs: number;
84
+ customerAccountId: string;
85
+ customerId: string;
86
+ livemode: boolean;
87
+ subscriptionId: string;
88
+ scheduleId: string;
89
+ observedItemId: string;
90
+ nativePeriod: Readonly<{
91
+ start: number;
92
+ end: number;
93
+ }>;
94
+ operationalAuthority: boolean;
95
+ authenticationEstablished: boolean;
96
+ publicDeliveryEstablished: boolean;
97
+ providerQualificationRequired: boolean;
98
+ witnessRowId: string;
99
+ };
100
+ };
101
+ invoiceContext?: Readonly<{
102
+ original: import("../../../renewalObservation/evidence-v1-types.js").InvoiceInventoryV1;
103
+ current: import("../../../renewalObservation/evidence-v1-types.js").InvoiceInventoryV1;
104
+ }> | null | undefined;
105
+ invoiceInventory?: string | undefined;
106
+ invoiceReason?: string | null | undefined;
107
+ reads: ObservationReads | null;
108
+ evidence: Readonly<{
109
+ version: 1;
110
+ kind: "renewal_evidence_data";
111
+ apiVersion: import("../../../renewalObservation/evidence-v1-types.js").API;
112
+ identity: import("../../../renewalObservation/evidence-v1-types.js").IdentityV1 | null;
113
+ lifecycle: import("../../../renewalObservation/evidence-v1-types.js").LifecycleV1;
114
+ currentMaterial: import("../../../renewalObservation/evidence-v1-types.js").CurrentMaterialV1;
115
+ historicalMaterial: import("../../../renewalObservation/evidence-v1-types.js").HistoricalMaterialV1;
116
+ invoiceEvidence: import("../../../renewalObservation/evidence-v1-types.js").InvoiceEvidenceV1;
117
+ acknowledgementEstablished: false;
118
+ authenticationEstablished: false;
119
+ operationalAuthority: false;
120
+ providerQualificationRequired: true;
121
+ }> | null;
122
+ couponInventory: "complete" | "incomplete" | "not_acquired";
123
+ observedAt: number;
124
+ analysis: "admitted" | "analysis_not_admitted";
125
+ reason: string | null;
126
+ failure: ReadFailure | null;
127
+ operationalAuthority: false;
128
+ } | {
5
129
  history: Awaited<ReturnType<typeof import("./history.js").captureRetainedObservationHistory>>;
6
130
  authorization: ReturnType<typeof import("./readerAuthorization.js").captureReaderAuthorization>;
7
131
  status: "fresh_observation_data" | "observation_conflict" | "observation_provider_rejected" | "unsupported_observation_profile";
@@ -37,6 +161,446 @@ export declare function captureFreshRenewalObservation(root: object, raw: unknow
37
161
  /** Separate qualified invoice capability; EMPTY before any input reflection. */
38
162
  export declare function captureFreshInvoiceRenewalObservation(root: object, raw: unknown): Promise<Readonly<{
39
163
  invoke(): Promise<{
164
+ history: Awaited<ReturnType<typeof import("./history.js").captureRetainedObservationHistory>>;
165
+ authorization: ReturnType<typeof import("./readerAuthorization.js").captureReaderAuthorization>;
166
+ status: "fresh_observation_data" | "observation_conflict" | "observation_provider_rejected" | "unsupported_observation_profile";
167
+ witnessRetention: {
168
+ status: "conflict";
169
+ reason: "identity_changed";
170
+ } | {
171
+ status: "retained";
172
+ descriptor: {
173
+ version: number;
174
+ identity: Readonly<{
175
+ componentScope: string;
176
+ witnessId: string;
177
+ parentOperationId: string;
178
+ operationId: string;
179
+ }>;
180
+ payloadBinding: string;
181
+ capturedSubject: string;
182
+ observedAtMs: number;
183
+ customerAccountId: string;
184
+ customerId: string;
185
+ livemode: boolean;
186
+ subscriptionId: string;
187
+ scheduleId: string;
188
+ observedItemId: string;
189
+ nativePeriod: Readonly<{
190
+ start: number;
191
+ end: number;
192
+ }>;
193
+ operationalAuthority: boolean;
194
+ authenticationEstablished: boolean;
195
+ publicDeliveryEstablished: boolean;
196
+ providerQualificationRequired: boolean;
197
+ witnessRowId: string;
198
+ };
199
+ } | null;
200
+ invoiceContext?: Readonly<{
201
+ original: import("../../../renewalObservation/evidence-v1-types.js").InvoiceInventoryV1;
202
+ current: import("../../../renewalObservation/evidence-v1-types.js").InvoiceInventoryV1;
203
+ }> | null | undefined;
204
+ invoiceInventory?: string | undefined;
205
+ invoiceReason?: string | null | undefined;
206
+ reads: ObservationReads | null;
207
+ evidence: Readonly<{
208
+ version: 1;
209
+ kind: "renewal_evidence_data";
210
+ apiVersion: import("../../../renewalObservation/evidence-v1-types.js").API;
211
+ identity: import("../../../renewalObservation/evidence-v1-types.js").IdentityV1 | null;
212
+ lifecycle: import("../../../renewalObservation/evidence-v1-types.js").LifecycleV1;
213
+ currentMaterial: import("../../../renewalObservation/evidence-v1-types.js").CurrentMaterialV1;
214
+ historicalMaterial: import("../../../renewalObservation/evidence-v1-types.js").HistoricalMaterialV1;
215
+ invoiceEvidence: import("../../../renewalObservation/evidence-v1-types.js").InvoiceEvidenceV1;
216
+ acknowledgementEstablished: false;
217
+ authenticationEstablished: false;
218
+ operationalAuthority: false;
219
+ providerQualificationRequired: true;
220
+ }> | null;
221
+ couponInventory: "complete" | "incomplete" | "not_acquired";
222
+ observedAt: number;
223
+ analysis: "admitted" | "analysis_not_admitted";
224
+ reason: string | null;
225
+ failure: ReadFailure | null;
226
+ operationalAuthority: false;
227
+ } | {
228
+ history: Awaited<ReturnType<typeof import("./history.js").captureRetainedObservationHistory>>;
229
+ authorization: ReturnType<typeof import("./readerAuthorization.js").captureReaderAuthorization>;
230
+ status: "fresh_observation_data" | "observation_conflict" | "observation_provider_rejected" | "unsupported_observation_profile";
231
+ witness: {
232
+ descriptor: {
233
+ version: number;
234
+ identity: Readonly<{
235
+ componentScope: string;
236
+ witnessId: string;
237
+ parentOperationId: string;
238
+ operationId: string;
239
+ }>;
240
+ payloadBinding: string;
241
+ capturedSubject: string;
242
+ observedAtMs: number;
243
+ customerAccountId: string;
244
+ customerId: string;
245
+ livemode: boolean;
246
+ subscriptionId: string;
247
+ scheduleId: string;
248
+ observedItemId: string;
249
+ nativePeriod: Readonly<{
250
+ start: number;
251
+ end: number;
252
+ }>;
253
+ operationalAuthority: boolean;
254
+ authenticationEstablished: boolean;
255
+ publicDeliveryEstablished: boolean;
256
+ providerQualificationRequired: boolean;
257
+ witnessRowId: string;
258
+ };
259
+ };
260
+ invoiceContext?: Readonly<{
261
+ original: import("../../../renewalObservation/evidence-v1-types.js").InvoiceInventoryV1;
262
+ current: import("../../../renewalObservation/evidence-v1-types.js").InvoiceInventoryV1;
263
+ }> | null | undefined;
264
+ invoiceInventory?: string | undefined;
265
+ invoiceReason?: string | null | undefined;
266
+ reads: ObservationReads | null;
267
+ evidence: Readonly<{
268
+ version: 1;
269
+ kind: "renewal_evidence_data";
270
+ apiVersion: import("../../../renewalObservation/evidence-v1-types.js").API;
271
+ identity: import("../../../renewalObservation/evidence-v1-types.js").IdentityV1 | null;
272
+ lifecycle: import("../../../renewalObservation/evidence-v1-types.js").LifecycleV1;
273
+ currentMaterial: import("../../../renewalObservation/evidence-v1-types.js").CurrentMaterialV1;
274
+ historicalMaterial: import("../../../renewalObservation/evidence-v1-types.js").HistoricalMaterialV1;
275
+ invoiceEvidence: import("../../../renewalObservation/evidence-v1-types.js").InvoiceEvidenceV1;
276
+ acknowledgementEstablished: false;
277
+ authenticationEstablished: false;
278
+ operationalAuthority: false;
279
+ providerQualificationRequired: true;
280
+ }> | null;
281
+ couponInventory: "complete" | "incomplete" | "not_acquired";
282
+ observedAt: number;
283
+ analysis: "admitted" | "analysis_not_admitted";
284
+ reason: string | null;
285
+ failure: ReadFailure | null;
286
+ operationalAuthority: false;
287
+ } | {
288
+ history: Awaited<ReturnType<typeof import("./history.js").captureRetainedObservationHistory>>;
289
+ authorization: ReturnType<typeof import("./readerAuthorization.js").captureReaderAuthorization>;
290
+ status: "fresh_observation_data" | "observation_conflict" | "observation_provider_rejected" | "unsupported_observation_profile";
291
+ invoiceContext?: Readonly<{
292
+ original: import("../../../renewalObservation/evidence-v1-types.js").InvoiceInventoryV1;
293
+ current: import("../../../renewalObservation/evidence-v1-types.js").InvoiceInventoryV1;
294
+ }> | null | undefined;
295
+ invoiceInventory?: string | undefined;
296
+ invoiceReason?: string | null | undefined;
297
+ reads: ObservationReads | null;
298
+ evidence: Readonly<{
299
+ version: 1;
300
+ kind: "renewal_evidence_data";
301
+ apiVersion: import("../../../renewalObservation/evidence-v1-types.js").API;
302
+ identity: import("../../../renewalObservation/evidence-v1-types.js").IdentityV1 | null;
303
+ lifecycle: import("../../../renewalObservation/evidence-v1-types.js").LifecycleV1;
304
+ currentMaterial: import("../../../renewalObservation/evidence-v1-types.js").CurrentMaterialV1;
305
+ historicalMaterial: import("../../../renewalObservation/evidence-v1-types.js").HistoricalMaterialV1;
306
+ invoiceEvidence: import("../../../renewalObservation/evidence-v1-types.js").InvoiceEvidenceV1;
307
+ acknowledgementEstablished: false;
308
+ authenticationEstablished: false;
309
+ operationalAuthority: false;
310
+ providerQualificationRequired: true;
311
+ }> | null;
312
+ couponInventory: "complete" | "incomplete" | "not_acquired";
313
+ observedAt: number;
314
+ analysis: "admitted" | "analysis_not_admitted";
315
+ reason: string | null;
316
+ failure: ReadFailure | null;
317
+ operationalAuthority: false;
318
+ }>;
319
+ }>>;
320
+ export declare function captureFreshWitnessRenewalObservation(root: object, raw: unknown): Promise<Readonly<{
321
+ invoke(): Promise<{
322
+ history: Awaited<ReturnType<typeof import("./history.js").captureRetainedObservationHistory>>;
323
+ authorization: ReturnType<typeof import("./readerAuthorization.js").captureReaderAuthorization>;
324
+ status: "fresh_observation_data" | "observation_conflict" | "observation_provider_rejected" | "unsupported_observation_profile";
325
+ witnessRetention: {
326
+ status: "conflict";
327
+ reason: "identity_changed";
328
+ } | {
329
+ status: "retained";
330
+ descriptor: {
331
+ version: number;
332
+ identity: Readonly<{
333
+ componentScope: string;
334
+ witnessId: string;
335
+ parentOperationId: string;
336
+ operationId: string;
337
+ }>;
338
+ payloadBinding: string;
339
+ capturedSubject: string;
340
+ observedAtMs: number;
341
+ customerAccountId: string;
342
+ customerId: string;
343
+ livemode: boolean;
344
+ subscriptionId: string;
345
+ scheduleId: string;
346
+ observedItemId: string;
347
+ nativePeriod: Readonly<{
348
+ start: number;
349
+ end: number;
350
+ }>;
351
+ operationalAuthority: boolean;
352
+ authenticationEstablished: boolean;
353
+ publicDeliveryEstablished: boolean;
354
+ providerQualificationRequired: boolean;
355
+ witnessRowId: string;
356
+ };
357
+ } | null;
358
+ invoiceContext?: Readonly<{
359
+ original: import("../../../renewalObservation/evidence-v1-types.js").InvoiceInventoryV1;
360
+ current: import("../../../renewalObservation/evidence-v1-types.js").InvoiceInventoryV1;
361
+ }> | null | undefined;
362
+ invoiceInventory?: string | undefined;
363
+ invoiceReason?: string | null | undefined;
364
+ reads: ObservationReads | null;
365
+ evidence: Readonly<{
366
+ version: 1;
367
+ kind: "renewal_evidence_data";
368
+ apiVersion: import("../../../renewalObservation/evidence-v1-types.js").API;
369
+ identity: import("../../../renewalObservation/evidence-v1-types.js").IdentityV1 | null;
370
+ lifecycle: import("../../../renewalObservation/evidence-v1-types.js").LifecycleV1;
371
+ currentMaterial: import("../../../renewalObservation/evidence-v1-types.js").CurrentMaterialV1;
372
+ historicalMaterial: import("../../../renewalObservation/evidence-v1-types.js").HistoricalMaterialV1;
373
+ invoiceEvidence: import("../../../renewalObservation/evidence-v1-types.js").InvoiceEvidenceV1;
374
+ acknowledgementEstablished: false;
375
+ authenticationEstablished: false;
376
+ operationalAuthority: false;
377
+ providerQualificationRequired: true;
378
+ }> | null;
379
+ couponInventory: "complete" | "incomplete" | "not_acquired";
380
+ observedAt: number;
381
+ analysis: "admitted" | "analysis_not_admitted";
382
+ reason: string | null;
383
+ failure: ReadFailure | null;
384
+ operationalAuthority: false;
385
+ } | {
386
+ history: Awaited<ReturnType<typeof import("./history.js").captureRetainedObservationHistory>>;
387
+ authorization: ReturnType<typeof import("./readerAuthorization.js").captureReaderAuthorization>;
388
+ status: "fresh_observation_data" | "observation_conflict" | "observation_provider_rejected" | "unsupported_observation_profile";
389
+ witness: {
390
+ descriptor: {
391
+ version: number;
392
+ identity: Readonly<{
393
+ componentScope: string;
394
+ witnessId: string;
395
+ parentOperationId: string;
396
+ operationId: string;
397
+ }>;
398
+ payloadBinding: string;
399
+ capturedSubject: string;
400
+ observedAtMs: number;
401
+ customerAccountId: string;
402
+ customerId: string;
403
+ livemode: boolean;
404
+ subscriptionId: string;
405
+ scheduleId: string;
406
+ observedItemId: string;
407
+ nativePeriod: Readonly<{
408
+ start: number;
409
+ end: number;
410
+ }>;
411
+ operationalAuthority: boolean;
412
+ authenticationEstablished: boolean;
413
+ publicDeliveryEstablished: boolean;
414
+ providerQualificationRequired: boolean;
415
+ witnessRowId: string;
416
+ };
417
+ };
418
+ invoiceContext?: Readonly<{
419
+ original: import("../../../renewalObservation/evidence-v1-types.js").InvoiceInventoryV1;
420
+ current: import("../../../renewalObservation/evidence-v1-types.js").InvoiceInventoryV1;
421
+ }> | null | undefined;
422
+ invoiceInventory?: string | undefined;
423
+ invoiceReason?: string | null | undefined;
424
+ reads: ObservationReads | null;
425
+ evidence: Readonly<{
426
+ version: 1;
427
+ kind: "renewal_evidence_data";
428
+ apiVersion: import("../../../renewalObservation/evidence-v1-types.js").API;
429
+ identity: import("../../../renewalObservation/evidence-v1-types.js").IdentityV1 | null;
430
+ lifecycle: import("../../../renewalObservation/evidence-v1-types.js").LifecycleV1;
431
+ currentMaterial: import("../../../renewalObservation/evidence-v1-types.js").CurrentMaterialV1;
432
+ historicalMaterial: import("../../../renewalObservation/evidence-v1-types.js").HistoricalMaterialV1;
433
+ invoiceEvidence: import("../../../renewalObservation/evidence-v1-types.js").InvoiceEvidenceV1;
434
+ acknowledgementEstablished: false;
435
+ authenticationEstablished: false;
436
+ operationalAuthority: false;
437
+ providerQualificationRequired: true;
438
+ }> | null;
439
+ couponInventory: "complete" | "incomplete" | "not_acquired";
440
+ observedAt: number;
441
+ analysis: "admitted" | "analysis_not_admitted";
442
+ reason: string | null;
443
+ failure: ReadFailure | null;
444
+ operationalAuthority: false;
445
+ } | {
446
+ history: Awaited<ReturnType<typeof import("./history.js").captureRetainedObservationHistory>>;
447
+ authorization: ReturnType<typeof import("./readerAuthorization.js").captureReaderAuthorization>;
448
+ status: "fresh_observation_data" | "observation_conflict" | "observation_provider_rejected" | "unsupported_observation_profile";
449
+ invoiceContext?: Readonly<{
450
+ original: import("../../../renewalObservation/evidence-v1-types.js").InvoiceInventoryV1;
451
+ current: import("../../../renewalObservation/evidence-v1-types.js").InvoiceInventoryV1;
452
+ }> | null | undefined;
453
+ invoiceInventory?: string | undefined;
454
+ invoiceReason?: string | null | undefined;
455
+ reads: ObservationReads | null;
456
+ evidence: Readonly<{
457
+ version: 1;
458
+ kind: "renewal_evidence_data";
459
+ apiVersion: import("../../../renewalObservation/evidence-v1-types.js").API;
460
+ identity: import("../../../renewalObservation/evidence-v1-types.js").IdentityV1 | null;
461
+ lifecycle: import("../../../renewalObservation/evidence-v1-types.js").LifecycleV1;
462
+ currentMaterial: import("../../../renewalObservation/evidence-v1-types.js").CurrentMaterialV1;
463
+ historicalMaterial: import("../../../renewalObservation/evidence-v1-types.js").HistoricalMaterialV1;
464
+ invoiceEvidence: import("../../../renewalObservation/evidence-v1-types.js").InvoiceEvidenceV1;
465
+ acknowledgementEstablished: false;
466
+ authenticationEstablished: false;
467
+ operationalAuthority: false;
468
+ providerQualificationRequired: true;
469
+ }> | null;
470
+ couponInventory: "complete" | "incomplete" | "not_acquired";
471
+ observedAt: number;
472
+ analysis: "admitted" | "analysis_not_admitted";
473
+ reason: string | null;
474
+ failure: ReadFailure | null;
475
+ operationalAuthority: false;
476
+ }>;
477
+ }>>;
478
+ export declare function captureHistoricalWitnessRenewalObservation(root: object, raw: unknown): Promise<Readonly<{
479
+ invoke(): Promise<{
480
+ history: Awaited<ReturnType<typeof import("./history.js").captureRetainedObservationHistory>>;
481
+ authorization: ReturnType<typeof import("./readerAuthorization.js").captureReaderAuthorization>;
482
+ status: "fresh_observation_data" | "observation_conflict" | "observation_provider_rejected" | "unsupported_observation_profile";
483
+ witnessRetention: {
484
+ status: "conflict";
485
+ reason: "identity_changed";
486
+ } | {
487
+ status: "retained";
488
+ descriptor: {
489
+ version: number;
490
+ identity: Readonly<{
491
+ componentScope: string;
492
+ witnessId: string;
493
+ parentOperationId: string;
494
+ operationId: string;
495
+ }>;
496
+ payloadBinding: string;
497
+ capturedSubject: string;
498
+ observedAtMs: number;
499
+ customerAccountId: string;
500
+ customerId: string;
501
+ livemode: boolean;
502
+ subscriptionId: string;
503
+ scheduleId: string;
504
+ observedItemId: string;
505
+ nativePeriod: Readonly<{
506
+ start: number;
507
+ end: number;
508
+ }>;
509
+ operationalAuthority: boolean;
510
+ authenticationEstablished: boolean;
511
+ publicDeliveryEstablished: boolean;
512
+ providerQualificationRequired: boolean;
513
+ witnessRowId: string;
514
+ };
515
+ } | null;
516
+ invoiceContext?: Readonly<{
517
+ original: import("../../../renewalObservation/evidence-v1-types.js").InvoiceInventoryV1;
518
+ current: import("../../../renewalObservation/evidence-v1-types.js").InvoiceInventoryV1;
519
+ }> | null | undefined;
520
+ invoiceInventory?: string | undefined;
521
+ invoiceReason?: string | null | undefined;
522
+ reads: ObservationReads | null;
523
+ evidence: Readonly<{
524
+ version: 1;
525
+ kind: "renewal_evidence_data";
526
+ apiVersion: import("../../../renewalObservation/evidence-v1-types.js").API;
527
+ identity: import("../../../renewalObservation/evidence-v1-types.js").IdentityV1 | null;
528
+ lifecycle: import("../../../renewalObservation/evidence-v1-types.js").LifecycleV1;
529
+ currentMaterial: import("../../../renewalObservation/evidence-v1-types.js").CurrentMaterialV1;
530
+ historicalMaterial: import("../../../renewalObservation/evidence-v1-types.js").HistoricalMaterialV1;
531
+ invoiceEvidence: import("../../../renewalObservation/evidence-v1-types.js").InvoiceEvidenceV1;
532
+ acknowledgementEstablished: false;
533
+ authenticationEstablished: false;
534
+ operationalAuthority: false;
535
+ providerQualificationRequired: true;
536
+ }> | null;
537
+ couponInventory: "complete" | "incomplete" | "not_acquired";
538
+ observedAt: number;
539
+ analysis: "admitted" | "analysis_not_admitted";
540
+ reason: string | null;
541
+ failure: ReadFailure | null;
542
+ operationalAuthority: false;
543
+ } | {
544
+ history: Awaited<ReturnType<typeof import("./history.js").captureRetainedObservationHistory>>;
545
+ authorization: ReturnType<typeof import("./readerAuthorization.js").captureReaderAuthorization>;
546
+ status: "fresh_observation_data" | "observation_conflict" | "observation_provider_rejected" | "unsupported_observation_profile";
547
+ witness: {
548
+ descriptor: {
549
+ version: number;
550
+ identity: Readonly<{
551
+ componentScope: string;
552
+ witnessId: string;
553
+ parentOperationId: string;
554
+ operationId: string;
555
+ }>;
556
+ payloadBinding: string;
557
+ capturedSubject: string;
558
+ observedAtMs: number;
559
+ customerAccountId: string;
560
+ customerId: string;
561
+ livemode: boolean;
562
+ subscriptionId: string;
563
+ scheduleId: string;
564
+ observedItemId: string;
565
+ nativePeriod: Readonly<{
566
+ start: number;
567
+ end: number;
568
+ }>;
569
+ operationalAuthority: boolean;
570
+ authenticationEstablished: boolean;
571
+ publicDeliveryEstablished: boolean;
572
+ providerQualificationRequired: boolean;
573
+ witnessRowId: string;
574
+ };
575
+ };
576
+ invoiceContext?: Readonly<{
577
+ original: import("../../../renewalObservation/evidence-v1-types.js").InvoiceInventoryV1;
578
+ current: import("../../../renewalObservation/evidence-v1-types.js").InvoiceInventoryV1;
579
+ }> | null | undefined;
580
+ invoiceInventory?: string | undefined;
581
+ invoiceReason?: string | null | undefined;
582
+ reads: ObservationReads | null;
583
+ evidence: Readonly<{
584
+ version: 1;
585
+ kind: "renewal_evidence_data";
586
+ apiVersion: import("../../../renewalObservation/evidence-v1-types.js").API;
587
+ identity: import("../../../renewalObservation/evidence-v1-types.js").IdentityV1 | null;
588
+ lifecycle: import("../../../renewalObservation/evidence-v1-types.js").LifecycleV1;
589
+ currentMaterial: import("../../../renewalObservation/evidence-v1-types.js").CurrentMaterialV1;
590
+ historicalMaterial: import("../../../renewalObservation/evidence-v1-types.js").HistoricalMaterialV1;
591
+ invoiceEvidence: import("../../../renewalObservation/evidence-v1-types.js").InvoiceEvidenceV1;
592
+ acknowledgementEstablished: false;
593
+ authenticationEstablished: false;
594
+ operationalAuthority: false;
595
+ providerQualificationRequired: true;
596
+ }> | null;
597
+ couponInventory: "complete" | "incomplete" | "not_acquired";
598
+ observedAt: number;
599
+ analysis: "admitted" | "analysis_not_admitted";
600
+ reason: string | null;
601
+ failure: ReadFailure | null;
602
+ operationalAuthority: false;
603
+ } | {
40
604
  history: Awaited<ReturnType<typeof import("./history.js").captureRetainedObservationHistory>>;
41
605
  authorization: ReturnType<typeof import("./readerAuthorization.js").captureReaderAuthorization>;
42
606
  status: "fresh_observation_data" | "observation_conflict" | "observation_provider_rejected" | "unsupported_observation_profile";
@@ -1 +1 @@
1
- {"version":3,"file":"freshActor.d.ts","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/internal/observation/freshActor.ts"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEhE,0FAA0F;AAC1F,wBAAsB,8BAA8B,CAClD,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAIb;AACD,gFAAgF;AAChF,wBAAsB,qCAAqC,CACzD,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAKb"}
1
+ {"version":3,"file":"freshActor.d.ts","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/internal/observation/freshActor.ts"],"names":[],"mappings":"AA0CA,OAAO,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEhE,0FAA0F;AAC1F,wBAAsB,8BAA8B,CAClD,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAmMiB,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA/LxC;AACD,gFAAgF;AAChF,wBAAsB,qCAAqC,CACzD,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA2LiB,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAtLxC;AAMD,wBAAsB,qCAAqC,CACzD,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA8KiB,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA1KxC;AACD,wBAAsB,0CAA0C,CAC9D,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAuKiB,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAnKxC"}