vortex-ruby-sdk 1.8.2 → 1.8.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 68f5ea9102076ab25a0178aee43feb1a96f647709a634d0936b0d41da0b28a03
4
- data.tar.gz: 347073bb4b8b3bb518e75b750112bb1ebc7230a1ef5507d1a0a1b4b3101745fa
3
+ metadata.gz: 677efb240644fe95c61d07a325952a6d2f8c6851eb14d59d17178d2c74881629
4
+ data.tar.gz: 83ad91fa108419346c2b6a707b62316573fdc5137d213a141840a599eca02dbe
5
5
  SHA512:
6
- metadata.gz: 0ecc573608fc5df6bd8ad3dfac50f8b8bc91dd187a775558cd0837398620c85f3a14b3217e35da5845dabccc2ee2da0f71b8866726d963f221d7adde1ea61034
7
- data.tar.gz: 7c1fe944df47039af93e32413c32522d535642df75bc1fbe5a8fe9b29c89d292459a590f14efec3e7015b373f66ccd7cf85b15b795165a390459bd144df7b961
6
+ metadata.gz: 324e85fc0660f7b952932a163ad10df4ae17f8f81dafd7c8eb6d8de70e771146474c0cc147d7643ae689f9629eafba0b9884c6f022b3091fb4147a3a1dc2f1eb
7
+ data.tar.gz: 2d780b17c5697ffcb0532bfcabce7756bd80a672b74417b5194e0c3e9089de31c0bc8c03977b4a0fdce0e416af1bb2a85868b2aa6050d2bf6a9fe9fbf7aa45e5
data/README.md CHANGED
@@ -188,7 +188,39 @@ The SDK provides these routes (same as other SDKs for React provider compatibili
188
188
  - `GET /api/vortex/invitations/by-group/:type/:id`
189
189
  - `DELETE /api/vortex/invitations/by-group/:type/:id`
190
190
  - `POST /api/vortex/invitations/:id/reinvite`
191
- - `POST /api/vortex/invitation-actions/sync-internal-invitation`
191
+ - `POST /api/vortex/invitations/sync-internal-invitation`
192
+
193
+ ## Sync Internal Invitation
194
+
195
+ If you're using `internal` delivery type invitations and managing the invitation flow within your own application, you can sync invitation decisions back to Vortex when users accept or decline invitations in your system.
196
+
197
+ ```ruby
198
+ # Sync an internal invitation action
199
+ result = client.sync_internal_invitation(
200
+ 'user-123', # creator_id - The inviter's user ID in your system
201
+ 'user-456', # target_value - The invitee's user ID in your system
202
+ 'accepted', # action - "accepted" or "declined"
203
+ 'component-uuid' # component_id - The widget component UUID
204
+ )
205
+
206
+ puts "Processed: #{result['processed']}"
207
+ puts "Invitation IDs: #{result['invitationIds']}"
208
+ ```
209
+
210
+ **Parameters:**
211
+ - `creator_id` (String) — The inviter's user ID in your system
212
+ - `target_value` (String) — The invitee's user ID in your system
213
+ - `action` ("accepted" | "declined") — The invitation decision
214
+ - `component_id` (String) — The widget component UUID
215
+
216
+ **Response:**
217
+ - `processed` (Integer) — Count of invitations processed
218
+ - `invitationIds` (Array<String>) — IDs of processed invitations
219
+
220
+ **Use cases:**
221
+ - You handle invitation delivery through your own in-app notifications or UI
222
+ - Users accept/decline invitations within your application
223
+ - You need to keep Vortex updated with the invitation status
192
224
 
193
225
  ## JWT Payload Structure
194
226
 
data/lib/vortex/client.rb CHANGED
@@ -507,7 +507,7 @@ module Vortex
507
507
  componentId: component_id
508
508
  }
509
509
 
510
- response = @connection.post('/api/v1/invitation-actions/sync-internal-invitation') do |req|
510
+ response = @connection.post('/api/v1/invitations/sync-internal-invitation') do |req|
511
511
  req.headers['Content-Type'] = 'application/json'
512
512
  req.body = JSON.generate(body)
513
513
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Vortex
4
- VERSION = '1.8.2'
4
+ VERSION = '1.8.4'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vortex-ruby-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.2
4
+ version: 1.8.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vortex Software
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-02-20 00:00:00.000000000 Z
11
+ date: 2026-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday