speakeasy_client_sdk_ruby 4.1.13 → 4.2.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: a9ed96febd40afbdf15448844bef993e97c629b35e472ab0cd5f3a200d633cbe
4
- data.tar.gz: bfd7be7cda12afc9aec5d019dd52cb836b66184e0e894c3820b60ddd73e1182c
3
+ metadata.gz: ff07c9e38fae28f47d85208826db1d1de306d422a388eb999b72eb19349f9a85
4
+ data.tar.gz: 45779ed55aa8509f07bdd8fb45f57446f3a0e4a2337bd78bf8973b6e70895d6e
5
5
  SHA512:
6
- metadata.gz: 951226811dd615bc76a46b8b8fa9c0919726668aca6654d7fe50e92780d986fcd60b212ac2ce036ba9c1f75a63bb410b24eb409e3a7d24a7f52d0fb08f92aacd
7
- data.tar.gz: 9aa8c7585c40592884ccf61c483a6a5c076793932a6542d1fd49d7da4e259a1a4ecf3cf88577329902298da35d578726c1e11aadaa91d1067b86202d4195531a
6
+ metadata.gz: addde5735bebab9067c16e6f9a7dea1607376231d49fe4862f904ac2ae4028fc02f439893a15fce9add6bfc232eb581024354e0c01dbc4589c1c83cc58b768eb
7
+ data.tar.gz: 100c9ed4f27dfbbc78fc1fc3a3dc1da06169f72f458d52e2e61520f0a3348cad7dbe8b1e7be8c17dd7f39986aea9f470dd6806ef287d4d99543059cfddbcb5a0
@@ -18,14 +18,17 @@ module SpeakeasyClientSDK
18
18
 
19
19
  field :user, ::SpeakeasyClientSDK::Shared::AccessTokenUser, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('user') } }
20
20
 
21
+ field :feature_flags, T.nilable(T::Array[::SpeakeasyClientSDK::Shared::FeatureFlag]), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('feature_flags') } }
22
+
21
23
  field :workspaces, T.nilable(T::Array[::SpeakeasyClientSDK::Shared::Workspaces]), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('workspaces') } }
22
24
 
23
25
 
24
- sig { params(access_token: ::String, claims: ::SpeakeasyClientSDK::Shared::Claims, user: ::SpeakeasyClientSDK::Shared::AccessTokenUser, workspaces: T.nilable(T::Array[::SpeakeasyClientSDK::Shared::Workspaces])).void }
25
- def initialize(access_token: nil, claims: nil, user: nil, workspaces: nil)
26
+ sig { params(access_token: ::String, claims: ::SpeakeasyClientSDK::Shared::Claims, user: ::SpeakeasyClientSDK::Shared::AccessTokenUser, feature_flags: T.nilable(T::Array[::SpeakeasyClientSDK::Shared::FeatureFlag]), workspaces: T.nilable(T::Array[::SpeakeasyClientSDK::Shared::Workspaces])).void }
27
+ def initialize(access_token: nil, claims: nil, user: nil, feature_flags: nil, workspaces: nil)
26
28
  @access_token = access_token
27
29
  @claims = claims
28
30
  @user = user
31
+ @feature_flags = feature_flags
29
32
  @workspaces = workspaces
30
33
  end
31
34
  end
@@ -14,24 +14,27 @@ module SpeakeasyClientSDK
14
14
 
15
15
  field :account_type, ::SpeakeasyClientSDK::Shared::AccountType, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('account_type'), 'decoder': Utils.enum_from_string(::SpeakeasyClientSDK::Shared::AccountType, false) } }
16
16
 
17
- field :enabled_features, T::Array[::String], { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('enabled_features') } }
17
+ field :enabled_features, T::Array[::SpeakeasyClientSDK::Shared::FeatureFlag], { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('enabled_features') } }
18
18
 
19
19
  field :org_slug, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('org_slug') } }
20
20
 
21
21
  field :workspace_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('workspace_id') } }
22
22
 
23
23
  field :workspace_slug, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('workspace_slug') } }
24
+ # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
25
+ field :feature_flags, T.nilable(T::Array[::String]), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('feature_flags') } }
24
26
 
25
27
  field :generation_access_unlimited, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generation_access_unlimited') } }
26
28
 
27
29
 
28
- sig { params(account_type: ::SpeakeasyClientSDK::Shared::AccountType, enabled_features: T::Array[::String], org_slug: ::String, workspace_id: ::String, workspace_slug: ::String, generation_access_unlimited: T.nilable(T::Boolean)).void }
29
- def initialize(account_type: nil, enabled_features: nil, org_slug: nil, workspace_id: nil, workspace_slug: nil, generation_access_unlimited: nil)
30
+ sig { params(account_type: ::SpeakeasyClientSDK::Shared::AccountType, enabled_features: T::Array[::SpeakeasyClientSDK::Shared::FeatureFlag], org_slug: ::String, workspace_id: ::String, workspace_slug: ::String, feature_flags: T.nilable(T::Array[::String]), generation_access_unlimited: T.nilable(T::Boolean)).void }
31
+ def initialize(account_type: nil, enabled_features: nil, org_slug: nil, workspace_id: nil, workspace_slug: nil, feature_flags: nil, generation_access_unlimited: nil)
30
32
  @account_type = account_type
31
33
  @enabled_features = enabled_features
32
34
  @org_slug = org_slug
33
35
  @workspace_id = workspace_id
34
36
  @workspace_slug = workspace_slug
37
+ @feature_flags = feature_flags
35
38
  @generation_access_unlimited = generation_access_unlimited
36
39
  end
37
40
  end
@@ -0,0 +1,27 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module SpeakeasyClientSDK
8
+ module Shared
9
+
10
+ # A feature flag is a key-value pair that can be used to enable or disable features.
11
+ class FeatureFlag < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :feature_flag, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('feature_flag') } }
16
+
17
+ field :trial_ends_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('trial_ends_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
18
+
19
+
20
+ sig { params(feature_flag: ::String, trial_ends_at: T.nilable(::DateTime)).void }
21
+ def initialize(feature_flag: nil, trial_ends_at: nil)
22
+ @feature_flag = feature_flag
23
+ @trial_ends_at = trial_ends_at
24
+ end
25
+ end
26
+ end
27
+ end
@@ -33,6 +33,7 @@ module SpeakeasyClientSDK
33
33
  autoload :AccessTokenAccountType, 'speakeasy_client_sdk/models/shared/accesstoken_account_type.rb'
34
34
  autoload :Workspaces, 'speakeasy_client_sdk/models/shared/workspaces.rb'
35
35
  autoload :AccessToken, 'speakeasy_client_sdk/models/shared/accesstoken.rb'
36
+ autoload :FeatureFlag, 'speakeasy_client_sdk/models/shared/featureflag.rb'
36
37
  autoload :User, 'speakeasy_client_sdk/models/shared/user.rb'
37
38
  autoload :Level, 'speakeasy_client_sdk/models/shared/level.rb'
38
39
  autoload :AccessDetails, 'speakeasy_client_sdk/models/shared/accessdetails.rb'
@@ -41,9 +41,9 @@ module SpeakeasyClientSDK
41
41
  @globals = globals.nil? ? {} : globals
42
42
  @language = 'ruby'
43
43
  @openapi_doc_version = '0.4.0 .'
44
- @sdk_version = '4.1.13'
45
- @gen_version = '2.329.0'
46
- @user_agent = 'speakeasy-sdk/ruby 4.1.13 2.329.0 0.4.0 . speakeasy_client_sdk_ruby'
44
+ @sdk_version = '4.2.0'
45
+ @gen_version = '2.332.4'
46
+ @user_agent = 'speakeasy-sdk/ruby 4.2.0 2.332.4 0.4.0 . speakeasy_client_sdk_ruby'
47
47
  end
48
48
 
49
49
  sig { returns([String, T::Hash[Symbol, String]]) }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: speakeasy_client_sdk_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.13
4
+ version: 4.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Speakeasy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-14 00:00:00.000000000 Z
11
+ date: 2024-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -271,6 +271,7 @@ files:
271
271
  - lib/speakeasy_client_sdk/models/shared/embedaccesstokenresponse.rb
272
272
  - lib/speakeasy_client_sdk/models/shared/embedtoken.rb
273
273
  - lib/speakeasy_client_sdk/models/shared/error.rb
274
+ - lib/speakeasy_client_sdk/models/shared/featureflag.rb
274
275
  - lib/speakeasy_client_sdk/models/shared/filter.rb
275
276
  - lib/speakeasy_client_sdk/models/shared/filters.rb
276
277
  - lib/speakeasy_client_sdk/models/shared/generate_bump_type.rb