Skip to content

Commit 99ebba6

Browse files
github-actions[bot]speakeasybotspeakeasy-github[bot]
authored
chore: 🐝 Update SDK - Generate 0.40.0 (#139)
* ## Ruby SDK Changes: * `stack_one.hris.batch_upload_employee_document()`: `request.prefer` **Removed** (Breaking ⚠️) * `stack_one.messaging.download_messaging_attachment()`: * `request.prefer` **Removed** (Breaking ⚠️) * `stack_one.ticketing.download_ticketing_attachment()`: * `request.prefer` **Removed** (Breaking ⚠️) * `stack_one.hris.upload_employee_document()`: `request.prefer` **Removed** (Breaking ⚠️) * `stack_one.ats.download_application_document()`: * `request.prefer` **Removed** (Breaking ⚠️) * `stack_one.ats.upload_application_document()`: `request.prefer` **Removed** (Breaking ⚠️) * `stack_one.documents.upload_file()`: `request.prefer` **Removed** (Breaking ⚠️) * `stack_one.documents.download_file()`: * `request.prefer` **Removed** (Breaking ⚠️) * `stack_one.hris.download_employee_document()`: * `request.prefer` **Removed** (Breaking ⚠️) * `stack_one.accounts.delete_account()`: `response.shared` **Added** * `stack_one.accounts.get_account()`: `response.shared` **Added** * `stack_one.accounts.update_account()`: * `request.patch_account_external_dto.shared` **Added** * `response.shared` **Added** * `stack_one.documents.list_folders()`: * `request.filter` **Changed** * `stack_one.accounts.list_linked_accounts()`: `response.[].shared` **Added** * empty commit to trigger [run-tests] workflow --------- Co-authored-by: speakeasybot <bot@speakeasyapi.dev> Co-authored-by: speakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
1 parent c7bb0bd commit 99ebba6

1,015 files changed

Lines changed: 7428 additions & 31191 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
sorbet/rbi
12
.env
23
.env.local
34
bin/

.rubocop-strict.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
inherit_from: .rubocop.yml
2+
3+
# Re-enable Style/StringLiterals for strict linting (e.g. internal CI).
4+
# The base .rubocop.yml disables this rule so customers with single-quote
5+
# conventions aren't broken. Use RUBOCOP_OPTS="--config .rubocop-strict.yml"
6+
# to opt in to enforcement.
7+
Style/StringLiterals:
8+
Enabled: true
9+
EnforcedStyle: double_quotes
10+
Exclude:
11+
- Gemfile
12+
- "*.gemspec"
13+
- lib/crystalline.rb
14+
- lib/crystalline/**/*
15+
- lib/**/sdk_hooks/**/*
16+
- sorbet/**/*

.rubocop.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ Style/TrailingCommaInHashLiteral:
6767
Enabled: false
6868
Style/TrailingCommaInArrayLiteral:
6969
Enabled: false
70+
Layout/EmptyLinesAroundBlockBody:
71+
Enabled: false
7072
Layout/EmptyLinesAroundClassBody:
7173
Enabled: false
7274
Style/WordArray:
@@ -79,3 +81,25 @@ Lint/LiteralAsCondition:
7981
Enabled: false
8082
Naming/VariableNumber:
8183
Enabled: false
84+
# rubyfmt enforces double quotes on generated code, but customer-authored files
85+
# (sdk_hooks, tests, etc.) may use single quotes, so we don't enforce this rule.
86+
Style/StringLiterals:
87+
Enabled: false
88+
Style/BlockDelimiters:
89+
Enabled: false
90+
Style/MultilineTernaryOperator:
91+
Enabled: false
92+
Layout/EmptyLinesAroundExceptionHandlingKeywords:
93+
Enabled: false
94+
Style/EmptyMethod:
95+
Enabled: false
96+
Layout/MultilineOperationIndentation:
97+
Enabled: false
98+
Layout/MultilineMethodCallIndentation:
99+
Enabled: false
100+
Layout/SpaceInLambdaLiteral:
101+
Enabled: false
102+
Layout/FirstArgumentIndentation:
103+
Enabled: false
104+
Layout/FirstArrayElementIndentation:
105+
EnforcedStyle: consistent

.speakeasy/gen.lock

Lines changed: 2021 additions & 2016 deletions
Large diffs are not rendered by default.

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.709.1
1+
speakeasyVersion: 1.724.0
22
sources:
33
my-source:
44
sourceNamespace: my-source
5-
sourceRevisionDigest: sha256:1b93ba775f35590a5836baf509f0283bf1a2f09989d0ad3420f19624064febd6
6-
sourceBlobDigest: sha256:fb5df315dd5137dff5b3b7b80898ec48f6b67c67b8707c898d7c038529246c6c
5+
sourceRevisionDigest: sha256:0f5bc27d245930191819e0f3f5352782e23c2f7eb3df5e82c2ef85f04c6877aa
6+
sourceBlobDigest: sha256:db5c33aa07b2d0ad4d6b72f805c2f40c537832cea3b2169741fa1a330c54839e
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1769536154
9+
- speakeasy-sdk-regen-1771233312
1010
- 1.0.0
1111
targets:
1212
StackOneRubyClient:
1313
source: my-source
1414
sourceNamespace: my-source
15-
sourceRevisionDigest: sha256:1b93ba775f35590a5836baf509f0283bf1a2f09989d0ad3420f19624064febd6
16-
sourceBlobDigest: sha256:fb5df315dd5137dff5b3b7b80898ec48f6b67c67b8707c898d7c038529246c6c
15+
sourceRevisionDigest: sha256:0f5bc27d245930191819e0f3f5352782e23c2f7eb3df5e82c2ef85f04c6877aa
16+
sourceBlobDigest: sha256:db5c33aa07b2d0ad4d6b72f805c2f40c537832cea3b2169741fa1a330c54839e
1717
codeSamplesNamespace: code-samples-ruby-stackonerubyclient
18-
codeSamplesRevisionDigest: sha256:e3cc5a542a2eda87cce1df0d0c16e3ab496c2fad2a5d7ed0b5518586437c9cd6
18+
codeSamplesRevisionDigest: sha256:7dd0d337402760cbb94adc49cd4a325a9a774902c2e9663d470c0c3f47e7933b
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 48 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,18 @@
1010
<!-- Start Summary [summary] -->
1111
## Summary
1212

13-
Accounting: The documentation for the StackOne Unified API - ACCOUNTING
13+
Accounting: The documentation for the StackOne API
14+
The documentation for the StackOne Unified API - HRIS
15+
The documentation for the StackOne Unified API - ATS
16+
The documentation for the StackOne Unified API - CRM
17+
The documentation for the StackOne Unified API - MARKETING
18+
The documentation for the StackOne Unified API - LMS
19+
The documentation for the StackOne Unified API - IAM
20+
The documentation for the StackOne Unified API - TICKETING
21+
The documentation for the StackOne Unified API - DOCUMENTS
22+
The documentation for the StackOne Unified API - SCREENING
23+
The documentation for the StackOne Unified API - MESSAGING
24+
The documentation for the StackOne Unified API - ACCOUNTING
1425
<!-- End Summary [summary] -->
1526

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

5162
Models = ::StackOne::Models
5263
s = ::StackOne::StackOne.new(
53-
security: Models::Shared::Security.new(
54-
password: '',
55-
username: '',
56-
),
57-
)
64+
security: Models::Shared::Security.new(
65+
password: '',
66+
username: ''
67+
)
68+
)
5869

5970
req = Models::Operations::HrisListEmployeesRequest.new(
6071
prefer: 'heartbeat',
6172
expand: 'company,employments,work_location,home_location,groups,skills',
6273
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',
6374
filter: Models::Operations::HrisListEmployeesQueryParamFilter.new(
64-
updated_after: DateTime.iso8601('2020-01-01T00:00:00.000Z'),
75+
updated_after: DateTime.iso8601('2020-01-01T00:00:00.000Z')
6576
),
6677
include: 'avatar_url,avatar,custom_fields,job_description,benefits,bank_details',
67-
x_account_id: '<id>',
78+
x_account_id: '<id>'
6879
)
69-
7080
res = s.hris.list_employees(request: req)
7181

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

94104
Models = ::StackOne::Models
95105
s = ::StackOne::StackOne.new(
96-
security: Models::Shared::Security.new(
97-
password: '',
98-
username: '',
99-
),
100-
)
101-
106+
security: Models::Shared::Security.new(
107+
password: '',
108+
username: ''
109+
)
110+
)
102111
res = s.accounts.delete_account(id: '<id>')
103112

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

116125
Models = ::StackOne::Models
117126
s = ::StackOne::StackOne.new
118-
119127
res = s.mcp.mcp_delete(security: Models::Operations::StackoneMcpDeleteSecurity.new(
120-
api_key: '<YOUR_API_KEY_HERE>',
121-
), mcp_session_id: '<id>', x_account_id: '<id>')
128+
129+
), mcp_session_id: '<id>', x_account_id: '<id>')
122130

123131
if res.status_code == 200
124132
# handle response
@@ -493,12 +501,11 @@ require 'stackone_client'
493501

494502
Models = ::StackOne::Models
495503
s = ::StackOne::StackOne.new(
496-
security: Models::Shared::Security.new(
497-
password: '',
498-
username: '',
499-
),
500-
)
501-
504+
security: Models::Shared::Security.new(
505+
password: '',
506+
username: ''
507+
)
508+
)
502509
res = s.accounts.delete_account(id: '<id>')
503510

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

514521
Models = ::StackOne::Models
515522
s = ::StackOne::StackOne.new(
516-
retry_config: Utils::RetryConfig.new(
523+
retry_config: Utils::RetryConfig.new(
517524
backoff: Utils::BackoffStrategy.new(
518525
exponent: 1.1,
519526
initial_interval: 1,
@@ -523,12 +530,11 @@ s = ::StackOne::StackOne.new(
523530
retry_connection_errors: false,
524531
strategy: 'backoff'
525532
),
526-
security: Models::Shared::Security.new(
527-
password: '',
528-
username: '',
529-
),
530-
)
531-
533+
security: Models::Shared::Security.new(
534+
password: '',
535+
username: ''
536+
)
537+
)
532538
res = s.accounts.delete_account(id: '<id>')
533539

534540
unless res.linked_account.nil?
@@ -576,11 +582,11 @@ require 'stackone_client'
576582

577583
Models = ::StackOne::Models
578584
s = ::StackOne::StackOne.new(
579-
security: Models::Shared::Security.new(
580-
password: '',
581-
username: '',
582-
),
583-
)
585+
security: Models::Shared::Security.new(
586+
password: '',
587+
username: ''
588+
)
589+
)
584590

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

641647
Models = ::StackOne::Models
642648
s = ::StackOne::StackOne.new(
643-
server_url: 'https://api.stackone.com',
644-
security: Models::Shared::Security.new(
645-
password: '',
646-
username: '',
647-
),
648-
)
649-
649+
server_url: 'https://api.stackone.com',
650+
security: Models::Shared::Security.new(
651+
password: '',
652+
username: ''
653+
)
654+
)
650655
res = s.accounts.delete_account(id: '<id>')
651656

652657
unless res.linked_account.nil?

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1088,4 +1088,14 @@ Based on:
10881088
### Generated
10891089
- [ruby v0.39.5] .
10901090
### Releases
1091-
- [Ruby Gems v0.39.5] https://rubygems.org/gems/stackone_client/versions/0.39.5 - .
1091+
- [Ruby Gems v0.39.5] https://rubygems.org/gems/stackone_client/versions/0.39.5 - .
1092+
1093+
## 2026-02-23 09:14:39
1094+
### Changes
1095+
Based on:
1096+
- OpenAPI Doc
1097+
- Speakeasy CLI 1.724.0 (2.836.4) https://github.com/speakeasy-api/speakeasy
1098+
### Generated
1099+
- [ruby v0.40.0] .
1100+
### Releases
1101+
- [Ruby Gems v0.40.0] https://rubygems.org/gems/stackone_client/versions/0.40.0 - .

Rakefile

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,29 @@ require 'bundler/gem_tasks'
55
require 'minitest/test_task'
66
require 'rubocop/rake_task'
77

8-
RuboCop::RakeTask.new
8+
RuboCop::RakeTask.new do |task|
9+
task.options = ['--parallel']
10+
end
911

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

17+
namespace :sorbet do
18+
desc "Remove legacy Sorbet artifacts like extra.rbi"
19+
task :clean do
20+
extra = File.join(__dir__, "extra.rbi")
21+
22+
if File.exist?(extra)
23+
puts "Removing legacy file: extra.rbi"
24+
File.delete(extra)
25+
else
26+
puts "extra.rbi not present — nothing to clean"
27+
end
28+
end
29+
end
30+
1531
task :default => :test
1632

1733

USAGE.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,22 @@ require 'stackone_client'
66

77
Models = ::StackOne::Models
88
s = ::StackOne::StackOne.new(
9-
security: Models::Shared::Security.new(
10-
password: '',
11-
username: '',
12-
),
13-
)
9+
security: Models::Shared::Security.new(
10+
password: '',
11+
username: ''
12+
)
13+
)
1414

1515
req = Models::Operations::HrisListEmployeesRequest.new(
1616
prefer: 'heartbeat',
1717
expand: 'company,employments,work_location,home_location,groups,skills',
1818
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',
1919
filter: Models::Operations::HrisListEmployeesQueryParamFilter.new(
20-
updated_after: DateTime.iso8601('2020-01-01T00:00:00.000Z'),
20+
updated_after: DateTime.iso8601('2020-01-01T00:00:00.000Z')
2121
),
2222
include: 'avatar_url,avatar,custom_fields,job_description,benefits,bank_details',
23-
x_account_id: '<id>',
23+
x_account_id: '<id>'
2424
)
25-
2625
res = s.hris.list_employees(request: req)
2726

2827
unless res.employees_paginated.nil?

0 commit comments

Comments
 (0)