vatio-sdk 0.6.0
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 +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +423 -0
- data/lib/vatio/identity/authentication.rb +67 -0
- data/lib/vatio/identity/config.rb +124 -0
- data/lib/vatio/identity/railtie.rb +15 -0
- data/lib/vatio/identity/version.rb +7 -0
- data/lib/vatio/identity.rb +168 -0
- data/lib/vatio/sdk.rb +5 -0
- data/lib/vatio/server/client.rb +142 -0
- data/lib/vatio/server/config.rb +75 -0
- data/lib/vatio/server/errors.rb +129 -0
- data/lib/vatio/server/message.rb +85 -0
- data/lib/vatio/server/send_message_job.rb +72 -0
- data/lib/vatio/server/template.rb +34 -0
- data/lib/vatio/server/testing.rb +322 -0
- data/lib/vatio/server/transport.rb +50 -0
- data/lib/vatio/server/webhook.rb +85 -0
- data/lib/vatio/server/webhook_receiver.rb +88 -0
- data/lib/vatio/server.rb +85 -0
- metadata +83 -0
metadata
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: vatio-sdk
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.6.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Urcalab
|
|
8
|
+
bindir: bin
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
+
dependencies:
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: jwt
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
- - ">="
|
|
17
|
+
- !ruby/object:Gem::Version
|
|
18
|
+
version: '2.7'
|
|
19
|
+
type: :runtime
|
|
20
|
+
prerelease: false
|
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
22
|
+
requirements:
|
|
23
|
+
- - ">="
|
|
24
|
+
- !ruby/object:Gem::Version
|
|
25
|
+
version: '2.7'
|
|
26
|
+
description: |
|
|
27
|
+
Vatio holds only the public half of your signing key, so it can verify a
|
|
28
|
+
token and never mint one. Everything dangerous about that arrangement is
|
|
29
|
+
therefore on your side: this gem signs the token for the widget and
|
|
30
|
+
verifies the same token back on your own API.
|
|
31
|
+
|
|
32
|
+
`require "vatio/server"` adds the opt-in client for the server API --
|
|
33
|
+
having the agent write to a contact first on WhatsApp -- and the
|
|
34
|
+
receiver for its signed webhooks, on Net::HTTP and nothing else.
|
|
35
|
+
executables: []
|
|
36
|
+
extensions: []
|
|
37
|
+
extra_rdoc_files: []
|
|
38
|
+
files:
|
|
39
|
+
- LICENSE.txt
|
|
40
|
+
- README.md
|
|
41
|
+
- lib/vatio/identity.rb
|
|
42
|
+
- lib/vatio/identity/authentication.rb
|
|
43
|
+
- lib/vatio/identity/config.rb
|
|
44
|
+
- lib/vatio/identity/railtie.rb
|
|
45
|
+
- lib/vatio/identity/version.rb
|
|
46
|
+
- lib/vatio/sdk.rb
|
|
47
|
+
- lib/vatio/server.rb
|
|
48
|
+
- lib/vatio/server/client.rb
|
|
49
|
+
- lib/vatio/server/config.rb
|
|
50
|
+
- lib/vatio/server/errors.rb
|
|
51
|
+
- lib/vatio/server/message.rb
|
|
52
|
+
- lib/vatio/server/send_message_job.rb
|
|
53
|
+
- lib/vatio/server/template.rb
|
|
54
|
+
- lib/vatio/server/testing.rb
|
|
55
|
+
- lib/vatio/server/transport.rb
|
|
56
|
+
- lib/vatio/server/webhook.rb
|
|
57
|
+
- lib/vatio/server/webhook_receiver.rb
|
|
58
|
+
homepage: https://github.com/vatio-ai/ruby
|
|
59
|
+
licenses:
|
|
60
|
+
- MIT
|
|
61
|
+
metadata:
|
|
62
|
+
source_code_uri: https://github.com/vatio-ai/ruby
|
|
63
|
+
bug_tracker_uri: https://github.com/vatio-ai/ruby/issues
|
|
64
|
+
documentation_uri: https://vatio.ai/docs/sdk/ruby
|
|
65
|
+
rdoc_options: []
|
|
66
|
+
require_paths:
|
|
67
|
+
- lib
|
|
68
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
69
|
+
requirements:
|
|
70
|
+
- - ">="
|
|
71
|
+
- !ruby/object:Gem::Version
|
|
72
|
+
version: '3.0'
|
|
73
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
74
|
+
requirements:
|
|
75
|
+
- - ">="
|
|
76
|
+
- !ruby/object:Gem::Version
|
|
77
|
+
version: '0'
|
|
78
|
+
requirements: []
|
|
79
|
+
rubygems_version: 3.6.9
|
|
80
|
+
specification_version: 4
|
|
81
|
+
summary: Sign and verify the JWT a Vatio workspace authenticates its users with, and
|
|
82
|
+
call its server API.
|
|
83
|
+
test_files: []
|