vitable-connect 2.1.0 → 3.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 67cc90860044f147b33727cb875908908dfdc1c55207374234a02aabf717b510
4
- data.tar.gz: f3ce52bbf2f6e09b00fbe999425d96d628e9106f6e829b85cf83d1fba26701ff
3
+ metadata.gz: 9424774b8a5dae75ebd018790ab3545f7625c5e163b204fa2a208121e1a6ba81
4
+ data.tar.gz: 24e5c4381df0df6ecaf9e4b7285efd3056ae8454b09bfcc130ce2f8ac07be976
5
5
  SHA512:
6
- metadata.gz: 6bd5c5f86c189338678c010c3d20f55ed29bea785822dbe26b3dd83be1e1ce0eb39a2c4e1cbeb07e95ca43709a5f5411e14ccca03a2e2160b25ad33d8802e714
7
- data.tar.gz: 3a182911a77829803f417c845bbcc67c4c08dedf0cbbd21807f6fd25c4bb83f92604131532a6958d1d2b26e1a0d9ba74f47714e3463f02673b217da2e5323818
6
+ metadata.gz: d892ffcac685b36a833ee80bf6473b36ca5912e5f75cfdfbc1bc321ea5d26136d30f11d4ea37f12fb68a0ecd4cde574a77a211f07320a43a633fd185960a9780
7
+ data.tar.gz: dd4f896514948f8c779cf29e0a7296275021a1084350da98ee5c9d4c72aa047b323187aea9e690ba7f620f758f64ed0353a02e75fe52cf30d7a9c9aef2c3412e
data/.fern/metadata.json CHANGED
@@ -7,10 +7,10 @@
7
7
  "offsetSemantics": "page-index",
8
8
  "respectAuthSchemeNames": true
9
9
  },
10
- "originGitCommit": "bef03772691d90ef2bd02e356723d4d40733ec35",
10
+ "originGitCommit": "65d5d5d76dfc8bd4aa3f7f57e427d33465e889db",
11
11
  "originGitCommitIsDirty": false,
12
12
  "invokedBy": "ci",
13
13
  "requestedVersion": "AUTO",
14
- "ciProvider": "github",
15
- "sdkVersion": "2.1.0"
14
+ "ciProvider": "gitlab",
15
+ "sdkVersion": "3.0.0"
16
16
  }
data/changelog.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## 3.0.0 - 2026-09-11
2
+ ### Breaking Changes
3
+ * **`VitableConnect::Types::CreateOrganizationRequestType`** has been removed. Replace any references with `VitableConnect::Types::OrganizationType`, which carries the same enum values.
4
+ * **`VitableConnect::Types::OrganizationsListResponse#organizations`** now returns an array of `OrganizationMembership` instead of `Organization`. Update any code that accesses fields on these objects to use the new `OrganizationMembership` shape.
5
+ ### Added
6
+ * **`VitableConnect::Types::OrganizationMembership`** — new model returned in the organizations list, containing `id`, `name`, `type`, `idp_org_id`, `idp_provider`, `super_in`, and `role` fields so callers can see the authenticated user's role within each organization.
7
+ * **`VitableConnect::Types::OrganizationUserRole`** — new enum with values `ADMIN`, `OPERATIONS`, `SALES`, and `ENROLLMENT_AGENT`, used by `OrganizationMembership#role`.
8
+
1
9
  ## 2.1.0 - 2026-09-08
2
10
  ### Added
3
11
  * **`vitable_organization`** — optional parameter added to all employer, enrollment, and members client methods, sending the `X-Vitable-Organization` HTTP header to scope requests to a specific organization.
@@ -11,7 +11,7 @@ module VitableConnect
11
11
  @raw_client = VitableConnect::Internal::Http::RawClient.new(
12
12
  base_url: base_url || VitableConnect::Environment::PRODUCTION,
13
13
  headers: {
14
- "User-Agent" => "vitable-connect/2.1.0",
14
+ "User-Agent" => "vitable-connect/3.0.0",
15
15
  "X-Fern-Language" => "Ruby",
16
16
  Authorization: "Bearer #{api_key}"
17
17
  },
@@ -10,8 +10,8 @@ module VitableConnect
10
10
  @client = client
11
11
  end
12
12
 
13
- # Lists the organizations the authenticated caller is an active member of (paginated). Returns an empty list when
14
- # the caller belongs to no organizations.
13
+ # Lists the organizations the authenticated caller is an active member of (paginated), each with the role the
14
+ # caller holds in it. Returns an empty list when the caller belongs to no organizations.
15
15
  #
16
16
  # @param request_options [Hash]
17
17
  # @param _params [Hash]
@@ -6,7 +6,7 @@ module VitableConnect
6
6
  class CreateOrganizationRequest < Internal::Types::Model
7
7
  field :name, -> { String }, optional: false, nullable: false
8
8
 
9
- field :type, -> { VitableConnect::Types::CreateOrganizationRequestType }, optional: true, nullable: false
9
+ field :type, -> { VitableConnect::Types::OrganizationType }, optional: true, nullable: false
10
10
  end
11
11
  end
12
12
  end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ module VitableConnect
4
+ module Types
5
+ class OrganizationMembership < Internal::Types::Model
6
+ field :id, -> { String }, optional: false, nullable: false
7
+
8
+ field :name, -> { String }, optional: false, nullable: false
9
+
10
+ field :type, -> { VitableConnect::Types::OrganizationType }, optional: false, nullable: true
11
+
12
+ field :idp_org_id, -> { String }, optional: false, nullable: true
13
+
14
+ field :idp_provider, -> { VitableConnect::Types::IdpProvider }, optional: false, nullable: true
15
+
16
+ field :super_in, -> { Internal::Types::Boolean }, optional: false, nullable: false
17
+
18
+ field :role, -> { VitableConnect::Types::OrganizationUserRole }, optional: false, nullable: false
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module VitableConnect
4
+ module Types
5
+ module OrganizationUserRole
6
+ extend VitableConnect::Internal::Types::Enum
7
+
8
+ ADMIN = "ADMIN"
9
+ OPERATIONS = "OPERATIONS"
10
+ SALES = "SALES"
11
+ ENROLLMENT_AGENT = "ENROLLMENT_AGENT"
12
+ end
13
+ end
14
+ end
@@ -4,7 +4,7 @@ module VitableConnect
4
4
  module Types
5
5
  # Envelope for the caller's organization memberships (paginated).
6
6
  class OrganizationsListResponse < Internal::Types::Model
7
- field :organizations, -> { Internal::Types::Array[VitableConnect::Types::Organization] }, optional: false, nullable: false
7
+ field :organizations, -> { Internal::Types::Array[VitableConnect::Types::OrganizationMembership] }, optional: false, nullable: false
8
8
 
9
9
  field :total, -> { Integer }, optional: false, nullable: false
10
10
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module VitableConnect
4
- VERSION = "2.1.0"
4
+ VERSION = "3.0.0"
5
5
  end
@@ -81,7 +81,6 @@ require_relative "VitableConnect/types/compensation_type"
81
81
  require_relative "VitableConnect/types/employee_class"
82
82
  require_relative "VitableConnect/types/census_sync_employee_request"
83
83
  require_relative "VitableConnect/types/classification_correction_source"
84
- require_relative "VitableConnect/types/create_organization_request_type"
85
84
  require_relative "VitableConnect/types/deduction_frequency"
86
85
  require_relative "VitableConnect/types/tax_classification"
87
86
  require_relative "VitableConnect/types/deduction_detail"
@@ -171,6 +170,8 @@ require_relative "VitableConnect/types/organization_employer"
171
170
  require_relative "VitableConnect/types/organization_employer_list_response"
172
171
  require_relative "VitableConnect/types/organization_hris_provider"
173
172
  require_relative "VitableConnect/types/organization_hris_providers_response"
173
+ require_relative "VitableConnect/types/organization_user_role"
174
+ require_relative "VitableConnect/types/organization_membership"
174
175
  require_relative "VitableConnect/types/organizations_list_response"
175
176
  require_relative "VitableConnect/types/payroll_access_setup_status"
176
177
  require_relative "VitableConnect/types/payroll_access_setup_status_response"
data/reference.md CHANGED
@@ -3336,7 +3336,7 @@ client.members.list(
3336
3336
  <dl>
3337
3337
  <dd>
3338
3338
 
3339
- Lists the organizations the authenticated caller is an active member of (paginated). Returns an empty list when the caller belongs to no organizations.
3339
+ Lists the organizations the authenticated caller is an active member of (paginated), each with the role the caller holds in it. Returns an empty list when the caller belongs to no organizations.
3340
3340
  </dd>
3341
3341
  </dl>
3342
3342
  </dd>
@@ -3431,7 +3431,7 @@ client.organizations.create(
3431
3431
  <dl>
3432
3432
  <dd>
3433
3433
 
3434
- **type:** `VitableConnect::Types::CreateOrganizationRequestType` — Category of organization being onboarded.
3434
+ **type:** `VitableConnect::Types::OrganizationType` — Category of organization being onboarded.
3435
3435
 
3436
3436
  </dd>
3437
3437
  </dl>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vitable-connect
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - VitableConnect
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-09-08 00:00:00.000000000 Z
11
+ date: 2026-09-11 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: The VitableConnect Ruby library provides convenient access to the VitableConnect
14
14
  API from Ruby.
@@ -144,7 +144,6 @@ files:
144
144
  - lib/VitableConnect/types/contribution_strategy.rb
145
145
  - lib/VitableConnect/types/contribution_tier.rb
146
146
  - lib/VitableConnect/types/coverage_tier.rb
147
- - lib/VitableConnect/types/create_organization_request_type.rb
148
147
  - lib/VitableConnect/types/created_after.rb
149
148
  - lib/VitableConnect/types/created_before.rb
150
149
  - lib/VitableConnect/types/deduction_detail.rb
@@ -249,7 +248,9 @@ files:
249
248
  - lib/VitableConnect/types/organization_employer_list_response.rb
250
249
  - lib/VitableConnect/types/organization_hris_provider.rb
251
250
  - lib/VitableConnect/types/organization_hris_providers_response.rb
251
+ - lib/VitableConnect/types/organization_membership.rb
252
252
  - lib/VitableConnect/types/organization_type.rb
253
+ - lib/VitableConnect/types/organization_user_role.rb
253
254
  - lib/VitableConnect/types/organizations_list_response.rb
254
255
  - lib/VitableConnect/types/page.rb
255
256
  - lib/VitableConnect/types/pagination.rb
@@ -1,16 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module VitableConnect
4
- module Types
5
- module CreateOrganizationRequestType
6
- extend VitableConnect::Internal::Types::Enum
7
-
8
- BROKERAGE = "BROKERAGE"
9
- TPA = "TPA"
10
- GENERAL_AGENT = "GENERAL_AGENT"
11
- CHANNEL_PARTNER = "CHANNEL_PARTNER"
12
- CONSULTING_FIRM = "CONSULTING_FIRM"
13
- API_PLATFORM = "API_PLATFORM"
14
- end
15
- end
16
- end