@wevion/cli 1.0.3773 → 1.0.3775
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 +287 -0
- package/package.json +1 -1
package/openapi.json
CHANGED
|
@@ -182552,6 +182552,293 @@
|
|
|
182552
182552
|
}
|
|
182553
182553
|
}
|
|
182554
182554
|
},
|
|
182555
|
+
"/api/v1/public/contact-request": {
|
|
182556
|
+
"post": {
|
|
182557
|
+
"operationId": "createSiteContactRequest",
|
|
182558
|
+
"summary": "Richiesta di contatto dal sito",
|
|
182559
|
+
"tags": [
|
|
182560
|
+
"public"
|
|
182561
|
+
],
|
|
182562
|
+
"description": "Registra una richiesta dai moduli pubblici del sito (`contact`, `get_started`) e la consegna a Customer.io attraverso l’outbox durevole. Rotta PUBBLICA: nessun login, nessuna sessione aperta. ★ Risponde SEMPRE 202 con lo stesso corpo — anche a un invio identico ripetuto entro 10 minuti e al campo trappola `website` compilato — perché la risposta non deve confermare niente su un’email. Il modulo `contact` pretende `first_name`, `company` e `topic`; `get_started` solo l’email, e rifiuta `topic`. Un campo sconosciuto è un 400. Limite: 5 invii ogni 10 minuti per IP (429).",
|
|
182563
|
+
"requestBody": {
|
|
182564
|
+
"required": true,
|
|
182565
|
+
"content": {
|
|
182566
|
+
"application/json": {
|
|
182567
|
+
"schema": {
|
|
182568
|
+
"additionalProperties": false,
|
|
182569
|
+
"type": "object",
|
|
182570
|
+
"required": [
|
|
182571
|
+
"email",
|
|
182572
|
+
"form"
|
|
182573
|
+
],
|
|
182574
|
+
"properties": {
|
|
182575
|
+
"attribution": {
|
|
182576
|
+
"additionalProperties": false,
|
|
182577
|
+
"description": "Provenienza della visita: i parametri utm e il referral, mai l’URL intero.",
|
|
182578
|
+
"type": "object",
|
|
182579
|
+
"properties": {
|
|
182580
|
+
"ref": {
|
|
182581
|
+
"description": "Codice referral letto dal sito.",
|
|
182582
|
+
"maxLength": 64,
|
|
182583
|
+
"type": "string"
|
|
182584
|
+
},
|
|
182585
|
+
"utm_campaign": {
|
|
182586
|
+
"maxLength": 120,
|
|
182587
|
+
"type": "string"
|
|
182588
|
+
},
|
|
182589
|
+
"utm_content": {
|
|
182590
|
+
"maxLength": 120,
|
|
182591
|
+
"type": "string"
|
|
182592
|
+
},
|
|
182593
|
+
"utm_medium": {
|
|
182594
|
+
"maxLength": 120,
|
|
182595
|
+
"type": "string"
|
|
182596
|
+
},
|
|
182597
|
+
"utm_source": {
|
|
182598
|
+
"maxLength": 120,
|
|
182599
|
+
"type": "string"
|
|
182600
|
+
},
|
|
182601
|
+
"utm_term": {
|
|
182602
|
+
"maxLength": 120,
|
|
182603
|
+
"type": "string"
|
|
182604
|
+
}
|
|
182605
|
+
}
|
|
182606
|
+
},
|
|
182607
|
+
"company": {
|
|
182608
|
+
"description": "Azienda. Obbligatoria per `contact`.",
|
|
182609
|
+
"maxLength": 200,
|
|
182610
|
+
"minLength": 1,
|
|
182611
|
+
"type": "string"
|
|
182612
|
+
},
|
|
182613
|
+
"email": {
|
|
182614
|
+
"description": "Email di contatto, senza spazi intorno.",
|
|
182615
|
+
"format": "email",
|
|
182616
|
+
"maxLength": 320,
|
|
182617
|
+
"type": "string"
|
|
182618
|
+
},
|
|
182619
|
+
"first_name": {
|
|
182620
|
+
"description": "Nome. Obbligatorio per `contact`.",
|
|
182621
|
+
"maxLength": 100,
|
|
182622
|
+
"minLength": 1,
|
|
182623
|
+
"type": "string"
|
|
182624
|
+
},
|
|
182625
|
+
"form": {
|
|
182626
|
+
"description": "Il modulo di partenza: `contact` (pagina contatti) o `get_started` (pagina di prova).",
|
|
182627
|
+
"anyOf": [
|
|
182628
|
+
{
|
|
182629
|
+
"type": "string",
|
|
182630
|
+
"enum": [
|
|
182631
|
+
"contact"
|
|
182632
|
+
]
|
|
182633
|
+
},
|
|
182634
|
+
{
|
|
182635
|
+
"type": "string",
|
|
182636
|
+
"enum": [
|
|
182637
|
+
"get_started"
|
|
182638
|
+
]
|
|
182639
|
+
}
|
|
182640
|
+
]
|
|
182641
|
+
},
|
|
182642
|
+
"last_name": {
|
|
182643
|
+
"maxLength": 100,
|
|
182644
|
+
"type": "string"
|
|
182645
|
+
},
|
|
182646
|
+
"locale": {
|
|
182647
|
+
"description": "Lingua della pagina, es. `it` o `zh-CN`.",
|
|
182648
|
+
"maxLength": 10,
|
|
182649
|
+
"pattern": "^[a-z]{2}(-[A-Z]{2})?$",
|
|
182650
|
+
"type": "string"
|
|
182651
|
+
},
|
|
182652
|
+
"message": {
|
|
182653
|
+
"maxLength": 5000,
|
|
182654
|
+
"type": "string"
|
|
182655
|
+
},
|
|
182656
|
+
"page_path": {
|
|
182657
|
+
"description": "Percorso della pagina, senza dominio né query.",
|
|
182658
|
+
"maxLength": 500,
|
|
182659
|
+
"pattern": "^/[^?#]*$",
|
|
182660
|
+
"type": "string"
|
|
182661
|
+
},
|
|
182662
|
+
"topic": {
|
|
182663
|
+
"description": "Argomento scelto nel modulo contatti. Obbligatorio per `contact`, vietato per `get_started`.",
|
|
182664
|
+
"anyOf": [
|
|
182665
|
+
{
|
|
182666
|
+
"type": "string",
|
|
182667
|
+
"enum": [
|
|
182668
|
+
"general_inquiry"
|
|
182669
|
+
]
|
|
182670
|
+
},
|
|
182671
|
+
{
|
|
182672
|
+
"type": "string",
|
|
182673
|
+
"enum": [
|
|
182674
|
+
"custom_plan"
|
|
182675
|
+
]
|
|
182676
|
+
},
|
|
182677
|
+
{
|
|
182678
|
+
"type": "string",
|
|
182679
|
+
"enum": [
|
|
182680
|
+
"product_walkthrough"
|
|
182681
|
+
]
|
|
182682
|
+
},
|
|
182683
|
+
{
|
|
182684
|
+
"type": "string",
|
|
182685
|
+
"enum": [
|
|
182686
|
+
"founding_partner_request"
|
|
182687
|
+
]
|
|
182688
|
+
},
|
|
182689
|
+
{
|
|
182690
|
+
"type": "string",
|
|
182691
|
+
"enum": [
|
|
182692
|
+
"partner_program"
|
|
182693
|
+
]
|
|
182694
|
+
}
|
|
182695
|
+
]
|
|
182696
|
+
},
|
|
182697
|
+
"website": {
|
|
182698
|
+
"description": "Campo trappola: il modulo lo nasconde agli umani. Deve arrivare vuoto o non arrivare.",
|
|
182699
|
+
"maxLength": 200,
|
|
182700
|
+
"type": "string"
|
|
182701
|
+
}
|
|
182702
|
+
}
|
|
182703
|
+
}
|
|
182704
|
+
}
|
|
182705
|
+
}
|
|
182706
|
+
},
|
|
182707
|
+
"responses": {
|
|
182708
|
+
"202": {
|
|
182709
|
+
"description": "Accepted - processing asynchronously",
|
|
182710
|
+
"content": {
|
|
182711
|
+
"application/json": {
|
|
182712
|
+
"schema": {
|
|
182713
|
+
"additionalProperties": false,
|
|
182714
|
+
"type": "object",
|
|
182715
|
+
"required": [
|
|
182716
|
+
"status"
|
|
182717
|
+
],
|
|
182718
|
+
"properties": {
|
|
182719
|
+
"status": {
|
|
182720
|
+
"description": "Sempre `received`: la risposta non dice se l’invio era doppio, se l’email era nota o se era un bot.",
|
|
182721
|
+
"type": "string",
|
|
182722
|
+
"enum": [
|
|
182723
|
+
"received"
|
|
182724
|
+
]
|
|
182725
|
+
}
|
|
182726
|
+
}
|
|
182727
|
+
}
|
|
182728
|
+
}
|
|
182729
|
+
}
|
|
182730
|
+
},
|
|
182731
|
+
"400": {
|
|
182732
|
+
"description": "Invalid request - schema validation failed",
|
|
182733
|
+
"content": {
|
|
182734
|
+
"application/json": {
|
|
182735
|
+
"schema": {
|
|
182736
|
+
"type": "object",
|
|
182737
|
+
"required": [
|
|
182738
|
+
"statusCode",
|
|
182739
|
+
"error",
|
|
182740
|
+
"message"
|
|
182741
|
+
],
|
|
182742
|
+
"properties": {
|
|
182743
|
+
"statusCode": {
|
|
182744
|
+
"type": "integer"
|
|
182745
|
+
},
|
|
182746
|
+
"error": {
|
|
182747
|
+
"type": "string"
|
|
182748
|
+
},
|
|
182749
|
+
"message": {
|
|
182750
|
+
"type": "string"
|
|
182751
|
+
},
|
|
182752
|
+
"code": {
|
|
182753
|
+
"type": "string"
|
|
182754
|
+
},
|
|
182755
|
+
"request_id": {
|
|
182756
|
+
"type": "string"
|
|
182757
|
+
},
|
|
182758
|
+
"details": {
|
|
182759
|
+
"type": "object",
|
|
182760
|
+
"additionalProperties": {}
|
|
182761
|
+
}
|
|
182762
|
+
}
|
|
182763
|
+
}
|
|
182764
|
+
}
|
|
182765
|
+
}
|
|
182766
|
+
},
|
|
182767
|
+
"429": {
|
|
182768
|
+
"description": "Too many requests - rate limit exceeded",
|
|
182769
|
+
"content": {
|
|
182770
|
+
"application/json": {
|
|
182771
|
+
"schema": {
|
|
182772
|
+
"type": "object",
|
|
182773
|
+
"required": [
|
|
182774
|
+
"statusCode",
|
|
182775
|
+
"error",
|
|
182776
|
+
"message"
|
|
182777
|
+
],
|
|
182778
|
+
"properties": {
|
|
182779
|
+
"statusCode": {
|
|
182780
|
+
"type": "integer"
|
|
182781
|
+
},
|
|
182782
|
+
"error": {
|
|
182783
|
+
"type": "string"
|
|
182784
|
+
},
|
|
182785
|
+
"message": {
|
|
182786
|
+
"type": "string"
|
|
182787
|
+
},
|
|
182788
|
+
"code": {
|
|
182789
|
+
"type": "string"
|
|
182790
|
+
},
|
|
182791
|
+
"request_id": {
|
|
182792
|
+
"type": "string"
|
|
182793
|
+
},
|
|
182794
|
+
"details": {
|
|
182795
|
+
"type": "object",
|
|
182796
|
+
"additionalProperties": {}
|
|
182797
|
+
}
|
|
182798
|
+
}
|
|
182799
|
+
}
|
|
182800
|
+
}
|
|
182801
|
+
}
|
|
182802
|
+
},
|
|
182803
|
+
"500": {
|
|
182804
|
+
"description": "Internal server error",
|
|
182805
|
+
"content": {
|
|
182806
|
+
"application/json": {
|
|
182807
|
+
"schema": {
|
|
182808
|
+
"type": "object",
|
|
182809
|
+
"required": [
|
|
182810
|
+
"statusCode",
|
|
182811
|
+
"error",
|
|
182812
|
+
"message"
|
|
182813
|
+
],
|
|
182814
|
+
"properties": {
|
|
182815
|
+
"statusCode": {
|
|
182816
|
+
"type": "integer"
|
|
182817
|
+
},
|
|
182818
|
+
"error": {
|
|
182819
|
+
"type": "string"
|
|
182820
|
+
},
|
|
182821
|
+
"message": {
|
|
182822
|
+
"type": "string"
|
|
182823
|
+
},
|
|
182824
|
+
"code": {
|
|
182825
|
+
"type": "string"
|
|
182826
|
+
},
|
|
182827
|
+
"request_id": {
|
|
182828
|
+
"type": "string"
|
|
182829
|
+
},
|
|
182830
|
+
"details": {
|
|
182831
|
+
"type": "object",
|
|
182832
|
+
"additionalProperties": {}
|
|
182833
|
+
}
|
|
182834
|
+
}
|
|
182835
|
+
}
|
|
182836
|
+
}
|
|
182837
|
+
}
|
|
182838
|
+
}
|
|
182839
|
+
}
|
|
182840
|
+
}
|
|
182841
|
+
},
|
|
182555
182842
|
"/api/v1/public/site-config": {
|
|
182556
182843
|
"get": {
|
|
182557
182844
|
"operationId": "getPublicSiteConfig",
|