infisical-sdk 2.2.9 → 2.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0d4a1a917782bac732ffa746f0e828b94bc8ecbca610ead5037fb160d6f2c9af
4
- data.tar.gz: d8f62fea5ef9bbca1a0ac1744884d33d097994859f50fc91b12a4ec9f12afae2
3
+ metadata.gz: 631a8d8f205037d27e93e742be97f1f26f6be52b7bb3f033329f684cbe841603
4
+ data.tar.gz: ff0bfcd3d7f95575ff2f1bf5f2cc15da52b78cbf972e687856600009103f00cd
5
5
  SHA512:
6
- metadata.gz: 72841f020f154852bffecd78abe2de1f411b615a780a01fbac211661393dd03a5cbc34a104ca50c75c5c35fa3b7d37d4795ae72e0877da0f62d520c8cd194a2a
7
- data.tar.gz: 5dbfbe36fc281b68281baf4d5d787671dfb5b3ffb0a211667682aa802893b5500926567514f4b4b39c323975223b0ba37d625a5bfb4ae077387c34fd8b2b235e
6
+ metadata.gz: f3300ea068deb6069a4e048207aeb35d431c8391d09c249c561522392939158175be8e6d78d3ef17e6d39f25fea3af77d21f2c648f65a9618e2798abd3d3c424
7
+ data.tar.gz: e3667b1d1d86b27d23312edf236ed9e484615a460dd302444d3d0683fdc538343f8de355ace58b310ba70c044e51106256af248528c71b131563cbbe0ec6ebd1
Binary file
Binary file
Binary file
Binary file
data/lib/schemas.rb CHANGED
@@ -300,18 +300,25 @@ class ClientSettings < Dry::Struct
300
300
  # The URL of the site to connect to. Defaults to "https://app.infisical.com".
301
301
  attribute :site_url, Types::String.optional.optional
302
302
 
303
+ # The SSL certificate path is an optional field that allows you to specify a custom SSL
304
+ # certificate to use for requests made to Infisical.
305
+ # This option can be substituted with the `INFISICAL_SSL_CERTIFICATE` environment variable,
306
+ # which should contain the certificate as a string, not the path.
307
+ attribute :ssl_certificate_path, Types::String.optional.optional
308
+
303
309
  attribute :user_agent, Types::String.optional.optional
304
310
 
305
311
  def self.from_dynamic!(d)
306
312
  d = Types::Hash[d]
307
313
  new(
308
- access_token: d["accessToken"],
309
- auth: d["auth"] ? AuthenticationOptions.from_dynamic!(d["auth"]) : nil,
310
- cache_ttl: d["cacheTtl"],
311
- client_id: d["clientId"],
312
- client_secret: d["clientSecret"],
313
- site_url: d["siteUrl"],
314
- user_agent: d["userAgent"],
314
+ access_token: d["accessToken"],
315
+ auth: d["auth"] ? AuthenticationOptions.from_dynamic!(d["auth"]) : nil,
316
+ cache_ttl: d["cacheTtl"],
317
+ client_id: d["clientId"],
318
+ client_secret: d["clientSecret"],
319
+ site_url: d["siteUrl"],
320
+ ssl_certificate_path: d["sslCertificatePath"],
321
+ user_agent: d["userAgent"],
315
322
  )
316
323
  end
317
324
 
@@ -321,13 +328,14 @@ class ClientSettings < Dry::Struct
321
328
 
322
329
  def to_dynamic
323
330
  {
324
- "accessToken" => access_token,
325
- "auth" => auth&.to_dynamic,
326
- "cacheTtl" => cache_ttl,
327
- "clientId" => client_id,
328
- "clientSecret" => client_secret,
329
- "siteUrl" => site_url,
330
- "userAgent" => user_agent,
331
+ "accessToken" => access_token,
332
+ "auth" => auth&.to_dynamic,
333
+ "cacheTtl" => cache_ttl,
334
+ "clientId" => client_id,
335
+ "clientSecret" => client_secret,
336
+ "siteUrl" => site_url,
337
+ "sslCertificatePath" => ssl_certificate_path,
338
+ "userAgent" => user_agent,
331
339
  }
332
340
  end
333
341
 
data/lib/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module InfisicalSDK
4
- VERSION = '2.2.9'
4
+ VERSION = '2.3.0'
5
5
  end
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: infisical-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.9
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Infisical Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-07-23 00:00:00.000000000 Z
11
+ date: 2024-07-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-struct