@wevion/cli 1.0.3180 → 1.0.3182

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.
Files changed (2) hide show
  1. package/openapi.json +472 -0
  2. package/package.json +1 -1
package/openapi.json CHANGED
@@ -145762,6 +145762,478 @@
145762
145762
  }
145763
145763
  }
145764
145764
  },
145765
+ "/api/v1/meta/lead-forms": {
145766
+ "post": {
145767
+ "operationId": "postApiV1MetaLeadForms",
145768
+ "summary": "Create a Meta Instant Form",
145769
+ "tags": [
145770
+ "meta"
145771
+ ],
145772
+ "description": "Creates a lead-generation Instant Form on a connected Facebook Page (`POST /{page_id}/leadgen_forms`) and returns its id, ready to attach to an ad. Meta publishes forms immutable: questions, privacy policy and the quality filters (SMS verification, higher-intent review step) can only be chosen at creation, so an existing form can never be upgraded — a new one is created instead. The Page access token is resolved server-side from the connected Page; the caller never handles Meta tokens.",
145773
+ "requestBody": {
145774
+ "required": true,
145775
+ "content": {
145776
+ "application/json": {
145777
+ "schema": {
145778
+ "additionalProperties": false,
145779
+ "type": "object",
145780
+ "required": [
145781
+ "page_id",
145782
+ "name",
145783
+ "questions"
145784
+ ],
145785
+ "properties": {
145786
+ "page_id": {
145787
+ "minLength": 1,
145788
+ "description": "Facebook Page that will own the form.",
145789
+ "type": "string"
145790
+ },
145791
+ "name": {
145792
+ "minLength": 1,
145793
+ "maxLength": 200,
145794
+ "description": "Internal form name, shown in the picker.",
145795
+ "type": "string"
145796
+ },
145797
+ "questions": {
145798
+ "minItems": 1,
145799
+ "maxItems": 30,
145800
+ "description": "Questions in display order. At least one is required by Meta.",
145801
+ "type": "array",
145802
+ "items": {
145803
+ "additionalProperties": false,
145804
+ "type": "object",
145805
+ "required": [
145806
+ "type"
145807
+ ],
145808
+ "properties": {
145809
+ "type": {
145810
+ "anyOf": [
145811
+ {
145812
+ "type": "string",
145813
+ "enum": [
145814
+ "FULL_NAME"
145815
+ ]
145816
+ },
145817
+ {
145818
+ "type": "string",
145819
+ "enum": [
145820
+ "FIRST_NAME"
145821
+ ]
145822
+ },
145823
+ {
145824
+ "type": "string",
145825
+ "enum": [
145826
+ "LAST_NAME"
145827
+ ]
145828
+ },
145829
+ {
145830
+ "type": "string",
145831
+ "enum": [
145832
+ "EMAIL"
145833
+ ]
145834
+ },
145835
+ {
145836
+ "type": "string",
145837
+ "enum": [
145838
+ "PHONE"
145839
+ ]
145840
+ },
145841
+ {
145842
+ "type": "string",
145843
+ "enum": [
145844
+ "PHONE_OTP"
145845
+ ]
145846
+ },
145847
+ {
145848
+ "type": "string",
145849
+ "enum": [
145850
+ "WHATSAPP_NUMBER"
145851
+ ]
145852
+ },
145853
+ {
145854
+ "type": "string",
145855
+ "enum": [
145856
+ "STREET_ADDRESS"
145857
+ ]
145858
+ },
145859
+ {
145860
+ "type": "string",
145861
+ "enum": [
145862
+ "CITY"
145863
+ ]
145864
+ },
145865
+ {
145866
+ "type": "string",
145867
+ "enum": [
145868
+ "STATE"
145869
+ ]
145870
+ },
145871
+ {
145872
+ "type": "string",
145873
+ "enum": [
145874
+ "PROVINCE"
145875
+ ]
145876
+ },
145877
+ {
145878
+ "type": "string",
145879
+ "enum": [
145880
+ "COUNTRY"
145881
+ ]
145882
+ },
145883
+ {
145884
+ "type": "string",
145885
+ "enum": [
145886
+ "POST_CODE"
145887
+ ]
145888
+ },
145889
+ {
145890
+ "type": "string",
145891
+ "enum": [
145892
+ "ZIP"
145893
+ ]
145894
+ },
145895
+ {
145896
+ "type": "string",
145897
+ "enum": [
145898
+ "COMPANY_NAME"
145899
+ ]
145900
+ },
145901
+ {
145902
+ "type": "string",
145903
+ "enum": [
145904
+ "JOB_TITLE"
145905
+ ]
145906
+ },
145907
+ {
145908
+ "type": "string",
145909
+ "enum": [
145910
+ "WORK_EMAIL"
145911
+ ]
145912
+ },
145913
+ {
145914
+ "type": "string",
145915
+ "enum": [
145916
+ "WORK_PHONE_NUMBER"
145917
+ ]
145918
+ },
145919
+ {
145920
+ "type": "string",
145921
+ "enum": [
145922
+ "DOB"
145923
+ ]
145924
+ },
145925
+ {
145926
+ "type": "string",
145927
+ "enum": [
145928
+ "GENDER"
145929
+ ]
145930
+ },
145931
+ {
145932
+ "type": "string",
145933
+ "enum": [
145934
+ "MARITAL_STATUS"
145935
+ ]
145936
+ },
145937
+ {
145938
+ "type": "string",
145939
+ "enum": [
145940
+ "RELATIONSHIP_STATUS"
145941
+ ]
145942
+ },
145943
+ {
145944
+ "type": "string",
145945
+ "enum": [
145946
+ "MILITARY_STATUS"
145947
+ ]
145948
+ },
145949
+ {
145950
+ "type": "string",
145951
+ "enum": [
145952
+ "CUSTOM"
145953
+ ]
145954
+ }
145955
+ ]
145956
+ },
145957
+ "key": {
145958
+ "maxLength": 100,
145959
+ "type": "string"
145960
+ },
145961
+ "label": {
145962
+ "maxLength": 300,
145963
+ "type": "string"
145964
+ },
145965
+ "options": {
145966
+ "maxItems": 30,
145967
+ "type": "array",
145968
+ "items": {
145969
+ "additionalProperties": false,
145970
+ "type": "object",
145971
+ "required": [
145972
+ "value"
145973
+ ],
145974
+ "properties": {
145975
+ "value": {
145976
+ "maxLength": 200,
145977
+ "type": "string"
145978
+ },
145979
+ "key": {
145980
+ "maxLength": 100,
145981
+ "type": "string"
145982
+ }
145983
+ }
145984
+ }
145985
+ }
145986
+ }
145987
+ }
145988
+ },
145989
+ "locale": {
145990
+ "maxLength": 10,
145991
+ "description": "Form locale, e.g. \"it_IT\". Defaults to the Page locale.",
145992
+ "type": "string"
145993
+ },
145994
+ "privacy_policy_url": {
145995
+ "format": "uri",
145996
+ "maxLength": 1000,
145997
+ "description": "Required by Meta before a form can serve.",
145998
+ "type": "string"
145999
+ },
146000
+ "privacy_policy_link_text": {
146001
+ "maxLength": 100,
146002
+ "type": "string"
146003
+ },
146004
+ "context_card_title": {
146005
+ "maxLength": 200,
146006
+ "type": "string"
146007
+ },
146008
+ "context_card_content": {
146009
+ "maxItems": 10,
146010
+ "type": "array",
146011
+ "items": {
146012
+ "maxLength": 300,
146013
+ "type": "string"
146014
+ }
146015
+ },
146016
+ "context_card_button_text": {
146017
+ "maxLength": 100,
146018
+ "type": "string"
146019
+ },
146020
+ "thank_you_title": {
146021
+ "maxLength": 200,
146022
+ "type": "string"
146023
+ },
146024
+ "thank_you_body": {
146025
+ "maxLength": 500,
146026
+ "type": "string"
146027
+ },
146028
+ "thank_you_button_text": {
146029
+ "maxLength": 100,
146030
+ "type": "string"
146031
+ },
146032
+ "thank_you_website_url": {
146033
+ "format": "uri",
146034
+ "maxLength": 1000,
146035
+ "type": "string"
146036
+ },
146037
+ "follow_up_action_url": {
146038
+ "format": "uri",
146039
+ "maxLength": 1000,
146040
+ "type": "string"
146041
+ },
146042
+ "phone_sms_verify": {
146043
+ "type": "boolean"
146044
+ },
146045
+ "optimized_for_quality": {
146046
+ "type": "boolean"
146047
+ },
146048
+ "block_display_for_non_targeted_viewer": {
146049
+ "type": "boolean"
146050
+ }
146051
+ }
146052
+ }
146053
+ }
146054
+ }
146055
+ },
146056
+ "parameters": [
146057
+ {
146058
+ "schema": {
146059
+ "format": "uuid",
146060
+ "type": "string"
146061
+ },
146062
+ "in": "header",
146063
+ "name": "x-team-id",
146064
+ "required": false,
146065
+ "description": "Explicit team (workspace) scope: a team.id the caller belongs to."
146066
+ },
146067
+ {
146068
+ "schema": {
146069
+ "type": "string"
146070
+ },
146071
+ "in": "header",
146072
+ "name": "x-active-scope",
146073
+ "required": false,
146074
+ "description": "Active scope selector in `<scopeType>:<uuid>` form, e.g. `organization:<organization_id>` or `team:<team_id>`. Omit the header for the all-workspaces view."
146075
+ }
146076
+ ],
146077
+ "responses": {
146078
+ "201": {
146079
+ "description": "Form created on the Page.",
146080
+ "content": {
146081
+ "application/json": {
146082
+ "schema": {
146083
+ "additionalProperties": false,
146084
+ "description": "Form created on the Page.",
146085
+ "type": "object",
146086
+ "required": [
146087
+ "id",
146088
+ "name",
146089
+ "page_id"
146090
+ ],
146091
+ "properties": {
146092
+ "id": {
146093
+ "description": "Meta leadgen form id, ready to attach to an ad.",
146094
+ "type": "string"
146095
+ },
146096
+ "name": {
146097
+ "type": "string"
146098
+ },
146099
+ "page_id": {
146100
+ "type": "string"
146101
+ }
146102
+ }
146103
+ }
146104
+ }
146105
+ }
146106
+ },
146107
+ "400": {
146108
+ "description": "Invalid form definition, e.g. SMS verification without a phone question.",
146109
+ "content": {
146110
+ "application/json": {
146111
+ "schema": {
146112
+ "additionalProperties": false,
146113
+ "description": "Invalid form definition, e.g. SMS verification without a phone question.",
146114
+ "type": "object",
146115
+ "required": [
146116
+ "statusCode",
146117
+ "error",
146118
+ "message"
146119
+ ],
146120
+ "properties": {
146121
+ "statusCode": {
146122
+ "type": "number"
146123
+ },
146124
+ "error": {
146125
+ "type": "string"
146126
+ },
146127
+ "message": {
146128
+ "type": "string"
146129
+ }
146130
+ }
146131
+ }
146132
+ }
146133
+ }
146134
+ },
146135
+ "401": {
146136
+ "description": "Unauthorized - missing or invalid bearer token",
146137
+ "content": {
146138
+ "application/json": {
146139
+ "schema": {
146140
+ "$ref": "#/components/schemas/ErrorResponse"
146141
+ }
146142
+ }
146143
+ }
146144
+ },
146145
+ "403": {
146146
+ "description": "The Page is not connected to the caller team.",
146147
+ "content": {
146148
+ "application/json": {
146149
+ "schema": {
146150
+ "additionalProperties": false,
146151
+ "description": "The Page is not connected to the caller team.",
146152
+ "type": "object",
146153
+ "required": [
146154
+ "statusCode",
146155
+ "error",
146156
+ "message"
146157
+ ],
146158
+ "properties": {
146159
+ "statusCode": {
146160
+ "type": "number"
146161
+ },
146162
+ "error": {
146163
+ "type": "string"
146164
+ },
146165
+ "message": {
146166
+ "type": "string"
146167
+ }
146168
+ }
146169
+ }
146170
+ }
146171
+ }
146172
+ },
146173
+ "422": {
146174
+ "description": "Meta refused the form: missing permission, invalid privacy policy, and similar.",
146175
+ "content": {
146176
+ "application/json": {
146177
+ "schema": {
146178
+ "additionalProperties": false,
146179
+ "description": "Meta refused the form: missing permission, invalid privacy policy, and similar.",
146180
+ "type": "object",
146181
+ "required": [
146182
+ "statusCode",
146183
+ "error",
146184
+ "message"
146185
+ ],
146186
+ "properties": {
146187
+ "statusCode": {
146188
+ "type": "number"
146189
+ },
146190
+ "error": {
146191
+ "type": "string"
146192
+ },
146193
+ "message": {
146194
+ "type": "string"
146195
+ }
146196
+ }
146197
+ }
146198
+ }
146199
+ }
146200
+ },
146201
+ "500": {
146202
+ "description": "Unexpected server error.",
146203
+ "content": {
146204
+ "application/json": {
146205
+ "schema": {
146206
+ "additionalProperties": false,
146207
+ "description": "Unexpected server error.",
146208
+ "type": "object",
146209
+ "required": [
146210
+ "statusCode",
146211
+ "error",
146212
+ "message"
146213
+ ],
146214
+ "properties": {
146215
+ "statusCode": {
146216
+ "type": "number"
146217
+ },
146218
+ "error": {
146219
+ "type": "string"
146220
+ },
146221
+ "message": {
146222
+ "type": "string"
146223
+ }
146224
+ }
146225
+ }
146226
+ }
146227
+ }
146228
+ }
146229
+ },
146230
+ "security": [
146231
+ {
146232
+ "bearerAuth": []
146233
+ }
146234
+ ]
146235
+ }
146236
+ },
145765
146237
  "/api/v1/meta/users/deactivate": {
145766
146238
  "post": {
145767
146239
  "operationId": "postApiV1MetaUsersDeactivate",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wevion/cli",
3
- "version": "1.0.3180",
3
+ "version": "1.0.3182",
4
4
  "description": "Wevion API command-line interface — generated from the public OpenAPI spec",
5
5
  "type": "module",
6
6
  "bin": {