zernio-sdk 0.0.732 → 0.0.734
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.
- checksums.yaml +4 -4
- data/docs/CreateWhatsAppFlowRequest.md +3 -1
- data/docs/UpdateWhatsAppFlowRequest.md +3 -1
- data/docs/WhatsAppFlowsApi.md +1 -1
- data/lib/zernio-sdk/api/whats_app_flows_api.rb +2 -2
- data/lib/zernio-sdk/models/create_whats_app_flow_request.rb +14 -4
- data/lib/zernio-sdk/models/update_whats_app_flow_request.rb +14 -4
- data/lib/zernio-sdk/models/upload_token_status_response.rb +1 -0
- data/lib/zernio-sdk/version.rb +1 -1
- data/openapi.yaml +5 -3
- data/spec/api/whats_app_flows_api_spec.rb +1 -1
- data/spec/models/create_whats_app_flow_request_spec.rb +6 -0
- data/spec/models/update_whats_app_flow_request_spec.rb +6 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b14a2c7fb924c02a121a59e55c941aaf52fa196ba30d6f3334e1adc791557a2c
|
|
4
|
+
data.tar.gz: b830a945dd84db77689292597a88d3b669326fbeb94ed7c35b74747bb122fe38
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2bdd5fd51e2f00f5308d2e95d48b13e66189c7b05543b0f46261bb9e8039dbd8fa783866da5babd0c381f13e9f6fbae4ec6f98f9067b176105f6ab087a4b56ee
|
|
7
|
+
data.tar.gz: ff72978a89ba6580323ed66f16fb50a879f56031eff625b2d1c8ab90303f810d268440670bc30f0b22c58f62cca1604ec609c181d39d404551eeaf2e7fc4069f
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
| **categories** | **Array<String>** | Flow categories | |
|
|
10
10
|
| **clone_flow_id** | **String** | Optional: ID of an existing flow to clone the Flow JSON from | [optional] |
|
|
11
11
|
| **as_version** | **Boolean** | When cloning, true keeps the clone in cloneFlowId's version lineage (auto-numbered next version); false/absent creates an independent flow. Ignored without cloneFlowId. | [optional] |
|
|
12
|
+
| **endpoint_uri** | **String** | HTTPS-only data exchange endpoint for the flow. Settable only while the flow is in DRAFT, and the flow's uploaded Flow JSON must declare data_api_version \"3.0\" for the endpoint to be used. | [optional] |
|
|
12
13
|
|
|
13
14
|
## Example
|
|
14
15
|
|
|
@@ -20,7 +21,8 @@ instance = Zernio::CreateWhatsAppFlowRequest.new(
|
|
|
20
21
|
name: null,
|
|
21
22
|
categories: null,
|
|
22
23
|
clone_flow_id: null,
|
|
23
|
-
as_version: null
|
|
24
|
+
as_version: null,
|
|
25
|
+
endpoint_uri: null
|
|
24
26
|
)
|
|
25
27
|
```
|
|
26
28
|
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
| **account_id** | **String** | WhatsApp social account ID | |
|
|
8
8
|
| **name** | **String** | New flow name | [optional] |
|
|
9
9
|
| **categories** | **Array<String>** | | [optional] |
|
|
10
|
+
| **endpoint_uri** | **String** | HTTPS-only data exchange endpoint for the flow. Settable only while the flow is in DRAFT, and the flow's uploaded Flow JSON must declare data_api_version \"3.0\" for the endpoint to be used. | [optional] |
|
|
10
11
|
|
|
11
12
|
## Example
|
|
12
13
|
|
|
@@ -16,7 +17,8 @@ require 'zernio-sdk'
|
|
|
16
17
|
instance = Zernio::UpdateWhatsAppFlowRequest.new(
|
|
17
18
|
account_id: null,
|
|
18
19
|
name: null,
|
|
19
|
-
categories: null
|
|
20
|
+
categories: null,
|
|
21
|
+
endpoint_uri: null
|
|
20
22
|
)
|
|
21
23
|
```
|
|
22
24
|
|
data/docs/WhatsAppFlowsApi.md
CHANGED
|
@@ -798,7 +798,7 @@ module Zernio
|
|
|
798
798
|
end
|
|
799
799
|
|
|
800
800
|
# Update flow
|
|
801
|
-
# Update metadata (name, categories) of a DRAFT flow. Published flows are immutable.
|
|
801
|
+
# Update metadata (name, categories, endpointUri) of a DRAFT flow. Published flows are immutable.
|
|
802
802
|
# @param flow_id [String] Flow ID
|
|
803
803
|
# @param update_whats_app_flow_request [UpdateWhatsAppFlowRequest]
|
|
804
804
|
# @param [Hash] opts the optional parameters
|
|
@@ -809,7 +809,7 @@ module Zernio
|
|
|
809
809
|
end
|
|
810
810
|
|
|
811
811
|
# Update flow
|
|
812
|
-
# Update metadata (name, categories) of a DRAFT flow. Published flows are immutable.
|
|
812
|
+
# Update metadata (name, categories, endpointUri) of a DRAFT flow. Published flows are immutable.
|
|
813
813
|
# @param flow_id [String] Flow ID
|
|
814
814
|
# @param update_whats_app_flow_request [UpdateWhatsAppFlowRequest]
|
|
815
815
|
# @param [Hash] opts the optional parameters
|
|
@@ -30,6 +30,9 @@ module Zernio
|
|
|
30
30
|
# When cloning, true keeps the clone in cloneFlowId's version lineage (auto-numbered next version); false/absent creates an independent flow. Ignored without cloneFlowId.
|
|
31
31
|
attr_accessor :as_version
|
|
32
32
|
|
|
33
|
+
# HTTPS-only data exchange endpoint for the flow. Settable only while the flow is in DRAFT, and the flow's uploaded Flow JSON must declare data_api_version \"3.0\" for the endpoint to be used.
|
|
34
|
+
attr_accessor :endpoint_uri
|
|
35
|
+
|
|
33
36
|
class EnumAttributeValidator
|
|
34
37
|
attr_reader :datatype
|
|
35
38
|
attr_reader :allowable_values
|
|
@@ -59,7 +62,8 @@ module Zernio
|
|
|
59
62
|
:'name' => :'name',
|
|
60
63
|
:'categories' => :'categories',
|
|
61
64
|
:'clone_flow_id' => :'cloneFlowId',
|
|
62
|
-
:'as_version' => :'asVersion'
|
|
65
|
+
:'as_version' => :'asVersion',
|
|
66
|
+
:'endpoint_uri' => :'endpointUri'
|
|
63
67
|
}
|
|
64
68
|
end
|
|
65
69
|
|
|
@@ -80,7 +84,8 @@ module Zernio
|
|
|
80
84
|
:'name' => :'String',
|
|
81
85
|
:'categories' => :'Array<String>',
|
|
82
86
|
:'clone_flow_id' => :'String',
|
|
83
|
-
:'as_version' => :'Boolean'
|
|
87
|
+
:'as_version' => :'Boolean',
|
|
88
|
+
:'endpoint_uri' => :'String'
|
|
84
89
|
}
|
|
85
90
|
end
|
|
86
91
|
|
|
@@ -133,6 +138,10 @@ module Zernio
|
|
|
133
138
|
if attributes.key?(:'as_version')
|
|
134
139
|
self.as_version = attributes[:'as_version']
|
|
135
140
|
end
|
|
141
|
+
|
|
142
|
+
if attributes.key?(:'endpoint_uri')
|
|
143
|
+
self.endpoint_uri = attributes[:'endpoint_uri']
|
|
144
|
+
end
|
|
136
145
|
end
|
|
137
146
|
|
|
138
147
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -208,7 +217,8 @@ module Zernio
|
|
|
208
217
|
name == o.name &&
|
|
209
218
|
categories == o.categories &&
|
|
210
219
|
clone_flow_id == o.clone_flow_id &&
|
|
211
|
-
as_version == o.as_version
|
|
220
|
+
as_version == o.as_version &&
|
|
221
|
+
endpoint_uri == o.endpoint_uri
|
|
212
222
|
end
|
|
213
223
|
|
|
214
224
|
# @see the `==` method
|
|
@@ -220,7 +230,7 @@ module Zernio
|
|
|
220
230
|
# Calculates hash code according to all attributes.
|
|
221
231
|
# @return [Integer] Hash code
|
|
222
232
|
def hash
|
|
223
|
-
[account_id, name, categories, clone_flow_id, as_version].hash
|
|
233
|
+
[account_id, name, categories, clone_flow_id, as_version, endpoint_uri].hash
|
|
224
234
|
end
|
|
225
235
|
|
|
226
236
|
# Builds the object from hash
|
|
@@ -23,6 +23,9 @@ module Zernio
|
|
|
23
23
|
|
|
24
24
|
attr_accessor :categories
|
|
25
25
|
|
|
26
|
+
# HTTPS-only data exchange endpoint for the flow. Settable only while the flow is in DRAFT, and the flow's uploaded Flow JSON must declare data_api_version \"3.0\" for the endpoint to be used.
|
|
27
|
+
attr_accessor :endpoint_uri
|
|
28
|
+
|
|
26
29
|
class EnumAttributeValidator
|
|
27
30
|
attr_reader :datatype
|
|
28
31
|
attr_reader :allowable_values
|
|
@@ -50,7 +53,8 @@ module Zernio
|
|
|
50
53
|
{
|
|
51
54
|
:'account_id' => :'accountId',
|
|
52
55
|
:'name' => :'name',
|
|
53
|
-
:'categories' => :'categories'
|
|
56
|
+
:'categories' => :'categories',
|
|
57
|
+
:'endpoint_uri' => :'endpointUri'
|
|
54
58
|
}
|
|
55
59
|
end
|
|
56
60
|
|
|
@@ -69,7 +73,8 @@ module Zernio
|
|
|
69
73
|
{
|
|
70
74
|
:'account_id' => :'String',
|
|
71
75
|
:'name' => :'String',
|
|
72
|
-
:'categories' => :'Array<String>'
|
|
76
|
+
:'categories' => :'Array<String>',
|
|
77
|
+
:'endpoint_uri' => :'String'
|
|
73
78
|
}
|
|
74
79
|
end
|
|
75
80
|
|
|
@@ -110,6 +115,10 @@ module Zernio
|
|
|
110
115
|
self.categories = value
|
|
111
116
|
end
|
|
112
117
|
end
|
|
118
|
+
|
|
119
|
+
if attributes.key?(:'endpoint_uri')
|
|
120
|
+
self.endpoint_uri = attributes[:'endpoint_uri']
|
|
121
|
+
end
|
|
113
122
|
end
|
|
114
123
|
|
|
115
124
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -173,7 +182,8 @@ module Zernio
|
|
|
173
182
|
self.class == o.class &&
|
|
174
183
|
account_id == o.account_id &&
|
|
175
184
|
name == o.name &&
|
|
176
|
-
categories == o.categories
|
|
185
|
+
categories == o.categories &&
|
|
186
|
+
endpoint_uri == o.endpoint_uri
|
|
177
187
|
end
|
|
178
188
|
|
|
179
189
|
# @see the `==` method
|
|
@@ -185,7 +195,7 @@ module Zernio
|
|
|
185
195
|
# Calculates hash code according to all attributes.
|
|
186
196
|
# @return [Integer] Hash code
|
|
187
197
|
def hash
|
|
188
|
-
[account_id, name, categories].hash
|
|
198
|
+
[account_id, name, categories, endpoint_uri].hash
|
|
189
199
|
end
|
|
190
200
|
|
|
191
201
|
# Builds the object from hash
|
data/lib/zernio-sdk/version.rb
CHANGED
data/openapi.yaml
CHANGED
|
@@ -7398,7 +7398,7 @@ components:
|
|
|
7398
7398
|
$ref: '#/components/schemas/UploadedFile'
|
|
7399
7399
|
createdAt: { type: string, format: date-time }
|
|
7400
7400
|
expiresAt: { type: string, format: date-time }
|
|
7401
|
-
completedAt: { type: string, format: date-time }
|
|
7401
|
+
completedAt: { type: [string, "null"], format: date-time }
|
|
7402
7402
|
QueueSlotsResponse:
|
|
7403
7403
|
type: object
|
|
7404
7404
|
description: Single queue response (default behavior)
|
|
@@ -35750,6 +35750,7 @@ paths:
|
|
|
35750
35750
|
description: Flow categories
|
|
35751
35751
|
cloneFlowId: { type: string, description: "Optional: ID of an existing flow to clone the Flow JSON from" }
|
|
35752
35752
|
asVersion: { type: boolean, description: "When cloning, true keeps the clone in cloneFlowId's version lineage (auto-numbered next version); false/absent creates an independent flow. Ignored without cloneFlowId." }
|
|
35753
|
+
endpointUri: { type: string, format: uri, description: "HTTPS-only data exchange endpoint for the flow. Settable only while the flow is in DRAFT, and the flow's uploaded Flow JSON must declare data_api_version \"3.0\" for the endpoint to be used." }
|
|
35753
35754
|
examples:
|
|
35754
35755
|
basic:
|
|
35755
35756
|
summary: Create a lead generation flow
|
|
@@ -35830,7 +35831,7 @@ paths:
|
|
|
35830
35831
|
tags: [WhatsApp Flows]
|
|
35831
35832
|
summary: Update flow
|
|
35832
35833
|
description: |
|
|
35833
|
-
Update metadata (name, categories) of a DRAFT flow. Published flows are immutable.
|
|
35834
|
+
Update metadata (name, categories, endpointUri) of a DRAFT flow. Published flows are immutable.
|
|
35834
35835
|
security:
|
|
35835
35836
|
- bearerAuth: []
|
|
35836
35837
|
parameters:
|
|
@@ -35851,6 +35852,7 @@ paths:
|
|
|
35851
35852
|
items:
|
|
35852
35853
|
type: string
|
|
35853
35854
|
enum: [SIGN_UP, SIGN_IN, APPOINTMENT_BOOKING, LEAD_GENERATION, CONTACT_US, CUSTOMER_SUPPORT, SURVEY, OTHER]
|
|
35855
|
+
endpointUri: { type: string, format: uri, description: "HTTPS-only data exchange endpoint for the flow. Settable only while the flow is in DRAFT, and the flow's uploaded Flow JSON must declare data_api_version \"3.0\" for the endpoint to be used." }
|
|
35854
35856
|
responses:
|
|
35855
35857
|
'200':
|
|
35856
35858
|
description: Flow updated
|
|
@@ -35860,7 +35862,7 @@ paths:
|
|
|
35860
35862
|
type: object
|
|
35861
35863
|
properties:
|
|
35862
35864
|
success: { type: boolean }
|
|
35863
|
-
'400': { description: "At least one of name or
|
|
35865
|
+
'400': { description: "At least one of name, categories or endpointUri is required, or flow is not in DRAFT status" }
|
|
35864
35866
|
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
35865
35867
|
'404': { description: WhatsApp account or flow not found }
|
|
35866
35868
|
delete:
|
|
@@ -177,7 +177,7 @@ describe 'WhatsAppFlowsApi' do
|
|
|
177
177
|
|
|
178
178
|
# unit tests for update_whats_app_flow
|
|
179
179
|
# Update flow
|
|
180
|
-
# Update metadata (name, categories) of a DRAFT flow. Published flows are immutable.
|
|
180
|
+
# Update metadata (name, categories, endpointUri) of a DRAFT flow. Published flows are immutable.
|
|
181
181
|
# @param flow_id Flow ID
|
|
182
182
|
# @param update_whats_app_flow_request
|
|
183
183
|
# @param [Hash] opts the optional parameters
|