@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.
- package/CHANGELOG.md +12 -0
- package/README.md +1 -1
- package/dist/client/billing/renewalAttach/internal/observation/freshActor.d.ts +564 -0
- package/dist/client/billing/renewalAttach/internal/observation/freshActor.d.ts.map +1 -1
- package/dist/client/billing/renewalAttach/internal/observation/freshActor.js +103 -21
- package/dist/client/billing/renewalAttach/internal/observation/freshActor.js.map +1 -1
- package/dist/client/billing/renewalAttach/internal/observation/freshTransport.d.ts +18 -1
- package/dist/client/billing/renewalAttach/internal/observation/freshTransport.d.ts.map +1 -1
- package/dist/client/billing/renewalAttach/internal/observation/freshTransport.js +54 -1
- package/dist/client/billing/renewalAttach/internal/observation/freshTransport.js.map +1 -1
- package/dist/client/billing/renewalAttach/internal/observation/invocation.d.ts +4 -0
- package/dist/client/billing/renewalAttach/internal/observation/invocation.d.ts.map +1 -1
- package/dist/client/billing/renewalAttach/internal/observation/invocation.js +1 -0
- package/dist/client/billing/renewalAttach/internal/observation/invocation.js.map +1 -1
- package/dist/client/billing/renewalAttach/internal/observation/readerAuthorization.d.ts +4 -0
- package/dist/client/billing/renewalAttach/internal/observation/readerAuthorization.d.ts.map +1 -1
- package/dist/client/billing/renewalAttach/internal/observation/readerAuthorization.js +6 -1
- package/dist/client/billing/renewalAttach/internal/observation/readerAuthorization.js.map +1 -1
- package/dist/client/billing/renewalAttach/internal/observation/witnessAuthorization.d.ts +38 -0
- package/dist/client/billing/renewalAttach/internal/observation/witnessAuthorization.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/observation/witnessAuthorization.js +172 -0
- package/dist/client/billing/renewalAttach/internal/observation/witnessAuthorization.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/observation/witnessData.d.ts +135 -0
- package/dist/client/billing/renewalAttach/internal/observation/witnessData.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/observation/witnessData.js +143 -0
- package/dist/client/billing/renewalAttach/internal/observation/witnessData.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/observation/witnessOperation.d.ts +85 -0
- package/dist/client/billing/renewalAttach/internal/observation/witnessOperation.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/observation/witnessOperation.js +121 -0
- package/dist/client/billing/renewalAttach/internal/observation/witnessOperation.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operations/witnessProfiles.d.ts +44 -0
- package/dist/client/billing/renewalAttach/internal/operations/witnessProfiles.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operations/witnessProfiles.js +4 -0
- package/dist/client/billing/renewalAttach/internal/operations/witnessProfiles.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/producer/configureJournalWork.d.ts +1 -1
- package/dist/client/billing/renewalAttach/internal/producer/configureLineage.d.ts +21 -21
- package/dist/client/billing/renewalAttach/internal/producer/journalWorkFactory.d.ts +3 -3
- package/dist/client/billing/renewalAttach/internal/producer/operationFactory.d.ts +1 -1
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +84 -32
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts +26 -0
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +84 -32
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutSyncTestHelpers.d.ts +26 -0
- package/dist/client/connect/payoutSyncTestHelpers.d.ts.map +1 -1
- package/dist/component/_generated/api.d.ts +24 -0
- package/dist/component/_generated/api.d.ts.map +1 -1
- package/dist/component/_generated/api.js.map +1 -1
- package/dist/component/_generated/component.d.ts +94 -10
- package/dist/component/_generated/component.d.ts.map +1 -1
- package/dist/component/balanceFunding/internal/actions.d.ts +11 -11
- package/dist/component/balanceFunding/mutations.d.ts +16 -16
- package/dist/component/balanceFunding/preparationHandlers.d.ts +8 -8
- package/dist/component/balanceFunding/queries.d.ts +1 -1
- package/dist/component/balanceFunding/workflowValidators.d.ts +16 -16
- package/dist/component/earnings/triggers.d.ts +44 -0
- package/dist/component/earnings/triggers.d.ts.map +1 -1
- package/dist/component/financialObservations/settlementHelpers.d.ts +3 -3
- package/dist/component/renewalWitnesses/eligibility.d.ts +36 -0
- package/dist/component/renewalWitnesses/eligibility.d.ts.map +1 -0
- package/dist/component/renewalWitnesses/eligibility.js +60 -0
- package/dist/component/renewalWitnesses/eligibility.js.map +1 -0
- package/dist/component/renewalWitnesses/mutations.d.ts +45 -0
- package/dist/component/renewalWitnesses/mutations.d.ts.map +1 -0
- package/dist/component/renewalWitnesses/mutations.js +14 -0
- package/dist/component/renewalWitnesses/mutations.js.map +1 -0
- package/dist/component/renewalWitnesses/protocol.d.ts +75 -0
- package/dist/component/renewalWitnesses/protocol.d.ts.map +1 -0
- package/dist/component/renewalWitnesses/protocol.js +82 -0
- package/dist/component/renewalWitnesses/protocol.js.map +1 -0
- package/dist/component/renewalWitnesses/queries.d.ts +39 -0
- package/dist/component/renewalWitnesses/queries.d.ts.map +1 -0
- package/dist/component/renewalWitnesses/queries.js +11 -0
- package/dist/component/renewalWitnesses/queries.js.map +1 -0
- package/dist/component/renewalWitnesses/schema.d.ts +99 -0
- package/dist/component/renewalWitnesses/schema.d.ts.map +1 -0
- package/dist/component/renewalWitnesses/schema.js +36 -0
- package/dist/component/renewalWitnesses/schema.js.map +1 -0
- package/dist/component/renewalWitnesses/source.d.ts +22 -0
- package/dist/component/renewalWitnesses/source.d.ts.map +1 -0
- package/dist/component/renewalWitnesses/source.js +108 -0
- package/dist/component/renewalWitnesses/source.js.map +1 -0
- package/dist/component/schema.d.ts +42 -16
- package/dist/component/schema.js +2 -0
- package/dist/component/schema.js.map +1 -1
- package/dist/component/usage/allowance.fixtures.d.ts +42 -16
- package/dist/component/usage/allowance.fixtures.d.ts.map +1 -1
- package/dist/component/usageCredits/accounting.fixtures.d.ts +26 -0
- package/dist/component/usageCredits/accounting.fixtures.d.ts.map +1 -1
- package/dist/shared/renewalWitness.d.ts +51 -0
- package/dist/shared/renewalWitness.d.ts.map +1 -0
- package/dist/shared/renewalWitness.js +127 -0
- package/dist/shared/renewalWitness.js.map +1 -0
- package/docs/renewal-witness-protocol.md +139 -0
- package/package.json +1 -1
- package/src/client/billing/renewalAttach/internal/observation/freshActor.ts +142 -19
- package/src/client/billing/renewalAttach/internal/observation/freshTransport.ts +90 -1
- package/src/client/billing/renewalAttach/internal/observation/invocation.ts +2 -0
- package/src/client/billing/renewalAttach/internal/observation/readerAuthorization.ts +6 -1
- package/src/client/billing/renewalAttach/internal/observation/witnessAcquisition.integration.test.ts +348 -0
- package/src/client/billing/renewalAttach/internal/observation/witnessActor.integration.test.ts +204 -0
- package/src/client/billing/renewalAttach/internal/observation/witnessAuthorization.ts +239 -0
- package/src/client/billing/renewalAttach/internal/observation/witnessCapabilities.integration.test.ts +231 -0
- package/src/client/billing/renewalAttach/internal/observation/witnessData.ts +189 -0
- package/src/client/billing/renewalAttach/internal/observation/witnessHistorical.integration.test.ts +98 -0
- package/src/client/billing/renewalAttach/internal/observation/witnessImmutable.integration.test.ts +78 -0
- package/src/client/billing/renewalAttach/internal/observation/witnessInvoice.integration.test.ts +85 -0
- package/src/client/billing/renewalAttach/internal/observation/witnessLifecycle.integration.test.ts +264 -0
- package/src/client/billing/renewalAttach/internal/observation/witnessOperation.ts +205 -0
- package/src/client/billing/renewalAttach/internal/observation/witnessProfile.integration.test.ts +93 -0
- package/src/client/billing/renewalAttach/internal/observation/witnessRPCControls.integration.test.ts +256 -0
- package/src/client/billing/renewalAttach/internal/operations/witnessProfiles.ts +58 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/invoiceObservation.ts +3 -1
- package/src/client/billing/renewalAttach/internal/test-fixtures/producerConfigureAdmission.ts +8 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/producerInitialOperation.ts +18 -7
- package/src/client/billing/renewalAttach/internal/test-fixtures/witnessHistory.ts +70 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/witnessObservation.ts +353 -0
- package/src/component/_generated/api.ts +24 -0
- package/src/component/_generated/component.ts +98 -10
- package/src/component/renewalOperations/configureJournal.fixtures.ts +25 -3
- package/src/component/renewalWitnesses/bounds.test.ts +204 -0
- package/src/component/renewalWitnesses/codec.test.ts +84 -0
- package/src/component/renewalWitnesses/controls.test.ts +250 -0
- package/src/component/renewalWitnesses/eligibility.ts +78 -0
- package/src/component/renewalWitnesses/mutations.ts +17 -0
- package/src/component/renewalWitnesses/protocol.test.ts +63 -0
- package/src/component/renewalWitnesses/protocol.ts +103 -0
- package/src/component/renewalWitnesses/queries.ts +11 -0
- package/src/component/renewalWitnesses/routes.test.ts +154 -0
- package/src/component/renewalWitnesses/schema.ts +36 -0
- package/src/component/renewalWitnesses/source.ts +157 -0
- package/src/component/schema.ts +2 -0
- package/src/shared/renewalWitness.ts +179 -0
|
@@ -6871,7 +6871,7 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
6871
6871
|
recordJSON: string;
|
|
6872
6872
|
recordVersion: 2;
|
|
6873
6873
|
requestBinding: string;
|
|
6874
|
-
stage: "attach";
|
|
6874
|
+
stage: "attach" | "configure";
|
|
6875
6875
|
timingPolicyJSON: string;
|
|
6876
6876
|
};
|
|
6877
6877
|
}, {
|
|
@@ -6917,7 +6917,7 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
6917
6917
|
recordJSON: string;
|
|
6918
6918
|
recordVersion: 2;
|
|
6919
6919
|
requestBinding: string;
|
|
6920
|
-
stage: "attach";
|
|
6920
|
+
stage: "attach" | "configure";
|
|
6921
6921
|
timingPolicyJSON: string;
|
|
6922
6922
|
};
|
|
6923
6923
|
sequence: 1 | 2 | 3;
|
|
@@ -6935,7 +6935,7 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
6935
6935
|
basisJSON: string;
|
|
6936
6936
|
policyJSON: string;
|
|
6937
6937
|
sourcePayloadId: string;
|
|
6938
|
-
stage: "attach";
|
|
6938
|
+
stage: "attach" | "configure";
|
|
6939
6939
|
version: 1;
|
|
6940
6940
|
};
|
|
6941
6941
|
operationId: string;
|
|
@@ -7003,7 +7003,7 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
7003
7003
|
recordJSON: string;
|
|
7004
7004
|
recordVersion: 2;
|
|
7005
7005
|
requestBinding: string;
|
|
7006
|
-
stage: "attach";
|
|
7006
|
+
stage: "attach" | "configure";
|
|
7007
7007
|
timingPolicyJSON: string;
|
|
7008
7008
|
};
|
|
7009
7009
|
} | {
|
|
@@ -7046,7 +7046,7 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
7046
7046
|
recordJSON: string;
|
|
7047
7047
|
recordVersion: 2;
|
|
7048
7048
|
requestBinding: string;
|
|
7049
|
-
stage: "attach";
|
|
7049
|
+
stage: "attach" | "configure";
|
|
7050
7050
|
timingPolicyJSON: string;
|
|
7051
7051
|
};
|
|
7052
7052
|
} | {
|
|
@@ -7069,7 +7069,7 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
7069
7069
|
responsePayloadId: string;
|
|
7070
7070
|
schemaVersion: 1;
|
|
7071
7071
|
sourcePayloadId: string;
|
|
7072
|
-
stage: "attach";
|
|
7072
|
+
stage: "attach" | "configure";
|
|
7073
7073
|
status: "retained";
|
|
7074
7074
|
}, Name>;
|
|
7075
7075
|
};
|
|
@@ -7101,7 +7101,7 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
7101
7101
|
preparedRevision: 0;
|
|
7102
7102
|
recordVersion: 2;
|
|
7103
7103
|
requestBinding: string;
|
|
7104
|
-
stage: "attach";
|
|
7104
|
+
stage: "attach" | "configure";
|
|
7105
7105
|
timingPolicyJSON: string;
|
|
7106
7106
|
};
|
|
7107
7107
|
initialBasis: null | {
|
|
@@ -7109,7 +7109,7 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
7109
7109
|
basisJSON: string;
|
|
7110
7110
|
policyJSON: string;
|
|
7111
7111
|
sourcePayloadId: string;
|
|
7112
|
-
stage: "attach";
|
|
7112
|
+
stage: "attach" | "configure";
|
|
7113
7113
|
version: 1;
|
|
7114
7114
|
};
|
|
7115
7115
|
operationId: string;
|
|
@@ -7191,7 +7191,7 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
7191
7191
|
recordJSON: string;
|
|
7192
7192
|
recordVersion: 2;
|
|
7193
7193
|
requestBinding: string;
|
|
7194
|
-
stage: "attach";
|
|
7194
|
+
stage: "attach" | "configure";
|
|
7195
7195
|
timingPolicyJSON: string;
|
|
7196
7196
|
};
|
|
7197
7197
|
}, Name>;
|
|
@@ -7210,7 +7210,7 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
7210
7210
|
responsePayloadId: string;
|
|
7211
7211
|
schemaVersion: 1;
|
|
7212
7212
|
sourcePayloadId: string;
|
|
7213
|
-
stage: "attach";
|
|
7213
|
+
stage: "attach" | "configure";
|
|
7214
7214
|
status: "retained";
|
|
7215
7215
|
};
|
|
7216
7216
|
}, Name>;
|
|
@@ -7231,6 +7231,90 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
7231
7231
|
}, Name>;
|
|
7232
7232
|
};
|
|
7233
7233
|
};
|
|
7234
|
+
renewalWitnesses: {
|
|
7235
|
+
mutations: {
|
|
7236
|
+
retainAuthorizedWitness: FunctionReference<"mutation", "internal", {
|
|
7237
|
+
identity: {
|
|
7238
|
+
componentScope: string;
|
|
7239
|
+
operationId: string;
|
|
7240
|
+
parentOperationId: string;
|
|
7241
|
+
witnessId: string;
|
|
7242
|
+
};
|
|
7243
|
+
payloadJSON: string;
|
|
7244
|
+
}, {
|
|
7245
|
+
descriptor: {
|
|
7246
|
+
authenticationEstablished: false;
|
|
7247
|
+
capturedSubject: string;
|
|
7248
|
+
customerAccountId: string;
|
|
7249
|
+
customerId: string;
|
|
7250
|
+
identity: {
|
|
7251
|
+
componentScope: string;
|
|
7252
|
+
operationId: string;
|
|
7253
|
+
parentOperationId: string;
|
|
7254
|
+
witnessId: string;
|
|
7255
|
+
};
|
|
7256
|
+
livemode: boolean;
|
|
7257
|
+
nativePeriod: {
|
|
7258
|
+
end: number;
|
|
7259
|
+
start: number;
|
|
7260
|
+
};
|
|
7261
|
+
observedAtMs: number;
|
|
7262
|
+
observedItemId: string;
|
|
7263
|
+
operationalAuthority: false;
|
|
7264
|
+
payloadBinding: string;
|
|
7265
|
+
providerQualificationRequired: true;
|
|
7266
|
+
publicDeliveryEstablished: false;
|
|
7267
|
+
scheduleId: string;
|
|
7268
|
+
subscriptionId: string;
|
|
7269
|
+
version: 1;
|
|
7270
|
+
witnessRowId: string;
|
|
7271
|
+
};
|
|
7272
|
+
status: "retained";
|
|
7273
|
+
} | {
|
|
7274
|
+
reason: "identity_changed";
|
|
7275
|
+
status: "conflict";
|
|
7276
|
+
}, Name>;
|
|
7277
|
+
};
|
|
7278
|
+
queries: {
|
|
7279
|
+
readAuthorizedWitness: FunctionReference<"query", "internal", {
|
|
7280
|
+
identity: {
|
|
7281
|
+
componentScope: string;
|
|
7282
|
+
operationId: string;
|
|
7283
|
+
parentOperationId: string;
|
|
7284
|
+
witnessId: string;
|
|
7285
|
+
};
|
|
7286
|
+
}, null | {
|
|
7287
|
+
descriptor: {
|
|
7288
|
+
authenticationEstablished: false;
|
|
7289
|
+
capturedSubject: string;
|
|
7290
|
+
customerAccountId: string;
|
|
7291
|
+
customerId: string;
|
|
7292
|
+
identity: {
|
|
7293
|
+
componentScope: string;
|
|
7294
|
+
operationId: string;
|
|
7295
|
+
parentOperationId: string;
|
|
7296
|
+
witnessId: string;
|
|
7297
|
+
};
|
|
7298
|
+
livemode: boolean;
|
|
7299
|
+
nativePeriod: {
|
|
7300
|
+
end: number;
|
|
7301
|
+
start: number;
|
|
7302
|
+
};
|
|
7303
|
+
observedAtMs: number;
|
|
7304
|
+
observedItemId: string;
|
|
7305
|
+
operationalAuthority: false;
|
|
7306
|
+
payloadBinding: string;
|
|
7307
|
+
providerQualificationRequired: true;
|
|
7308
|
+
publicDeliveryEstablished: false;
|
|
7309
|
+
scheduleId: string;
|
|
7310
|
+
subscriptionId: string;
|
|
7311
|
+
version: 1;
|
|
7312
|
+
witnessRowId: string;
|
|
7313
|
+
};
|
|
7314
|
+
payloadJSON: string;
|
|
7315
|
+
}, Name>;
|
|
7316
|
+
};
|
|
7317
|
+
};
|
|
7234
7318
|
reversalObservations: {
|
|
7235
7319
|
mutations: {
|
|
7236
7320
|
resume: FunctionReference<"mutation", "internal", {
|