stigg 0.1.0.pre.beta.26 → 0.1.0.pre.beta.28

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.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -0
  3. data/README.md +1 -1
  4. data/lib/stigg/models/v1/events/data_export/destination_create_params.rb +8 -1
  5. data/lib/stigg/models/v1/events/data_export/destination_create_response.rb +8 -1
  6. data/lib/stigg/models/v1/events/data_export/destination_delete_response.rb +8 -1
  7. data/lib/stigg/models/v1/events/data_export_list_models_params.rb +30 -0
  8. data/lib/stigg/models/v1/events/data_export_list_models_response.rb +94 -0
  9. data/lib/stigg/models/v1/events/data_export_mint_scoped_token_params.rb +8 -1
  10. data/lib/stigg/models/v1/usage_report_response.rb +51 -1
  11. data/lib/stigg/resources/v1/events/data_export/destinations.rb +3 -1
  12. data/lib/stigg/resources/v1/events/data_export.rb +34 -1
  13. data/lib/stigg/version.rb +1 -1
  14. data/lib/stigg.rb +2 -0
  15. data/rbi/stigg/models/v1/events/data_export/destination_create_params.rbi +9 -0
  16. data/rbi/stigg/models/v1/events/data_export/destination_create_response.rbi +9 -0
  17. data/rbi/stigg/models/v1/events/data_export/destination_delete_response.rbi +9 -0
  18. data/rbi/stigg/models/v1/events/data_export_list_models_params.rbi +60 -0
  19. data/rbi/stigg/models/v1/events/data_export_list_models_response.rbi +209 -0
  20. data/rbi/stigg/models/v1/events/data_export_mint_scoped_token_params.rbi +9 -0
  21. data/rbi/stigg/models/v1/usage_report_response.rbi +90 -0
  22. data/rbi/stigg/resources/v1/events/data_export/destinations.rbi +3 -0
  23. data/rbi/stigg/resources/v1/events/data_export.rbi +24 -0
  24. data/sig/stigg/models/v1/events/data_export/destination_create_params.rbs +7 -0
  25. data/sig/stigg/models/v1/events/data_export/destination_create_response.rbs +7 -0
  26. data/sig/stigg/models/v1/events/data_export/destination_delete_response.rbs +7 -0
  27. data/sig/stigg/models/v1/events/data_export_list_models_params.rbs +36 -0
  28. data/sig/stigg/models/v1/events/data_export_list_models_response.rbs +80 -0
  29. data/sig/stigg/models/v1/events/data_export_mint_scoped_token_params.rbs +7 -0
  30. data/sig/stigg/models/v1/usage_report_response.rbs +37 -0
  31. data/sig/stigg/resources/v1/events/data_export/destinations.rbs +1 -0
  32. data/sig/stigg/resources/v1/events/data_export.rbs +7 -0
  33. metadata +8 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c64580bc594268e333f3d41a2ca1be124152419465ed64e6c7cc6165f26bca53
4
- data.tar.gz: b8f423dccaa5c5bbb0db7754ef39cd10a86f033a67bf0fcc74d6eb1edab7d217
3
+ metadata.gz: 0c73c17cef006ecff9fbb39d3a535e95dcea78f6707793928877b380668f1e94
4
+ data.tar.gz: ea0f64fd84cbff248818bf637243fe53da323d16c5b55988d62edd1cf44d5b53
5
5
  SHA512:
6
- metadata.gz: 1b65032e47c99649e17267122470ad81bf1de04cefc13a251ab119901e5baab81a51af184f312daa0483d34cb6ce1a63c53996dd74e71e9751b8d8c08da95094
7
- data.tar.gz: 01e329ce8c549a8a2ba21c1599fd1cd6fa102e15e240ed2909f5ffdc29e56847a99442a6047b8888e8fe18439af457c504bbd9812789accb330a329a75ac1cf3
6
+ metadata.gz: 5089cbd835500a5682b8883678e4d0f47b596732669d15b9601f9e9542c7796d32e627c733d307e5a9eee842f628e15f86ec49ed0adca3d43a79aa0a28b48fef
7
+ data.tar.gz: 1005f65afda7265a3e7b76431896e7f88190247aa16af7abf8567e5bfe1a4c8625c871aa1cbe3d902cb0b5346d0263d68de3c5bf24b13ef4569677be647d3f5c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-beta.28 (2026-06-22)
4
+
5
+ Full Changelog: [v0.1.0-beta.27...v0.1.0-beta.28](https://github.com/stiggio/stigg-ruby/compare/v0.1.0-beta.27...v0.1.0-beta.28)
6
+
7
+ ### Features
8
+
9
+ * **api:** add credit field to usage report response ([48da7e7](https://github.com/stiggio/stigg-ruby/commit/48da7e753acc8cb02f3f5719ec06fe48752eca34))
10
+
11
+ ## 0.1.0-beta.27 (2026-06-21)
12
+
13
+ Full Changelog: [v0.1.0-beta.26...v0.1.0-beta.27](https://github.com/stiggio/stigg-ruby/compare/v0.1.0-beta.26...v0.1.0-beta.27)
14
+
15
+ ### Features
16
+
17
+ * **api:** add list_models method, enabled_models field to data_export ([d929005](https://github.com/stiggio/stigg-ruby/commit/d929005ea0e1ed43bd1a0ed5a8a32e09dc25bb4b))
18
+
3
19
  ## 0.1.0-beta.26 (2026-06-21)
4
20
 
5
21
  Full Changelog: [v0.1.0-beta.25...v0.1.0-beta.26](https://github.com/stiggio/stigg-ruby/compare/v0.1.0-beta.25...v0.1.0-beta.26)
data/README.md CHANGED
@@ -24,7 +24,7 @@ To use this gem, install via Bundler by adding the following to your application
24
24
  <!-- x-release-please-start-version -->
25
25
 
26
26
  ```ruby
27
- gem "stigg", "~> 0.1.0.pre.beta.26"
27
+ gem "stigg", "~> 0.1.0.pre.beta.28"
28
28
  ```
29
29
 
30
30
  <!-- x-release-please-end -->
@@ -22,6 +22,11 @@ module Stigg
22
22
  # @return [String]
23
23
  required :destination_type, String, api_name: :destinationType
24
24
 
25
+ # @!attribute enabled_models
26
+ #
27
+ # @return [Array<String>, nil]
28
+ optional :enabled_models, Stigg::Internal::Type::ArrayOf[String], api_name: :enabledModels
29
+
25
30
  # @!attribute x_account_id
26
31
  #
27
32
  # @return [String, nil]
@@ -32,11 +37,13 @@ module Stigg
32
37
  # @return [String, nil]
33
38
  optional :x_environment_id, String
34
39
 
35
- # @!method initialize(destination_id:, destination_type:, x_account_id: nil, x_environment_id: nil, request_options: {})
40
+ # @!method initialize(destination_id:, destination_type:, enabled_models: nil, x_account_id: nil, x_environment_id: nil, request_options: {})
36
41
  # @param destination_id [String] The provider destination ID returned by the embedded SDK on connect
37
42
  #
38
43
  # @param destination_type [String] The destination type (e.g. snowflake, bigquery)
39
44
  #
45
+ # @param enabled_models [Array<String>]
46
+ #
40
47
  # @param x_account_id [String]
41
48
  #
42
49
  # @param x_environment_id [String]
@@ -57,6 +57,11 @@ module Stigg
57
57
  # @return [String, nil]
58
58
  optional :connection_status, String, api_name: :connectionStatus
59
59
 
60
+ # @!attribute enabled_models
61
+ #
62
+ # @return [Array<String>, nil]
63
+ optional :enabled_models, Stigg::Internal::Type::ArrayOf[String], api_name: :enabledModels
64
+
60
65
  # @!attribute last_sync_status
61
66
  # Latest sync snapshot for the destination, refreshed by the provider webhook
62
67
  #
@@ -65,7 +70,7 @@ module Stigg
65
70
  -> { Stigg::Models::V1::Events::DataExport::DestinationCreateResponse::Data::Destination::LastSyncStatus },
66
71
  api_name: :lastSyncStatus
67
72
 
68
- # @!method initialize(connected_at:, destination_id:, type:, connection_status: nil, last_sync_status: nil)
73
+ # @!method initialize(connected_at:, destination_id:, type:, connection_status: nil, enabled_models: nil, last_sync_status: nil)
69
74
  # A single destination entry under the DATA_EXPORT integration.
70
75
  #
71
76
  # @param connected_at [String] ISO8601 timestamp of when the destination was connected
@@ -76,6 +81,8 @@ module Stigg
76
81
  #
77
82
  # @param connection_status [String] Connection status of the destination (connected, failed)
78
83
  #
84
+ # @param enabled_models [Array<String>]
85
+ #
79
86
  # @param last_sync_status [Stigg::Models::V1::Events::DataExport::DestinationCreateResponse::Data::Destination::LastSyncStatus] Latest sync snapshot for the destination, refreshed by the provider webhook
80
87
 
81
88
  # @see Stigg::Models::V1::Events::DataExport::DestinationCreateResponse::Data::Destination#last_sync_status
@@ -57,6 +57,11 @@ module Stigg
57
57
  # @return [String, nil]
58
58
  optional :connection_status, String, api_name: :connectionStatus
59
59
 
60
+ # @!attribute enabled_models
61
+ #
62
+ # @return [Array<String>, nil]
63
+ optional :enabled_models, Stigg::Internal::Type::ArrayOf[String], api_name: :enabledModels
64
+
60
65
  # @!attribute last_sync_status
61
66
  # Latest sync snapshot for the destination, refreshed by the provider webhook
62
67
  #
@@ -65,7 +70,7 @@ module Stigg
65
70
  -> { Stigg::Models::V1::Events::DataExport::DestinationDeleteResponse::Data::Destination::LastSyncStatus },
66
71
  api_name: :lastSyncStatus
67
72
 
68
- # @!method initialize(connected_at:, destination_id:, type:, connection_status: nil, last_sync_status: nil)
73
+ # @!method initialize(connected_at:, destination_id:, type:, connection_status: nil, enabled_models: nil, last_sync_status: nil)
69
74
  # A single destination entry under the DATA_EXPORT integration.
70
75
  #
71
76
  # @param connected_at [String] ISO8601 timestamp of when the destination was connected
@@ -76,6 +81,8 @@ module Stigg
76
81
  #
77
82
  # @param connection_status [String] Connection status of the destination (connected, failed)
78
83
  #
84
+ # @param enabled_models [Array<String>]
85
+ #
79
86
  # @param last_sync_status [Stigg::Models::V1::Events::DataExport::DestinationDeleteResponse::Data::Destination::LastSyncStatus] Latest sync snapshot for the destination, refreshed by the provider webhook
80
87
 
81
88
  # @see Stigg::Models::V1::Events::DataExport::DestinationDeleteResponse::Data::Destination#last_sync_status
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Stigg
4
+ module Models
5
+ module V1
6
+ module Events
7
+ # @see Stigg::Resources::V1::Events::DataExport#list_models
8
+ class DataExportListModelsParams < Stigg::Internal::Type::BaseModel
9
+ extend Stigg::Internal::Type::RequestParameters::Converter
10
+ include Stigg::Internal::Type::RequestParameters
11
+
12
+ # @!attribute x_account_id
13
+ #
14
+ # @return [String, nil]
15
+ optional :x_account_id, String
16
+
17
+ # @!attribute x_environment_id
18
+ #
19
+ # @return [String, nil]
20
+ optional :x_environment_id, String
21
+
22
+ # @!method initialize(x_account_id: nil, x_environment_id: nil, request_options: {})
23
+ # @param x_account_id [String]
24
+ # @param x_environment_id [String]
25
+ # @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}]
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,94 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Stigg
4
+ module Models
5
+ module V1
6
+ module Events
7
+ # @see Stigg::Resources::V1::Events::DataExport#list_models
8
+ class DataExportListModelsResponse < Stigg::Internal::Type::BaseModel
9
+ # @!attribute data
10
+ # Grouped catalog of every data-export model a destination can opt into.
11
+ #
12
+ # @return [Stigg::Models::V1::Events::DataExportListModelsResponse::Data]
13
+ required :data, -> { Stigg::Models::V1::Events::DataExportListModelsResponse::Data }
14
+
15
+ # @!method initialize(data:)
16
+ # Response object
17
+ #
18
+ # @param data [Stigg::Models::V1::Events::DataExportListModelsResponse::Data] Grouped catalog of every data-export model a destination can opt into.
19
+
20
+ # @see Stigg::Models::V1::Events::DataExportListModelsResponse#data
21
+ class Data < Stigg::Internal::Type::BaseModel
22
+ # @!attribute groups
23
+ # Groups of data-export models, in display order
24
+ #
25
+ # @return [Array<Stigg::Models::V1::Events::DataExportListModelsResponse::Data::Group>]
26
+ required :groups,
27
+ -> { Stigg::Internal::Type::ArrayOf[Stigg::Models::V1::Events::DataExportListModelsResponse::Data::Group] }
28
+
29
+ # @!method initialize(groups:)
30
+ # Grouped catalog of every data-export model a destination can opt into.
31
+ #
32
+ # @param groups [Array<Stigg::Models::V1::Events::DataExportListModelsResponse::Data::Group>] Groups of data-export models, in display order
33
+
34
+ class Group < Stigg::Internal::Type::BaseModel
35
+ # @!attribute id
36
+ # Stable group identifier
37
+ #
38
+ # @return [String]
39
+ required :id, String
40
+
41
+ # @!attribute display_name
42
+ # Customer-facing group label
43
+ #
44
+ # @return [String]
45
+ required :display_name, String, api_name: :displayName
46
+
47
+ # @!attribute models
48
+ # Models in this group
49
+ #
50
+ # @return [Array<Stigg::Models::V1::Events::DataExportListModelsResponse::Data::Group::Model>]
51
+ required :models,
52
+ -> { Stigg::Internal::Type::ArrayOf[Stigg::Models::V1::Events::DataExportListModelsResponse::Data::Group::Model] }
53
+
54
+ # @!method initialize(id:, display_name:, models:)
55
+ # A group of related data-export models, mirroring the public docs taxonomy.
56
+ #
57
+ # @param id [String] Stable group identifier
58
+ #
59
+ # @param display_name [String] Customer-facing group label
60
+ #
61
+ # @param models [Array<Stigg::Models::V1::Events::DataExportListModelsResponse::Data::Group::Model>] Models in this group
62
+
63
+ class Model < Stigg::Internal::Type::BaseModel
64
+ # @!attribute id
65
+ # Wire identifier — what gets persisted on the destination and registered with the
66
+ # provider
67
+ #
68
+ # @return [String]
69
+ required :id, String
70
+
71
+ # @!attribute display_name
72
+ # Customer-facing label for the model
73
+ #
74
+ # @return [String]
75
+ required :display_name, String, api_name: :displayName
76
+
77
+ # @!method initialize(id:, display_name:)
78
+ # Some parameter documentations has been truncated, see
79
+ # {Stigg::Models::V1::Events::DataExportListModelsResponse::Data::Group::Model}
80
+ # for more details.
81
+ #
82
+ # A single data-export model the customer can opt into.
83
+ #
84
+ # @param id [String] Wire identifier — what gets persisted on the destination and registered with the
85
+ #
86
+ # @param display_name [String] Customer-facing label for the model
87
+ end
88
+ end
89
+ end
90
+ end
91
+ end
92
+ end
93
+ end
94
+ end
@@ -21,6 +21,11 @@ module Stigg
21
21
  # @return [String, nil]
22
22
  optional :destination_type, String, api_name: :destinationType
23
23
 
24
+ # @!attribute enabled_models
25
+ #
26
+ # @return [Array<String>, nil]
27
+ optional :enabled_models, Stigg::Internal::Type::ArrayOf[String], api_name: :enabledModels
28
+
24
29
  # @!attribute x_account_id
25
30
  #
26
31
  # @return [String, nil]
@@ -31,11 +36,13 @@ module Stigg
31
36
  # @return [String, nil]
32
37
  optional :x_environment_id, String
33
38
 
34
- # @!method initialize(application_origin:, destination_type: nil, x_account_id: nil, x_environment_id: nil, request_options: {})
39
+ # @!method initialize(application_origin:, destination_type: nil, enabled_models: nil, x_account_id: nil, x_environment_id: nil, request_options: {})
35
40
  # @param application_origin [String] FE origin the resulting JWT is bound to (provider-side anti-fraud)
36
41
  #
37
42
  # @param destination_type [String] Pin the token to a specific warehouse connect flow
38
43
  #
44
+ # @param enabled_models [Array<String>]
45
+ #
39
46
  # @param x_account_id [String]
40
47
  #
41
48
  # @param x_environment_id [String]
@@ -54,6 +54,12 @@ module Stigg
54
54
  # @return [Integer]
55
55
  required :value, Integer
56
56
 
57
+ # @!attribute credit
58
+ # Optimistic credit balance for a credit-backed feature
59
+ #
60
+ # @return [Stigg::Models::V1::UsageReportResponse::Data::Credit, nil]
61
+ optional :credit, -> { Stigg::Models::V1::UsageReportResponse::Data::Credit }, nil?: true
62
+
57
63
  # @!attribute current_usage
58
64
  # The current measured usage value
59
65
  #
@@ -86,7 +92,7 @@ module Stigg
86
92
  # @return [Time, nil]
87
93
  optional :usage_period_start, Time, api_name: :usagePeriodStart, nil?: true
88
94
 
89
- # @!method initialize(id:, created_at:, customer_id:, feature_id:, timestamp:, value:, current_usage: nil, next_reset_date: nil, resource_id: nil, usage_period_end: nil, usage_period_start: nil)
95
+ # @!method initialize(id:, created_at:, customer_id:, feature_id:, timestamp:, value:, credit: nil, current_usage: nil, next_reset_date: nil, resource_id: nil, usage_period_end: nil, usage_period_start: nil)
90
96
  # Some parameter documentations has been truncated, see
91
97
  # {Stigg::Models::V1::UsageReportResponse::Data} for more details.
92
98
  #
@@ -104,6 +110,8 @@ module Stigg
104
110
  #
105
111
  # @param value [Integer] The usage measurement record
106
112
  #
113
+ # @param credit [Stigg::Models::V1::UsageReportResponse::Data::Credit, nil] Optimistic credit balance for a credit-backed feature
114
+ #
107
115
  # @param current_usage [Float, nil] The current measured usage value
108
116
  #
109
117
  # @param next_reset_date [Time, nil] The date when the next usage reset will occur
@@ -113,6 +121,48 @@ module Stigg
113
121
  # @param usage_period_end [Time, nil] The end date of the usage period in which this measurement resides (for entitlem
114
122
  #
115
123
  # @param usage_period_start [Time, nil] The start date of the usage period in which this measurement resides (for entitl
124
+
125
+ # @see Stigg::Models::V1::UsageReportResponse::Data#credit
126
+ class Credit < Stigg::Internal::Type::BaseModel
127
+ # @!attribute currency_id
128
+ # The credit currency identifier
129
+ #
130
+ # @return [String]
131
+ required :currency_id, String, api_name: :currencyId
132
+
133
+ # @!attribute current_usage
134
+ # The credits consumed (optimistic — includes not-yet-reconciled usage)
135
+ #
136
+ # @return [Float]
137
+ required :current_usage, Float, api_name: :currentUsage
138
+
139
+ # @!attribute timestamp
140
+ # The grant-version timestamp of this balance, used by the SDK for last-write-wins
141
+ # reconciliation
142
+ #
143
+ # @return [Time]
144
+ required :timestamp, Time
145
+
146
+ # @!attribute usage_limit
147
+ # The total credits granted
148
+ #
149
+ # @return [Float]
150
+ required :usage_limit, Float, api_name: :usageLimit
151
+
152
+ # @!method initialize(currency_id:, current_usage:, timestamp:, usage_limit:)
153
+ # Some parameter documentations has been truncated, see
154
+ # {Stigg::Models::V1::UsageReportResponse::Data::Credit} for more details.
155
+ #
156
+ # Optimistic credit balance for a credit-backed feature
157
+ #
158
+ # @param currency_id [String] The credit currency identifier
159
+ #
160
+ # @param current_usage [Float] The credits consumed (optimistic — includes not-yet-reconciled usage)
161
+ #
162
+ # @param timestamp [Time] The grant-version timestamp of this balance, used by the SDK for last-write-wins
163
+ #
164
+ # @param usage_limit [Float] The total credits granted
165
+ end
116
166
  end
117
167
  end
118
168
  end
@@ -14,12 +14,14 @@ module Stigg
14
14
  # Lazy-creates the integration row + provider recipient on first call. Idempotent
15
15
  # on destinationId.
16
16
  #
17
- # @overload create(destination_id:, destination_type:, x_account_id: nil, x_environment_id: nil, request_options: {})
17
+ # @overload create(destination_id:, destination_type:, enabled_models: nil, x_account_id: nil, x_environment_id: nil, request_options: {})
18
18
  #
19
19
  # @param destination_id [String] Body param: The provider destination ID returned by the embedded SDK on connect
20
20
  #
21
21
  # @param destination_type [String] Body param: The destination type (e.g. snowflake, bigquery)
22
22
  #
23
+ # @param enabled_models [Array<String>] Body param
24
+ #
23
25
  # @param x_account_id [String] Header param: Account ID — optional when authenticating with a user JWT (Bearer
24
26
  #
25
27
  # @param x_environment_id [String] Header param: Environment ID — required when authenticating with a user JWT (Bea
@@ -8,18 +8,51 @@ module Stigg
8
8
  # @return [Stigg::Resources::V1::Events::DataExport::Destinations]
9
9
  attr_reader :destinations
10
10
 
11
+ # Some parameter documentations has been truncated, see
12
+ # {Stigg::Models::V1::Events::DataExportListModelsParams} for more details.
13
+ #
14
+ # List the catalog of data-export models the customer can opt into when connecting
15
+ # a destination.
16
+ #
17
+ # @overload list_models(x_account_id: nil, x_environment_id: nil, request_options: {})
18
+ #
19
+ # @param x_account_id [String] Account ID — optional when authenticating with a user JWT (Bearer token); falls
20
+ #
21
+ # @param x_environment_id [String] Environment ID — required when authenticating with a user JWT (Bearer token) on
22
+ #
23
+ # @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}, nil]
24
+ #
25
+ # @return [Stigg::Models::V1::Events::DataExportListModelsResponse]
26
+ #
27
+ # @see Stigg::Models::V1::Events::DataExportListModelsParams
28
+ def list_models(params = {})
29
+ parsed, options = Stigg::V1::Events::DataExportListModelsParams.dump_request(params)
30
+ @client.request(
31
+ method: :get,
32
+ path: "api/v1/data-export/models",
33
+ headers: parsed.transform_keys(
34
+ x_account_id: "x-account-id",
35
+ x_environment_id: "x-environment-id"
36
+ ),
37
+ model: Stigg::Models::V1::Events::DataExportListModelsResponse,
38
+ options: options
39
+ )
40
+ end
41
+
11
42
  # Some parameter documentations has been truncated, see
12
43
  # {Stigg::Models::V1::Events::DataExportMintScopedTokenParams} for more details.
13
44
  #
14
45
  # Mint a scoped JWT for the FE embedded SDK. Lazy-creates the DATA_EXPORT
15
46
  # integration if needed.
16
47
  #
17
- # @overload mint_scoped_token(application_origin:, destination_type: nil, x_account_id: nil, x_environment_id: nil, request_options: {})
48
+ # @overload mint_scoped_token(application_origin:, destination_type: nil, enabled_models: nil, x_account_id: nil, x_environment_id: nil, request_options: {})
18
49
  #
19
50
  # @param application_origin [String] Body param: FE origin the resulting JWT is bound to (provider-side anti-fraud)
20
51
  #
21
52
  # @param destination_type [String] Body param: Pin the token to a specific warehouse connect flow
22
53
  #
54
+ # @param enabled_models [Array<String>] Body param
55
+ #
23
56
  # @param x_account_id [String] Header param: Account ID — optional when authenticating with a user JWT (Bearer
24
57
  #
25
58
  # @param x_environment_id [String] Header param: Environment ID — required when authenticating with a user JWT (Bea
data/lib/stigg/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stigg
4
- VERSION = "0.1.0.pre.beta.26"
4
+ VERSION = "0.1.0.pre.beta.28"
5
5
  end
data/lib/stigg.rb CHANGED
@@ -140,6 +140,8 @@ require_relative "stigg/models/v1/events/data_export/destination_create_params"
140
140
  require_relative "stigg/models/v1/events/data_export/destination_create_response"
141
141
  require_relative "stigg/models/v1/events/data_export/destination_delete_params"
142
142
  require_relative "stigg/models/v1/events/data_export/destination_delete_response"
143
+ require_relative "stigg/models/v1/events/data_export_list_models_params"
144
+ require_relative "stigg/models/v1/events/data_export_list_models_response"
143
145
  require_relative "stigg/models/v1/events/data_export_mint_scoped_token_params"
144
146
  require_relative "stigg/models/v1/events/data_export_mint_scoped_token_response"
145
147
  require_relative "stigg/models/v1/events/data_export_trigger_sync_params"
@@ -25,6 +25,12 @@ module Stigg
25
25
  sig { returns(String) }
26
26
  attr_accessor :destination_type
27
27
 
28
+ sig { returns(T.nilable(T::Array[String])) }
29
+ attr_reader :enabled_models
30
+
31
+ sig { params(enabled_models: T::Array[String]).void }
32
+ attr_writer :enabled_models
33
+
28
34
  sig { returns(T.nilable(String)) }
29
35
  attr_reader :x_account_id
30
36
 
@@ -41,6 +47,7 @@ module Stigg
41
47
  params(
42
48
  destination_id: String,
43
49
  destination_type: String,
50
+ enabled_models: T::Array[String],
44
51
  x_account_id: String,
45
52
  x_environment_id: String,
46
53
  request_options: Stigg::RequestOptions::OrHash
@@ -51,6 +58,7 @@ module Stigg
51
58
  destination_id:,
52
59
  # The destination type (e.g. snowflake, bigquery)
53
60
  destination_type:,
61
+ enabled_models: nil,
54
62
  x_account_id: nil,
55
63
  x_environment_id: nil,
56
64
  request_options: {}
@@ -62,6 +70,7 @@ module Stigg
62
70
  {
63
71
  destination_id: String,
64
72
  destination_type: String,
73
+ enabled_models: T::Array[String],
65
74
  x_account_id: String,
66
75
  x_environment_id: String,
67
76
  request_options: Stigg::RequestOptions
@@ -129,6 +129,12 @@ module Stigg
129
129
  sig { params(connection_status: String).void }
130
130
  attr_writer :connection_status
131
131
 
132
+ sig { returns(T.nilable(T::Array[String])) }
133
+ attr_reader :enabled_models
134
+
135
+ sig { params(enabled_models: T::Array[String]).void }
136
+ attr_writer :enabled_models
137
+
132
138
  # Latest sync snapshot for the destination, refreshed by the provider webhook
133
139
  sig do
134
140
  returns(
@@ -154,6 +160,7 @@ module Stigg
154
160
  destination_id: String,
155
161
  type: String,
156
162
  connection_status: String,
163
+ enabled_models: T::Array[String],
157
164
  last_sync_status:
158
165
  Stigg::Models::V1::Events::DataExport::DestinationCreateResponse::Data::Destination::LastSyncStatus::OrHash
159
166
  ).returns(T.attached_class)
@@ -167,6 +174,7 @@ module Stigg
167
174
  type:,
168
175
  # Connection status of the destination (connected, failed)
169
176
  connection_status: nil,
177
+ enabled_models: nil,
170
178
  # Latest sync snapshot for the destination, refreshed by the provider webhook
171
179
  last_sync_status: nil
172
180
  )
@@ -179,6 +187,7 @@ module Stigg
179
187
  destination_id: String,
180
188
  type: String,
181
189
  connection_status: String,
190
+ enabled_models: T::Array[String],
182
191
  last_sync_status:
183
192
  Stigg::Models::V1::Events::DataExport::DestinationCreateResponse::Data::Destination::LastSyncStatus
184
193
  }
@@ -129,6 +129,12 @@ module Stigg
129
129
  sig { params(connection_status: String).void }
130
130
  attr_writer :connection_status
131
131
 
132
+ sig { returns(T.nilable(T::Array[String])) }
133
+ attr_reader :enabled_models
134
+
135
+ sig { params(enabled_models: T::Array[String]).void }
136
+ attr_writer :enabled_models
137
+
132
138
  # Latest sync snapshot for the destination, refreshed by the provider webhook
133
139
  sig do
134
140
  returns(
@@ -154,6 +160,7 @@ module Stigg
154
160
  destination_id: String,
155
161
  type: String,
156
162
  connection_status: String,
163
+ enabled_models: T::Array[String],
157
164
  last_sync_status:
158
165
  Stigg::Models::V1::Events::DataExport::DestinationDeleteResponse::Data::Destination::LastSyncStatus::OrHash
159
166
  ).returns(T.attached_class)
@@ -167,6 +174,7 @@ module Stigg
167
174
  type:,
168
175
  # Connection status of the destination (connected, failed)
169
176
  connection_status: nil,
177
+ enabled_models: nil,
170
178
  # Latest sync snapshot for the destination, refreshed by the provider webhook
171
179
  last_sync_status: nil
172
180
  )
@@ -179,6 +187,7 @@ module Stigg
179
187
  destination_id: String,
180
188
  type: String,
181
189
  connection_status: String,
190
+ enabled_models: T::Array[String],
182
191
  last_sync_status:
183
192
  Stigg::Models::V1::Events::DataExport::DestinationDeleteResponse::Data::Destination::LastSyncStatus
184
193
  }
@@ -0,0 +1,60 @@
1
+ # typed: strong
2
+
3
+ module Stigg
4
+ module Models
5
+ module V1
6
+ module Events
7
+ class DataExportListModelsParams < Stigg::Internal::Type::BaseModel
8
+ extend Stigg::Internal::Type::RequestParameters::Converter
9
+ include Stigg::Internal::Type::RequestParameters
10
+
11
+ OrHash =
12
+ T.type_alias do
13
+ T.any(
14
+ Stigg::V1::Events::DataExportListModelsParams,
15
+ Stigg::Internal::AnyHash
16
+ )
17
+ end
18
+
19
+ sig { returns(T.nilable(String)) }
20
+ attr_reader :x_account_id
21
+
22
+ sig { params(x_account_id: String).void }
23
+ attr_writer :x_account_id
24
+
25
+ sig { returns(T.nilable(String)) }
26
+ attr_reader :x_environment_id
27
+
28
+ sig { params(x_environment_id: String).void }
29
+ attr_writer :x_environment_id
30
+
31
+ sig do
32
+ params(
33
+ x_account_id: String,
34
+ x_environment_id: String,
35
+ request_options: Stigg::RequestOptions::OrHash
36
+ ).returns(T.attached_class)
37
+ end
38
+ def self.new(
39
+ x_account_id: nil,
40
+ x_environment_id: nil,
41
+ request_options: {}
42
+ )
43
+ end
44
+
45
+ sig do
46
+ override.returns(
47
+ {
48
+ x_account_id: String,
49
+ x_environment_id: String,
50
+ request_options: Stigg::RequestOptions
51
+ }
52
+ )
53
+ end
54
+ def to_hash
55
+ end
56
+ end
57
+ end
58
+ end
59
+ end
60
+ end