Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
sorbet/rbi
.env
.env.local
bin/
Expand Down
16 changes: 16 additions & 0 deletions .rubocop-strict.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
inherit_from: .rubocop.yml

# Re-enable Style/StringLiterals for strict linting (e.g. internal CI).
# The base .rubocop.yml disables this rule so customers with single-quote
# conventions aren't broken. Use RUBOCOP_OPTS="--config .rubocop-strict.yml"
# to opt in to enforcement.
Style/StringLiterals:
Enabled: true
EnforcedStyle: double_quotes
Exclude:
- Gemfile
- "*.gemspec"
- lib/crystalline.rb
- lib/crystalline/**/*
- lib/**/sdk_hooks/**/*
- sorbet/**/*
24 changes: 24 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ Style/TrailingCommaInHashLiteral:
Enabled: false
Style/TrailingCommaInArrayLiteral:
Enabled: false
Layout/EmptyLinesAroundBlockBody:
Enabled: false
Layout/EmptyLinesAroundClassBody:
Enabled: false
Style/WordArray:
Expand All @@ -79,3 +81,25 @@ Lint/LiteralAsCondition:
Enabled: false
Naming/VariableNumber:
Enabled: false
# rubyfmt enforces double quotes on generated code, but customer-authored files
# (sdk_hooks, tests, etc.) may use single quotes, so we don't enforce this rule.
Style/StringLiterals:
Enabled: false
Style/BlockDelimiters:
Enabled: false
Style/MultilineTernaryOperator:
Enabled: false
Layout/EmptyLinesAroundExceptionHandlingKeywords:
Enabled: false
Style/EmptyMethod:
Enabled: false
Layout/MultilineOperationIndentation:
Enabled: false
Layout/MultilineMethodCallIndentation:
Enabled: false
Layout/SpaceInLambdaLiteral:
Enabled: false
Layout/FirstArgumentIndentation:
Enabled: false
Layout/FirstArrayElementIndentation:
EnforcedStyle: consistent
4,037 changes: 2,021 additions & 2,016 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
speakeasyVersion: 1.709.1
speakeasyVersion: 1.724.0
sources:
my-source:
sourceNamespace: my-source
sourceRevisionDigest: sha256:1b93ba775f35590a5836baf509f0283bf1a2f09989d0ad3420f19624064febd6
sourceBlobDigest: sha256:fb5df315dd5137dff5b3b7b80898ec48f6b67c67b8707c898d7c038529246c6c
sourceRevisionDigest: sha256:0f5bc27d245930191819e0f3f5352782e23c2f7eb3df5e82c2ef85f04c6877aa
sourceBlobDigest: sha256:db5c33aa07b2d0ad4d6b72f805c2f40c537832cea3b2169741fa1a330c54839e
tags:
- latest
- speakeasy-sdk-regen-1769536154
- speakeasy-sdk-regen-1771233312
- 1.0.0
targets:
StackOneRubyClient:
source: my-source
sourceNamespace: my-source
sourceRevisionDigest: sha256:1b93ba775f35590a5836baf509f0283bf1a2f09989d0ad3420f19624064febd6
sourceBlobDigest: sha256:fb5df315dd5137dff5b3b7b80898ec48f6b67c67b8707c898d7c038529246c6c
sourceRevisionDigest: sha256:0f5bc27d245930191819e0f3f5352782e23c2f7eb3df5e82c2ef85f04c6877aa
sourceBlobDigest: sha256:db5c33aa07b2d0ad4d6b72f805c2f40c537832cea3b2169741fa1a330c54839e
codeSamplesNamespace: code-samples-ruby-stackonerubyclient
codeSamplesRevisionDigest: sha256:e3cc5a542a2eda87cce1df0d0c16e3ab496c2fad2a5d7ed0b5518586437c9cd6
codeSamplesRevisionDigest: sha256:7dd0d337402760cbb94adc49cd4a325a9a774902c2e9663d470c0c3f47e7933b
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
91 changes: 48 additions & 43 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,18 @@
<!-- Start Summary [summary] -->
## Summary

Accounting: The documentation for the StackOne Unified API - ACCOUNTING
Accounting: The documentation for the StackOne API
The documentation for the StackOne Unified API - HRIS
The documentation for the StackOne Unified API - ATS
The documentation for the StackOne Unified API - CRM
The documentation for the StackOne Unified API - MARKETING
The documentation for the StackOne Unified API - LMS
The documentation for the StackOne Unified API - IAM
The documentation for the StackOne Unified API - TICKETING
The documentation for the StackOne Unified API - DOCUMENTS
The documentation for the StackOne Unified API - SCREENING
The documentation for the StackOne Unified API - MESSAGING
The documentation for the StackOne Unified API - ACCOUNTING
<!-- End Summary [summary] -->

<!-- Start Table of Contents [toc] -->
Expand Down Expand Up @@ -50,23 +61,22 @@ require 'stackone_client'

Models = ::StackOne::Models
s = ::StackOne::StackOne.new(
security: Models::Shared::Security.new(
password: '',
username: '',
),
)
security: Models::Shared::Security.new(
password: '',
username: ''
)
)

req = Models::Operations::HrisListEmployeesRequest.new(
prefer: 'heartbeat',
expand: 'company,employments,work_location,home_location,groups,skills',
fields_: 'id,remote_id,title,first_name,last_name,name,display_name,gender,ethnicity,date_of_birth,birthday,marital_status,avatar_url,avatar,personal_email,personal_phone_number,work_email,work_phone_number,job_id,remote_job_id,job_title,job_description,department_id,remote_department_id,department,cost_centers,company,manager_id,remote_manager_id,hire_date,start_date,tenure,work_anniversary,employment_type,employment_contract_type,employment_status,termination_date,company_name,company_id,remote_company_id,preferred_language,citizenships,home_location,work_location,employments,custom_fields,created_at,updated_at,benefits,employee_number,national_identity_number,national_identity_numbers,bank_details,skills,unified_custom_fields',
filter: Models::Operations::HrisListEmployeesQueryParamFilter.new(
updated_after: DateTime.iso8601('2020-01-01T00:00:00.000Z'),
updated_after: DateTime.iso8601('2020-01-01T00:00:00.000Z')
),
include: 'avatar_url,avatar,custom_fields,job_description,benefits,bank_details',
x_account_id: '<id>',
x_account_id: '<id>'
)

res = s.hris.list_employees(request: req)

unless res.employees_paginated.nil?
Expand All @@ -93,12 +103,11 @@ require 'stackone_client'

Models = ::StackOne::Models
s = ::StackOne::StackOne.new(
security: Models::Shared::Security.new(
password: '',
username: '',
),
)

security: Models::Shared::Security.new(
password: '',
username: ''
)
)
res = s.accounts.delete_account(id: '<id>')

unless res.linked_account.nil?
Expand All @@ -115,10 +124,9 @@ require 'stackone_client'

Models = ::StackOne::Models
s = ::StackOne::StackOne.new

res = s.mcp.mcp_delete(security: Models::Operations::StackoneMcpDeleteSecurity.new(
api_key: '<YOUR_API_KEY_HERE>',
), mcp_session_id: '<id>', x_account_id: '<id>')

), mcp_session_id: '<id>', x_account_id: '<id>')

if res.status_code == 200
# handle response
Expand Down Expand Up @@ -493,12 +501,11 @@ require 'stackone_client'

Models = ::StackOne::Models
s = ::StackOne::StackOne.new(
security: Models::Shared::Security.new(
password: '',
username: '',
),
)

security: Models::Shared::Security.new(
password: '',
username: ''
)
)
res = s.accounts.delete_account(id: '<id>')

unless res.linked_account.nil?
Expand All @@ -513,7 +520,7 @@ require 'stackone_client'

Models = ::StackOne::Models
s = ::StackOne::StackOne.new(
retry_config: Utils::RetryConfig.new(
retry_config: Utils::RetryConfig.new(
backoff: Utils::BackoffStrategy.new(
exponent: 1.1,
initial_interval: 1,
Expand All @@ -523,12 +530,11 @@ s = ::StackOne::StackOne.new(
retry_connection_errors: false,
strategy: 'backoff'
),
security: Models::Shared::Security.new(
password: '',
username: '',
),
)

security: Models::Shared::Security.new(
password: '',
username: ''
)
)
res = s.accounts.delete_account(id: '<id>')

unless res.linked_account.nil?
Expand Down Expand Up @@ -576,11 +582,11 @@ require 'stackone_client'

Models = ::StackOne::Models
s = ::StackOne::StackOne.new(
security: Models::Shared::Security.new(
password: '',
username: '',
),
)
security: Models::Shared::Security.new(
password: '',
username: ''
)
)

begin
res = s.accounts.delete_account(id: '<id>')
Expand Down Expand Up @@ -640,13 +646,12 @@ require 'stackone_client'

Models = ::StackOne::Models
s = ::StackOne::StackOne.new(
server_url: 'https://api.stackone.com',
security: Models::Shared::Security.new(
password: '',
username: '',
),
)

server_url: 'https://api.stackone.com',
security: Models::Shared::Security.new(
password: '',
username: ''
)
)
res = s.accounts.delete_account(id: '<id>')

unless res.linked_account.nil?
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -1088,4 +1088,14 @@ Based on:
### Generated
- [ruby v0.39.5] .
### Releases
- [Ruby Gems v0.39.5] https://rubygems.org/gems/stackone_client/versions/0.39.5 - .
- [Ruby Gems v0.39.5] https://rubygems.org/gems/stackone_client/versions/0.39.5 - .

## 2026-02-23 09:14:39
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.724.0 (2.836.4) https://github.com/speakeasy-api/speakeasy
### Generated
- [ruby v0.40.0] .
### Releases
- [Ruby Gems v0.40.0] https://rubygems.org/gems/stackone_client/versions/0.40.0 - .
18 changes: 17 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,29 @@ require 'bundler/gem_tasks'
require 'minitest/test_task'
require 'rubocop/rake_task'

RuboCop::RakeTask.new
RuboCop::RakeTask.new do |task|
task.options = ['--parallel']
end

Minitest::TestTask.create do |t|
# workaround to avoid throwing warnings from Janeway library circular require...
t.warning = false
end

namespace :sorbet do
desc "Remove legacy Sorbet artifacts like extra.rbi"
task :clean do
extra = File.join(__dir__, "extra.rbi")

if File.exist?(extra)
puts "Removing legacy file: extra.rbi"
File.delete(extra)
else
puts "extra.rbi not present β€” nothing to clean"
end
end
end

task :default => :test


Expand Down
15 changes: 7 additions & 8 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,22 @@ require 'stackone_client'

Models = ::StackOne::Models
s = ::StackOne::StackOne.new(
security: Models::Shared::Security.new(
password: '',
username: '',
),
)
security: Models::Shared::Security.new(
password: '',
username: ''
)
)

req = Models::Operations::HrisListEmployeesRequest.new(
prefer: 'heartbeat',
expand: 'company,employments,work_location,home_location,groups,skills',
fields_: 'id,remote_id,title,first_name,last_name,name,display_name,gender,ethnicity,date_of_birth,birthday,marital_status,avatar_url,avatar,personal_email,personal_phone_number,work_email,work_phone_number,job_id,remote_job_id,job_title,job_description,department_id,remote_department_id,department,cost_centers,company,manager_id,remote_manager_id,hire_date,start_date,tenure,work_anniversary,employment_type,employment_contract_type,employment_status,termination_date,company_name,company_id,remote_company_id,preferred_language,citizenships,home_location,work_location,employments,custom_fields,created_at,updated_at,benefits,employee_number,national_identity_number,national_identity_numbers,bank_details,skills,unified_custom_fields',
filter: Models::Operations::HrisListEmployeesQueryParamFilter.new(
updated_after: DateTime.iso8601('2020-01-01T00:00:00.000Z'),
updated_after: DateTime.iso8601('2020-01-01T00:00:00.000Z')
),
include: 'avatar_url,avatar,custom_fields,job_description,benefits,bank_details',
x_account_id: '<id>',
x_account_id: '<id>'
)

res = s.hris.list_employees(request: req)

unless res.employees_paginated.nil?
Expand Down
Loading