@wevion/cli 1.0.3135 → 1.0.3138
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/openapi.json +160 -0
- package/package.json +1 -1
package/openapi.json
CHANGED
|
@@ -36931,6 +36931,166 @@
|
|
|
36931
36931
|
}
|
|
36932
36932
|
}
|
|
36933
36933
|
},
|
|
36934
|
+
"/api/v1/briefings/{briefingId}/brief/assemble-campaign": {
|
|
36935
|
+
"post": {
|
|
36936
|
+
"operationId": "postApiV1BriefingsByBriefingIdBriefAssembleCampaign",
|
|
36937
|
+
"summary": "Assemble a campaign draft from the brief",
|
|
36938
|
+
"tags": [
|
|
36939
|
+
"campaign-by-context"
|
|
36940
|
+
],
|
|
36941
|
+
"description": "Builds a canonical Meta campaign from the brief (one ad set per audience segment, one ad per creative concept), saves it as a PAUSED draft in the campaign editor, and reports whatever still blocks publishing. Never publishes.",
|
|
36942
|
+
"parameters": [
|
|
36943
|
+
{
|
|
36944
|
+
"schema": {
|
|
36945
|
+
"format": "uuid",
|
|
36946
|
+
"type": "string"
|
|
36947
|
+
},
|
|
36948
|
+
"in": "path",
|
|
36949
|
+
"name": "briefingId",
|
|
36950
|
+
"required": true
|
|
36951
|
+
}
|
|
36952
|
+
],
|
|
36953
|
+
"security": [
|
|
36954
|
+
{
|
|
36955
|
+
"bearerAuth": []
|
|
36956
|
+
},
|
|
36957
|
+
{
|
|
36958
|
+
"apiKeyAuth": []
|
|
36959
|
+
}
|
|
36960
|
+
],
|
|
36961
|
+
"responses": {
|
|
36962
|
+
"200": {
|
|
36963
|
+
"description": "Successful response",
|
|
36964
|
+
"content": {
|
|
36965
|
+
"application/json": {
|
|
36966
|
+
"schema": {
|
|
36967
|
+
"additionalProperties": false,
|
|
36968
|
+
"type": "object",
|
|
36969
|
+
"required": [
|
|
36970
|
+
"draft_id",
|
|
36971
|
+
"ad_set_count",
|
|
36972
|
+
"ad_count",
|
|
36973
|
+
"ready_to_publish",
|
|
36974
|
+
"blocking_issues"
|
|
36975
|
+
],
|
|
36976
|
+
"properties": {
|
|
36977
|
+
"draft_id": {
|
|
36978
|
+
"format": "uuid",
|
|
36979
|
+
"type": "string"
|
|
36980
|
+
},
|
|
36981
|
+
"ad_set_count": {
|
|
36982
|
+
"minimum": 0,
|
|
36983
|
+
"type": "integer"
|
|
36984
|
+
},
|
|
36985
|
+
"ad_count": {
|
|
36986
|
+
"minimum": 0,
|
|
36987
|
+
"type": "integer"
|
|
36988
|
+
},
|
|
36989
|
+
"ready_to_publish": {
|
|
36990
|
+
"type": "boolean"
|
|
36991
|
+
},
|
|
36992
|
+
"blocking_issues": {
|
|
36993
|
+
"type": "array",
|
|
36994
|
+
"items": {
|
|
36995
|
+
"additionalProperties": true,
|
|
36996
|
+
"type": "object",
|
|
36997
|
+
"required": [
|
|
36998
|
+
"code",
|
|
36999
|
+
"fieldPath",
|
|
37000
|
+
"message",
|
|
37001
|
+
"severity"
|
|
37002
|
+
],
|
|
37003
|
+
"properties": {
|
|
37004
|
+
"code": {
|
|
37005
|
+
"type": "string"
|
|
37006
|
+
},
|
|
37007
|
+
"fieldPath": {
|
|
37008
|
+
"type": "string"
|
|
37009
|
+
},
|
|
37010
|
+
"message": {
|
|
37011
|
+
"type": "string"
|
|
37012
|
+
},
|
|
37013
|
+
"severity": {
|
|
37014
|
+
"type": "string"
|
|
37015
|
+
}
|
|
37016
|
+
}
|
|
37017
|
+
}
|
|
37018
|
+
}
|
|
37019
|
+
}
|
|
37020
|
+
}
|
|
37021
|
+
}
|
|
37022
|
+
}
|
|
37023
|
+
},
|
|
37024
|
+
"400": {
|
|
37025
|
+
"description": "Invalid request - schema validation failed",
|
|
37026
|
+
"content": {
|
|
37027
|
+
"application/json": {
|
|
37028
|
+
"schema": {
|
|
37029
|
+
"additionalProperties": false,
|
|
37030
|
+
"type": "object",
|
|
37031
|
+
"required": [
|
|
37032
|
+
"error"
|
|
37033
|
+
],
|
|
37034
|
+
"properties": {
|
|
37035
|
+
"error": {
|
|
37036
|
+
"type": "string"
|
|
37037
|
+
}
|
|
37038
|
+
}
|
|
37039
|
+
}
|
|
37040
|
+
}
|
|
37041
|
+
}
|
|
37042
|
+
},
|
|
37043
|
+
"401": {
|
|
37044
|
+
"description": "Unauthorized - missing or invalid bearer token",
|
|
37045
|
+
"content": {
|
|
37046
|
+
"application/json": {
|
|
37047
|
+
"schema": {
|
|
37048
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
37049
|
+
}
|
|
37050
|
+
}
|
|
37051
|
+
}
|
|
37052
|
+
},
|
|
37053
|
+
"403": {
|
|
37054
|
+
"description": "Forbidden - caller lacks the required role/permission",
|
|
37055
|
+
"content": {
|
|
37056
|
+
"application/json": {
|
|
37057
|
+
"schema": {
|
|
37058
|
+
"additionalProperties": false,
|
|
37059
|
+
"type": "object",
|
|
37060
|
+
"required": [
|
|
37061
|
+
"error"
|
|
37062
|
+
],
|
|
37063
|
+
"properties": {
|
|
37064
|
+
"error": {
|
|
37065
|
+
"type": "string"
|
|
37066
|
+
}
|
|
37067
|
+
}
|
|
37068
|
+
}
|
|
37069
|
+
}
|
|
37070
|
+
}
|
|
37071
|
+
},
|
|
37072
|
+
"500": {
|
|
37073
|
+
"description": "Internal server error",
|
|
37074
|
+
"content": {
|
|
37075
|
+
"application/json": {
|
|
37076
|
+
"schema": {
|
|
37077
|
+
"additionalProperties": false,
|
|
37078
|
+
"type": "object",
|
|
37079
|
+
"required": [
|
|
37080
|
+
"error"
|
|
37081
|
+
],
|
|
37082
|
+
"properties": {
|
|
37083
|
+
"error": {
|
|
37084
|
+
"type": "string"
|
|
37085
|
+
}
|
|
37086
|
+
}
|
|
37087
|
+
}
|
|
37088
|
+
}
|
|
37089
|
+
}
|
|
37090
|
+
}
|
|
37091
|
+
}
|
|
37092
|
+
}
|
|
37093
|
+
},
|
|
36934
37094
|
"/api/v1/briefings/{briefingId}/brief/reopen": {
|
|
36935
37095
|
"post": {
|
|
36936
37096
|
"operationId": "postApiV1BriefingsByBriefingIdBriefReopen",
|