losant_rest 1.19.4 → 1.19.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (237) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/README.md +9 -9
  4. data/docs/_schemas.md +1142 -63
  5. data/docs/instanceAuditLog.md +49 -0
  6. data/docs/instanceAuditLogs.md +53 -0
  7. data/examples/auth.rb +1 -1
  8. data/examples/list_devices.rb +1 -1
  9. data/lib/platform_rest/application.rb +1 -1
  10. data/lib/platform_rest/application_api_token.rb +1 -1
  11. data/lib/platform_rest/application_api_tokens.rb +1 -1
  12. data/lib/platform_rest/application_certificate.rb +1 -1
  13. data/lib/platform_rest/application_certificate_authorities.rb +1 -1
  14. data/lib/platform_rest/application_certificate_authority.rb +1 -1
  15. data/lib/platform_rest/application_certificates.rb +1 -1
  16. data/lib/platform_rest/application_dashboard.rb +1 -1
  17. data/lib/platform_rest/application_dashboards.rb +1 -1
  18. data/lib/platform_rest/application_key.rb +1 -1
  19. data/lib/platform_rest/application_keys.rb +1 -1
  20. data/lib/platform_rest/application_template.rb +1 -1
  21. data/lib/platform_rest/application_templates.rb +1 -1
  22. data/lib/platform_rest/applications.rb +1 -1
  23. data/lib/platform_rest/audit_log.rb +1 -1
  24. data/lib/platform_rest/audit_logs.rb +1 -1
  25. data/lib/platform_rest/auth.rb +1 -1
  26. data/lib/platform_rest/client.rb +11 -3
  27. data/lib/platform_rest/credential.rb +1 -1
  28. data/lib/platform_rest/credentials.rb +1 -1
  29. data/lib/platform_rest/dashboard.rb +1 -1
  30. data/lib/platform_rest/dashboards.rb +1 -1
  31. data/lib/platform_rest/data.rb +1 -1
  32. data/lib/platform_rest/data_table.rb +1 -1
  33. data/lib/platform_rest/data_table_row.rb +1 -1
  34. data/lib/platform_rest/data_table_rows.rb +1 -1
  35. data/lib/platform_rest/data_tables.rb +1 -1
  36. data/lib/platform_rest/device.rb +1 -1
  37. data/lib/platform_rest/device_recipe.rb +1 -1
  38. data/lib/platform_rest/device_recipes.rb +1 -1
  39. data/lib/platform_rest/devices.rb +1 -1
  40. data/lib/platform_rest/edge_deployment.rb +1 -1
  41. data/lib/platform_rest/edge_deployments.rb +1 -1
  42. data/lib/platform_rest/embedded_deployment.rb +1 -1
  43. data/lib/platform_rest/embedded_deployments.rb +1 -1
  44. data/lib/platform_rest/error.rb +1 -1
  45. data/lib/platform_rest/event.rb +1 -1
  46. data/lib/platform_rest/events.rb +1 -1
  47. data/lib/platform_rest/experience.rb +1 -1
  48. data/lib/platform_rest/experience_domain.rb +1 -1
  49. data/lib/platform_rest/experience_domains.rb +1 -1
  50. data/lib/platform_rest/experience_endpoint.rb +1 -1
  51. data/lib/platform_rest/experience_endpoints.rb +1 -1
  52. data/lib/platform_rest/experience_group.rb +1 -1
  53. data/lib/platform_rest/experience_groups.rb +1 -1
  54. data/lib/platform_rest/experience_slug.rb +1 -1
  55. data/lib/platform_rest/experience_slugs.rb +1 -1
  56. data/lib/platform_rest/experience_user.rb +1 -1
  57. data/lib/platform_rest/experience_users.rb +1 -1
  58. data/lib/platform_rest/experience_version.rb +1 -1
  59. data/lib/platform_rest/experience_versions.rb +1 -1
  60. data/lib/platform_rest/experience_view.rb +1 -1
  61. data/lib/platform_rest/experience_views.rb +1 -1
  62. data/lib/platform_rest/file.rb +1 -1
  63. data/lib/platform_rest/files.rb +1 -1
  64. data/lib/platform_rest/flow.rb +1 -1
  65. data/lib/platform_rest/flow_version.rb +1 -1
  66. data/lib/platform_rest/flow_versions.rb +1 -1
  67. data/lib/platform_rest/flows.rb +1 -1
  68. data/lib/platform_rest/instance.rb +1 -1
  69. data/lib/platform_rest/instance_api_token.rb +1 -1
  70. data/lib/platform_rest/instance_api_tokens.rb +1 -1
  71. data/lib/{losant_rest/application_template.rb → platform_rest/instance_audit_log.rb} +13 -11
  72. data/lib/{losant_rest/audit_logs.rb → platform_rest/instance_audit_logs.rb} +12 -12
  73. data/lib/platform_rest/instance_custom_node.rb +1 -1
  74. data/lib/platform_rest/instance_custom_nodes.rb +1 -1
  75. data/lib/platform_rest/instance_member.rb +1 -1
  76. data/lib/platform_rest/instance_members.rb +1 -1
  77. data/lib/platform_rest/instance_org.rb +1 -1
  78. data/lib/platform_rest/instance_org_invite.rb +1 -1
  79. data/lib/platform_rest/instance_org_invites.rb +1 -1
  80. data/lib/platform_rest/instance_org_member.rb +1 -1
  81. data/lib/platform_rest/instance_org_members.rb +1 -1
  82. data/lib/platform_rest/instance_orgs.rb +1 -1
  83. data/lib/platform_rest/instance_sandbox.rb +1 -1
  84. data/lib/platform_rest/instance_sandboxes.rb +1 -1
  85. data/lib/platform_rest/instances.rb +1 -1
  86. data/lib/platform_rest/integration.rb +1 -1
  87. data/lib/platform_rest/integrations.rb +1 -1
  88. data/lib/platform_rest/me.rb +1 -1
  89. data/lib/platform_rest/notebook.rb +1 -1
  90. data/lib/platform_rest/notebooks.rb +1 -1
  91. data/lib/platform_rest/org.rb +1 -1
  92. data/lib/platform_rest/org_invites.rb +1 -1
  93. data/lib/platform_rest/orgs.rb +1 -1
  94. data/lib/platform_rest/resource_job.rb +1 -1
  95. data/lib/platform_rest/resource_jobs.rb +1 -1
  96. data/lib/platform_rest/user_api_token.rb +1 -1
  97. data/lib/platform_rest/user_api_tokens.rb +1 -1
  98. data/lib/platform_rest/utils.rb +1 -1
  99. data/lib/{losant_rest → platform_rest}/version.rb +3 -3
  100. data/lib/platform_rest/webhook.rb +1 -1
  101. data/lib/platform_rest/webhooks.rb +1 -1
  102. data/lib/platform_rest.rb +3 -1
  103. data/losant_rest.gemspec +2 -2
  104. data/schemas/apiTokenPost.json +9 -1
  105. data/schemas/auditLog.json +3 -2
  106. data/schemas/auditLogFilter.json +3 -2
  107. data/schemas/auditLogs.json +3 -2
  108. data/schemas/credential.json +50 -1
  109. data/schemas/credentialLinkedResources.json +81 -4
  110. data/schemas/credentialPatch.json +56 -0
  111. data/schemas/credentialPost.json +71 -1
  112. data/schemas/credentials.json +50 -1
  113. data/schemas/deviceConnectionStatus.json +6 -2
  114. data/schemas/devicesHistoricalImportPost.json +25 -0
  115. data/schemas/experienceLinkedResources.json +7 -5
  116. data/schemas/experienceView.json +1 -2
  117. data/schemas/experienceViewPatch.json +1 -2
  118. data/schemas/experienceViewPost.json +2 -4
  119. data/schemas/experienceViews.json +1 -2
  120. data/schemas/flow.json +2 -1
  121. data/schemas/flowPatch.json +2 -1
  122. data/schemas/flowPost.json +2 -1
  123. data/schemas/flowVersion.json +4 -2
  124. data/schemas/flowVersionPost.json +2 -1
  125. data/schemas/flowVersions.json +4 -2
  126. data/schemas/flows.json +2 -1
  127. data/schemas/flowsImportPost.json +4 -2
  128. data/schemas/flowsImportResult.json +6 -3
  129. data/schemas/githubLogin.json +9 -1
  130. data/schemas/instance.json +1 -4
  131. data/schemas/instanceAuditLog.json +94 -0
  132. data/schemas/instanceAuditLogFilter.json +106 -0
  133. data/schemas/instanceAuditLogs.json +41 -0
  134. data/schemas/instanceCustomNodePatch.json +2 -1
  135. data/schemas/instanceCustomNodePost.json +2 -1
  136. data/schemas/instanceOrgMember.json +4 -1
  137. data/schemas/instances.json +1 -4
  138. data/schemas/integration.json +75 -1
  139. data/schemas/integrationPatch.json +73 -0
  140. data/schemas/integrationPost.json +75 -1
  141. data/schemas/integrations.json +75 -1
  142. data/schemas/mePatch.json +18 -0
  143. data/schemas/samlResponse.json +9 -1
  144. data/schemas/userCredentials.json +9 -1
  145. data/schemas/userPost.json +9 -1
  146. data/test/basic_test.rb +6 -6
  147. data/test/test_helper.rb +1 -1
  148. metadata +11 -94
  149. data/lib/losant_rest/application.rb +0 -932
  150. data/lib/losant_rest/application_api_token.rb +0 -176
  151. data/lib/losant_rest/application_api_tokens.rb +0 -136
  152. data/lib/losant_rest/application_certificate.rb +0 -176
  153. data/lib/losant_rest/application_certificate_authorities.rb +0 -138
  154. data/lib/losant_rest/application_certificate_authority.rb +0 -176
  155. data/lib/losant_rest/application_certificates.rb +0 -138
  156. data/lib/losant_rest/application_dashboard.rb +0 -225
  157. data/lib/losant_rest/application_dashboards.rb +0 -138
  158. data/lib/losant_rest/application_key.rb +0 -176
  159. data/lib/losant_rest/application_keys.rb +0 -141
  160. data/lib/losant_rest/application_templates.rb +0 -176
  161. data/lib/losant_rest/applications.rb +0 -142
  162. data/lib/losant_rest/audit_log.rb +0 -81
  163. data/lib/losant_rest/auth.rb +0 -245
  164. data/lib/losant_rest/client.rb +0 -410
  165. data/lib/losant_rest/credential.rb +0 -224
  166. data/lib/losant_rest/credentials.rb +0 -138
  167. data/lib/losant_rest/dashboard.rb +0 -268
  168. data/lib/losant_rest/dashboards.rb +0 -136
  169. data/lib/losant_rest/data.rb +0 -176
  170. data/lib/losant_rest/data_table.rb +0 -274
  171. data/lib/losant_rest/data_table_row.rb +0 -182
  172. data/lib/losant_rest/data_table_rows.rb +0 -343
  173. data/lib/losant_rest/data_tables.rb +0 -138
  174. data/lib/losant_rest/device.rb +0 -749
  175. data/lib/losant_rest/device_recipe.rb +0 -234
  176. data/lib/losant_rest/device_recipes.rb +0 -146
  177. data/lib/losant_rest/devices.rb +0 -707
  178. data/lib/losant_rest/edge_deployment.rb +0 -81
  179. data/lib/losant_rest/edge_deployments.rb +0 -236
  180. data/lib/losant_rest/embedded_deployment.rb +0 -81
  181. data/lib/losant_rest/embedded_deployments.rb +0 -280
  182. data/lib/losant_rest/error.rb +0 -34
  183. data/lib/losant_rest/event.rb +0 -176
  184. data/lib/losant_rest/events.rb +0 -341
  185. data/lib/losant_rest/experience.rb +0 -142
  186. data/lib/losant_rest/experience_domain.rb +0 -176
  187. data/lib/losant_rest/experience_domains.rb +0 -126
  188. data/lib/losant_rest/experience_endpoint.rb +0 -230
  189. data/lib/losant_rest/experience_endpoints.rb +0 -200
  190. data/lib/losant_rest/experience_group.rb +0 -180
  191. data/lib/losant_rest/experience_groups.rb +0 -141
  192. data/lib/losant_rest/experience_slug.rb +0 -176
  193. data/lib/losant_rest/experience_slugs.rb +0 -126
  194. data/lib/losant_rest/experience_user.rb +0 -176
  195. data/lib/losant_rest/experience_users.rb +0 -142
  196. data/lib/losant_rest/experience_version.rb +0 -176
  197. data/lib/losant_rest/experience_versions.rb +0 -138
  198. data/lib/losant_rest/experience_view.rb +0 -228
  199. data/lib/losant_rest/experience_views.rb +0 -142
  200. data/lib/losant_rest/file.rb +0 -226
  201. data/lib/losant_rest/files.rb +0 -144
  202. data/lib/losant_rest/flow.rb +0 -580
  203. data/lib/losant_rest/flow_version.rb +0 -352
  204. data/lib/losant_rest/flow_versions.rb +0 -201
  205. data/lib/losant_rest/flows.rb +0 -310
  206. data/lib/losant_rest/instance.rb +0 -377
  207. data/lib/losant_rest/instance_api_token.rb +0 -176
  208. data/lib/losant_rest/instance_api_tokens.rb +0 -136
  209. data/lib/losant_rest/instance_custom_node.rb +0 -282
  210. data/lib/losant_rest/instance_custom_nodes.rb +0 -136
  211. data/lib/losant_rest/instance_member.rb +0 -176
  212. data/lib/losant_rest/instance_members.rb +0 -134
  213. data/lib/losant_rest/instance_org.rb +0 -336
  214. data/lib/losant_rest/instance_org_invite.rb +0 -182
  215. data/lib/losant_rest/instance_org_invites.rb +0 -138
  216. data/lib/losant_rest/instance_org_member.rb +0 -182
  217. data/lib/losant_rest/instance_org_members.rb +0 -138
  218. data/lib/losant_rest/instance_orgs.rb +0 -139
  219. data/lib/losant_rest/instance_sandbox.rb +0 -181
  220. data/lib/losant_rest/instance_sandboxes.rb +0 -98
  221. data/lib/losant_rest/instances.rb +0 -88
  222. data/lib/losant_rest/integration.rb +0 -178
  223. data/lib/losant_rest/integrations.rb +0 -138
  224. data/lib/losant_rest/me.rb +0 -790
  225. data/lib/losant_rest/notebook.rb +0 -423
  226. data/lib/losant_rest/notebooks.rb +0 -138
  227. data/lib/losant_rest/org.rb +0 -663
  228. data/lib/losant_rest/org_invites.rb +0 -124
  229. data/lib/losant_rest/orgs.rb +0 -140
  230. data/lib/losant_rest/resource_job.rb +0 -326
  231. data/lib/losant_rest/resource_jobs.rb +0 -138
  232. data/lib/losant_rest/user_api_token.rb +0 -170
  233. data/lib/losant_rest/user_api_tokens.rb +0 -132
  234. data/lib/losant_rest/utils.rb +0 -44
  235. data/lib/losant_rest/webhook.rb +0 -178
  236. data/lib/losant_rest/webhooks.rb +0 -138
  237. data/lib/losant_rest.rb +0 -129
@@ -62,7 +62,10 @@
62
62
  "gcp",
63
63
  "http",
64
64
  "sendgrid",
65
- "twilio"
65
+ "twilio",
66
+ "loggly",
67
+ "jwt",
68
+ "whatsapp"
66
69
  ]
67
70
  },
68
71
  "awsConfig": {
@@ -162,6 +165,52 @@
162
165
  "accountSid",
163
166
  "apiKeySid"
164
167
  ]
168
+ },
169
+ "logglyConfig": {
170
+ "type": "object",
171
+ "properties": {},
172
+ "additionalProperties": false
173
+ },
174
+ "jwtConfig": {
175
+ "type": "object",
176
+ "properties": {
177
+ "issuer": {
178
+ "type": "string",
179
+ "maxLength": 1024
180
+ },
181
+ "algorithm": {
182
+ "type": "string",
183
+ "enum": [
184
+ "HS256",
185
+ "HS384",
186
+ "HS512",
187
+ "RS256",
188
+ "RS384",
189
+ "RS512",
190
+ "ES256",
191
+ "ES384",
192
+ "ES512"
193
+ ]
194
+ }
195
+ },
196
+ "additionalProperties": false,
197
+ "required": [
198
+ "algorithm"
199
+ ]
200
+ },
201
+ "whatsappConfig": {
202
+ "type": "object",
203
+ "properties": {
204
+ "fromNumberId": {
205
+ "type": "string",
206
+ "minLength": 1,
207
+ "maxLength": 128
208
+ }
209
+ },
210
+ "additionalProperties": false,
211
+ "required": [
212
+ "fromNumberId"
213
+ ]
165
214
  }
166
215
  },
167
216
  "additionalProperties": false,
@@ -51,7 +51,8 @@
51
51
  "googlePubSub",
52
52
  "mqtt",
53
53
  "particle",
54
- "sqs"
54
+ "sqs",
55
+ "websocket"
55
56
  ]
56
57
  },
57
58
  "enabled": {
@@ -181,6 +182,13 @@
181
182
  },
182
183
  "disableSSLVerification": {
183
184
  "type": "boolean"
185
+ },
186
+ "protocolVersion": {
187
+ "type": "string",
188
+ "enum": [
189
+ "3.1.1",
190
+ "5"
191
+ ]
184
192
  }
185
193
  },
186
194
  "additionalProperties": false,
@@ -248,6 +256,72 @@
248
256
  "queueUrl"
249
257
  ]
250
258
  },
259
+ "websocketConfig": {
260
+ "type": "object",
261
+ "properties": {
262
+ "url": {
263
+ "type": "string",
264
+ "minLength": 1,
265
+ "maxLength": 1024
266
+ },
267
+ "disableSSLVerification": {
268
+ "type": "boolean"
269
+ },
270
+ "username": {
271
+ "type": "string",
272
+ "minLength": 1,
273
+ "maxLength": 1024
274
+ },
275
+ "password": {
276
+ "type": "string",
277
+ "minLength": 1,
278
+ "maxLength": 1024
279
+ },
280
+ "privateKey": {
281
+ "type": "string",
282
+ "maxLength": 32767,
283
+ "minLength": 4
284
+ },
285
+ "certificate": {
286
+ "type": "string",
287
+ "maxLength": 32767,
288
+ "minLength": 4
289
+ },
290
+ "caCertificate": {
291
+ "type": "string",
292
+ "maxLength": 32767,
293
+ "minLength": 4
294
+ },
295
+ "headers": {
296
+ "type": "array",
297
+ "maxItems": 50,
298
+ "items": {
299
+ "type": "object",
300
+ "properties": {
301
+ "headerKey": {
302
+ "type": "string",
303
+ "minLength": 1,
304
+ "maxLength": 1024
305
+ },
306
+ "headerValue": {
307
+ "type": "string",
308
+ "minLength": 1,
309
+ "maxLength": 1024
310
+ }
311
+ },
312
+ "additionalProperties": false,
313
+ "required": [
314
+ "headerKey",
315
+ "headerValue"
316
+ ]
317
+ }
318
+ }
319
+ },
320
+ "additionalProperties": false,
321
+ "required": [
322
+ "url"
323
+ ]
324
+ },
251
325
  "status": {
252
326
  "lastKeepAlive": {
253
327
  "type": [
@@ -501,7 +575,8 @@
501
575
  "webhook",
502
576
  "resourceJobIteration",
503
577
  "resourceJobIterationTimeout",
504
- "resourceJobComplete"
578
+ "resourceJobComplete",
579
+ "websocket"
505
580
  ]
506
581
  },
507
582
  "label": {
@@ -3276,7 +3351,8 @@
3276
3351
  "webhook",
3277
3352
  "resourceJobIteration",
3278
3353
  "resourceJobIterationTimeout",
3279
- "resourceJobComplete"
3354
+ "resourceJobComplete",
3355
+ "websocket"
3280
3356
  ]
3281
3357
  },
3282
3358
  "label": {
@@ -5960,7 +6036,8 @@
5960
6036
  "webhook",
5961
6037
  "resourceJobIteration",
5962
6038
  "resourceJobIterationTimeout",
5963
- "resourceJobComplete"
6039
+ "resourceJobComplete",
6040
+ "websocket"
5964
6041
  ]
5965
6042
  },
5966
6043
  "label": {
@@ -120,6 +120,62 @@
120
120
  }
121
121
  },
122
122
  "additionalProperties": false
123
+ },
124
+ "logglyConfig": {
125
+ "type": "object",
126
+ "properties": {
127
+ "customerToken": {
128
+ "type": "string",
129
+ "minLength": 1,
130
+ "maxLength": 128
131
+ }
132
+ },
133
+ "additionalProperties": false
134
+ },
135
+ "jwtConfig": {
136
+ "type": "object",
137
+ "properties": {
138
+ "issuer": {
139
+ "type": "string",
140
+ "maxLength": 1024
141
+ },
142
+ "algorithm": {
143
+ "type": "string",
144
+ "enum": [
145
+ "HS256",
146
+ "HS384",
147
+ "HS512",
148
+ "RS256",
149
+ "RS384",
150
+ "RS512",
151
+ "ES256",
152
+ "ES384",
153
+ "ES512"
154
+ ]
155
+ },
156
+ "secret": {
157
+ "type": "string",
158
+ "minLength": 1,
159
+ "maxLength": 4096
160
+ }
161
+ },
162
+ "additionalProperties": false
163
+ },
164
+ "whatsappConfig": {
165
+ "type": "object",
166
+ "properties": {
167
+ "accessToken": {
168
+ "type": "string",
169
+ "minLength": 1,
170
+ "maxLength": 1024
171
+ },
172
+ "fromNumberId": {
173
+ "type": "string",
174
+ "minLength": 1,
175
+ "maxLength": 128
176
+ }
177
+ },
178
+ "additionalProperties": false
123
179
  }
124
180
  },
125
181
  "additionalProperties": false
@@ -22,7 +22,10 @@
22
22
  "gcp",
23
23
  "http",
24
24
  "sendgrid",
25
- "twilio"
25
+ "twilio",
26
+ "loggly",
27
+ "jwt",
28
+ "whatsapp"
26
29
  ]
27
30
  },
28
31
  "awsConfig": {
@@ -155,6 +158,73 @@
155
158
  "apiKeySid",
156
159
  "apiKeySecret"
157
160
  ]
161
+ },
162
+ "logglyConfig": {
163
+ "type": "object",
164
+ "properties": {
165
+ "customerToken": {
166
+ "type": "string",
167
+ "minLength": 1,
168
+ "maxLength": 128
169
+ }
170
+ },
171
+ "additionalProperties": false,
172
+ "required": [
173
+ "customerToken"
174
+ ]
175
+ },
176
+ "jwtConfig": {
177
+ "type": "object",
178
+ "properties": {
179
+ "issuer": {
180
+ "type": "string",
181
+ "maxLength": 1024
182
+ },
183
+ "algorithm": {
184
+ "type": "string",
185
+ "enum": [
186
+ "HS256",
187
+ "HS384",
188
+ "HS512",
189
+ "RS256",
190
+ "RS384",
191
+ "RS512",
192
+ "ES256",
193
+ "ES384",
194
+ "ES512"
195
+ ]
196
+ },
197
+ "secret": {
198
+ "type": "string",
199
+ "minLength": 1,
200
+ "maxLength": 4096
201
+ }
202
+ },
203
+ "additionalProperties": false,
204
+ "required": [
205
+ "algorithm",
206
+ "secret"
207
+ ]
208
+ },
209
+ "whatsappConfig": {
210
+ "type": "object",
211
+ "properties": {
212
+ "accessToken": {
213
+ "type": "string",
214
+ "minLength": 1,
215
+ "maxLength": 1024
216
+ },
217
+ "fromNumberId": {
218
+ "type": "string",
219
+ "minLength": 1,
220
+ "maxLength": 128
221
+ }
222
+ },
223
+ "additionalProperties": false,
224
+ "required": [
225
+ "accessToken",
226
+ "fromNumberId"
227
+ ]
158
228
  }
159
229
  },
160
230
  "additionalProperties": false,
@@ -69,7 +69,10 @@
69
69
  "gcp",
70
70
  "http",
71
71
  "sendgrid",
72
- "twilio"
72
+ "twilio",
73
+ "loggly",
74
+ "jwt",
75
+ "whatsapp"
73
76
  ]
74
77
  },
75
78
  "awsConfig": {
@@ -169,6 +172,52 @@
169
172
  "accountSid",
170
173
  "apiKeySid"
171
174
  ]
175
+ },
176
+ "logglyConfig": {
177
+ "type": "object",
178
+ "properties": {},
179
+ "additionalProperties": false
180
+ },
181
+ "jwtConfig": {
182
+ "type": "object",
183
+ "properties": {
184
+ "issuer": {
185
+ "type": "string",
186
+ "maxLength": 1024
187
+ },
188
+ "algorithm": {
189
+ "type": "string",
190
+ "enum": [
191
+ "HS256",
192
+ "HS384",
193
+ "HS512",
194
+ "RS256",
195
+ "RS384",
196
+ "RS512",
197
+ "ES256",
198
+ "ES384",
199
+ "ES512"
200
+ ]
201
+ }
202
+ },
203
+ "additionalProperties": false,
204
+ "required": [
205
+ "algorithm"
206
+ ]
207
+ },
208
+ "whatsappConfig": {
209
+ "type": "object",
210
+ "properties": {
211
+ "fromNumberId": {
212
+ "type": "string",
213
+ "minLength": 1,
214
+ "maxLength": 128
215
+ }
216
+ },
217
+ "additionalProperties": false,
218
+ "required": [
219
+ "fromNumberId"
220
+ ]
172
221
  }
173
222
  },
174
223
  "additionalProperties": false,
@@ -105,10 +105,14 @@
105
105
  "maxLength": 1024
106
106
  },
107
107
  "messagesFromClient": {
108
- "type": "number"
108
+ "type": "integer",
109
+ "minimum": 0,
110
+ "maximum": 2147483647
109
111
  },
110
112
  "messagesToClient": {
111
- "type": "number"
113
+ "type": "integer",
114
+ "minimum": 0,
115
+ "maximum": 2147483647
112
116
  },
113
117
  "ipAddress": {
114
118
  "type": "string",
@@ -0,0 +1,25 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "email": {
6
+ "type": "string",
7
+ "format": "email",
8
+ "maxLength": 1024
9
+ },
10
+ "callbackUrl": {
11
+ "type": "string",
12
+ "format": "uri",
13
+ "maxLength": 1024
14
+ },
15
+ "fileUrl": {
16
+ "type": "string",
17
+ "format": "uri",
18
+ "maxLength": 1024
19
+ }
20
+ },
21
+ "required": [
22
+ "fileUrl"
23
+ ],
24
+ "additionalProperties": false
25
+ }
@@ -89,8 +89,7 @@
89
89
  },
90
90
  "body": {
91
91
  "type": "string",
92
- "maxLength": 131072,
93
- "minLength": 1
92
+ "maxLength": 131072
94
93
  },
95
94
  "viewTags": {
96
95
  "type": "object",
@@ -547,7 +546,8 @@
547
546
  "webhook",
548
547
  "resourceJobIteration",
549
548
  "resourceJobIterationTimeout",
550
- "resourceJobComplete"
549
+ "resourceJobComplete",
550
+ "websocket"
551
551
  ]
552
552
  },
553
553
  "label": {
@@ -3322,7 +3322,8 @@
3322
3322
  "webhook",
3323
3323
  "resourceJobIteration",
3324
3324
  "resourceJobIterationTimeout",
3325
- "resourceJobComplete"
3325
+ "resourceJobComplete",
3326
+ "websocket"
3326
3327
  ]
3327
3328
  },
3328
3329
  "label": {
@@ -6006,7 +6007,8 @@
6006
6007
  "webhook",
6007
6008
  "resourceJobIteration",
6008
6009
  "resourceJobIterationTimeout",
6009
- "resourceJobComplete"
6010
+ "resourceJobComplete",
6011
+ "websocket"
6010
6012
  ]
6011
6013
  },
6012
6014
  "label": {
@@ -77,8 +77,7 @@
77
77
  },
78
78
  "body": {
79
79
  "type": "string",
80
- "maxLength": 131072,
81
- "minLength": 1
80
+ "maxLength": 131072
82
81
  },
83
82
  "viewTags": {
84
83
  "type": "object",
@@ -20,8 +20,7 @@
20
20
  },
21
21
  "body": {
22
22
  "type": "string",
23
- "maxLength": 131072,
24
- "minLength": 1
23
+ "maxLength": 131072
25
24
  },
26
25
  "viewTags": {
27
26
  "type": "object",
@@ -28,8 +28,7 @@
28
28
  },
29
29
  "body": {
30
30
  "type": "string",
31
- "maxLength": 131072,
32
- "minLength": 1
31
+ "maxLength": 131072
33
32
  },
34
33
  "viewTags": {
35
34
  "type": "object",
@@ -46,7 +45,6 @@
46
45
  "additionalProperties": false,
47
46
  "required": [
48
47
  "name",
49
- "viewType",
50
- "body"
48
+ "viewType"
51
49
  ]
52
50
  }
@@ -84,8 +84,7 @@
84
84
  },
85
85
  "body": {
86
86
  "type": "string",
87
- "maxLength": 131072,
88
- "minLength": 1
87
+ "maxLength": 131072
89
88
  },
90
89
  "viewTags": {
91
90
  "type": "object",
data/schemas/flow.json CHANGED
@@ -166,7 +166,8 @@
166
166
  "webhook",
167
167
  "resourceJobIteration",
168
168
  "resourceJobIterationTimeout",
169
- "resourceJobComplete"
169
+ "resourceJobComplete",
170
+ "websocket"
170
171
  ]
171
172
  },
172
173
  "label": {
@@ -123,7 +123,8 @@
123
123
  "webhook",
124
124
  "resourceJobIteration",
125
125
  "resourceJobIterationTimeout",
126
- "resourceJobComplete"
126
+ "resourceJobComplete",
127
+ "websocket"
127
128
  ]
128
129
  },
129
130
  "label": {
@@ -112,7 +112,8 @@
112
112
  "webhook",
113
113
  "resourceJobIteration",
114
114
  "resourceJobIterationTimeout",
115
- "resourceJobComplete"
115
+ "resourceJobComplete",
116
+ "websocket"
116
117
  ]
117
118
  },
118
119
  "label": {
@@ -141,7 +141,8 @@
141
141
  "webhook",
142
142
  "resourceJobIteration",
143
143
  "resourceJobIterationTimeout",
144
- "resourceJobComplete"
144
+ "resourceJobComplete",
145
+ "websocket"
145
146
  ]
146
147
  },
147
148
  "label": {
@@ -2825,7 +2826,8 @@
2825
2826
  "webhook",
2826
2827
  "resourceJobIteration",
2827
2828
  "resourceJobIterationTimeout",
2828
- "resourceJobComplete"
2829
+ "resourceJobComplete",
2830
+ "websocket"
2829
2831
  ]
2830
2832
  },
2831
2833
  "label": {
@@ -81,7 +81,8 @@
81
81
  "webhook",
82
82
  "resourceJobIteration",
83
83
  "resourceJobIterationTimeout",
84
- "resourceJobComplete"
84
+ "resourceJobComplete",
85
+ "websocket"
85
86
  ]
86
87
  },
87
88
  "label": {
@@ -148,7 +148,8 @@
148
148
  "webhook",
149
149
  "resourceJobIteration",
150
150
  "resourceJobIterationTimeout",
151
- "resourceJobComplete"
151
+ "resourceJobComplete",
152
+ "websocket"
152
153
  ]
153
154
  },
154
155
  "label": {
@@ -2832,7 +2833,8 @@
2832
2833
  "webhook",
2833
2834
  "resourceJobIteration",
2834
2835
  "resourceJobIterationTimeout",
2835
- "resourceJobComplete"
2836
+ "resourceJobComplete",
2837
+ "websocket"
2836
2838
  ]
2837
2839
  },
2838
2840
  "label": {
data/schemas/flows.json CHANGED
@@ -173,7 +173,8 @@
173
173
  "webhook",
174
174
  "resourceJobIteration",
175
175
  "resourceJobIterationTimeout",
176
- "resourceJobComplete"
176
+ "resourceJobComplete",
177
+ "websocket"
177
178
  ]
178
179
  },
179
180
  "label": {
@@ -126,7 +126,8 @@
126
126
  "webhook",
127
127
  "resourceJobIteration",
128
128
  "resourceJobIterationTimeout",
129
- "resourceJobComplete"
129
+ "resourceJobComplete",
130
+ "websocket"
130
131
  ]
131
132
  },
132
133
  "label": {
@@ -2799,7 +2800,8 @@
2799
2800
  "webhook",
2800
2801
  "resourceJobIteration",
2801
2802
  "resourceJobIterationTimeout",
2802
- "resourceJobComplete"
2803
+ "resourceJobComplete",
2804
+ "websocket"
2803
2805
  ]
2804
2806
  },
2805
2807
  "label": {