vortex-ruby-sdk 1.8.1 → 1.8.2

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: '069cd5d8f962e84762ce56244a9775b16bdda20e5728fd05bdfff852d9483f16'
4
- data.tar.gz: 105f2c1b8305730e1402b5049da2aaf3fd4e51e34f2e9801682537c8b72af331
3
+ metadata.gz: 68f5ea9102076ab25a0178aee43feb1a96f647709a634d0936b0d41da0b28a03
4
+ data.tar.gz: 347073bb4b8b3bb518e75b750112bb1ebc7230a1ef5507d1a0a1b4b3101745fa
5
5
  SHA512:
6
- metadata.gz: 5bf887643c359e2768dbe35b130313a667fe201c02f90a490f3074ac0ed8c5e9797c44c61143cbfef49b0bcd6d2284a4e6e32fa2478d25dc862a11ea2f3de204
7
- data.tar.gz: 486de49b074e29577b2ec1ba01d0d98b38b5df630cdbbeed3a98b460f4df2e5478979eed3aca66ce303d6a8fc008171ba02604d005b1721c2b2ad58c9069ac2b
6
+ metadata.gz: 0ecc573608fc5df6bd8ad3dfac50f8b8bc91dd187a775558cd0837398620c85f3a14b3217e35da5845dabccc2ee2da0f71b8866726d963f221d7adde1ea61034
7
+ data.tar.gz: 7c1fe944df47039af93e32413c32522d535642df75bc1fbe5a8fe9b29c89d292459a590f14efec3e7015b373f66ccd7cf85b15b795165a390459bd144df7b961
data/README.md CHANGED
@@ -174,6 +174,7 @@ All methods match the functionality of other Vortex SDKs:
174
174
  - `get_invitations_by_group(group_type, group_id)` - Get group invitations
175
175
  - `delete_invitations_by_group(group_type, group_id)` - Delete group invitations
176
176
  - `reinvite(invitation_id)` - Reinvite user
177
+ - `sync_internal_invitation(creator_id, target_value, action, component_id)` - Sync internal invitation action
177
178
 
178
179
  ## Route Structure
179
180
 
@@ -187,6 +188,7 @@ The SDK provides these routes (same as other SDKs for React provider compatibili
187
188
  - `GET /api/vortex/invitations/by-group/:type/:id`
188
189
  - `DELETE /api/vortex/invitations/by-group/:type/:id`
189
190
  - `POST /api/vortex/invitations/:id/reinvite`
191
+ - `POST /api/vortex/invitation-actions/sync-internal-invitation`
190
192
 
191
193
  ## JWT Payload Structure
192
194
 
data/lib/vortex/client.rb CHANGED
@@ -479,6 +479,46 @@ module Vortex
479
479
  raise VortexError, "Failed to configure autojoin: #{e.message}"
480
480
  end
481
481
 
482
+ # Sync an internal invitation action (accept or decline)
483
+ #
484
+ # This method notifies Vortex that an internal invitation was accepted or declined
485
+ # within your application, so Vortex can update the invitation status accordingly.
486
+ #
487
+ # @param creator_id [String] The inviter's user ID
488
+ # @param target_value [String] The invitee's user ID
489
+ # @param action [String] The action taken: "accepted" or "declined"
490
+ # @param component_id [String] The widget component UUID
491
+ # @return [Hash] Response with :processed count and :invitationIds array
492
+ # @raise [VortexError] If the request fails
493
+ #
494
+ # @example
495
+ # result = client.sync_internal_invitation(
496
+ # 'user-123',
497
+ # 'user-456',
498
+ # 'accepted',
499
+ # 'component-uuid-789'
500
+ # )
501
+ # puts "Processed #{result['processed']} invitations"
502
+ def sync_internal_invitation(creator_id, target_value, action, component_id)
503
+ body = {
504
+ creatorId: creator_id,
505
+ targetValue: target_value,
506
+ action: action,
507
+ componentId: component_id
508
+ }
509
+
510
+ response = @connection.post('/api/v1/invitation-actions/sync-internal-invitation') do |req|
511
+ req.headers['Content-Type'] = 'application/json'
512
+ req.body = JSON.generate(body)
513
+ end
514
+
515
+ handle_response(response)
516
+ rescue VortexError
517
+ raise
518
+ rescue => e
519
+ raise VortexError, "Failed to sync internal invitation: #{e.message}"
520
+ end
521
+
482
522
  private
483
523
 
484
524
  def build_connection
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Vortex
4
- VERSION = '1.8.1'
4
+ VERSION = '1.8.2'
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.1
4
+ version: 1.8.2
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-16 00:00:00.000000000 Z
11
+ date: 2026-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday