phaseo_sdk 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 +4 -4
- data/lib/gen/models.rb +3330 -560
- data/lib/gen/operations.rb +971 -137
- data/lib/index.rb +10 -4
- data/lib/phaseo_sdk/model_ids.rb +1180 -292
- data/lib/phaseo_sdk/version.rb +1 -1
- data/tests/endpoints_test.rb +17 -0
- metadata +2 -2
data/lib/phaseo_sdk/version.rb
CHANGED
data/tests/endpoints_test.rb
CHANGED
|
@@ -24,4 +24,21 @@ class EndpointsTest < Minitest::Test
|
|
|
24
24
|
assert_equal "openai/gpt-5-nano", response["sample_models"][0]
|
|
25
25
|
assert_equal [["GET", "/endpoints", nil, nil, nil]], calls
|
|
26
26
|
end
|
|
27
|
+
|
|
28
|
+
def test_generated_path_parameters_use_uri_component_encoding
|
|
29
|
+
client = PhaseoSdk::Phaseo.new(
|
|
30
|
+
api_key: "test",
|
|
31
|
+
enable_deprecation_warnings: false
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
captured_path = nil
|
|
35
|
+
client.raw_client.define_singleton_method(:request) do |method:, path:, query: nil, headers: nil, body: nil|
|
|
36
|
+
captured_path = path
|
|
37
|
+
{ "ok" => true }
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
Phaseo::Gen::Operations.retrieveFile(client.raw_client, path: { "file_id" => "folder name/file+one" })
|
|
41
|
+
|
|
42
|
+
assert_equal "/files/folder%20name%2Ffile%2Bone", captured_path
|
|
43
|
+
end
|
|
27
44
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: phaseo_sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 3.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Phaseo
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-09-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Ruby client for the Phaseo Gateway API with generated endpoints and typed
|
|
14
14
|
wrappers.
|