@wevion/cli 1.0.3135 → 1.0.3140
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 +196 -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",
|
|
@@ -132599,6 +132759,15 @@
|
|
|
132599
132759
|
"name": "adset_id",
|
|
132600
132760
|
"required": false,
|
|
132601
132761
|
"description": "Scope ad options to a single ad set (cascade filtering)."
|
|
132762
|
+
},
|
|
132763
|
+
{
|
|
132764
|
+
"schema": {
|
|
132765
|
+
"type": "string"
|
|
132766
|
+
},
|
|
132767
|
+
"in": "query",
|
|
132768
|
+
"name": "platform",
|
|
132769
|
+
"required": false,
|
|
132770
|
+
"description": "Scope ad options to a single network ('meta', 'google', …). 'all' means no filter."
|
|
132602
132771
|
}
|
|
132603
132772
|
],
|
|
132604
132773
|
"security": [
|
|
@@ -133544,6 +133713,15 @@
|
|
|
133544
133713
|
"name": "campaign_id",
|
|
133545
133714
|
"required": false,
|
|
133546
133715
|
"description": "Scope adset options to a single campaign (cascade filtering, takes priority)."
|
|
133716
|
+
},
|
|
133717
|
+
{
|
|
133718
|
+
"schema": {
|
|
133719
|
+
"type": "string"
|
|
133720
|
+
},
|
|
133721
|
+
"in": "query",
|
|
133722
|
+
"name": "platform",
|
|
133723
|
+
"required": false,
|
|
133724
|
+
"description": "Scope adset options to a single network ('meta', 'google', …). 'all' means no filter."
|
|
133547
133725
|
}
|
|
133548
133726
|
],
|
|
133549
133727
|
"security": [
|
|
@@ -134475,6 +134653,15 @@
|
|
|
134475
134653
|
"name": "account_id",
|
|
134476
134654
|
"required": false,
|
|
134477
134655
|
"description": "Scope campaign options to a single ad account (cascade filtering)."
|
|
134656
|
+
},
|
|
134657
|
+
{
|
|
134658
|
+
"schema": {
|
|
134659
|
+
"type": "string"
|
|
134660
|
+
},
|
|
134661
|
+
"in": "query",
|
|
134662
|
+
"name": "platform",
|
|
134663
|
+
"required": false,
|
|
134664
|
+
"description": "Scope campaign options to a single network ('meta', 'google', …). 'all' means no filter."
|
|
134478
134665
|
}
|
|
134479
134666
|
],
|
|
134480
134667
|
"security": [
|
|
@@ -134575,6 +134762,15 @@
|
|
|
134575
134762
|
"in": "query",
|
|
134576
134763
|
"name": "offset",
|
|
134577
134764
|
"required": false
|
|
134765
|
+
},
|
|
134766
|
+
{
|
|
134767
|
+
"schema": {
|
|
134768
|
+
"type": "string"
|
|
134769
|
+
},
|
|
134770
|
+
"in": "query",
|
|
134771
|
+
"name": "platform",
|
|
134772
|
+
"required": false,
|
|
134773
|
+
"description": "Scope account options to a single network ('meta', 'google', …). 'all' means no filter."
|
|
134578
134774
|
}
|
|
134579
134775
|
],
|
|
134580
134776
|
"security": [
|