Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ regenerate-schemas: ## Download latest schemas and regenerate models
@echo "Fixing schema references..."
$(PYTHON) scripts/fix_schema_refs.py
@echo "Generating Pydantic models..."
$(PYTHON) scripts/generate_models_simple.py
$(PYTHON) scripts/generate_types.py
@echo "✓ Schemas regenerated successfully"

validate-generated: ## Validate generated code (syntax and imports)
Expand Down Expand Up @@ -99,7 +99,7 @@ check-schema-drift: ## Check if schemas are out of sync with upstream
@echo "Checking for schema drift..."
@$(PYTHON) scripts/sync_schemas.py
@$(PYTHON) scripts/fix_schema_refs.py
@$(PYTHON) scripts/generate_models_simple.py
@$(PYTHON) scripts/generate_types.py
@if git diff --exit-code src/adcp/types/generated.py schemas/cache/; then \
echo "✓ Schemas are up-to-date"; \
else \
Expand Down
88 changes: 61 additions & 27 deletions schemas/cache/.hashes.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion schemas/cache/1.0.0/activate-signal-request.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"deployments": {
"description": "Target deployment(s) for activation. If the authenticated caller matches one of these deployment targets, activation keys will be included in the response.",
"items": {
"$ref": "/schemas/v1/core/destination.json"
"$ref": "destination.json"
},
"minItems": 1,
"type": "array"
Expand Down
4 changes: 2 additions & 2 deletions schemas/cache/1.0.0/activate-signal-response.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"deployments": {
"description": "Array of deployment results for each deployment target",
"items": {
"$ref": "/schemas/v1/core/deployment.json"
"$ref": "deployment.json"
},
"type": "array"
}
Expand All @@ -47,7 +47,7 @@
"errors": {
"description": "Array of errors explaining why activation failed (e.g., platform connectivity issues, signal definition problems, authentication failures)",
"items": {
"$ref": "/schemas/v1/core/error.json"
"$ref": "error.json"
},
"minItems": 1,
"type": "array"
Expand Down
6 changes: 3 additions & 3 deletions schemas/cache/1.0.0/adagents.json
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@
"properties": {
"description": "Specific properties this agent is authorized for (alternative to property_ids/property_tags)",
"items": {
"$ref": "/schemas/v1/core/property.json"
"$ref": "property.json"
},
"minItems": 1,
"type": "array"
Expand Down Expand Up @@ -354,7 +354,7 @@
"publisher_properties": {
"description": "Properties from other publisher domains this agent is authorized for. Each entry specifies a publisher domain and which of their properties this agent can sell",
"items": {
"$ref": "/schemas/v1/core/publisher-property-selector.json"
"$ref": "publisher-property-selector.json"
},
"minItems": 1,
"type": "array"
Expand Down Expand Up @@ -426,7 +426,7 @@
"properties": {
"description": "Array of all properties covered by this adagents.json file. Same structure as list_authorized_properties response.",
"items": {
"$ref": "/schemas/v1/core/property.json"
"$ref": "property.json"
},
"minItems": 1,
"type": "array"
Expand Down
11 changes: 11 additions & 0 deletions schemas/cache/1.0.0/adcp-domain.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$id": "/schemas/v1/enums/adcp-domain.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "AdCP protocol domains for task categorization",
"enum": [
"media-buy",
"signals"
],
"title": "AdCP Domain",
"type": "string"
}
11 changes: 11 additions & 0 deletions schemas/cache/1.0.0/auth-scheme.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$id": "/schemas/v1/enums/auth-scheme.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "Authentication schemes for push notification endpoints",
"enum": [
"Bearer",
"HMAC-SHA256"
],
"title": "Authentication Scheme",
"type": "string"
}
18 changes: 18 additions & 0 deletions schemas/cache/1.0.0/available-metric.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"$id": "/schemas/v1/enums/available-metric.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "Standard delivery and performance metrics available for reporting",
"enum": [
"impressions",
"spend",
"clicks",
"ctr",
"video_completions",
"completion_rate",
"conversions",
"viewability",
"engagement_rate"
],
"title": "Available Metric",
"type": "string"
}
2 changes: 1 addition & 1 deletion schemas/cache/1.0.0/brand-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
"type": "string"
},
"asset_type": {
"$ref": "/schemas/v1/enums/asset-content-type.json",
"$ref": "asset-content-type.json",
"description": "Type of asset. Note: Brand manifests typically contain basic media assets (image, video, audio, text). Code assets (html, javascript, css) and ad markup (vast, daast) are usually not part of brand asset libraries."
},
"description": {
Expand Down
12 changes: 12 additions & 0 deletions schemas/cache/1.0.0/co-branding-requirement.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$id": "/schemas/v1/enums/co-branding-requirement.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "Co-branding policy for creatives (retailer/publisher brand inclusion)",
"enum": [
"required",
"optional",
"none"
],
"title": "Co-Branding Requirement",
"type": "string"
}
4 changes: 2 additions & 2 deletions schemas/cache/1.0.0/create-media-buy-response.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"packages": {
"description": "Array of created packages with complete state information",
"items": {
"$ref": "/schemas/v1/core/package.json"
"$ref": "package.json"
},
"type": "array"
}
Expand Down Expand Up @@ -76,7 +76,7 @@
"errors": {
"description": "Array of errors explaining why the operation failed",
"items": {
"$ref": "/schemas/v1/core/error.json"
"$ref": "error.json"
},
"minItems": 1,
"type": "array"
Expand Down
14 changes: 14 additions & 0 deletions schemas/cache/1.0.0/creative-action.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$id": "/schemas/v1/enums/creative-action.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "Action taken on a creative during sync operation",
"enum": [
"created",
"updated",
"unchanged",
"failed",
"deleted"
],
"title": "Creative Action",
"type": "string"
}
13 changes: 13 additions & 0 deletions schemas/cache/1.0.0/creative-agent-capability.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"$id": "/schemas/v1/enums/creative-agent-capability.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "Capabilities supported by creative agents for format handling",
"enum": [
"validation",
"assembly",
"generation",
"preview"
],
"title": "Creative Agent Capability",
"type": "string"
}
97 changes: 97 additions & 0 deletions schemas/cache/1.0.0/creative-filters.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
{
"$id": "/schemas/v1/core/creative-filters.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"description": "Filter criteria for querying creative assets from the centralized library",
"properties": {
"assigned_to_package": {
"description": "Filter creatives assigned to this specific package",
"type": "string"
},
"assigned_to_packages": {
"description": "Filter creatives assigned to any of these packages",
"items": {
"type": "string"
},
"type": "array"
},
"created_after": {
"description": "Filter creatives created after this date (ISO 8601)",
"format": "date-time",
"type": "string"
},
"created_before": {
"description": "Filter creatives created before this date (ISO 8601)",
"format": "date-time",
"type": "string"
},
"creative_ids": {
"description": "Filter by specific creative IDs",
"items": {
"type": "string"
},
"maxItems": 100,
"type": "array"
},
"format": {
"description": "Filter by creative format type (e.g., video, audio, display)",
"type": "string"
},
"formats": {
"description": "Filter by multiple creative format types",
"items": {
"type": "string"
},
"type": "array"
},
"has_performance_data": {
"description": "Filter creatives that have performance data when true",
"type": "boolean"
},
"name_contains": {
"description": "Filter by creative names containing this text (case-insensitive)",
"type": "string"
},
"status": {
"$ref": "creative-status.json",
"description": "Filter by creative approval status"
},
"statuses": {
"description": "Filter by multiple creative statuses",
"items": {
"$ref": "creative-status.json"
},
"type": "array"
},
"tags": {
"description": "Filter by creative tags (all tags must match)",
"items": {
"type": "string"
},
"type": "array"
},
"tags_any": {
"description": "Filter by creative tags (any tag must match)",
"items": {
"type": "string"
},
"type": "array"
},
"unassigned": {
"description": "Filter for unassigned creatives when true, assigned creatives when false",
"type": "boolean"
},
"updated_after": {
"description": "Filter creatives last updated after this date (ISO 8601)",
"format": "date-time",
"type": "string"
},
"updated_before": {
"description": "Filter creatives last updated before this date (ISO 8601)",
"format": "date-time",
"type": "string"
}
},
"title": "Creative Filters",
"type": "object"
}
18 changes: 4 additions & 14 deletions schemas/cache/1.0.0/creative-policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,12 @@
"description": "Creative requirements and restrictions for a product",
"properties": {
"co_branding": {
"description": "Co-branding requirement",
"enum": [
"required",
"optional",
"none"
],
"type": "string"
"$ref": "co-branding-requirement.json",
"description": "Co-branding requirement"
},
"landing_page": {
"description": "Landing page requirements",
"enum": [
"any",
"retailer_site_only",
"must_include_retailer"
],
"type": "string"
"$ref": "landing-page-requirement.json",
"description": "Landing page requirements"
},
"templates_available": {
"description": "Whether creative templates are provided",
Expand Down
15 changes: 15 additions & 0 deletions schemas/cache/1.0.0/creative-sort-field.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$id": "/schemas/v1/enums/creative-sort-field.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "Fields available for sorting creative library listings",
"enum": [
"created_date",
"updated_date",
"name",
"status",
"assignment_count",
"performance_score"
],
"title": "Creative Sort Field",
"type": "string"
}
Loading
Loading