stigg 0.1.0.pre.beta.25 → 0.1.0.pre.beta.27

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 (42) 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/beta/customer_retrieve_governance_response.rb +5 -18
  5. data/lib/stigg/models/v1/events/data_export/destination_create_params.rb +8 -1
  6. data/lib/stigg/models/v1/events/data_export/destination_create_response.rb +8 -1
  7. data/lib/stigg/models/v1/events/data_export/destination_delete_response.rb +8 -1
  8. data/lib/stigg/models/v1/events/data_export_list_models_params.rb +30 -0
  9. data/lib/stigg/models/v1/events/data_export_list_models_response.rb +94 -0
  10. data/lib/stigg/models/v1/events/data_export_mint_scoped_token_params.rb +8 -1
  11. data/lib/stigg/models/v1_beta/customers/assignment_list_response.rb +5 -16
  12. data/lib/stigg/models/v1_beta/customers/assignment_upsert_params.rb +5 -16
  13. data/lib/stigg/models/v1_beta/customers/assignment_upsert_response.rb +5 -16
  14. data/lib/stigg/resources/v1/events/data_export/destinations.rb +3 -1
  15. data/lib/stigg/resources/v1/events/data_export.rb +34 -1
  16. data/lib/stigg/version.rb +1 -1
  17. data/lib/stigg.rb +2 -0
  18. data/rbi/stigg/models/v1/events/beta/customer_retrieve_governance_response.rbi +7 -47
  19. data/rbi/stigg/models/v1/events/data_export/destination_create_params.rbi +9 -0
  20. data/rbi/stigg/models/v1/events/data_export/destination_create_response.rbi +9 -0
  21. data/rbi/stigg/models/v1/events/data_export/destination_delete_response.rbi +9 -0
  22. data/rbi/stigg/models/v1/events/data_export_list_models_params.rbi +60 -0
  23. data/rbi/stigg/models/v1/events/data_export_list_models_response.rbi +209 -0
  24. data/rbi/stigg/models/v1/events/data_export_mint_scoped_token_params.rbi +9 -0
  25. data/rbi/stigg/models/v1_beta/customers/assignment_list_response.rbi +7 -41
  26. data/rbi/stigg/models/v1_beta/customers/assignment_upsert_params.rbi +8 -49
  27. data/rbi/stigg/models/v1_beta/customers/assignment_upsert_response.rbi +7 -41
  28. data/rbi/stigg/resources/v1/events/data_export/destinations.rbi +3 -0
  29. data/rbi/stigg/resources/v1/events/data_export.rbi +24 -0
  30. data/sig/stigg/models/v1/events/beta/customer_retrieve_governance_response.rbs +4 -14
  31. data/sig/stigg/models/v1/events/data_export/destination_create_params.rbs +7 -0
  32. data/sig/stigg/models/v1/events/data_export/destination_create_response.rbs +7 -0
  33. data/sig/stigg/models/v1/events/data_export/destination_delete_response.rbs +7 -0
  34. data/sig/stigg/models/v1/events/data_export_list_models_params.rbs +36 -0
  35. data/sig/stigg/models/v1/events/data_export_list_models_response.rbs +80 -0
  36. data/sig/stigg/models/v1/events/data_export_mint_scoped_token_params.rbs +7 -0
  37. data/sig/stigg/models/v1_beta/customers/assignment_list_response.rbs +4 -14
  38. data/sig/stigg/models/v1_beta/customers/assignment_upsert_params.rbs +5 -17
  39. data/sig/stigg/models/v1_beta/customers/assignment_upsert_response.rbs +4 -14
  40. data/sig/stigg/resources/v1/events/data_export/destinations.rbs +1 -0
  41. data/sig/stigg/resources/v1/events/data_export.rbs +7 -0
  42. metadata +8 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 59be81056c6c5ba5461a3d0653aae8dfbedfefa87ec83b5528bf1d2c46b4c0f7
4
- data.tar.gz: 411fc0c2e2568f89a9afae82aa72a82d06f86e49a0c0af7af880da6484d14420
3
+ metadata.gz: a0a7c2c6fdc66ead706149e335c2731cc5a3a056707abdff7a32fda9a0b32dae
4
+ data.tar.gz: 33df289e8225553631f314e28586056979c17f2ab7e2d06258914512b2388351
5
5
  SHA512:
6
- metadata.gz: 07540e672c3fee67499559bd20f1e8a7425d97d2aa644bdf4c83ba0f393e2827f5af4022e36ec043e7498b3a7b282a7fabeab22015f28f3ca04a4aec52c0e630
7
- data.tar.gz: 782209f127b48a055883b099ca1a1ca792f1b2bb352761cf06581abc843800b791e3dcd5fa57f0297df9fb3ff4272afb4f8fd3ea2295afe0629e5ed5d954a6f9
6
+ metadata.gz: 2c50e93051e65de5887737ae575b463ab017463d00446a2a0bfb73df57eb822292f786a4d830e47486073652578a65bbe6fc84614741a243417205d5ce4afd3c
7
+ data.tar.gz: eee8db03487a4c846f863156dc085e9e97c2f997c60373b435926d31141348551b514706e066481ddb41aabad2f6b30b5b56bb0ae67676614b43fb9889ec6754
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-beta.27 (2026-06-21)
4
+
5
+ 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)
6
+
7
+ ### Features
8
+
9
+ * **api:** add list_models method, enabled_models field to data_export ([d929005](https://github.com/stiggio/stigg-ruby/commit/d929005ea0e1ed43bd1a0ed5a8a32e09dc25bb4b))
10
+
11
+ ## 0.1.0-beta.26 (2026-06-21)
12
+
13
+ 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)
14
+
15
+ ### Bug Fixes
16
+
17
+ * **types:** change cadence from enum to String in customers assignments ([869fffe](https://github.com/stiggio/stigg-ruby/commit/869fffeff326c47f92f03f08220866045b6395f7))
18
+
3
19
  ## 0.1.0-beta.25 (2026-06-18)
4
20
 
5
21
  Full Changelog: [v0.1.0-beta.24...v0.1.0-beta.25](https://github.com/stiggio/stigg-ruby/compare/v0.1.0-beta.24...v0.1.0-beta.25)
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.25"
27
+ gem "stigg", "~> 0.1.0.pre.beta.27"
28
28
  ```
29
29
 
30
30
  <!-- x-release-please-end -->
@@ -28,12 +28,11 @@ module Stigg
28
28
 
29
29
  class Data < Stigg::Internal::Type::BaseModel
30
30
  # @!attribute cadence
31
- # Usage-reset cadence. Currently only `MONTH` is supported.
31
+ # Usage-reset cadence as an ISO-8601 single-unit duration, e.g. `P1M`, `P30D`,
32
+ # `PT1M`; `null` when the node has no usage configuration.
32
33
  #
33
- # @return [Symbol, Stigg::Models::V1::Events::Beta::CustomerRetrieveGovernanceResponse::Data::Cadence, nil]
34
- required :cadence,
35
- enum: -> { Stigg::Models::V1::Events::Beta::CustomerRetrieveGovernanceResponse::Data::Cadence },
36
- nil?: true
34
+ # @return [String, nil]
35
+ required :cadence, String, nil?: true
37
36
 
38
37
  # @!attribute current_usage
39
38
  # Usage consumed in the current cadence period (may lag the live counter by a
@@ -118,7 +117,7 @@ module Stigg
118
117
  # read model and may lag the live counter by a short interval; it never gates
119
118
  # access.
120
119
  #
121
- # @param cadence [Symbol, Stigg::Models::V1::Events::Beta::CustomerRetrieveGovernanceResponse::Data::Cadence, nil] Usage-reset cadence. Currently only `MONTH` is supported.
120
+ # @param cadence [String, nil] Usage-reset cadence as an ISO-8601 single-unit duration, e.g. `P1M`, `P30D`, `PT
122
121
  #
123
122
  # @param current_usage [Float, nil] Usage consumed in the current cadence period (may lag the live counter by a shor
124
123
  #
@@ -141,18 +140,6 @@ module Stigg
141
140
  # @param currency_id [String] The metered currency refId (present when the configured capability is a credit c
142
141
  #
143
142
  # @param feature_id [String] The metered feature refId (present when the configured capability is a feature).
144
-
145
- # Usage-reset cadence. Currently only `MONTH` is supported.
146
- #
147
- # @see Stigg::Models::V1::Events::Beta::CustomerRetrieveGovernanceResponse::Data#cadence
148
- module Cadence
149
- extend Stigg::Internal::Type::Enum
150
-
151
- MONTH = :MONTH
152
-
153
- # @!method self.values
154
- # @return [Array<Symbol>]
155
- end
156
143
  end
157
144
 
158
145
  # @see Stigg::Models::V1::Events::Beta::CustomerRetrieveGovernanceResponse#pagination
@@ -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]
@@ -13,10 +13,11 @@ module Stigg
13
13
  required :id, String
14
14
 
15
15
  # @!attribute cadence
16
- # Usage-reset cadence. Currently only `MONTH` is supported
16
+ # Usage-reset cadence as an ISO-8601 single-unit duration, e.g. `P1M`, `P30D`,
17
+ # `PT1M`.
17
18
  #
18
- # @return [Symbol, Stigg::Models::V1Beta::Customers::AssignmentListResponse::Cadence]
19
- required :cadence, enum: -> { Stigg::Models::V1Beta::Customers::AssignmentListResponse::Cadence }
19
+ # @return [String]
20
+ required :cadence, String
20
21
 
21
22
  # @!attribute created_at
22
23
  # Timestamp of when the record was created
@@ -79,7 +80,7 @@ module Stigg
79
80
  #
80
81
  # @param id [String] Synthetic UUID identifier — also the cursor anchor for paginated lists
81
82
  #
82
- # @param cadence [Symbol, Stigg::Models::V1Beta::Customers::AssignmentListResponse::Cadence] Usage-reset cadence. Currently only `MONTH` is supported
83
+ # @param cadence [String] Usage-reset cadence as an ISO-8601 single-unit duration, e.g. `P1M`, `P30D`, `PT
83
84
  #
84
85
  # @param created_at [Time] Timestamp of when the record was created
85
86
  #
@@ -96,18 +97,6 @@ module Stigg
96
97
  # @param currency_id [String] Currency refId this assignment grants (present for credit capabilities).
97
98
  #
98
99
  # @param feature_id [String] Feature refId this assignment grants (present for feature capabilities).
99
-
100
- # Usage-reset cadence. Currently only `MONTH` is supported
101
- #
102
- # @see Stigg::Models::V1Beta::Customers::AssignmentListResponse#cadence
103
- module Cadence
104
- extend Stigg::Internal::Type::Enum
105
-
106
- MONTH = :MONTH
107
-
108
- # @!method self.values
109
- # @return [Array<Symbol>]
110
- end
111
100
  end
112
101
  end
113
102
  end
@@ -50,10 +50,11 @@ module Stigg
50
50
  required :entity_id, String, api_name: :entityId
51
51
 
52
52
  # @!attribute cadence
53
- # Usage-reset cadence (required on create). Currently only `MONTH` is supported
53
+ # Usage-reset cadence (required on create) as an ISO-8601 single-unit duration,
54
+ # e.g. `P1M`, `P30D`, `PT1M`.
54
55
  #
55
- # @return [Symbol, Stigg::Models::V1Beta::Customers::AssignmentUpsertParams::Assignment::Cadence, nil]
56
- optional :cadence, enum: -> { Stigg::V1Beta::Customers::AssignmentUpsertParams::Assignment::Cadence }
56
+ # @return [String, nil]
57
+ optional :cadence, String
57
58
 
58
59
  # @!attribute currency_id
59
60
  # Currency refId this assignment grants (credit budgets). Mutually exclusive with
@@ -100,7 +101,7 @@ module Stigg
100
101
  #
101
102
  # @param entity_id [String] The entity refId this assignment is attached to
102
103
  #
103
- # @param cadence [Symbol, Stigg::Models::V1Beta::Customers::AssignmentUpsertParams::Assignment::Cadence] Usage-reset cadence (required on create). Currently only `MONTH` is supported
104
+ # @param cadence [String] Usage-reset cadence (required on create) as an ISO-8601 single-unit duration, e.
104
105
  #
105
106
  # @param currency_id [String] Currency refId this assignment grants (credit budgets). Mutually exclusive with
106
107
  #
@@ -111,18 +112,6 @@ module Stigg
111
112
  # @param scope_entity_ids [Array<String>]
112
113
  #
113
114
  # @param usage_limit [Float, nil] Maximum usage allowed within one cadence window (required on create)
114
-
115
- # Usage-reset cadence (required on create). Currently only `MONTH` is supported
116
- #
117
- # @see Stigg::Models::V1Beta::Customers::AssignmentUpsertParams::Assignment#cadence
118
- module Cadence
119
- extend Stigg::Internal::Type::Enum
120
-
121
- MONTH = :MONTH
122
-
123
- # @!method self.values
124
- # @return [Array<Symbol>]
125
- end
126
115
  end
127
116
  end
128
117
  end
@@ -25,10 +25,11 @@ module Stigg
25
25
  required :id, String
26
26
 
27
27
  # @!attribute cadence
28
- # Usage-reset cadence. Currently only `MONTH` is supported
28
+ # Usage-reset cadence as an ISO-8601 single-unit duration, e.g. `P1M`, `P30D`,
29
+ # `PT1M`.
29
30
  #
30
- # @return [Symbol, Stigg::Models::V1Beta::Customers::AssignmentUpsertResponse::Data::Cadence]
31
- required :cadence, enum: -> { Stigg::Models::V1Beta::Customers::AssignmentUpsertResponse::Data::Cadence }
31
+ # @return [String]
32
+ required :cadence, String
32
33
 
33
34
  # @!attribute created_at
34
35
  # Timestamp of when the record was created
@@ -92,7 +93,7 @@ module Stigg
92
93
  #
93
94
  # @param id [String] Synthetic UUID identifier — also the cursor anchor for paginated lists
94
95
  #
95
- # @param cadence [Symbol, Stigg::Models::V1Beta::Customers::AssignmentUpsertResponse::Data::Cadence] Usage-reset cadence. Currently only `MONTH` is supported
96
+ # @param cadence [String] Usage-reset cadence as an ISO-8601 single-unit duration, e.g. `P1M`, `P30D`, `PT
96
97
  #
97
98
  # @param created_at [Time] Timestamp of when the record was created
98
99
  #
@@ -109,18 +110,6 @@ module Stigg
109
110
  # @param currency_id [String] Currency refId this assignment grants (present for credit capabilities).
110
111
  #
111
112
  # @param feature_id [String] Feature refId this assignment grants (present for feature capabilities).
112
-
113
- # Usage-reset cadence. Currently only `MONTH` is supported
114
- #
115
- # @see Stigg::Models::V1Beta::Customers::AssignmentUpsertResponse::Data#cadence
116
- module Cadence
117
- extend Stigg::Internal::Type::Enum
118
-
119
- MONTH = :MONTH
120
-
121
- # @!method self.values
122
- # @return [Array<Symbol>]
123
- end
124
113
  end
125
114
  end
126
115
  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.25"
4
+ VERSION = "0.1.0.pre.beta.27"
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"
@@ -77,14 +77,9 @@ module Stigg
77
77
  )
78
78
  end
79
79
 
80
- # Usage-reset cadence. Currently only `MONTH` is supported.
81
- sig do
82
- returns(
83
- T.nilable(
84
- Stigg::Models::V1::Events::Beta::CustomerRetrieveGovernanceResponse::Data::Cadence::TaggedSymbol
85
- )
86
- )
87
- end
80
+ # Usage-reset cadence as an ISO-8601 single-unit duration, e.g. `P1M`, `P30D`,
81
+ # `PT1M`; `null` when the node has no usage configuration.
82
+ sig { returns(T.nilable(String)) }
88
83
  attr_accessor :cadence
89
84
 
90
85
  # Usage consumed in the current cadence period (may lag the live counter by a
@@ -150,10 +145,7 @@ module Stigg
150
145
  # access.
151
146
  sig do
152
147
  params(
153
- cadence:
154
- T.nilable(
155
- Stigg::Models::V1::Events::Beta::CustomerRetrieveGovernanceResponse::Data::Cadence::OrSymbol
156
- ),
148
+ cadence: T.nilable(String),
157
149
  current_usage: T.nilable(Float),
158
150
  entity_id: String,
159
151
  entity_type: String,
@@ -168,7 +160,8 @@ module Stigg
168
160
  ).returns(T.attached_class)
169
161
  end
170
162
  def self.new(
171
- # Usage-reset cadence. Currently only `MONTH` is supported.
163
+ # Usage-reset cadence as an ISO-8601 single-unit duration, e.g. `P1M`, `P30D`,
164
+ # `PT1M`; `null` when the node has no usage configuration.
172
165
  cadence:,
173
166
  # Usage consumed in the current cadence period (may lag the live counter by a
174
167
  # short interval).
@@ -205,10 +198,7 @@ module Stigg
205
198
  sig do
206
199
  override.returns(
207
200
  {
208
- cadence:
209
- T.nilable(
210
- Stigg::Models::V1::Events::Beta::CustomerRetrieveGovernanceResponse::Data::Cadence::TaggedSymbol
211
- ),
201
+ cadence: T.nilable(String),
212
202
  current_usage: T.nilable(Float),
213
203
  entity_id: String,
214
204
  entity_type: String,
@@ -225,36 +215,6 @@ module Stigg
225
215
  end
226
216
  def to_hash
227
217
  end
228
-
229
- # Usage-reset cadence. Currently only `MONTH` is supported.
230
- module Cadence
231
- extend Stigg::Internal::Type::Enum
232
-
233
- TaggedSymbol =
234
- T.type_alias do
235
- T.all(
236
- Symbol,
237
- Stigg::Models::V1::Events::Beta::CustomerRetrieveGovernanceResponse::Data::Cadence
238
- )
239
- end
240
- OrSymbol = T.type_alias { T.any(Symbol, String) }
241
-
242
- MONTH =
243
- T.let(
244
- :MONTH,
245
- Stigg::Models::V1::Events::Beta::CustomerRetrieveGovernanceResponse::Data::Cadence::TaggedSymbol
246
- )
247
-
248
- sig do
249
- override.returns(
250
- T::Array[
251
- Stigg::Models::V1::Events::Beta::CustomerRetrieveGovernanceResponse::Data::Cadence::TaggedSymbol
252
- ]
253
- )
254
- end
255
- def self.values
256
- end
257
- end
258
218
  end
259
219
 
260
220
  class Pagination < Stigg::Internal::Type::BaseModel