@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,16 +2,25 @@ import type { Storage } from '@google-cloud/storage';
|
|
|
2
2
|
import { type CanonicalReferenceResolver } from '../../canonical-references';
|
|
3
3
|
import type { ReportingResourceReader } from '../inspection';
|
|
4
4
|
import { type ReportingObjectWriteScopeV1 } from '../ledger/object-writes';
|
|
5
|
+
/**
|
|
6
|
+
* @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
|
|
7
|
+
*/
|
|
5
8
|
export interface GcsReportingReadScopeV1 extends ReportingObjectWriteScopeV1 {
|
|
6
9
|
/** Non-secret identity from the host's authenticated principal registry. Never a bearer. */
|
|
7
10
|
principal_id: string;
|
|
8
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* @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
|
|
14
|
+
*/
|
|
9
15
|
export interface GcsReportingReadAuthorizationV1 {
|
|
10
16
|
scope: Readonly<GcsReportingReadScopeV1>;
|
|
11
17
|
bucket: string;
|
|
12
18
|
objectPrefix: string;
|
|
13
19
|
objectName: string;
|
|
14
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* @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
|
|
23
|
+
*/
|
|
15
24
|
export interface GcsReportingReaderOptionsV1 {
|
|
16
25
|
scope: GcsReportingReadScopeV1;
|
|
17
26
|
bucket: string;
|
|
@@ -30,14 +39,29 @@ export interface GcsReportingReaderOptionsV1 {
|
|
|
30
39
|
operationDeadlineMilliseconds?: number;
|
|
31
40
|
maxBytes?: number;
|
|
32
41
|
}
|
|
33
|
-
/**
|
|
42
|
+
/**
|
|
43
|
+
* Restrictive provider-native URL grammar: no credentials, queries, encoding or traversal.
|
|
44
|
+
*
|
|
45
|
+
* @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
|
|
46
|
+
*/
|
|
34
47
|
export declare function gcsReportingObjectFromUriV1(uri: string, bucket: string, prefix: string): string;
|
|
48
|
+
/**
|
|
49
|
+
* @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
|
|
50
|
+
*/
|
|
35
51
|
export declare function createGcsScopedObjectReadV1(options: GcsReportingReaderOptionsV1): (uri: string, maxBytes: number, signal?: AbortSignal, nativeVersion?: string) => Promise<{
|
|
36
52
|
body: Buffer<ArrayBufferLike>;
|
|
37
53
|
contentType: string | undefined;
|
|
38
54
|
generation: string;
|
|
39
55
|
}>;
|
|
40
|
-
/**
|
|
56
|
+
/**
|
|
57
|
+
* Destination-bound manifest/object reader. The caller never supplies bucket or credential scope.
|
|
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 declare function createGcsReportingResourceReaderV1(options: GcsReportingReaderOptionsV1): ReportingResourceReader;
|
|
42
|
-
/**
|
|
62
|
+
/**
|
|
63
|
+
* Digest-pinned private contract resolver; all resolutions re-authorize and bypass caches.
|
|
64
|
+
*
|
|
65
|
+
* @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
|
|
66
|
+
*/
|
|
43
67
|
export declare function createGcsReportingReferenceResolverV1(options: GcsReportingReaderOptionsV1): CanonicalReferenceResolver;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import type { BucketMetadata, Storage } from '@google-cloud/storage';
|
|
2
2
|
import type { ReportingRowObjectProviderV1 } from '../ledger/row-storage-object.mjs';
|
|
3
|
+
/**
|
|
4
|
+
* @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
|
|
5
|
+
*/
|
|
3
6
|
export interface CreateGcsReportingRowObjectProviderOptionsV1 {
|
|
4
7
|
/** Official client used by bindings without a `credentialRef`. */
|
|
5
8
|
storage?: Storage;
|
|
@@ -16,6 +19,8 @@ export interface CreateGcsReportingRowObjectProviderOptionsV1 {
|
|
|
16
19
|
* public access prevention, and any lifecycle `Delete` rule that can match a
|
|
17
20
|
* live object under the binding prefix (no prefix filter, or a prefix that
|
|
18
21
|
* overlaps it). Rules limited to noncurrent versions are allowed.
|
|
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
|
|
19
24
|
*/
|
|
20
25
|
export declare function assertGcsReportingRowBucketPolicyV1(metadata: BucketMetadata, prefix: string): void;
|
|
21
26
|
/**
|
|
@@ -28,5 +33,7 @@ export declare function assertGcsReportingRowBucketPolicyV1(metadata: BucketMeta
|
|
|
28
33
|
* object generation, and reads and deletes pin it. Objects are stored without
|
|
29
34
|
* `Content-Encoding`, and reads request raw stored bytes, so GCS never
|
|
30
35
|
* transcodes them.
|
|
36
|
+
*
|
|
37
|
+
* @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
|
|
31
38
|
*/
|
|
32
39
|
export declare function createGcsReportingRowObjectProviderV1(options: CreateGcsReportingRowObjectProviderOptionsV1): ReportingRowObjectProviderV1;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import type { BucketMetadata, Storage } from '@google-cloud/storage';
|
|
2
2
|
import type { ReportingRowObjectProviderV1 } from '../ledger/row-storage-object';
|
|
3
|
+
/**
|
|
4
|
+
* @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
|
|
5
|
+
*/
|
|
3
6
|
export interface CreateGcsReportingRowObjectProviderOptionsV1 {
|
|
4
7
|
/** Official client used by bindings without a `credentialRef`. */
|
|
5
8
|
storage?: Storage;
|
|
@@ -16,6 +19,8 @@ export interface CreateGcsReportingRowObjectProviderOptionsV1 {
|
|
|
16
19
|
* public access prevention, and any lifecycle `Delete` rule that can match a
|
|
17
20
|
* live object under the binding prefix (no prefix filter, or a prefix that
|
|
18
21
|
* overlaps it). Rules limited to noncurrent versions are allowed.
|
|
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
|
|
19
24
|
*/
|
|
20
25
|
export declare function assertGcsReportingRowBucketPolicyV1(metadata: BucketMetadata, prefix: string): void;
|
|
21
26
|
/**
|
|
@@ -28,5 +33,7 @@ export declare function assertGcsReportingRowBucketPolicyV1(metadata: BucketMeta
|
|
|
28
33
|
* object generation, and reads and deletes pin it. Objects are stored without
|
|
29
34
|
* `Content-Encoding`, and reads request raw stored bytes, so GCS never
|
|
30
35
|
* transcodes them.
|
|
36
|
+
*
|
|
37
|
+
* @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
|
|
31
38
|
*/
|
|
32
39
|
export declare function createGcsReportingRowObjectProviderV1(options: CreateGcsReportingRowObjectProviderOptionsV1): ReportingRowObjectProviderV1;
|
|
@@ -40,8 +40,8 @@ function generationOf(metadata) {
|
|
|
40
40
|
}
|
|
41
41
|
return generation;
|
|
42
42
|
}
|
|
43
|
-
function pinnedGeneration(
|
|
44
|
-
return typeof
|
|
43
|
+
function pinnedGeneration(nativeVersionRef) {
|
|
44
|
+
return typeof nativeVersionRef === "string" && GENERATION.test(nativeVersionRef) && Number.isSafeInteger(Number(nativeVersionRef)) ? nativeVersionRef : null;
|
|
45
45
|
}
|
|
46
46
|
function assertGcsReportingRowBucketPolicyV1(metadata, prefix) {
|
|
47
47
|
if (!metadata || typeof metadata !== "object") {
|
|
@@ -112,8 +112,8 @@ function createGcsReportingRowObjectProviderV1(options) {
|
|
|
112
112
|
putIfAbsent(input, context) {
|
|
113
113
|
return (0, import_row_storage_provider_io.runReportingRowProviderOperation)(context.signal, async () => {
|
|
114
114
|
const bucket = bucketFor(input);
|
|
115
|
-
assertKey(input.
|
|
116
|
-
const file = bucket.file(input.
|
|
115
|
+
assertKey(input.objectRef);
|
|
116
|
+
const file = bucket.file(input.objectRef);
|
|
117
117
|
try {
|
|
118
118
|
const bytes = Buffer.from(input.bytes);
|
|
119
119
|
await file.save(bytes, {
|
|
@@ -135,24 +135,24 @@ function createGcsReportingRowObjectProviderV1(options) {
|
|
|
135
135
|
} catch (error) {
|
|
136
136
|
if (status(error) !== 412) throw error;
|
|
137
137
|
context.signal.throwIfAborted();
|
|
138
|
-
const [existing] = await bucket.file(input.
|
|
139
|
-
return { created: false,
|
|
138
|
+
const [existing] = await bucket.file(input.objectRef).getMetadata();
|
|
139
|
+
return { created: false, nativeVersionRef: generationOf(existing) };
|
|
140
140
|
}
|
|
141
141
|
if (file.metadata?.generation !== void 0) {
|
|
142
|
-
return { created: true,
|
|
142
|
+
return { created: true, nativeVersionRef: generationOf(file.metadata) };
|
|
143
143
|
}
|
|
144
144
|
const [created] = await file.getMetadata();
|
|
145
|
-
return { created: true,
|
|
145
|
+
return { created: true, nativeVersionRef: generationOf(created) };
|
|
146
146
|
});
|
|
147
147
|
},
|
|
148
148
|
get(input, context) {
|
|
149
149
|
return (0, import_row_storage_provider_io.runReportingRowProviderOperation)(context.signal, async () => {
|
|
150
150
|
const bucket = bucketFor(input);
|
|
151
|
-
assertKey(input.
|
|
151
|
+
assertKey(input.objectRef);
|
|
152
152
|
(0, import_row_storage_provider_io.assertReportingRowReadBounds)(input);
|
|
153
|
-
const generation = pinnedGeneration(input.
|
|
153
|
+
const generation = pinnedGeneration(input.nativeVersionRef);
|
|
154
154
|
if (generation === null) return null;
|
|
155
|
-
const file = bucket.file(input.
|
|
155
|
+
const file = bucket.file(input.objectRef, { generation });
|
|
156
156
|
try {
|
|
157
157
|
if (input.range?.length === 0) {
|
|
158
158
|
const [metadata] = await file.getMetadata();
|
|
@@ -180,14 +180,34 @@ function createGcsReportingRowObjectProviderV1(options) {
|
|
|
180
180
|
}
|
|
181
181
|
});
|
|
182
182
|
},
|
|
183
|
+
stat(input, context) {
|
|
184
|
+
return (0, import_row_storage_provider_io.runReportingRowProviderOperation)(context.signal, async () => {
|
|
185
|
+
const bucket = bucketFor(input);
|
|
186
|
+
assertKey(input.objectRef);
|
|
187
|
+
const generation = pinnedGeneration(input.nativeVersionRef);
|
|
188
|
+
if (generation === null) return null;
|
|
189
|
+
try {
|
|
190
|
+
const [metadata] = await bucket.file(input.objectRef, { generation }).getMetadata();
|
|
191
|
+
const size = Number(metadata.size);
|
|
192
|
+
if (String(metadata.generation) !== generation) return null;
|
|
193
|
+
if (!Number.isSafeInteger(size) || size < 0) {
|
|
194
|
+
throw new import_row_storage_errors.ReportingRowStoreError("PROVIDER_UNAVAILABLE", "object metadata is malformed");
|
|
195
|
+
}
|
|
196
|
+
return { nativeVersionRef: generation, sizeBytes: size };
|
|
197
|
+
} catch (error) {
|
|
198
|
+
if (status(error) === 404) return null;
|
|
199
|
+
throw error;
|
|
200
|
+
}
|
|
201
|
+
});
|
|
202
|
+
},
|
|
183
203
|
delete(input, context) {
|
|
184
204
|
return (0, import_row_storage_provider_io.runReportingRowProviderOperation)(context.signal, async () => {
|
|
185
205
|
const bucket = bucketFor(input);
|
|
186
|
-
assertKey(input.
|
|
187
|
-
const generation = pinnedGeneration(input.
|
|
206
|
+
assertKey(input.objectRef);
|
|
207
|
+
const generation = pinnedGeneration(input.nativeVersionRef);
|
|
188
208
|
if (generation === null) return "absent";
|
|
189
209
|
try {
|
|
190
|
-
await bucket.file(input.
|
|
210
|
+
await bucket.file(input.objectRef, { generation }).delete();
|
|
191
211
|
return "deleted";
|
|
192
212
|
} catch (error) {
|
|
193
213
|
const code = status(error);
|
|
@@ -24,8 +24,8 @@ function generationOf(metadata) {
|
|
|
24
24
|
}
|
|
25
25
|
return generation;
|
|
26
26
|
}
|
|
27
|
-
function pinnedGeneration(
|
|
28
|
-
return typeof
|
|
27
|
+
function pinnedGeneration(nativeVersionRef) {
|
|
28
|
+
return typeof nativeVersionRef === "string" && GENERATION.test(nativeVersionRef) && Number.isSafeInteger(Number(nativeVersionRef)) ? nativeVersionRef : null;
|
|
29
29
|
}
|
|
30
30
|
function assertGcsReportingRowBucketPolicyV1(metadata, prefix) {
|
|
31
31
|
if (!metadata || typeof metadata !== "object") {
|
|
@@ -96,8 +96,8 @@ function createGcsReportingRowObjectProviderV1(options) {
|
|
|
96
96
|
putIfAbsent(input, context) {
|
|
97
97
|
return runReportingRowProviderOperation(context.signal, async () => {
|
|
98
98
|
const bucket = bucketFor(input);
|
|
99
|
-
assertKey(input.
|
|
100
|
-
const file = bucket.file(input.
|
|
99
|
+
assertKey(input.objectRef);
|
|
100
|
+
const file = bucket.file(input.objectRef);
|
|
101
101
|
try {
|
|
102
102
|
const bytes = Buffer.from(input.bytes);
|
|
103
103
|
await file.save(bytes, {
|
|
@@ -119,24 +119,24 @@ function createGcsReportingRowObjectProviderV1(options) {
|
|
|
119
119
|
} catch (error) {
|
|
120
120
|
if (status(error) !== 412) throw error;
|
|
121
121
|
context.signal.throwIfAborted();
|
|
122
|
-
const [existing] = await bucket.file(input.
|
|
123
|
-
return { created: false,
|
|
122
|
+
const [existing] = await bucket.file(input.objectRef).getMetadata();
|
|
123
|
+
return { created: false, nativeVersionRef: generationOf(existing) };
|
|
124
124
|
}
|
|
125
125
|
if (file.metadata?.generation !== void 0) {
|
|
126
|
-
return { created: true,
|
|
126
|
+
return { created: true, nativeVersionRef: generationOf(file.metadata) };
|
|
127
127
|
}
|
|
128
128
|
const [created] = await file.getMetadata();
|
|
129
|
-
return { created: true,
|
|
129
|
+
return { created: true, nativeVersionRef: generationOf(created) };
|
|
130
130
|
});
|
|
131
131
|
},
|
|
132
132
|
get(input, context) {
|
|
133
133
|
return runReportingRowProviderOperation(context.signal, async () => {
|
|
134
134
|
const bucket = bucketFor(input);
|
|
135
|
-
assertKey(input.
|
|
135
|
+
assertKey(input.objectRef);
|
|
136
136
|
assertReportingRowReadBounds(input);
|
|
137
|
-
const generation = pinnedGeneration(input.
|
|
137
|
+
const generation = pinnedGeneration(input.nativeVersionRef);
|
|
138
138
|
if (generation === null) return null;
|
|
139
|
-
const file = bucket.file(input.
|
|
139
|
+
const file = bucket.file(input.objectRef, { generation });
|
|
140
140
|
try {
|
|
141
141
|
if (input.range?.length === 0) {
|
|
142
142
|
const [metadata] = await file.getMetadata();
|
|
@@ -164,14 +164,34 @@ function createGcsReportingRowObjectProviderV1(options) {
|
|
|
164
164
|
}
|
|
165
165
|
});
|
|
166
166
|
},
|
|
167
|
+
stat(input, context) {
|
|
168
|
+
return runReportingRowProviderOperation(context.signal, async () => {
|
|
169
|
+
const bucket = bucketFor(input);
|
|
170
|
+
assertKey(input.objectRef);
|
|
171
|
+
const generation = pinnedGeneration(input.nativeVersionRef);
|
|
172
|
+
if (generation === null) return null;
|
|
173
|
+
try {
|
|
174
|
+
const [metadata] = await bucket.file(input.objectRef, { generation }).getMetadata();
|
|
175
|
+
const size = Number(metadata.size);
|
|
176
|
+
if (String(metadata.generation) !== generation) return null;
|
|
177
|
+
if (!Number.isSafeInteger(size) || size < 0) {
|
|
178
|
+
throw new ReportingRowStoreError("PROVIDER_UNAVAILABLE", "object metadata is malformed");
|
|
179
|
+
}
|
|
180
|
+
return { nativeVersionRef: generation, sizeBytes: size };
|
|
181
|
+
} catch (error) {
|
|
182
|
+
if (status(error) === 404) return null;
|
|
183
|
+
throw error;
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
},
|
|
167
187
|
delete(input, context) {
|
|
168
188
|
return runReportingRowProviderOperation(context.signal, async () => {
|
|
169
189
|
const bucket = bucketFor(input);
|
|
170
|
-
assertKey(input.
|
|
171
|
-
const generation = pinnedGeneration(input.
|
|
190
|
+
assertKey(input.objectRef);
|
|
191
|
+
const generation = pinnedGeneration(input.nativeVersionRef);
|
|
172
192
|
if (generation === null) return "absent";
|
|
173
193
|
try {
|
|
174
|
-
await bucket.file(input.
|
|
194
|
+
await bucket.file(input.objectRef, { generation }).delete();
|
|
175
195
|
return "deleted";
|
|
176
196
|
} catch (error) {
|
|
177
197
|
const code = status(error);
|
|
@@ -10,9 +10,17 @@
|
|
|
10
10
|
* the reading snapshot's `xmin`, so a slow commit is never skipped. Account
|
|
11
11
|
* readers order by `seq` and end the page before the first change at or above
|
|
12
12
|
* that `xmin`. Use exactly one writer SDK per ledger database.
|
|
13
|
+
*
|
|
14
|
+
* @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
|
|
13
15
|
*/
|
|
14
16
|
export declare const REPORTING_LEDGER_CHANGES_MIGRATION: string;
|
|
17
|
+
/**
|
|
18
|
+
* @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
|
+
*/
|
|
15
20
|
export type ReportingChangeKindV1 = 'obligation' | 'revision' | 'adjustment' | 'retirement';
|
|
21
|
+
/**
|
|
22
|
+
* @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
|
|
23
|
+
*/
|
|
16
24
|
export interface ReportingChangeRecordV1 {
|
|
17
25
|
kind: ReportingChangeKindV1;
|
|
18
26
|
record_id: string;
|
|
@@ -20,6 +28,9 @@ export interface ReportingChangeRecordV1 {
|
|
|
20
28
|
account_id: string;
|
|
21
29
|
recorded_at: string;
|
|
22
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* @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
|
|
33
|
+
*/
|
|
23
34
|
export interface ReportingChangesPageV1 {
|
|
24
35
|
records: ReportingChangeRecordV1[];
|
|
25
36
|
/** Pass back to resume. Always present; equal to the input when nothing new committed. */
|
|
@@ -33,9 +44,19 @@ interface ChangeCursorV1 {
|
|
|
33
44
|
/** Deployment-wide feeds only: the writing transaction of the last record returned. */
|
|
34
45
|
xid?: string;
|
|
35
46
|
}
|
|
47
|
+
/**
|
|
48
|
+
* @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
|
|
49
|
+
*/
|
|
36
50
|
export declare function encodeReportingChangeCursorV1(cursor: ChangeCursorV1): string;
|
|
51
|
+
/**
|
|
52
|
+
* @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
|
|
53
|
+
*/
|
|
37
54
|
export declare function decodeReportingChangeCursorV1(value: string, account: string | null): ChangeCursorV1;
|
|
38
|
-
/**
|
|
55
|
+
/**
|
|
56
|
+
* Thrown when a change cursor is older than the retained change history.
|
|
57
|
+
*
|
|
58
|
+
* @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
|
|
59
|
+
*/
|
|
39
60
|
export declare class ReportingChangeCursorExpiredError extends Error {
|
|
40
61
|
readonly cursor?: string | undefined;
|
|
41
62
|
readonly code: "CURSOR_EXPIRED";
|
|
@@ -10,9 +10,17 @@
|
|
|
10
10
|
* the reading snapshot's `xmin`, so a slow commit is never skipped. Account
|
|
11
11
|
* readers order by `seq` and end the page before the first change at or above
|
|
12
12
|
* that `xmin`. Use exactly one writer SDK per ledger database.
|
|
13
|
+
*
|
|
14
|
+
* @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
|
|
13
15
|
*/
|
|
14
16
|
export declare const REPORTING_LEDGER_CHANGES_MIGRATION: string;
|
|
17
|
+
/**
|
|
18
|
+
* @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
|
+
*/
|
|
15
20
|
export type ReportingChangeKindV1 = 'obligation' | 'revision' | 'adjustment' | 'retirement';
|
|
21
|
+
/**
|
|
22
|
+
* @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
|
|
23
|
+
*/
|
|
16
24
|
export interface ReportingChangeRecordV1 {
|
|
17
25
|
kind: ReportingChangeKindV1;
|
|
18
26
|
record_id: string;
|
|
@@ -20,6 +28,9 @@ export interface ReportingChangeRecordV1 {
|
|
|
20
28
|
account_id: string;
|
|
21
29
|
recorded_at: string;
|
|
22
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* @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
|
|
33
|
+
*/
|
|
23
34
|
export interface ReportingChangesPageV1 {
|
|
24
35
|
records: ReportingChangeRecordV1[];
|
|
25
36
|
/** Pass back to resume. Always present; equal to the input when nothing new committed. */
|
|
@@ -33,9 +44,19 @@ interface ChangeCursorV1 {
|
|
|
33
44
|
/** Deployment-wide feeds only: the writing transaction of the last record returned. */
|
|
34
45
|
xid?: string;
|
|
35
46
|
}
|
|
47
|
+
/**
|
|
48
|
+
* @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
|
|
49
|
+
*/
|
|
36
50
|
export declare function encodeReportingChangeCursorV1(cursor: ChangeCursorV1): string;
|
|
51
|
+
/**
|
|
52
|
+
* @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
|
|
53
|
+
*/
|
|
37
54
|
export declare function decodeReportingChangeCursorV1(value: string, account: string | null): ChangeCursorV1;
|
|
38
|
-
/**
|
|
55
|
+
/**
|
|
56
|
+
* Thrown when a change cursor is older than the retained change history.
|
|
57
|
+
*
|
|
58
|
+
* @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
|
|
59
|
+
*/
|
|
39
60
|
export declare class ReportingChangeCursorExpiredError extends Error {
|
|
40
61
|
readonly cursor?: string | undefined;
|
|
41
62
|
readonly code: "CURSOR_EXPIRED";
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reliable Reporting ledger, row storage, change feed, managed-delivery runtime and router.
|
|
3
|
+
*
|
|
4
|
+
* Exports tagged `@experimental` (storage, rows, change feed, managed delivery, notification activity)
|
|
5
|
+
* may change in minor releases. The protocol-facing handlers, producer, status ingest, health,
|
|
6
|
+
* coverage, lifecycle and schedule helpers follow normal semver.
|
|
7
|
+
*
|
|
8
|
+
* Stability policy: https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
9
|
+
*
|
|
10
|
+
* @packageDocumentation
|
|
11
|
+
*/
|
|
1
12
|
export * from './types.mjs';
|
|
2
13
|
export * from './health.mjs';
|
|
3
14
|
export * from './coverage.mjs';
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reliable Reporting ledger, row storage, change feed, managed-delivery runtime and router.
|
|
3
|
+
*
|
|
4
|
+
* Exports tagged `@experimental` (storage, rows, change feed, managed delivery, notification activity)
|
|
5
|
+
* may change in minor releases. The protocol-facing handlers, producer, status ingest, health,
|
|
6
|
+
* coverage, lifecycle and schedule helpers follow normal semver.
|
|
7
|
+
*
|
|
8
|
+
* Stability policy: https://github.com/adcontextprotocol/adcp-client/blob/main/docs/guides/REPORTING-STABILITY.md
|
|
9
|
+
*
|
|
10
|
+
* @packageDocumentation
|
|
11
|
+
*/
|
|
1
12
|
export * from './types';
|
|
2
13
|
export * from './health';
|
|
3
14
|
export * from './coverage';
|
|
@@ -7,8 +7,13 @@ import { type ReportingDestinationAuthorizationV1, type ReportingDestinationRevo
|
|
|
7
7
|
* Additive migration owned by #2944. It intentionally does not alter the Core
|
|
8
8
|
* tables so the #2943 notification/activity bridge can evolve that schema
|
|
9
9
|
* independently. Apply after REPORTING_LEDGER_MIGRATION in the same schema.
|
|
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_MANAGED_DELIVERY_MIGRATION: string;
|
|
14
|
+
/**
|
|
15
|
+
* @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
|
|
16
|
+
*/
|
|
12
17
|
export interface PostgresReportingManagedDeliveryStoreOptions {
|
|
13
18
|
/** Transactional reporting outbox used for successful delivery-ready events. */
|
|
14
19
|
notificationActivityPort?: ReportingLedgerNotificationActivityPortV1<ReportingLedgerTransactionV1>;
|
|
@@ -53,6 +58,9 @@ export interface PostgresReportingManagedDeliveryStoreOptions {
|
|
|
53
58
|
*/
|
|
54
59
|
evidenceRetentionDays?: number;
|
|
55
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
* @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
|
|
63
|
+
*/
|
|
56
64
|
export declare class PostgresReportingManagedDeliveryStore implements ReportingManagedDeliveryStore, ReportingObjectWriteStoreV1, ReportingObjectWriteAuthorityStoreV1 {
|
|
57
65
|
private readonly pool;
|
|
58
66
|
private readonly evidenceRetentionDays;
|
|
@@ -7,8 +7,13 @@ import { type ReportingDestinationAuthorizationV1, type ReportingDestinationRevo
|
|
|
7
7
|
* Additive migration owned by #2944. It intentionally does not alter the Core
|
|
8
8
|
* tables so the #2943 notification/activity bridge can evolve that schema
|
|
9
9
|
* independently. Apply after REPORTING_LEDGER_MIGRATION in the same schema.
|
|
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_MANAGED_DELIVERY_MIGRATION: string;
|
|
14
|
+
/**
|
|
15
|
+
* @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
|
|
16
|
+
*/
|
|
12
17
|
export interface PostgresReportingManagedDeliveryStoreOptions {
|
|
13
18
|
/** Transactional reporting outbox used for successful delivery-ready events. */
|
|
14
19
|
notificationActivityPort?: ReportingLedgerNotificationActivityPortV1<ReportingLedgerTransactionV1>;
|
|
@@ -53,6 +58,9 @@ export interface PostgresReportingManagedDeliveryStoreOptions {
|
|
|
53
58
|
*/
|
|
54
59
|
evidenceRetentionDays?: number;
|
|
55
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
* @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
|
|
63
|
+
*/
|
|
56
64
|
export declare class PostgresReportingManagedDeliveryStore implements ReportingManagedDeliveryStore, ReportingObjectWriteStoreV1, ReportingObjectWriteAuthorityStoreV1 {
|
|
57
65
|
private readonly pool;
|
|
58
66
|
private readonly evidenceRetentionDays;
|
|
@@ -2,7 +2,11 @@ import type { ReportingVerification } from '../../types/index.mjs';
|
|
|
2
2
|
import { type ReportingDestinationAuthorizationV1, type ReportingDestinationPatternV1, type ReportingManagedDeliveryAdapterV1 } from './managed.mjs';
|
|
3
3
|
import type { ReportingManagedDeliveryBindingV1 } from './types.mjs';
|
|
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 {};
|