@adcp/sdk 15.4.0 → 15.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -0
- package/dist/lib/advanced.d.mts +2 -2
- package/dist/lib/advanced.d.ts +2 -2
- package/dist/lib/advanced.js +8 -2
- package/dist/lib/advanced.mjs +8 -2
- package/dist/lib/auth/oauth/index.d.mts +1 -0
- package/dist/lib/auth/oauth/index.d.ts +1 -0
- package/dist/lib/auth/oauth/index.js +5 -0
- package/dist/lib/auth/oauth/index.mjs +3 -0
- package/dist/lib/auth/oauth/pending-web-flow.d.mts +16 -0
- package/dist/lib/auth/oauth/pending-web-flow.d.ts +16 -0
- package/dist/lib/auth/oauth/pending-web-flow.js +66 -0
- package/dist/lib/auth/oauth/pending-web-flow.mjs +41 -0
- package/dist/lib/auth/oauth/web-flow.js +3 -3
- package/dist/lib/auth/oauth/web-flow.mjs +3 -3
- package/dist/lib/core/AgentClient.d.mts +4 -0
- package/dist/lib/core/AgentClient.d.ts +4 -0
- package/dist/lib/core/AgentClient.js +8 -0
- package/dist/lib/core/AgentClient.mjs +8 -0
- package/dist/lib/core/SingleAgentClient.d.mts +154 -0
- package/dist/lib/core/SingleAgentClient.d.ts +154 -0
- package/dist/lib/core/SingleAgentClient.js +661 -23
- package/dist/lib/core/SingleAgentClient.mjs +666 -23
- package/dist/lib/core/agent-discovery-cache.d.mts +103 -0
- package/dist/lib/core/agent-discovery-cache.d.ts +103 -0
- package/dist/lib/core/agent-discovery-cache.js +121 -0
- package/dist/lib/core/agent-discovery-cache.mjs +92 -0
- package/dist/lib/index.d.mts +5 -3
- package/dist/lib/index.d.ts +5 -3
- package/dist/lib/index.js +7 -0
- package/dist/lib/index.mjs +6 -0
- package/dist/lib/protocols/index.d.mts +2 -2
- package/dist/lib/protocols/index.d.ts +2 -2
- package/dist/lib/protocols/index.js +1 -1
- package/dist/lib/protocols/index.mjs +1 -1
- package/dist/lib/protocols/mcp-call-context.d.mts +109 -0
- package/dist/lib/protocols/mcp-call-context.d.ts +109 -0
- package/dist/lib/protocols/mcp-call-context.js +221 -0
- package/dist/lib/protocols/mcp-call-context.mjs +186 -0
- package/dist/lib/protocols/mcp-modern.d.mts +9 -1
- package/dist/lib/protocols/mcp-modern.d.ts +9 -1
- package/dist/lib/protocols/mcp-modern.js +180 -104
- package/dist/lib/protocols/mcp-modern.mjs +193 -104
- package/dist/lib/protocols/mcp-scope.d.mts +15 -0
- package/dist/lib/protocols/mcp-scope.d.ts +15 -0
- package/dist/lib/protocols/mcp.d.mts +4 -2
- package/dist/lib/protocols/mcp.d.ts +4 -2
- package/dist/lib/protocols/mcp.js +178 -154
- package/dist/lib/protocols/mcp.mjs +189 -153
- package/dist/lib/protocols/transportDiagnostics.d.mts +33 -1
- package/dist/lib/protocols/transportDiagnostics.d.ts +33 -1
- package/dist/lib/protocols/transportDiagnostics.js +128 -12
- package/dist/lib/protocols/transportDiagnostics.mjs +128 -12
- package/dist/lib/registry/types.generated.d.mts +63 -1
- package/dist/lib/registry/types.generated.d.ts +63 -1
- package/dist/lib/reporting/azure/index.d.mts +26 -0
- package/dist/lib/reporting/azure/index.d.ts +26 -0
- package/dist/lib/reporting/azure/index.js +247 -0
- package/dist/lib/reporting/azure/index.mjs +230 -0
- package/dist/lib/reporting/bigquery/index.d.mts +127 -0
- package/dist/lib/reporting/bigquery/index.d.ts +127 -0
- package/dist/lib/reporting/bigquery/index.js +379 -0
- package/dist/lib/reporting/bigquery/index.mjs +341 -0
- package/dist/lib/reporting/gcs/index.d.mts +2 -0
- package/dist/lib/reporting/gcs/index.d.ts +2 -0
- package/dist/lib/reporting/gcs/index.js +3 -0
- package/dist/lib/reporting/gcs/index.mjs +2 -0
- package/dist/lib/reporting/gcs/row-provider.d.mts +32 -0
- package/dist/lib/reporting/gcs/row-provider.d.ts +32 -0
- package/dist/lib/reporting/gcs/row-provider.js +205 -0
- package/dist/lib/reporting/gcs/row-provider.mjs +188 -0
- package/dist/lib/reporting/ledger/change-feed.d.mts +41 -0
- package/dist/lib/reporting/ledger/change-feed.d.ts +41 -0
- package/dist/lib/reporting/ledger/change-feed.js +101 -0
- package/dist/lib/reporting/ledger/change-feed.mjs +74 -0
- package/dist/lib/reporting/ledger/handler.js +22 -8
- package/dist/lib/reporting/ledger/handler.mjs +22 -8
- package/dist/lib/reporting/ledger/index.d.mts +4 -0
- package/dist/lib/reporting/ledger/index.d.ts +4 -0
- package/dist/lib/reporting/ledger/index.js +9 -1
- package/dist/lib/reporting/ledger/index.mjs +4 -0
- package/dist/lib/reporting/ledger/managed-postgres.d.mts +2 -0
- package/dist/lib/reporting/ledger/managed-postgres.d.ts +2 -0
- package/dist/lib/reporting/ledger/managed-postgres.js +21 -1
- package/dist/lib/reporting/ledger/managed-postgres.mjs +21 -1
- package/dist/lib/reporting/ledger/managed.d.mts +9 -0
- package/dist/lib/reporting/ledger/managed.d.ts +9 -0
- package/dist/lib/reporting/ledger/managed.js +18 -0
- package/dist/lib/reporting/ledger/managed.mjs +18 -0
- package/dist/lib/reporting/ledger/postgres.d.mts +185 -0
- package/dist/lib/reporting/ledger/postgres.d.ts +185 -0
- package/dist/lib/reporting/ledger/postgres.js +872 -26
- package/dist/lib/reporting/ledger/postgres.mjs +880 -26
- package/dist/lib/reporting/ledger/producer.js +10 -1
- package/dist/lib/reporting/ledger/producer.mjs +10 -1
- package/dist/lib/reporting/ledger/row-storage-errors.d.mts +7 -0
- package/dist/lib/reporting/ledger/row-storage-errors.d.ts +7 -0
- package/dist/lib/reporting/ledger/row-storage-errors.js +41 -0
- package/dist/lib/reporting/ledger/row-storage-errors.mjs +16 -0
- package/dist/lib/reporting/ledger/row-storage-migration.d.mts +41 -0
- package/dist/lib/reporting/ledger/row-storage-migration.d.ts +41 -0
- package/dist/lib/reporting/ledger/row-storage-migration.js +234 -0
- package/dist/lib/reporting/ledger/row-storage-migration.mjs +208 -0
- package/dist/lib/reporting/ledger/row-storage-object.d.mts +112 -0
- package/dist/lib/reporting/ledger/row-storage-object.d.ts +112 -0
- package/dist/lib/reporting/ledger/row-storage-object.js +304 -0
- package/dist/lib/reporting/ledger/row-storage-object.mjs +262 -0
- package/dist/lib/reporting/ledger/row-storage-provider-io.d.mts +44 -0
- package/dist/lib/reporting/ledger/row-storage-provider-io.d.ts +44 -0
- package/dist/lib/reporting/ledger/row-storage-provider-io.js +142 -0
- package/dist/lib/reporting/ledger/row-storage-provider-io.mjs +111 -0
- package/dist/lib/reporting/ledger/row-storage.d.mts +224 -0
- package/dist/lib/reporting/ledger/row-storage.d.ts +224 -0
- package/dist/lib/reporting/ledger/row-storage.js +692 -0
- package/dist/lib/reporting/ledger/row-storage.mjs +680 -0
- package/dist/lib/reporting/ledger/types.d.mts +8 -0
- package/dist/lib/reporting/ledger/types.d.ts +8 -0
- package/dist/lib/reporting/s3/index.d.mts +29 -0
- package/dist/lib/reporting/s3/index.d.ts +29 -0
- package/dist/lib/reporting/s3/index.js +324 -0
- package/dist/lib/reporting/s3/index.mjs +317 -0
- package/dist/lib/reporting/service/index.d.mts +43 -1
- package/dist/lib/reporting/service/index.d.ts +43 -1
- package/dist/lib/reporting/service/index.js +69 -1
- package/dist/lib/reporting/service/index.mjs +71 -1
- package/dist/lib/schemas/browser.d.mts +14 -0
- package/dist/lib/schemas/browser.d.ts +14 -0
- package/dist/lib/schemas/browser.js +48 -0
- package/dist/lib/schemas/browser.mjs +20 -0
- package/dist/lib/schemas/index.d.mts +2 -120
- package/dist/lib/schemas/index.d.ts +2 -120
- package/dist/lib/schemas/index.js +3 -11
- package/dist/lib/schemas/index.mjs +1 -9
- package/dist/lib/schemas-data/v2.5/_provenance.json +1 -1
- package/dist/lib/testing/index.d.mts +1 -0
- package/dist/lib/testing/index.d.ts +1 -0
- package/dist/lib/testing/index.js +3 -0
- package/dist/lib/testing/index.mjs +2 -0
- package/dist/lib/testing/pending-web-flow-store.d.mts +20 -0
- package/dist/lib/testing/pending-web-flow-store.d.ts +20 -0
- package/dist/lib/testing/pending-web-flow-store.js +132 -0
- package/dist/lib/testing/pending-web-flow-store.mjs +98 -0
- package/dist/lib/testing/storyboard/validations.d.mts +1 -1
- package/dist/lib/testing/storyboard/validations.d.ts +1 -1
- package/dist/lib/validation/get-products-request.d.mts +122 -0
- package/dist/lib/validation/get-products-request.d.ts +122 -0
- package/dist/lib/validation/get-products-request.js +39 -0
- package/dist/lib/validation/get-products-request.mjs +14 -0
- 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/README.md +1 -1
- package/docs/TYPE-SUMMARY.md +35 -2
- package/docs/ZOD-SCHEMAS.md +13 -1
- package/docs/guides/DISCOVERY-CACHE-AND-SESSION-REUSE.md +142 -0
- package/docs/guides/EXISTING-PLATFORM.md +43 -12
- package/docs/guides/OAUTH-ISSUER-BINDING.md +6 -0
- package/docs/guides/REPORTING-LEDGER.md +374 -0
- package/docs/guides/REPORTING-OPERATIONS.md +76 -1
- package/docs/guides/WEB-OAUTH.md +48 -1
- package/docs/llms.txt +4 -2
- package/docs/migration-14.x-rc-worksheet.md +6 -4
- package/package.json +64 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adcp/sdk",
|
|
3
|
-
"version": "15.
|
|
3
|
+
"version": "15.6.0",
|
|
4
4
|
"description": "AdCP SDK — client, server, and compliance harnesses for the AdContext Protocol (MCP + A2A)",
|
|
5
5
|
"workspaces": [
|
|
6
6
|
".",
|
|
@@ -284,6 +284,16 @@
|
|
|
284
284
|
"default": "./dist/lib/schemas/index.js"
|
|
285
285
|
}
|
|
286
286
|
},
|
|
287
|
+
"./schemas/browser": {
|
|
288
|
+
"import": {
|
|
289
|
+
"types": "./dist/lib/schemas/browser.d.mts",
|
|
290
|
+
"default": "./dist/lib/schemas/browser.mjs"
|
|
291
|
+
},
|
|
292
|
+
"require": {
|
|
293
|
+
"types": "./dist/lib/schemas/browser.d.ts",
|
|
294
|
+
"default": "./dist/lib/schemas/browser.js"
|
|
295
|
+
}
|
|
296
|
+
},
|
|
287
297
|
"./compliance-fixtures": {
|
|
288
298
|
"import": {
|
|
289
299
|
"types": "./dist/lib/compliance-fixtures/index.d.mts",
|
|
@@ -419,6 +429,36 @@
|
|
|
419
429
|
"types": "./dist/lib/reporting/gcs/index.d.ts",
|
|
420
430
|
"default": "./dist/lib/reporting/gcs/index.js"
|
|
421
431
|
}
|
|
432
|
+
},
|
|
433
|
+
"./reporting/s3": {
|
|
434
|
+
"import": {
|
|
435
|
+
"types": "./dist/lib/reporting/s3/index.d.mts",
|
|
436
|
+
"default": "./dist/lib/reporting/s3/index.mjs"
|
|
437
|
+
},
|
|
438
|
+
"require": {
|
|
439
|
+
"types": "./dist/lib/reporting/s3/index.d.ts",
|
|
440
|
+
"default": "./dist/lib/reporting/s3/index.js"
|
|
441
|
+
}
|
|
442
|
+
},
|
|
443
|
+
"./reporting/azure": {
|
|
444
|
+
"import": {
|
|
445
|
+
"types": "./dist/lib/reporting/azure/index.d.mts",
|
|
446
|
+
"default": "./dist/lib/reporting/azure/index.mjs"
|
|
447
|
+
},
|
|
448
|
+
"require": {
|
|
449
|
+
"types": "./dist/lib/reporting/azure/index.d.ts",
|
|
450
|
+
"default": "./dist/lib/reporting/azure/index.js"
|
|
451
|
+
}
|
|
452
|
+
},
|
|
453
|
+
"./reporting/bigquery": {
|
|
454
|
+
"import": {
|
|
455
|
+
"types": "./dist/lib/reporting/bigquery/index.d.mts",
|
|
456
|
+
"default": "./dist/lib/reporting/bigquery/index.mjs"
|
|
457
|
+
},
|
|
458
|
+
"require": {
|
|
459
|
+
"types": "./dist/lib/reporting/bigquery/index.d.ts",
|
|
460
|
+
"default": "./dist/lib/reporting/bigquery/index.js"
|
|
461
|
+
}
|
|
422
462
|
}
|
|
423
463
|
},
|
|
424
464
|
"typesVersions": {
|
|
@@ -489,6 +529,9 @@
|
|
|
489
529
|
"schemas": [
|
|
490
530
|
"dist/lib/schemas/index.d.ts"
|
|
491
531
|
],
|
|
532
|
+
"schemas/browser": [
|
|
533
|
+
"dist/lib/schemas/browser.d.ts"
|
|
534
|
+
],
|
|
492
535
|
"compliance-fixtures": [
|
|
493
536
|
"dist/lib/compliance-fixtures/index.d.ts"
|
|
494
537
|
],
|
|
@@ -542,6 +585,15 @@
|
|
|
542
585
|
],
|
|
543
586
|
"reporting/gcs": [
|
|
544
587
|
"dist/lib/reporting/gcs/index.d.ts"
|
|
588
|
+
],
|
|
589
|
+
"reporting/s3": [
|
|
590
|
+
"dist/lib/reporting/s3/index.d.ts"
|
|
591
|
+
],
|
|
592
|
+
"reporting/azure": [
|
|
593
|
+
"dist/lib/reporting/azure/index.d.ts"
|
|
594
|
+
],
|
|
595
|
+
"reporting/bigquery": [
|
|
596
|
+
"dist/lib/reporting/bigquery/index.d.ts"
|
|
545
597
|
]
|
|
546
598
|
}
|
|
547
599
|
},
|
|
@@ -684,6 +736,7 @@
|
|
|
684
736
|
"ci:validate": "node scripts/ci-validate.js",
|
|
685
737
|
"ci:quick": "npm run format:check && npm run typecheck && npm run build:lib && npm test",
|
|
686
738
|
"test:zod-openapi-portability": "node --test test/lib/zod-openapi-portability.test.js",
|
|
739
|
+
"test:schemas-browser": "node --test-timeout=60000 --test test/lib/schemas-browser.test.js",
|
|
687
740
|
"ci:schema-check": "npm run sync-schemas && npm run generate-types && npm run generate-registry-types -- --sync && git diff --exit-code -I '// Generated at:' src/lib/types/ src/lib/agents/ src/lib/media-buy/action-metadata.generated.ts src/lib/media-buy/update-fields.generated.ts src/lib/registry/types.generated.ts schemas/registry/registry.yaml || (echo '⚠️ Generated files are out of sync. Run: npm run sync-schemas && npm run generate-types && npm run generate-registry-types -- --sync' && exit 1)",
|
|
688
741
|
"ci:codegen-strict": "tsx scripts/check-no-loose-oneof.ts",
|
|
689
742
|
"ci:docs-check": "npm run generate-agent-docs && npm run generate-release-worksheet && git diff --exit-code -I '> Generated at:' docs/llms.txt docs/TYPE-SUMMARY.md docs/migration-14.x-rc-worksheet.md || (echo '⚠️ Generated docs are out of sync. Run: npm run generate-agent-docs && npm run generate-release-worksheet' && exit 1)",
|
|
@@ -746,6 +799,8 @@
|
|
|
746
799
|
},
|
|
747
800
|
"peerDependencies": {
|
|
748
801
|
"@a2a-js/sdk": "^1.0.1",
|
|
802
|
+
"@aws-sdk/client-s3": "^3.700.0",
|
|
803
|
+
"@azure/storage-blob": "^12.23.0",
|
|
749
804
|
"@google-cloud/storage": "^7.22.0 || ^8.2.0",
|
|
750
805
|
"@modelcontextprotocol/sdk": "^1.31.0",
|
|
751
806
|
"@opentelemetry/api": "^1.0.0",
|
|
@@ -753,6 +808,12 @@
|
|
|
753
808
|
"zod": "^4.1.5"
|
|
754
809
|
},
|
|
755
810
|
"peerDependenciesMeta": {
|
|
811
|
+
"@aws-sdk/client-s3": {
|
|
812
|
+
"optional": true
|
|
813
|
+
},
|
|
814
|
+
"@azure/storage-blob": {
|
|
815
|
+
"optional": true
|
|
816
|
+
},
|
|
756
817
|
"@google-cloud/storage": {
|
|
757
818
|
"optional": true
|
|
758
819
|
},
|
|
@@ -767,6 +828,8 @@
|
|
|
767
828
|
"@a2a-js/sdk": "^1.0.1",
|
|
768
829
|
"@apidevtools/json-schema-ref-parser": "^15.5.2",
|
|
769
830
|
"@arethetypeswrong/cli": "^0.18.5",
|
|
831
|
+
"@aws-sdk/client-s3": "^3.1147.0",
|
|
832
|
+
"@azure/storage-blob": "~12.32.0",
|
|
770
833
|
"@changesets/cli": "^3.0.3",
|
|
771
834
|
"@commitlint/cli": "^20.5.3",
|
|
772
835
|
"@commitlint/config-conventional": "^20.5.3",
|