@adcp/sdk 15.9.0 → 16.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/adcp-identity.js +74 -0
- package/bin/adcp.js +2 -0
- package/dist/lib/adapters/keyed-account-backend.d.mts +37 -0
- package/dist/lib/adapters/keyed-account-backend.d.ts +37 -0
- package/dist/lib/adapters/keyed-account-backend.js +121 -0
- package/dist/lib/adapters/keyed-account-backend.mjs +94 -0
- package/dist/lib/adapters/keyed-account-store.d.mts +28 -0
- package/dist/lib/adapters/keyed-account-store.d.ts +28 -0
- package/dist/lib/adapters/keyed-account-store.js +227 -0
- package/dist/lib/adapters/keyed-account-store.mjs +203 -0
- package/dist/lib/core/SingleAgentClient.d.mts +16 -2
- package/dist/lib/core/SingleAgentClient.d.ts +16 -2
- package/dist/lib/core/SingleAgentClient.js +259 -62
- package/dist/lib/core/SingleAgentClient.mjs +261 -57
- package/dist/lib/core/TaskExecutor.d.mts +6 -0
- package/dist/lib/core/TaskExecutor.d.ts +6 -0
- package/dist/lib/core/TaskExecutor.js +66 -5
- package/dist/lib/core/TaskExecutor.mjs +71 -5
- package/dist/lib/core/postgres-webhook-registration-store.js +32 -5
- package/dist/lib/core/postgres-webhook-registration-store.mjs +32 -5
- package/dist/lib/core/redis-webhook-registration-store.js +23 -1
- package/dist/lib/core/redis-webhook-registration-store.mjs +23 -1
- package/dist/lib/core/webhook-registration.d.mts +7 -1
- package/dist/lib/core/webhook-registration.d.ts +7 -1
- package/dist/lib/core/webhook-registration.js +24 -2
- package/dist/lib/core/webhook-registration.mjs +23 -2
- package/dist/lib/identity-3.3/index.d.mts +10 -0
- package/dist/lib/identity-3.3/index.d.ts +10 -0
- package/dist/lib/identity-3.3/index.js +75 -0
- package/dist/lib/identity-3.3/index.mjs +46 -0
- package/dist/lib/identity-3.3/lifecycle.d.mts +113 -0
- package/dist/lib/identity-3.3/lifecycle.d.ts +113 -0
- package/dist/lib/identity-3.3/lifecycle.js +267 -0
- package/dist/lib/identity-3.3/lifecycle.mjs +240 -0
- package/dist/lib/identity-3.3/revocation.d.mts +50 -0
- package/dist/lib/identity-3.3/revocation.d.ts +50 -0
- package/dist/lib/identity-3.3/revocation.js +238 -0
- package/dist/lib/identity-3.3/revocation.mjs +216 -0
- package/dist/lib/identity-3.3/schemas.draft.d.mts +2472 -0
- package/dist/lib/identity-3.3/schemas.draft.d.ts +2472 -0
- package/dist/lib/identity-3.3/schemas.draft.js +1448 -0
- package/dist/lib/identity-3.3/schemas.draft.mjs +1428 -0
- package/dist/lib/identity-3.3/server.d.mts +34 -0
- package/dist/lib/identity-3.3/server.d.ts +34 -0
- package/dist/lib/identity-3.3/server.js +219 -0
- package/dist/lib/identity-3.3/server.mjs +194 -0
- package/dist/lib/identity-3.3/store.d.mts +24 -0
- package/dist/lib/identity-3.3/store.d.ts +24 -0
- package/dist/lib/identity-3.3/store.js +191 -0
- package/dist/lib/identity-3.3/store.mjs +169 -0
- package/dist/lib/identity-3.3/trust.d.mts +94 -0
- package/dist/lib/identity-3.3/trust.d.ts +94 -0
- package/dist/lib/identity-3.3/trust.js +278 -0
- package/dist/lib/identity-3.3/trust.mjs +239 -0
- package/dist/lib/identity-3.3/types.d.mts +127 -0
- package/dist/lib/identity-3.3/types.d.ts +127 -0
- package/dist/lib/identity-3.3/types.js +16 -0
- package/dist/lib/identity-3.3/types.mjs +0 -0
- package/dist/lib/identity-3.3/validation.d.mts +2 -0
- package/dist/lib/identity-3.3/validation.d.ts +2 -0
- package/dist/lib/identity-3.3/validation.js +125 -0
- package/dist/lib/identity-3.3/validation.mjs +91 -0
- package/dist/lib/index.d.mts +1 -1
- package/dist/lib/index.d.ts +1 -1
- package/dist/lib/reporting/azure/index.d.mts +5 -0
- package/dist/lib/reporting/azure/index.d.ts +5 -0
- package/dist/lib/reporting/azure/index.js +26 -7
- package/dist/lib/reporting/azure/index.mjs +26 -7
- package/dist/lib/reporting/bigquery/index.d.mts +80 -25
- package/dist/lib/reporting/bigquery/index.d.ts +80 -25
- package/dist/lib/reporting/bigquery/index.js +184 -81
- package/dist/lib/reporting/bigquery/index.mjs +182 -80
- package/dist/lib/reporting/gcs/adapter.d.mts +8 -1
- package/dist/lib/reporting/gcs/adapter.d.ts +8 -1
- package/dist/lib/reporting/gcs/errors.d.mts +6 -0
- package/dist/lib/reporting/gcs/errors.d.ts +6 -0
- package/dist/lib/reporting/gcs/fence.d.mts +5 -0
- package/dist/lib/reporting/gcs/fence.d.ts +5 -0
- package/dist/lib/reporting/gcs/index.d.mts +9 -0
- package/dist/lib/reporting/gcs/index.d.ts +9 -0
- package/dist/lib/reporting/gcs/reader.d.mts +27 -3
- package/dist/lib/reporting/gcs/reader.d.ts +27 -3
- package/dist/lib/reporting/gcs/row-provider.d.mts +7 -0
- package/dist/lib/reporting/gcs/row-provider.d.ts +7 -0
- package/dist/lib/reporting/gcs/row-provider.js +34 -14
- package/dist/lib/reporting/gcs/row-provider.mjs +34 -14
- package/dist/lib/reporting/ledger/change-feed.d.mts +22 -1
- package/dist/lib/reporting/ledger/change-feed.d.ts +22 -1
- package/dist/lib/reporting/ledger/index.d.mts +11 -0
- package/dist/lib/reporting/ledger/index.d.ts +11 -0
- package/dist/lib/reporting/ledger/managed-postgres.d.mts +8 -0
- package/dist/lib/reporting/ledger/managed-postgres.d.ts +8 -0
- package/dist/lib/reporting/ledger/managed-router.d.mts +27 -2
- package/dist/lib/reporting/ledger/managed-router.d.ts +27 -2
- package/dist/lib/reporting/ledger/managed.d.mts +86 -6
- package/dist/lib/reporting/ledger/managed.d.ts +86 -6
- package/dist/lib/reporting/ledger/notification-activity.d.mts +65 -3
- package/dist/lib/reporting/ledger/notification-activity.d.ts +65 -3
- package/dist/lib/reporting/ledger/object-writes.d.mts +64 -5
- package/dist/lib/reporting/ledger/object-writes.d.ts +64 -5
- package/dist/lib/reporting/ledger/postgres.d.mts +43 -9
- package/dist/lib/reporting/ledger/postgres.d.ts +43 -9
- package/dist/lib/reporting/ledger/postgres.js +43 -27
- package/dist/lib/reporting/ledger/postgres.mjs +43 -27
- package/dist/lib/reporting/ledger/row-encoding.d.mts +92 -6
- package/dist/lib/reporting/ledger/row-encoding.d.ts +92 -6
- package/dist/lib/reporting/ledger/row-encoding.js +8 -4
- package/dist/lib/reporting/ledger/row-encoding.mjs +6 -3
- package/dist/lib/reporting/ledger/row-storage-errors.d.mts +11 -1
- package/dist/lib/reporting/ledger/row-storage-errors.d.ts +11 -1
- package/dist/lib/reporting/ledger/row-storage-migration.d.mts +19 -1
- package/dist/lib/reporting/ledger/row-storage-migration.d.ts +19 -1
- package/dist/lib/reporting/ledger/row-storage-migration.js +133 -18
- package/dist/lib/reporting/ledger/row-storage-migration.mjs +133 -18
- package/dist/lib/reporting/ledger/row-storage-object.d.mts +103 -12
- package/dist/lib/reporting/ledger/row-storage-object.d.ts +103 -12
- package/dist/lib/reporting/ledger/row-storage-object.js +106 -31
- package/dist/lib/reporting/ledger/row-storage-object.mjs +104 -31
- package/dist/lib/reporting/ledger/row-storage.d.mts +87 -20
- package/dist/lib/reporting/ledger/row-storage.d.ts +87 -20
- package/dist/lib/reporting/ledger/row-storage.js +126 -66
- package/dist/lib/reporting/ledger/row-storage.mjs +129 -67
- package/dist/lib/reporting/ledger/schedule.d.mts +13 -0
- package/dist/lib/reporting/ledger/schedule.d.ts +13 -0
- package/dist/lib/reporting/ledger/schedule.js +24 -0
- package/dist/lib/reporting/ledger/schedule.mjs +23 -0
- package/dist/lib/reporting/ledger/types.d.mts +23 -1
- package/dist/lib/reporting/ledger/types.d.ts +23 -1
- package/dist/lib/reporting/s3/index.d.mts +5 -0
- package/dist/lib/reporting/s3/index.d.ts +5 -0
- package/dist/lib/reporting/s3/index.js +37 -14
- package/dist/lib/reporting/s3/index.mjs +37 -14
- package/dist/lib/reporting/service/index.d.mts +10 -0
- package/dist/lib/reporting/service/index.d.ts +10 -0
- package/dist/lib/reporting/service/maintenance.d.mts +28 -2
- package/dist/lib/reporting/service/maintenance.d.ts +28 -2
- package/dist/lib/schemas-data/v2.5/_provenance.json +1 -1
- package/dist/lib/server/account-sync-contract.d.mts +14 -0
- package/dist/lib/server/account-sync-contract.d.ts +14 -0
- package/dist/lib/server/account-sync-contract.js +225 -0
- package/dist/lib/server/account-sync-contract.mjs +197 -0
- package/dist/lib/server/adcp-server.js +5 -0
- package/dist/lib/server/adcp-server.mjs +10 -0
- package/dist/lib/server/auth-signature.d.mts +10 -0
- package/dist/lib/server/auth-signature.d.ts +10 -0
- package/dist/lib/server/auth-signature.js +61 -2
- package/dist/lib/server/auth-signature.mjs +65 -2
- package/dist/lib/server/auth.d.mts +6 -0
- package/dist/lib/server/auth.d.ts +6 -0
- package/dist/lib/server/auth.js +6 -0
- package/dist/lib/server/auth.mjs +6 -0
- package/dist/lib/server/create-adcp-server.d.mts +19 -5
- package/dist/lib/server/create-adcp-server.d.ts +19 -5
- package/dist/lib/server/create-adcp-server.js +238 -19
- package/dist/lib/server/create-adcp-server.mjs +240 -10
- package/dist/lib/server/decisioning/account.d.mts +24 -1
- package/dist/lib/server/decisioning/account.d.ts +24 -1
- package/dist/lib/server/decisioning/index.d.mts +1 -1
- package/dist/lib/server/decisioning/index.d.ts +1 -1
- package/dist/lib/server/decisioning/runtime/from-platform.d.mts +0 -50
- package/dist/lib/server/decisioning/runtime/from-platform.d.ts +0 -50
- package/dist/lib/server/decisioning/runtime/from-platform.js +61 -11
- package/dist/lib/server/decisioning/runtime/from-platform.mjs +65 -12
- package/dist/lib/server/index.d.mts +2 -0
- package/dist/lib/server/index.d.ts +2 -0
- package/dist/lib/server/index.js +12 -0
- package/dist/lib/server/index.mjs +12 -0
- package/dist/lib/server/notification-subscriptions/runtime.js +9 -1
- package/dist/lib/server/notification-subscriptions/runtime.mjs +9 -1
- package/dist/lib/server/notification-subscriptions/types.d.mts +5 -0
- package/dist/lib/server/notification-subscriptions/types.d.ts +5 -0
- package/dist/lib/server/principal/types.d.mts +1 -1
- package/dist/lib/server/principal/types.d.ts +1 -1
- package/dist/lib/server/serve.js +5 -0
- package/dist/lib/server/serve.mjs +5 -0
- package/dist/lib/server/webhook-delivery/recovery.d.mts +1 -0
- package/dist/lib/server/webhook-delivery/recovery.d.ts +1 -0
- package/dist/lib/server/webhook-delivery/recovery.js +4 -0
- package/dist/lib/server/webhook-delivery/recovery.mjs +4 -0
- package/dist/lib/server/webhook-emitter.d.mts +10 -0
- package/dist/lib/server/webhook-emitter.d.ts +10 -0
- package/dist/lib/server/webhook-emitter.js +22 -0
- package/dist/lib/server/webhook-emitter.mjs +22 -0
- package/dist/lib/signing/agent-context.d.mts +0 -5
- package/dist/lib/signing/agent-context.d.ts +0 -5
- package/dist/lib/signing/agent-context.js +9 -1
- package/dist/lib/signing/agent-context.mjs +9 -1
- package/dist/lib/signing/agent-fetch.js +27 -2
- package/dist/lib/signing/agent-fetch.mjs +32 -2
- package/dist/lib/signing/agent-resolver/canonicalize.d.mts +10 -15
- package/dist/lib/signing/agent-resolver/canonicalize.d.ts +10 -15
- package/dist/lib/signing/agent-resolver/canonicalize.js +17 -5
- package/dist/lib/signing/agent-resolver/canonicalize.mjs +16 -5
- package/dist/lib/signing/agent-resolver/index.d.mts +1 -0
- package/dist/lib/signing/agent-resolver/index.d.ts +1 -0
- package/dist/lib/signing/agent-resolver/index.js +5 -0
- package/dist/lib/signing/agent-resolver/index.mjs +3 -0
- package/dist/lib/signing/agent-resolver/resolved-agent-jwks.d.mts +3 -2
- package/dist/lib/signing/agent-resolver/resolved-agent-jwks.d.ts +3 -2
- package/dist/lib/signing/agent-resolver/resolved-agent-jwks.js +30 -3
- package/dist/lib/signing/agent-resolver/resolved-agent-jwks.mjs +30 -3
- package/dist/lib/signing/agent-resolver/strict-json.d.mts +2 -2
- package/dist/lib/signing/agent-resolver/strict-json.d.ts +2 -2
- package/dist/lib/signing/agent-resolver/strict-json.js +5 -3
- package/dist/lib/signing/agent-resolver/strict-json.mjs +5 -3
- package/dist/lib/signing/brand-jwks.d.mts +2 -2
- package/dist/lib/signing/brand-jwks.d.ts +2 -2
- package/dist/lib/signing/brand-jwks.js +4 -4
- package/dist/lib/signing/brand-jwks.mjs +4 -4
- package/dist/lib/signing/client.d.mts +1 -0
- package/dist/lib/signing/client.d.ts +1 -0
- package/dist/lib/signing/client.js +5 -0
- package/dist/lib/signing/client.mjs +3 -0
- package/dist/lib/signing/jwks-https.d.mts +1 -1
- package/dist/lib/signing/jwks-https.d.ts +1 -1
- package/dist/lib/signing/jwks-https.js +1 -1
- package/dist/lib/signing/jwks-https.mjs +1 -1
- package/dist/lib/signing/jwks.d.mts +11 -3
- package/dist/lib/signing/jwks.d.ts +11 -3
- package/dist/lib/signing/jwks.js +1 -1
- package/dist/lib/signing/jwks.mjs +1 -1
- package/dist/lib/signing/parser.d.mts +1 -1
- package/dist/lib/signing/parser.d.ts +1 -1
- package/dist/lib/signing/parser.js +5 -3
- package/dist/lib/signing/parser.mjs +6 -4
- package/dist/lib/signing/revocation.d.mts +4 -1
- package/dist/lib/signing/revocation.d.ts +4 -1
- package/dist/lib/signing/revocation.js +33 -3
- package/dist/lib/signing/revocation.mjs +31 -2
- package/dist/lib/signing/server.d.mts +1 -1
- package/dist/lib/signing/server.d.ts +1 -1
- package/dist/lib/signing/server.js +4 -0
- package/dist/lib/signing/server.mjs +4 -0
- package/dist/lib/signing/types.d.mts +3 -0
- package/dist/lib/signing/types.d.ts +3 -0
- package/dist/lib/signing/web-bot-auth.d.mts +117 -0
- package/dist/lib/signing/web-bot-auth.d.ts +117 -0
- package/dist/lib/signing/web-bot-auth.js +660 -0
- package/dist/lib/signing/web-bot-auth.mjs +624 -0
- package/dist/lib/testing/client.d.mts +1 -4
- package/dist/lib/testing/client.d.ts +1 -4
- package/dist/lib/testing/client.js +141 -20
- package/dist/lib/testing/client.mjs +137 -19
- package/dist/lib/testing/compliance/comply.js +29 -10
- package/dist/lib/testing/compliance/comply.mjs +37 -11
- package/dist/lib/testing/storyboard/account-sync-contract.d.mts +3 -0
- package/dist/lib/testing/storyboard/account-sync-contract.d.ts +3 -0
- package/dist/lib/testing/storyboard/account-sync-contract.js +79 -0
- package/dist/lib/testing/storyboard/account-sync-contract.mjs +55 -0
- package/dist/lib/testing/storyboard/default-invariants.js +2 -0
- package/dist/lib/testing/storyboard/default-invariants.mjs +2 -0
- package/dist/lib/testing/storyboard/runner.js +23 -8
- package/dist/lib/testing/storyboard/runner.mjs +24 -8
- package/dist/lib/testing/storyboard/validations.d.mts +1 -1
- package/dist/lib/testing/storyboard/validations.d.ts +1 -1
- package/dist/lib/types/adcp.d.mts +4 -0
- package/dist/lib/types/adcp.d.ts +4 -0
- package/dist/lib/types/schemas.generated.d.ts +6 -6
- package/dist/lib/utils/capabilities.d.mts +1 -0
- package/dist/lib/utils/capabilities.d.ts +1 -0
- package/dist/lib/utils/capabilities.js +5 -0
- package/dist/lib/utils/capabilities.mjs +5 -0
- package/dist/lib/v2/projection/creative-delivery.d.mts +3 -1
- package/dist/lib/v2/projection/creative-delivery.d.ts +3 -1
- package/dist/lib/v2/projection/creative-delivery.js +26 -10
- package/dist/lib/v2/projection/creative-delivery.mjs +26 -10
- package/dist/lib/v2/projection/index.d.mts +1 -1
- package/dist/lib/v2/projection/index.d.ts +1 -1
- package/dist/lib/v2/projection/legacy-routes.d.mts +24 -2
- package/dist/lib/v2/projection/legacy-routes.d.ts +24 -2
- package/dist/lib/v2/projection/legacy-routes.js +28 -2
- package/dist/lib/v2/projection/legacy-routes.mjs +26 -2
- package/dist/lib/validation/schema-loader.d.mts +2 -0
- package/dist/lib/validation/schema-loader.d.ts +2 -0
- package/dist/lib/validation/schema-loader.js +43 -4
- package/dist/lib/validation/schema-loader.mjs +39 -3
- package/dist/lib/version.d.mts +3 -3
- package/dist/lib/version.d.ts +3 -3
- package/dist/lib/version.js +3 -3
- package/dist/lib/version.mjs +3 -3
- package/docs/TYPE-SUMMARY.md +2 -2
- package/docs/guides/DISCOVERY-CACHE-AND-SESSION-REUSE.md +4 -0
- package/docs/guides/REPORTING-LEDGER-CUTOVER.md +1 -1
- package/docs/guides/REPORTING-LEDGER.md +132 -46
- package/docs/guides/REPORTING-OPERATIONS.md +25 -4
- package/docs/guides/REPORTING-STABILITY.md +76 -0
- package/docs/guides/account-resolution.md +101 -0
- package/docs/llms.txt +3 -2
- package/docs/migration-12-to-13.md +7 -0
- package/docs/migration-14.x-rc-worksheet.md +4 -4
- package/docs/migration-agent-identity-3.3.md +355 -0
- package/docs/migration-agent-resolution-3.3.md +5 -0
- package/docs/migration-reporting-row-storage-alignment.md +137 -0
- package/examples/storyboards/account-sync-contract.yaml +57 -0
- package/package.json +15 -1
|
@@ -2,7 +2,11 @@ import type { ReportingVerification } from '../../types';
|
|
|
2
2
|
import { type ReportingDestinationAuthorizationV1, type ReportingDestinationPatternV1, type ReportingManagedDeliveryAdapterV1 } from './managed';
|
|
3
3
|
import type { ReportingManagedDeliveryBindingV1 } from './types';
|
|
4
4
|
type VerificationProfile = ReportingVerification['verification_profile'];
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* Why a delivery, read, revocation or admission could not be routed.
|
|
7
|
+
*
|
|
8
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
9
|
+
*/
|
|
6
10
|
export type ReportingManagedDeliveryRoutingErrorCodeV1 =
|
|
7
11
|
/** No route is installed for the pattern and transport. */
|
|
8
12
|
'REPORTING_ROUTE_NOT_FOUND'
|
|
@@ -12,10 +16,15 @@ export type ReportingManagedDeliveryRoutingErrorCodeV1 =
|
|
|
12
16
|
| 'REPORTING_ROUTE_CONTRACT_UNRECORDED'
|
|
13
17
|
/** The binding's verification profile is not one its route can verify. */
|
|
14
18
|
| 'REPORTING_ROUTE_VERIFICATION_UNSUPPORTED';
|
|
19
|
+
/**
|
|
20
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
21
|
+
*/
|
|
15
22
|
export type ReportingManagedDeliveryRoutingOperationV1 = 'deliver' | 'read' | 'revoke' | 'admit_binding' | 'admit_offering';
|
|
16
23
|
/**
|
|
17
24
|
* Raised by the router before it touches any adapter. The fields are the
|
|
18
25
|
* non-secret routing facts only: no destination, location or credential.
|
|
26
|
+
*
|
|
27
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
19
28
|
*/
|
|
20
29
|
export declare class ReportingManagedDeliveryRoutingErrorV1 extends Error {
|
|
21
30
|
readonly code: ReportingManagedDeliveryRoutingErrorCodeV1;
|
|
@@ -33,11 +42,16 @@ export declare class ReportingManagedDeliveryRoutingErrorV1 extends Error {
|
|
|
33
42
|
* Raised by `router.probe()` when at least one route's probe failed. Carries
|
|
34
43
|
* the ids of the failing routes and nothing else from the provider; the
|
|
35
44
|
* individual errors are on `cause` (an `AggregateError`) for seller logs only.
|
|
45
|
+
*
|
|
46
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
36
47
|
*/
|
|
37
48
|
export declare class ReportingManagedDeliveryProbeErrorV1 extends Error {
|
|
38
49
|
readonly failedRouteIds: readonly string[];
|
|
39
50
|
constructor(failedRouteIds: readonly string[], errors: readonly unknown[]);
|
|
40
51
|
}
|
|
52
|
+
/**
|
|
53
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
54
|
+
*/
|
|
41
55
|
export interface ReportingManagedDeliveryRouteV1 {
|
|
42
56
|
/** Stable id used in per-route counts and probe failures. Lowercase token, at most 64 characters. */
|
|
43
57
|
id: string;
|
|
@@ -53,6 +67,9 @@ export interface ReportingManagedDeliveryRouteV1 {
|
|
|
53
67
|
*/
|
|
54
68
|
adapter: ReportingManagedDeliveryAdapterV1;
|
|
55
69
|
}
|
|
70
|
+
/**
|
|
71
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
72
|
+
*/
|
|
56
73
|
export interface CreateReportingManagedDeliveryAdapterRouterOptionsV1 {
|
|
57
74
|
routes: readonly ReportingManagedDeliveryRouteV1[];
|
|
58
75
|
/**
|
|
@@ -70,7 +87,11 @@ export interface CreateReportingManagedDeliveryAdapterRouterOptionsV1 {
|
|
|
70
87
|
*/
|
|
71
88
|
probeTimeoutMilliseconds?: number;
|
|
72
89
|
}
|
|
73
|
-
/**
|
|
90
|
+
/**
|
|
91
|
+
* What a router exposes about a route. The adapter itself stays private to the router.
|
|
92
|
+
*
|
|
93
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
94
|
+
*/
|
|
74
95
|
export interface ReportingManagedDeliveryRouteDescriptionV1 {
|
|
75
96
|
readonly id: string;
|
|
76
97
|
readonly match: Readonly<{
|
|
@@ -82,6 +103,8 @@ export interface ReportingManagedDeliveryRouteDescriptionV1 {
|
|
|
82
103
|
/**
|
|
83
104
|
* A `ReportingManagedDeliveryAdapterV1` that dispatches to one adapter per
|
|
84
105
|
* (pattern, transport). The optional hooks are always present on a router.
|
|
106
|
+
*
|
|
107
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
85
108
|
*/
|
|
86
109
|
export interface ReportingManagedDeliveryAdapterRouterV1 extends ReportingManagedDeliveryAdapterV1 {
|
|
87
110
|
readonly routes: readonly ReportingManagedDeliveryRouteDescriptionV1[];
|
|
@@ -118,6 +141,8 @@ export interface ReportingManagedDeliveryAdapterRouterV1 extends ReportingManage
|
|
|
118
141
|
* authorization generation. It never fans out.
|
|
119
142
|
* - Nothing that cannot be routed reaches an adapter: the router throws a
|
|
120
143
|
* `ReportingManagedDeliveryRoutingErrorV1` first.
|
|
144
|
+
*
|
|
145
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
121
146
|
*/
|
|
122
147
|
export declare function createReportingManagedDeliveryAdapterRouterV1(options: CreateReportingManagedDeliveryAdapterRouterOptionsV1): ReportingManagedDeliveryAdapterRouterV1;
|
|
123
148
|
export {};
|
|
@@ -7,14 +7,31 @@ import type { ReportingLedgerAdjustmentV1, ReportingLegacyRevisionReaderV1, Repo
|
|
|
7
7
|
* Upper bound on an adapter's startup probe, so a hung provider cannot hang startup.
|
|
8
8
|
* A router's per-route probe budget must stay under it, or this deadline fires
|
|
9
9
|
* first and the failing route's id never reaches the startup error.
|
|
10
|
+
*
|
|
11
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
10
12
|
*/
|
|
11
13
|
export declare const REPORTING_ADAPTER_PROBE_DEADLINE_MILLISECONDS_V1 = 30000;
|
|
12
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* The delivery pattern a destination authorization generation serves.
|
|
16
|
+
*
|
|
17
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
18
|
+
*/
|
|
13
19
|
export type ReportingDestinationPatternV1 = ReportingManagedDeliveryBindingV1['method'];
|
|
14
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* Delivery patterns, in the order the protocol lists them.
|
|
22
|
+
*
|
|
23
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
24
|
+
*/
|
|
15
25
|
export declare const REPORTING_DESTINATION_PATTERNS_V1: readonly ReportingDestinationPatternV1[];
|
|
16
|
-
/**
|
|
26
|
+
/**
|
|
27
|
+
* Same constraint the protocol puts on `method.transport`.
|
|
28
|
+
*
|
|
29
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
30
|
+
*/
|
|
17
31
|
export declare const REPORTING_DESTINATION_TRANSPORT_PATTERN_V1: RegExp;
|
|
32
|
+
/**
|
|
33
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
34
|
+
*/
|
|
18
35
|
export interface ReportingDestinationAuthorizationV1 {
|
|
19
36
|
account_id: string;
|
|
20
37
|
destination_ref: string;
|
|
@@ -38,6 +55,9 @@ export interface ReportingDestinationAuthorizationV1 {
|
|
|
38
55
|
revoked_at?: string;
|
|
39
56
|
cleanup_completed_at?: string;
|
|
40
57
|
}
|
|
58
|
+
/**
|
|
59
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
60
|
+
*/
|
|
41
61
|
export interface ReportingManagedDeliveryLeaseV1 {
|
|
42
62
|
materialization: ReportingMaterialization;
|
|
43
63
|
binding: ReportingManagedDeliveryBindingV1;
|
|
@@ -47,6 +67,9 @@ export interface ReportingManagedDeliveryLeaseV1 {
|
|
|
47
67
|
generation: number;
|
|
48
68
|
expires_at: string;
|
|
49
69
|
}
|
|
70
|
+
/**
|
|
71
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
72
|
+
*/
|
|
50
73
|
export interface ReportingDestinationRevocationLeaseV1 {
|
|
51
74
|
authorization: ReportingDestinationAuthorizationV1;
|
|
52
75
|
owner: string;
|
|
@@ -65,6 +88,9 @@ export interface ReportingDestinationRevocationLeaseV1 {
|
|
|
65
88
|
overdue?: boolean;
|
|
66
89
|
remaining_milliseconds?: number;
|
|
67
90
|
}
|
|
91
|
+
/**
|
|
92
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
93
|
+
*/
|
|
68
94
|
export type ReportingReceiptBatchEntryV1 = {
|
|
69
95
|
kind: 'revision';
|
|
70
96
|
receipt: ReportingReceipt;
|
|
@@ -72,6 +98,9 @@ export type ReportingReceiptBatchEntryV1 = {
|
|
|
72
98
|
kind: 'adjustment';
|
|
73
99
|
receipt: ReportingAdjustmentReceipt;
|
|
74
100
|
};
|
|
101
|
+
/**
|
|
102
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
103
|
+
*/
|
|
75
104
|
export interface ReportingReceiptBatchInputV1 {
|
|
76
105
|
account_id: string;
|
|
77
106
|
consumer_id: string;
|
|
@@ -80,13 +109,20 @@ export interface ReportingReceiptBatchInputV1 {
|
|
|
80
109
|
entries: ReportingReceiptBatchEntryV1[];
|
|
81
110
|
received_at: string;
|
|
82
111
|
}
|
|
83
|
-
/**
|
|
112
|
+
/**
|
|
113
|
+
* Agent-wide Managed Delivery promises durably shared by every replica.
|
|
114
|
+
*
|
|
115
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
116
|
+
*/
|
|
84
117
|
export interface ReportingManagedDeliveryAdvertisedPoliciesV1 {
|
|
85
118
|
automatedRecoveryWindowSeconds: number;
|
|
86
119
|
statusRetentionDays: number;
|
|
87
120
|
resourceRetentionDays: number;
|
|
88
121
|
authorizationRevocationSeconds: number;
|
|
89
122
|
}
|
|
123
|
+
/**
|
|
124
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
125
|
+
*/
|
|
90
126
|
export interface ReportingManagedDeliveryStore {
|
|
91
127
|
/**
|
|
92
128
|
* Prove that this store shares the supplied Core authority and has its
|
|
@@ -243,6 +279,9 @@ export interface ReportingManagedDeliveryStore {
|
|
|
243
279
|
}): Promise<boolean>;
|
|
244
280
|
syncReceiptBatch(input: ReportingReceiptBatchInputV1): Promise<SyncReportingReceiptsResponse['results']>;
|
|
245
281
|
}
|
|
282
|
+
/**
|
|
283
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
284
|
+
*/
|
|
246
285
|
export interface ReportingManagedDeliveryAdapterV1 {
|
|
247
286
|
/** Profiles this installed adapter can actually verify through its consumer/destination path. */
|
|
248
287
|
readonly verificationProfiles: readonly ReportingVerification['verification_profile'][];
|
|
@@ -318,6 +357,8 @@ export interface ReportingManagedDeliveryAdapterV1 {
|
|
|
318
357
|
* when the installed adapter is a router, so a single-adapter runtime's result
|
|
319
358
|
* shape is unchanged. Work that no route could take is counted under
|
|
320
359
|
* `UNROUTED_REPORTING_ROUTE_KEY_V1`, which no route id can equal.
|
|
360
|
+
*
|
|
361
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
321
362
|
*/
|
|
322
363
|
export interface ReportingManagedDeliveryRouteCountsV1 {
|
|
323
364
|
/** Materializations settled as delivered, by the route that delivered them. */
|
|
@@ -331,8 +372,15 @@ export interface ReportingManagedDeliveryRouteCountsV1 {
|
|
|
331
372
|
/** Revocations that had already outlived the advertised window when claimed, by route. */
|
|
332
373
|
overdueByRoute: Record<string, number>;
|
|
333
374
|
}
|
|
334
|
-
/**
|
|
375
|
+
/**
|
|
376
|
+
* Key for work no delivery route could take. Not a valid route id.
|
|
377
|
+
*
|
|
378
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
379
|
+
*/
|
|
335
380
|
export declare const UNROUTED_REPORTING_ROUTE_KEY_V1 = "~unrouted";
|
|
381
|
+
/**
|
|
382
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
383
|
+
*/
|
|
336
384
|
export interface ReportingManagedDeliveryWorkerResultV1 extends Partial<ReportingManagedDeliveryRouteCountsV1> {
|
|
337
385
|
planned: number;
|
|
338
386
|
claimed: number;
|
|
@@ -343,6 +391,9 @@ export interface ReportingManagedDeliveryWorkerResultV1 extends Partial<Reportin
|
|
|
343
391
|
/** Materializations failed for using every delivery attempt. */
|
|
344
392
|
exhausted: number;
|
|
345
393
|
}
|
|
394
|
+
/**
|
|
395
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
396
|
+
*/
|
|
346
397
|
export interface ReportingManagedDeliveryWorkerOptionsV1 {
|
|
347
398
|
signal?: AbortSignal;
|
|
348
399
|
now?: () => Date;
|
|
@@ -374,6 +425,9 @@ export interface ReportingManagedDeliveryWorkerOptionsV1 {
|
|
|
374
425
|
*/
|
|
375
426
|
hydrateRevision?: (revision: ReportingManagedDeliveryLeaseV1['revision'], account_id: string, signal: AbortSignal | undefined) => Promise<ReportingManagedDeliveryLeaseV1['revision']>;
|
|
376
427
|
}
|
|
428
|
+
/**
|
|
429
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
430
|
+
*/
|
|
377
431
|
export interface CreateReportingManagedDeliveryRuntimeOptionsV1<TContext extends {
|
|
378
432
|
account?: unknown;
|
|
379
433
|
} = {
|
|
@@ -392,6 +446,9 @@ export interface CreateReportingManagedDeliveryRuntimeOptionsV1<TContext extends
|
|
|
392
446
|
resolveConsumerId?: (context: TContext) => string | Promise<string>;
|
|
393
447
|
consumerMismatchEscalation?: ReportingStatusConsumerScopeOptionsV1<TContext>['consumerMismatchEscalation'];
|
|
394
448
|
}
|
|
449
|
+
/**
|
|
450
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
451
|
+
*/
|
|
395
452
|
export interface ReportingManagedDeliveryRuntimeV1<TContext extends {
|
|
396
453
|
account?: unknown;
|
|
397
454
|
} = {
|
|
@@ -416,6 +473,8 @@ export interface ReportingManagedDeliveryRuntimeV1<TContext extends {
|
|
|
416
473
|
* Wires all operational components before returning any Managed Delivery
|
|
417
474
|
* capability claim. A missing receipt principal resolver limits the runtime to
|
|
418
475
|
* Managed Delivery even if a consumer-receipt offering was supplied.
|
|
476
|
+
*
|
|
477
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
419
478
|
*/
|
|
420
479
|
export declare function createReportingManagedDeliveryRuntime<TContext extends {
|
|
421
480
|
account?: unknown;
|
|
@@ -425,7 +484,13 @@ export declare function createReportingManagedDeliveryRuntime<TContext extends {
|
|
|
425
484
|
export declare function createSyncReportingReceiptsHandler<TContext extends {
|
|
426
485
|
account?: unknown;
|
|
427
486
|
}>(store: ReportingManagedDeliveryStore, resolveConsumerId: (context: TContext) => string | Promise<string>, now?: () => Date): (request: AdcpToolMap["sync_reporting_receipts"]["params"], context: TContext) => Promise<SyncReportingReceiptsResponse>;
|
|
487
|
+
/**
|
|
488
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
489
|
+
*/
|
|
428
490
|
export declare function runManagedDeliveryWorker(store: ReportingManagedDeliveryStore, adapter: ReportingManagedDeliveryAdapterV1, options?: ReportingManagedDeliveryWorkerOptionsV1): Promise<ReportingManagedDeliveryWorkerResultV1>;
|
|
491
|
+
/**
|
|
492
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
493
|
+
*/
|
|
429
494
|
export declare function readManagedReportingResource(store: ReportingManagedDeliveryStore, adapter: ReportingManagedDeliveryAdapterV1, input: {
|
|
430
495
|
account_id: string;
|
|
431
496
|
resource_ref: string;
|
|
@@ -433,12 +498,21 @@ export declare function readManagedReportingResource(store: ReportingManagedDeli
|
|
|
433
498
|
maxBytes?: number;
|
|
434
499
|
deadlineMilliseconds?: number;
|
|
435
500
|
}): Promise<Uint8Array | null>;
|
|
501
|
+
/**
|
|
502
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
503
|
+
*/
|
|
436
504
|
export declare function assertMaterializationOutcome(lease: ReportingManagedDeliveryLeaseV1, outcome: {
|
|
437
505
|
status: 'available' | 'delivered';
|
|
438
506
|
resource: ReportingResource;
|
|
439
507
|
verification: ReportingVerification;
|
|
440
508
|
}, now: string, minimumResourceRetentionDays?: number): void;
|
|
509
|
+
/**
|
|
510
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
511
|
+
*/
|
|
441
512
|
export declare function receiptEvidenceMatches(receipt: ReportingReceipt, materialization: ReportingMaterialization): boolean;
|
|
513
|
+
/**
|
|
514
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
515
|
+
*/
|
|
442
516
|
export declare function adjustmentReceiptEvidenceMatches(receipt: ReportingAdjustmentReceipt, adjustment: ReportingLedgerAdjustmentV1): boolean;
|
|
443
517
|
/**
|
|
444
518
|
* Refuses a retained resource location that carries credential syntax.
|
|
@@ -447,9 +521,15 @@ export declare function adjustmentReceiptEvidenceMatches(receipt: ReportingAdjus
|
|
|
447
521
|
* storage: a caller driving `settleMaterialization` directly must be held to
|
|
448
522
|
* the same rule, or a presigned location is persisted and then published in
|
|
449
523
|
* `get_reporting_status`.
|
|
524
|
+
*
|
|
525
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
450
526
|
*/
|
|
451
527
|
export declare function assertCredentialFreeReportingResourceLocationV1(location: string): void;
|
|
452
|
-
/**
|
|
528
|
+
/**
|
|
529
|
+
* Stable helper for immutable binding creation.
|
|
530
|
+
*
|
|
531
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
532
|
+
*/
|
|
453
533
|
export declare function reportingManagedDeliveryBindingV1(input: Omit<ReportingManagedDeliveryBindingV1, 'created_at' | 'semantic_fingerprint'> & {
|
|
454
534
|
created_at?: string;
|
|
455
535
|
}): ReportingManagedDeliveryBindingV1;
|
|
@@ -7,14 +7,31 @@ import type { ReportingLedgerAdjustmentV1, ReportingLegacyRevisionReaderV1, Repo
|
|
|
7
7
|
* Upper bound on an adapter's startup probe, so a hung provider cannot hang startup.
|
|
8
8
|
* A router's per-route probe budget must stay under it, or this deadline fires
|
|
9
9
|
* first and the failing route's id never reaches the startup error.
|
|
10
|
+
*
|
|
11
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
10
12
|
*/
|
|
11
13
|
export declare const REPORTING_ADAPTER_PROBE_DEADLINE_MILLISECONDS_V1 = 30000;
|
|
12
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* The delivery pattern a destination authorization generation serves.
|
|
16
|
+
*
|
|
17
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
18
|
+
*/
|
|
13
19
|
export type ReportingDestinationPatternV1 = ReportingManagedDeliveryBindingV1['method'];
|
|
14
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* Delivery patterns, in the order the protocol lists them.
|
|
22
|
+
*
|
|
23
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
24
|
+
*/
|
|
15
25
|
export declare const REPORTING_DESTINATION_PATTERNS_V1: readonly ReportingDestinationPatternV1[];
|
|
16
|
-
/**
|
|
26
|
+
/**
|
|
27
|
+
* Same constraint the protocol puts on `method.transport`.
|
|
28
|
+
*
|
|
29
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
30
|
+
*/
|
|
17
31
|
export declare const REPORTING_DESTINATION_TRANSPORT_PATTERN_V1: RegExp;
|
|
32
|
+
/**
|
|
33
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
34
|
+
*/
|
|
18
35
|
export interface ReportingDestinationAuthorizationV1 {
|
|
19
36
|
account_id: string;
|
|
20
37
|
destination_ref: string;
|
|
@@ -38,6 +55,9 @@ export interface ReportingDestinationAuthorizationV1 {
|
|
|
38
55
|
revoked_at?: string;
|
|
39
56
|
cleanup_completed_at?: string;
|
|
40
57
|
}
|
|
58
|
+
/**
|
|
59
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
60
|
+
*/
|
|
41
61
|
export interface ReportingManagedDeliveryLeaseV1 {
|
|
42
62
|
materialization: ReportingMaterialization;
|
|
43
63
|
binding: ReportingManagedDeliveryBindingV1;
|
|
@@ -47,6 +67,9 @@ export interface ReportingManagedDeliveryLeaseV1 {
|
|
|
47
67
|
generation: number;
|
|
48
68
|
expires_at: string;
|
|
49
69
|
}
|
|
70
|
+
/**
|
|
71
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
72
|
+
*/
|
|
50
73
|
export interface ReportingDestinationRevocationLeaseV1 {
|
|
51
74
|
authorization: ReportingDestinationAuthorizationV1;
|
|
52
75
|
owner: string;
|
|
@@ -65,6 +88,9 @@ export interface ReportingDestinationRevocationLeaseV1 {
|
|
|
65
88
|
overdue?: boolean;
|
|
66
89
|
remaining_milliseconds?: number;
|
|
67
90
|
}
|
|
91
|
+
/**
|
|
92
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
93
|
+
*/
|
|
68
94
|
export type ReportingReceiptBatchEntryV1 = {
|
|
69
95
|
kind: 'revision';
|
|
70
96
|
receipt: ReportingReceipt;
|
|
@@ -72,6 +98,9 @@ export type ReportingReceiptBatchEntryV1 = {
|
|
|
72
98
|
kind: 'adjustment';
|
|
73
99
|
receipt: ReportingAdjustmentReceipt;
|
|
74
100
|
};
|
|
101
|
+
/**
|
|
102
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
103
|
+
*/
|
|
75
104
|
export interface ReportingReceiptBatchInputV1 {
|
|
76
105
|
account_id: string;
|
|
77
106
|
consumer_id: string;
|
|
@@ -80,13 +109,20 @@ export interface ReportingReceiptBatchInputV1 {
|
|
|
80
109
|
entries: ReportingReceiptBatchEntryV1[];
|
|
81
110
|
received_at: string;
|
|
82
111
|
}
|
|
83
|
-
/**
|
|
112
|
+
/**
|
|
113
|
+
* Agent-wide Managed Delivery promises durably shared by every replica.
|
|
114
|
+
*
|
|
115
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
116
|
+
*/
|
|
84
117
|
export interface ReportingManagedDeliveryAdvertisedPoliciesV1 {
|
|
85
118
|
automatedRecoveryWindowSeconds: number;
|
|
86
119
|
statusRetentionDays: number;
|
|
87
120
|
resourceRetentionDays: number;
|
|
88
121
|
authorizationRevocationSeconds: number;
|
|
89
122
|
}
|
|
123
|
+
/**
|
|
124
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
125
|
+
*/
|
|
90
126
|
export interface ReportingManagedDeliveryStore {
|
|
91
127
|
/**
|
|
92
128
|
* Prove that this store shares the supplied Core authority and has its
|
|
@@ -243,6 +279,9 @@ export interface ReportingManagedDeliveryStore {
|
|
|
243
279
|
}): Promise<boolean>;
|
|
244
280
|
syncReceiptBatch(input: ReportingReceiptBatchInputV1): Promise<SyncReportingReceiptsResponse['results']>;
|
|
245
281
|
}
|
|
282
|
+
/**
|
|
283
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
284
|
+
*/
|
|
246
285
|
export interface ReportingManagedDeliveryAdapterV1 {
|
|
247
286
|
/** Profiles this installed adapter can actually verify through its consumer/destination path. */
|
|
248
287
|
readonly verificationProfiles: readonly ReportingVerification['verification_profile'][];
|
|
@@ -318,6 +357,8 @@ export interface ReportingManagedDeliveryAdapterV1 {
|
|
|
318
357
|
* when the installed adapter is a router, so a single-adapter runtime's result
|
|
319
358
|
* shape is unchanged. Work that no route could take is counted under
|
|
320
359
|
* `UNROUTED_REPORTING_ROUTE_KEY_V1`, which no route id can equal.
|
|
360
|
+
*
|
|
361
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
321
362
|
*/
|
|
322
363
|
export interface ReportingManagedDeliveryRouteCountsV1 {
|
|
323
364
|
/** Materializations settled as delivered, by the route that delivered them. */
|
|
@@ -331,8 +372,15 @@ export interface ReportingManagedDeliveryRouteCountsV1 {
|
|
|
331
372
|
/** Revocations that had already outlived the advertised window when claimed, by route. */
|
|
332
373
|
overdueByRoute: Record<string, number>;
|
|
333
374
|
}
|
|
334
|
-
/**
|
|
375
|
+
/**
|
|
376
|
+
* Key for work no delivery route could take. Not a valid route id.
|
|
377
|
+
*
|
|
378
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
379
|
+
*/
|
|
335
380
|
export declare const UNROUTED_REPORTING_ROUTE_KEY_V1 = "~unrouted";
|
|
381
|
+
/**
|
|
382
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
383
|
+
*/
|
|
336
384
|
export interface ReportingManagedDeliveryWorkerResultV1 extends Partial<ReportingManagedDeliveryRouteCountsV1> {
|
|
337
385
|
planned: number;
|
|
338
386
|
claimed: number;
|
|
@@ -343,6 +391,9 @@ export interface ReportingManagedDeliveryWorkerResultV1 extends Partial<Reportin
|
|
|
343
391
|
/** Materializations failed for using every delivery attempt. */
|
|
344
392
|
exhausted: number;
|
|
345
393
|
}
|
|
394
|
+
/**
|
|
395
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
396
|
+
*/
|
|
346
397
|
export interface ReportingManagedDeliveryWorkerOptionsV1 {
|
|
347
398
|
signal?: AbortSignal;
|
|
348
399
|
now?: () => Date;
|
|
@@ -374,6 +425,9 @@ export interface ReportingManagedDeliveryWorkerOptionsV1 {
|
|
|
374
425
|
*/
|
|
375
426
|
hydrateRevision?: (revision: ReportingManagedDeliveryLeaseV1['revision'], account_id: string, signal: AbortSignal | undefined) => Promise<ReportingManagedDeliveryLeaseV1['revision']>;
|
|
376
427
|
}
|
|
428
|
+
/**
|
|
429
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
430
|
+
*/
|
|
377
431
|
export interface CreateReportingManagedDeliveryRuntimeOptionsV1<TContext extends {
|
|
378
432
|
account?: unknown;
|
|
379
433
|
} = {
|
|
@@ -392,6 +446,9 @@ export interface CreateReportingManagedDeliveryRuntimeOptionsV1<TContext extends
|
|
|
392
446
|
resolveConsumerId?: (context: TContext) => string | Promise<string>;
|
|
393
447
|
consumerMismatchEscalation?: ReportingStatusConsumerScopeOptionsV1<TContext>['consumerMismatchEscalation'];
|
|
394
448
|
}
|
|
449
|
+
/**
|
|
450
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
451
|
+
*/
|
|
395
452
|
export interface ReportingManagedDeliveryRuntimeV1<TContext extends {
|
|
396
453
|
account?: unknown;
|
|
397
454
|
} = {
|
|
@@ -416,6 +473,8 @@ export interface ReportingManagedDeliveryRuntimeV1<TContext extends {
|
|
|
416
473
|
* Wires all operational components before returning any Managed Delivery
|
|
417
474
|
* capability claim. A missing receipt principal resolver limits the runtime to
|
|
418
475
|
* Managed Delivery even if a consumer-receipt offering was supplied.
|
|
476
|
+
*
|
|
477
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
419
478
|
*/
|
|
420
479
|
export declare function createReportingManagedDeliveryRuntime<TContext extends {
|
|
421
480
|
account?: unknown;
|
|
@@ -425,7 +484,13 @@ export declare function createReportingManagedDeliveryRuntime<TContext extends {
|
|
|
425
484
|
export declare function createSyncReportingReceiptsHandler<TContext extends {
|
|
426
485
|
account?: unknown;
|
|
427
486
|
}>(store: ReportingManagedDeliveryStore, resolveConsumerId: (context: TContext) => string | Promise<string>, now?: () => Date): (request: AdcpToolMap["sync_reporting_receipts"]["params"], context: TContext) => Promise<SyncReportingReceiptsResponse>;
|
|
487
|
+
/**
|
|
488
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
489
|
+
*/
|
|
428
490
|
export declare function runManagedDeliveryWorker(store: ReportingManagedDeliveryStore, adapter: ReportingManagedDeliveryAdapterV1, options?: ReportingManagedDeliveryWorkerOptionsV1): Promise<ReportingManagedDeliveryWorkerResultV1>;
|
|
491
|
+
/**
|
|
492
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
493
|
+
*/
|
|
429
494
|
export declare function readManagedReportingResource(store: ReportingManagedDeliveryStore, adapter: ReportingManagedDeliveryAdapterV1, input: {
|
|
430
495
|
account_id: string;
|
|
431
496
|
resource_ref: string;
|
|
@@ -433,12 +498,21 @@ export declare function readManagedReportingResource(store: ReportingManagedDeli
|
|
|
433
498
|
maxBytes?: number;
|
|
434
499
|
deadlineMilliseconds?: number;
|
|
435
500
|
}): Promise<Uint8Array | null>;
|
|
501
|
+
/**
|
|
502
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
503
|
+
*/
|
|
436
504
|
export declare function assertMaterializationOutcome(lease: ReportingManagedDeliveryLeaseV1, outcome: {
|
|
437
505
|
status: 'available' | 'delivered';
|
|
438
506
|
resource: ReportingResource;
|
|
439
507
|
verification: ReportingVerification;
|
|
440
508
|
}, now: string, minimumResourceRetentionDays?: number): void;
|
|
509
|
+
/**
|
|
510
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
511
|
+
*/
|
|
441
512
|
export declare function receiptEvidenceMatches(receipt: ReportingReceipt, materialization: ReportingMaterialization): boolean;
|
|
513
|
+
/**
|
|
514
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
515
|
+
*/
|
|
442
516
|
export declare function adjustmentReceiptEvidenceMatches(receipt: ReportingAdjustmentReceipt, adjustment: ReportingLedgerAdjustmentV1): boolean;
|
|
443
517
|
/**
|
|
444
518
|
* Refuses a retained resource location that carries credential syntax.
|
|
@@ -447,9 +521,15 @@ export declare function adjustmentReceiptEvidenceMatches(receipt: ReportingAdjus
|
|
|
447
521
|
* storage: a caller driving `settleMaterialization` directly must be held to
|
|
448
522
|
* the same rule, or a presigned location is persisted and then published in
|
|
449
523
|
* `get_reporting_status`.
|
|
524
|
+
*
|
|
525
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
450
526
|
*/
|
|
451
527
|
export declare function assertCredentialFreeReportingResourceLocationV1(location: string): void;
|
|
452
|
-
/**
|
|
528
|
+
/**
|
|
529
|
+
* Stable helper for immutable binding creation.
|
|
530
|
+
*
|
|
531
|
+
* @experimental Reliable Reporting storage surface: breaking changes may ship in minor releases. See https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
532
|
+
*/
|
|
453
533
|
export declare function reportingManagedDeliveryBindingV1(input: Omit<ReportingManagedDeliveryBindingV1, 'created_at' | 'semantic_fingerprint'> & {
|
|
454
534
|
created_at?: string;
|
|
455
535
|
}): ReportingManagedDeliveryBindingV1;
|