stigg 0.1.0.pre.beta.26 → 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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/lib/stigg/models/v1/events/data_export/destination_create_params.rb +8 -1
- data/lib/stigg/models/v1/events/data_export/destination_create_response.rb +8 -1
- data/lib/stigg/models/v1/events/data_export/destination_delete_response.rb +8 -1
- data/lib/stigg/models/v1/events/data_export_list_models_params.rb +30 -0
- data/lib/stigg/models/v1/events/data_export_list_models_response.rb +94 -0
- data/lib/stigg/models/v1/events/data_export_mint_scoped_token_params.rb +8 -1
- data/lib/stigg/resources/v1/events/data_export/destinations.rb +3 -1
- data/lib/stigg/resources/v1/events/data_export.rb +34 -1
- data/lib/stigg/version.rb +1 -1
- data/lib/stigg.rb +2 -0
- data/rbi/stigg/models/v1/events/data_export/destination_create_params.rbi +9 -0
- data/rbi/stigg/models/v1/events/data_export/destination_create_response.rbi +9 -0
- data/rbi/stigg/models/v1/events/data_export/destination_delete_response.rbi +9 -0
- data/rbi/stigg/models/v1/events/data_export_list_models_params.rbi +60 -0
- data/rbi/stigg/models/v1/events/data_export_list_models_response.rbi +209 -0
- data/rbi/stigg/models/v1/events/data_export_mint_scoped_token_params.rbi +9 -0
- data/rbi/stigg/resources/v1/events/data_export/destinations.rbi +3 -0
- data/rbi/stigg/resources/v1/events/data_export.rbi +24 -0
- data/sig/stigg/models/v1/events/data_export/destination_create_params.rbs +7 -0
- data/sig/stigg/models/v1/events/data_export/destination_create_response.rbs +7 -0
- data/sig/stigg/models/v1/events/data_export/destination_delete_response.rbs +7 -0
- data/sig/stigg/models/v1/events/data_export_list_models_params.rbs +36 -0
- data/sig/stigg/models/v1/events/data_export_list_models_response.rbs +80 -0
- data/sig/stigg/models/v1/events/data_export_mint_scoped_token_params.rbs +7 -0
- data/sig/stigg/resources/v1/events/data_export/destinations.rbs +1 -0
- data/sig/stigg/resources/v1/events/data_export.rbs +7 -0
- metadata +7 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a0a7c2c6fdc66ead706149e335c2731cc5a3a056707abdff7a32fda9a0b32dae
|
|
4
|
+
data.tar.gz: 33df289e8225553631f314e28586056979c17f2ab7e2d06258914512b2388351
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2c50e93051e65de5887737ae575b463ab017463d00446a2a0bfb73df57eb822292f786a4d830e47486073652578a65bbe6fc84614741a243417205d5ce4afd3c
|
|
7
|
+
data.tar.gz: eee8db03487a4c846f863156dc085e9e97c2f997c60373b435926d31141348551b514706e066481ddb41aabad2f6b30b5b56bb0ae67676614b43fb9889ec6754
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
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
|
+
|
|
3
11
|
## 0.1.0-beta.26 (2026-06-21)
|
|
4
12
|
|
|
5
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)
|
data/README.md
CHANGED
|
@@ -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]
|
|
@@ -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
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
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Stigg
|
|
4
|
+
module Models
|
|
5
|
+
module V1
|
|
6
|
+
module Events
|
|
7
|
+
class DataExportListModelsResponse < Stigg::Internal::Type::BaseModel
|
|
8
|
+
OrHash =
|
|
9
|
+
T.type_alias do
|
|
10
|
+
T.any(
|
|
11
|
+
Stigg::Models::V1::Events::DataExportListModelsResponse,
|
|
12
|
+
Stigg::Internal::AnyHash
|
|
13
|
+
)
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
# Grouped catalog of every data-export model a destination can opt into.
|
|
17
|
+
sig do
|
|
18
|
+
returns(
|
|
19
|
+
Stigg::Models::V1::Events::DataExportListModelsResponse::Data
|
|
20
|
+
)
|
|
21
|
+
end
|
|
22
|
+
attr_reader :data
|
|
23
|
+
|
|
24
|
+
sig do
|
|
25
|
+
params(
|
|
26
|
+
data:
|
|
27
|
+
Stigg::Models::V1::Events::DataExportListModelsResponse::Data::OrHash
|
|
28
|
+
).void
|
|
29
|
+
end
|
|
30
|
+
attr_writer :data
|
|
31
|
+
|
|
32
|
+
# Response object
|
|
33
|
+
sig do
|
|
34
|
+
params(
|
|
35
|
+
data:
|
|
36
|
+
Stigg::Models::V1::Events::DataExportListModelsResponse::Data::OrHash
|
|
37
|
+
).returns(T.attached_class)
|
|
38
|
+
end
|
|
39
|
+
def self.new(
|
|
40
|
+
# Grouped catalog of every data-export model a destination can opt into.
|
|
41
|
+
data:
|
|
42
|
+
)
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
sig do
|
|
46
|
+
override.returns(
|
|
47
|
+
{
|
|
48
|
+
data:
|
|
49
|
+
Stigg::Models::V1::Events::DataExportListModelsResponse::Data
|
|
50
|
+
}
|
|
51
|
+
)
|
|
52
|
+
end
|
|
53
|
+
def to_hash
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
class Data < Stigg::Internal::Type::BaseModel
|
|
57
|
+
OrHash =
|
|
58
|
+
T.type_alias do
|
|
59
|
+
T.any(
|
|
60
|
+
Stigg::Models::V1::Events::DataExportListModelsResponse::Data,
|
|
61
|
+
Stigg::Internal::AnyHash
|
|
62
|
+
)
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# Groups of data-export models, in display order
|
|
66
|
+
sig do
|
|
67
|
+
returns(
|
|
68
|
+
T::Array[
|
|
69
|
+
Stigg::Models::V1::Events::DataExportListModelsResponse::Data::Group
|
|
70
|
+
]
|
|
71
|
+
)
|
|
72
|
+
end
|
|
73
|
+
attr_accessor :groups
|
|
74
|
+
|
|
75
|
+
# Grouped catalog of every data-export model a destination can opt into.
|
|
76
|
+
sig do
|
|
77
|
+
params(
|
|
78
|
+
groups:
|
|
79
|
+
T::Array[
|
|
80
|
+
Stigg::Models::V1::Events::DataExportListModelsResponse::Data::Group::OrHash
|
|
81
|
+
]
|
|
82
|
+
).returns(T.attached_class)
|
|
83
|
+
end
|
|
84
|
+
def self.new(
|
|
85
|
+
# Groups of data-export models, in display order
|
|
86
|
+
groups:
|
|
87
|
+
)
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
sig do
|
|
91
|
+
override.returns(
|
|
92
|
+
{
|
|
93
|
+
groups:
|
|
94
|
+
T::Array[
|
|
95
|
+
Stigg::Models::V1::Events::DataExportListModelsResponse::Data::Group
|
|
96
|
+
]
|
|
97
|
+
}
|
|
98
|
+
)
|
|
99
|
+
end
|
|
100
|
+
def to_hash
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
class Group < Stigg::Internal::Type::BaseModel
|
|
104
|
+
OrHash =
|
|
105
|
+
T.type_alias do
|
|
106
|
+
T.any(
|
|
107
|
+
Stigg::Models::V1::Events::DataExportListModelsResponse::Data::Group,
|
|
108
|
+
Stigg::Internal::AnyHash
|
|
109
|
+
)
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
# Stable group identifier
|
|
113
|
+
sig { returns(String) }
|
|
114
|
+
attr_accessor :id
|
|
115
|
+
|
|
116
|
+
# Customer-facing group label
|
|
117
|
+
sig { returns(String) }
|
|
118
|
+
attr_accessor :display_name
|
|
119
|
+
|
|
120
|
+
# Models in this group
|
|
121
|
+
sig do
|
|
122
|
+
returns(
|
|
123
|
+
T::Array[
|
|
124
|
+
Stigg::Models::V1::Events::DataExportListModelsResponse::Data::Group::Model
|
|
125
|
+
]
|
|
126
|
+
)
|
|
127
|
+
end
|
|
128
|
+
attr_accessor :models
|
|
129
|
+
|
|
130
|
+
# A group of related data-export models, mirroring the public docs taxonomy.
|
|
131
|
+
sig do
|
|
132
|
+
params(
|
|
133
|
+
id: String,
|
|
134
|
+
display_name: String,
|
|
135
|
+
models:
|
|
136
|
+
T::Array[
|
|
137
|
+
Stigg::Models::V1::Events::DataExportListModelsResponse::Data::Group::Model::OrHash
|
|
138
|
+
]
|
|
139
|
+
).returns(T.attached_class)
|
|
140
|
+
end
|
|
141
|
+
def self.new(
|
|
142
|
+
# Stable group identifier
|
|
143
|
+
id:,
|
|
144
|
+
# Customer-facing group label
|
|
145
|
+
display_name:,
|
|
146
|
+
# Models in this group
|
|
147
|
+
models:
|
|
148
|
+
)
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
sig do
|
|
152
|
+
override.returns(
|
|
153
|
+
{
|
|
154
|
+
id: String,
|
|
155
|
+
display_name: String,
|
|
156
|
+
models:
|
|
157
|
+
T::Array[
|
|
158
|
+
Stigg::Models::V1::Events::DataExportListModelsResponse::Data::Group::Model
|
|
159
|
+
]
|
|
160
|
+
}
|
|
161
|
+
)
|
|
162
|
+
end
|
|
163
|
+
def to_hash
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
class Model < Stigg::Internal::Type::BaseModel
|
|
167
|
+
OrHash =
|
|
168
|
+
T.type_alias do
|
|
169
|
+
T.any(
|
|
170
|
+
Stigg::Models::V1::Events::DataExportListModelsResponse::Data::Group::Model,
|
|
171
|
+
Stigg::Internal::AnyHash
|
|
172
|
+
)
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
# Wire identifier — what gets persisted on the destination and registered with the
|
|
176
|
+
# provider
|
|
177
|
+
sig { returns(String) }
|
|
178
|
+
attr_accessor :id
|
|
179
|
+
|
|
180
|
+
# Customer-facing label for the model
|
|
181
|
+
sig { returns(String) }
|
|
182
|
+
attr_accessor :display_name
|
|
183
|
+
|
|
184
|
+
# A single data-export model the customer can opt into.
|
|
185
|
+
sig do
|
|
186
|
+
params(id: String, display_name: String).returns(
|
|
187
|
+
T.attached_class
|
|
188
|
+
)
|
|
189
|
+
end
|
|
190
|
+
def self.new(
|
|
191
|
+
# Wire identifier — what gets persisted on the destination and registered with the
|
|
192
|
+
# provider
|
|
193
|
+
id:,
|
|
194
|
+
# Customer-facing label for the model
|
|
195
|
+
display_name:
|
|
196
|
+
)
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
sig { override.returns({ id: String, display_name: String }) }
|
|
200
|
+
def to_hash
|
|
201
|
+
end
|
|
202
|
+
end
|
|
203
|
+
end
|
|
204
|
+
end
|
|
205
|
+
end
|
|
206
|
+
end
|
|
207
|
+
end
|
|
208
|
+
end
|
|
209
|
+
end
|
|
@@ -27,6 +27,12 @@ module Stigg
|
|
|
27
27
|
sig { params(destination_type: String).void }
|
|
28
28
|
attr_writer :destination_type
|
|
29
29
|
|
|
30
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
31
|
+
attr_reader :enabled_models
|
|
32
|
+
|
|
33
|
+
sig { params(enabled_models: T::Array[String]).void }
|
|
34
|
+
attr_writer :enabled_models
|
|
35
|
+
|
|
30
36
|
sig { returns(T.nilable(String)) }
|
|
31
37
|
attr_reader :x_account_id
|
|
32
38
|
|
|
@@ -43,6 +49,7 @@ module Stigg
|
|
|
43
49
|
params(
|
|
44
50
|
application_origin: String,
|
|
45
51
|
destination_type: String,
|
|
52
|
+
enabled_models: T::Array[String],
|
|
46
53
|
x_account_id: String,
|
|
47
54
|
x_environment_id: String,
|
|
48
55
|
request_options: Stigg::RequestOptions::OrHash
|
|
@@ -53,6 +60,7 @@ module Stigg
|
|
|
53
60
|
application_origin:,
|
|
54
61
|
# Pin the token to a specific warehouse connect flow
|
|
55
62
|
destination_type: nil,
|
|
63
|
+
enabled_models: nil,
|
|
56
64
|
x_account_id: nil,
|
|
57
65
|
x_environment_id: nil,
|
|
58
66
|
request_options: {}
|
|
@@ -64,6 +72,7 @@ module Stigg
|
|
|
64
72
|
{
|
|
65
73
|
application_origin: String,
|
|
66
74
|
destination_type: String,
|
|
75
|
+
enabled_models: T::Array[String],
|
|
67
76
|
x_account_id: String,
|
|
68
77
|
x_environment_id: String,
|
|
69
78
|
request_options: Stigg::RequestOptions
|
|
@@ -13,6 +13,7 @@ module Stigg
|
|
|
13
13
|
params(
|
|
14
14
|
destination_id: String,
|
|
15
15
|
destination_type: String,
|
|
16
|
+
enabled_models: T::Array[String],
|
|
16
17
|
x_account_id: String,
|
|
17
18
|
x_environment_id: String,
|
|
18
19
|
request_options: Stigg::RequestOptions::OrHash
|
|
@@ -25,6 +26,8 @@ module Stigg
|
|
|
25
26
|
destination_id:,
|
|
26
27
|
# Body param: The destination type (e.g. snowflake, bigquery)
|
|
27
28
|
destination_type:,
|
|
29
|
+
# Body param
|
|
30
|
+
enabled_models: nil,
|
|
28
31
|
# Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
29
32
|
# token); falls back to the user's first membership. Ignored for API-key auth.
|
|
30
33
|
x_account_id: nil,
|
|
@@ -10,12 +10,34 @@ module Stigg
|
|
|
10
10
|
end
|
|
11
11
|
attr_reader :destinations
|
|
12
12
|
|
|
13
|
+
# List the catalog of data-export models the customer can opt into when connecting
|
|
14
|
+
# a destination.
|
|
15
|
+
sig do
|
|
16
|
+
params(
|
|
17
|
+
x_account_id: String,
|
|
18
|
+
x_environment_id: String,
|
|
19
|
+
request_options: Stigg::RequestOptions::OrHash
|
|
20
|
+
).returns(Stigg::Models::V1::Events::DataExportListModelsResponse)
|
|
21
|
+
end
|
|
22
|
+
def list_models(
|
|
23
|
+
# Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
24
|
+
# back to the user's first membership. Ignored for API-key auth.
|
|
25
|
+
x_account_id: nil,
|
|
26
|
+
# Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
27
|
+
# environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
28
|
+
# key).
|
|
29
|
+
x_environment_id: nil,
|
|
30
|
+
request_options: {}
|
|
31
|
+
)
|
|
32
|
+
end
|
|
33
|
+
|
|
13
34
|
# Mint a scoped JWT for the FE embedded SDK. Lazy-creates the DATA_EXPORT
|
|
14
35
|
# integration if needed.
|
|
15
36
|
sig do
|
|
16
37
|
params(
|
|
17
38
|
application_origin: String,
|
|
18
39
|
destination_type: String,
|
|
40
|
+
enabled_models: T::Array[String],
|
|
19
41
|
x_account_id: String,
|
|
20
42
|
x_environment_id: String,
|
|
21
43
|
request_options: Stigg::RequestOptions::OrHash
|
|
@@ -28,6 +50,8 @@ module Stigg
|
|
|
28
50
|
application_origin:,
|
|
29
51
|
# Body param: Pin the token to a specific warehouse connect flow
|
|
30
52
|
destination_type: nil,
|
|
53
|
+
# Body param
|
|
54
|
+
enabled_models: nil,
|
|
31
55
|
# Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
32
56
|
# token); falls back to the user's first membership. Ignored for API-key auth.
|
|
33
57
|
x_account_id: nil,
|
|
@@ -7,6 +7,7 @@ module Stigg
|
|
|
7
7
|
{
|
|
8
8
|
destination_id: String,
|
|
9
9
|
destination_type: String,
|
|
10
|
+
enabled_models: ::Array[String],
|
|
10
11
|
x_account_id: String,
|
|
11
12
|
x_environment_id: String
|
|
12
13
|
}
|
|
@@ -20,6 +21,10 @@ module Stigg
|
|
|
20
21
|
|
|
21
22
|
attr_accessor destination_type: String
|
|
22
23
|
|
|
24
|
+
attr_reader enabled_models: ::Array[String]?
|
|
25
|
+
|
|
26
|
+
def enabled_models=: (::Array[String]) -> ::Array[String]
|
|
27
|
+
|
|
23
28
|
attr_reader x_account_id: String?
|
|
24
29
|
|
|
25
30
|
def x_account_id=: (String) -> String
|
|
@@ -31,6 +36,7 @@ module Stigg
|
|
|
31
36
|
def initialize: (
|
|
32
37
|
destination_id: String,
|
|
33
38
|
destination_type: String,
|
|
39
|
+
?enabled_models: ::Array[String],
|
|
34
40
|
?x_account_id: String,
|
|
35
41
|
?x_environment_id: String,
|
|
36
42
|
?request_options: Stigg::request_opts
|
|
@@ -39,6 +45,7 @@ module Stigg
|
|
|
39
45
|
def to_hash: -> {
|
|
40
46
|
destination_id: String,
|
|
41
47
|
destination_type: String,
|
|
48
|
+
enabled_models: ::Array[String],
|
|
42
49
|
x_account_id: String,
|
|
43
50
|
x_environment_id: String,
|
|
44
51
|
request_options: Stigg::RequestOptions
|
|
@@ -41,6 +41,7 @@ module Stigg
|
|
|
41
41
|
destination_id: String,
|
|
42
42
|
type: String,
|
|
43
43
|
connection_status: String,
|
|
44
|
+
enabled_models: ::Array[String],
|
|
44
45
|
last_sync_status: Stigg::Models::V1::Events::DataExport::DestinationCreateResponse::Data::Destination::LastSyncStatus
|
|
45
46
|
}
|
|
46
47
|
|
|
@@ -55,6 +56,10 @@ module Stigg
|
|
|
55
56
|
|
|
56
57
|
def connection_status=: (String) -> String
|
|
57
58
|
|
|
59
|
+
attr_reader enabled_models: ::Array[String]?
|
|
60
|
+
|
|
61
|
+
def enabled_models=: (::Array[String]) -> ::Array[String]
|
|
62
|
+
|
|
58
63
|
attr_reader last_sync_status: Stigg::Models::V1::Events::DataExport::DestinationCreateResponse::Data::Destination::LastSyncStatus?
|
|
59
64
|
|
|
60
65
|
def last_sync_status=: (
|
|
@@ -66,6 +71,7 @@ module Stigg
|
|
|
66
71
|
destination_id: String,
|
|
67
72
|
type: String,
|
|
68
73
|
?connection_status: String,
|
|
74
|
+
?enabled_models: ::Array[String],
|
|
69
75
|
?last_sync_status: Stigg::Models::V1::Events::DataExport::DestinationCreateResponse::Data::Destination::LastSyncStatus
|
|
70
76
|
) -> void
|
|
71
77
|
|
|
@@ -74,6 +80,7 @@ module Stigg
|
|
|
74
80
|
destination_id: String,
|
|
75
81
|
type: String,
|
|
76
82
|
connection_status: String,
|
|
83
|
+
enabled_models: ::Array[String],
|
|
77
84
|
last_sync_status: Stigg::Models::V1::Events::DataExport::DestinationCreateResponse::Data::Destination::LastSyncStatus
|
|
78
85
|
}
|
|
79
86
|
|
|
@@ -41,6 +41,7 @@ module Stigg
|
|
|
41
41
|
destination_id: String,
|
|
42
42
|
type: String,
|
|
43
43
|
connection_status: String,
|
|
44
|
+
enabled_models: ::Array[String],
|
|
44
45
|
last_sync_status: Stigg::Models::V1::Events::DataExport::DestinationDeleteResponse::Data::Destination::LastSyncStatus
|
|
45
46
|
}
|
|
46
47
|
|
|
@@ -55,6 +56,10 @@ module Stigg
|
|
|
55
56
|
|
|
56
57
|
def connection_status=: (String) -> String
|
|
57
58
|
|
|
59
|
+
attr_reader enabled_models: ::Array[String]?
|
|
60
|
+
|
|
61
|
+
def enabled_models=: (::Array[String]) -> ::Array[String]
|
|
62
|
+
|
|
58
63
|
attr_reader last_sync_status: Stigg::Models::V1::Events::DataExport::DestinationDeleteResponse::Data::Destination::LastSyncStatus?
|
|
59
64
|
|
|
60
65
|
def last_sync_status=: (
|
|
@@ -66,6 +71,7 @@ module Stigg
|
|
|
66
71
|
destination_id: String,
|
|
67
72
|
type: String,
|
|
68
73
|
?connection_status: String,
|
|
74
|
+
?enabled_models: ::Array[String],
|
|
69
75
|
?last_sync_status: Stigg::Models::V1::Events::DataExport::DestinationDeleteResponse::Data::Destination::LastSyncStatus
|
|
70
76
|
) -> void
|
|
71
77
|
|
|
@@ -74,6 +80,7 @@ module Stigg
|
|
|
74
80
|
destination_id: String,
|
|
75
81
|
type: String,
|
|
76
82
|
connection_status: String,
|
|
83
|
+
enabled_models: ::Array[String],
|
|
77
84
|
last_sync_status: Stigg::Models::V1::Events::DataExport::DestinationDeleteResponse::Data::Destination::LastSyncStatus
|
|
78
85
|
}
|
|
79
86
|
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
module Stigg
|
|
2
|
+
module Models
|
|
3
|
+
module V1
|
|
4
|
+
module Events
|
|
5
|
+
type data_export_list_models_params =
|
|
6
|
+
{ x_account_id: String, x_environment_id: String }
|
|
7
|
+
& Stigg::Internal::Type::request_parameters
|
|
8
|
+
|
|
9
|
+
class DataExportListModelsParams < Stigg::Internal::Type::BaseModel
|
|
10
|
+
extend Stigg::Internal::Type::RequestParameters::Converter
|
|
11
|
+
include Stigg::Internal::Type::RequestParameters
|
|
12
|
+
|
|
13
|
+
attr_reader x_account_id: String?
|
|
14
|
+
|
|
15
|
+
def x_account_id=: (String) -> String
|
|
16
|
+
|
|
17
|
+
attr_reader x_environment_id: String?
|
|
18
|
+
|
|
19
|
+
def x_environment_id=: (String) -> String
|
|
20
|
+
|
|
21
|
+
def initialize: (
|
|
22
|
+
?x_account_id: String,
|
|
23
|
+
?x_environment_id: String,
|
|
24
|
+
?request_options: Stigg::request_opts
|
|
25
|
+
) -> void
|
|
26
|
+
|
|
27
|
+
def to_hash: -> {
|
|
28
|
+
x_account_id: String,
|
|
29
|
+
x_environment_id: String,
|
|
30
|
+
request_options: Stigg::RequestOptions
|
|
31
|
+
}
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
module Stigg
|
|
2
|
+
module Models
|
|
3
|
+
module V1
|
|
4
|
+
module Events
|
|
5
|
+
type data_export_list_models_response =
|
|
6
|
+
{
|
|
7
|
+
data: Stigg::Models::V1::Events::DataExportListModelsResponse::Data
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
class DataExportListModelsResponse < Stigg::Internal::Type::BaseModel
|
|
11
|
+
attr_accessor data: Stigg::Models::V1::Events::DataExportListModelsResponse::Data
|
|
12
|
+
|
|
13
|
+
def initialize: (
|
|
14
|
+
data: Stigg::Models::V1::Events::DataExportListModelsResponse::Data
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
data: Stigg::Models::V1::Events::DataExportListModelsResponse::Data
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
type data =
|
|
22
|
+
{
|
|
23
|
+
groups: ::Array[Stigg::Models::V1::Events::DataExportListModelsResponse::Data::Group]
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
class Data < Stigg::Internal::Type::BaseModel
|
|
27
|
+
attr_accessor groups: ::Array[Stigg::Models::V1::Events::DataExportListModelsResponse::Data::Group]
|
|
28
|
+
|
|
29
|
+
def initialize: (
|
|
30
|
+
groups: ::Array[Stigg::Models::V1::Events::DataExportListModelsResponse::Data::Group]
|
|
31
|
+
) -> void
|
|
32
|
+
|
|
33
|
+
def to_hash: -> {
|
|
34
|
+
groups: ::Array[Stigg::Models::V1::Events::DataExportListModelsResponse::Data::Group]
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
type group =
|
|
38
|
+
{
|
|
39
|
+
id: String,
|
|
40
|
+
display_name: String,
|
|
41
|
+
models: ::Array[Stigg::Models::V1::Events::DataExportListModelsResponse::Data::Group::Model]
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
class Group < Stigg::Internal::Type::BaseModel
|
|
45
|
+
attr_accessor id: String
|
|
46
|
+
|
|
47
|
+
attr_accessor display_name: String
|
|
48
|
+
|
|
49
|
+
attr_accessor models: ::Array[Stigg::Models::V1::Events::DataExportListModelsResponse::Data::Group::Model]
|
|
50
|
+
|
|
51
|
+
def initialize: (
|
|
52
|
+
id: String,
|
|
53
|
+
display_name: String,
|
|
54
|
+
models: ::Array[Stigg::Models::V1::Events::DataExportListModelsResponse::Data::Group::Model]
|
|
55
|
+
) -> void
|
|
56
|
+
|
|
57
|
+
def to_hash: -> {
|
|
58
|
+
id: String,
|
|
59
|
+
display_name: String,
|
|
60
|
+
models: ::Array[Stigg::Models::V1::Events::DataExportListModelsResponse::Data::Group::Model]
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
type model = { id: String, display_name: String }
|
|
64
|
+
|
|
65
|
+
class Model < Stigg::Internal::Type::BaseModel
|
|
66
|
+
attr_accessor id: String
|
|
67
|
+
|
|
68
|
+
attr_accessor display_name: String
|
|
69
|
+
|
|
70
|
+
def initialize: (id: String, display_name: String) -> void
|
|
71
|
+
|
|
72
|
+
def to_hash: -> { id: String, display_name: String }
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
end
|
|
@@ -6,6 +6,7 @@ module Stigg
|
|
|
6
6
|
{
|
|
7
7
|
application_origin: String,
|
|
8
8
|
destination_type: String,
|
|
9
|
+
enabled_models: ::Array[String],
|
|
9
10
|
x_account_id: String,
|
|
10
11
|
x_environment_id: String
|
|
11
12
|
}
|
|
@@ -21,6 +22,10 @@ module Stigg
|
|
|
21
22
|
|
|
22
23
|
def destination_type=: (String) -> String
|
|
23
24
|
|
|
25
|
+
attr_reader enabled_models: ::Array[String]?
|
|
26
|
+
|
|
27
|
+
def enabled_models=: (::Array[String]) -> ::Array[String]
|
|
28
|
+
|
|
24
29
|
attr_reader x_account_id: String?
|
|
25
30
|
|
|
26
31
|
def x_account_id=: (String) -> String
|
|
@@ -32,6 +37,7 @@ module Stigg
|
|
|
32
37
|
def initialize: (
|
|
33
38
|
application_origin: String,
|
|
34
39
|
?destination_type: String,
|
|
40
|
+
?enabled_models: ::Array[String],
|
|
35
41
|
?x_account_id: String,
|
|
36
42
|
?x_environment_id: String,
|
|
37
43
|
?request_options: Stigg::request_opts
|
|
@@ -40,6 +46,7 @@ module Stigg
|
|
|
40
46
|
def to_hash: -> {
|
|
41
47
|
application_origin: String,
|
|
42
48
|
destination_type: String,
|
|
49
|
+
enabled_models: ::Array[String],
|
|
43
50
|
x_account_id: String,
|
|
44
51
|
x_environment_id: String,
|
|
45
52
|
request_options: Stigg::RequestOptions
|
|
@@ -5,9 +5,16 @@ module Stigg
|
|
|
5
5
|
class DataExport
|
|
6
6
|
attr_reader destinations: Stigg::Resources::V1::Events::DataExport::Destinations
|
|
7
7
|
|
|
8
|
+
def list_models: (
|
|
9
|
+
?x_account_id: String,
|
|
10
|
+
?x_environment_id: String,
|
|
11
|
+
?request_options: Stigg::request_opts
|
|
12
|
+
) -> Stigg::Models::V1::Events::DataExportListModelsResponse
|
|
13
|
+
|
|
8
14
|
def mint_scoped_token: (
|
|
9
15
|
application_origin: String,
|
|
10
16
|
?destination_type: String,
|
|
17
|
+
?enabled_models: ::Array[String],
|
|
11
18
|
?x_account_id: String,
|
|
12
19
|
?x_environment_id: String,
|
|
13
20
|
?request_options: Stigg::request_opts
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: stigg
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.0.pre.beta.
|
|
4
|
+
version: 0.1.0.pre.beta.27
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Stigg
|
|
@@ -157,6 +157,8 @@ files:
|
|
|
157
157
|
- lib/stigg/models/v1/events/data_export/destination_create_response.rb
|
|
158
158
|
- lib/stigg/models/v1/events/data_export/destination_delete_params.rb
|
|
159
159
|
- lib/stigg/models/v1/events/data_export/destination_delete_response.rb
|
|
160
|
+
- lib/stigg/models/v1/events/data_export_list_models_params.rb
|
|
161
|
+
- lib/stigg/models/v1/events/data_export_list_models_response.rb
|
|
160
162
|
- lib/stigg/models/v1/events/data_export_mint_scoped_token_params.rb
|
|
161
163
|
- lib/stigg/models/v1/events/data_export_mint_scoped_token_response.rb
|
|
162
164
|
- lib/stigg/models/v1/events/data_export_trigger_sync_params.rb
|
|
@@ -389,6 +391,8 @@ files:
|
|
|
389
391
|
- rbi/stigg/models/v1/events/data_export/destination_create_response.rbi
|
|
390
392
|
- rbi/stigg/models/v1/events/data_export/destination_delete_params.rbi
|
|
391
393
|
- rbi/stigg/models/v1/events/data_export/destination_delete_response.rbi
|
|
394
|
+
- rbi/stigg/models/v1/events/data_export_list_models_params.rbi
|
|
395
|
+
- rbi/stigg/models/v1/events/data_export_list_models_response.rbi
|
|
392
396
|
- rbi/stigg/models/v1/events/data_export_mint_scoped_token_params.rbi
|
|
393
397
|
- rbi/stigg/models/v1/events/data_export_mint_scoped_token_response.rbi
|
|
394
398
|
- rbi/stigg/models/v1/events/data_export_trigger_sync_params.rbi
|
|
@@ -620,6 +624,8 @@ files:
|
|
|
620
624
|
- sig/stigg/models/v1/events/data_export/destination_create_response.rbs
|
|
621
625
|
- sig/stigg/models/v1/events/data_export/destination_delete_params.rbs
|
|
622
626
|
- sig/stigg/models/v1/events/data_export/destination_delete_response.rbs
|
|
627
|
+
- sig/stigg/models/v1/events/data_export_list_models_params.rbs
|
|
628
|
+
- sig/stigg/models/v1/events/data_export_list_models_response.rbs
|
|
623
629
|
- sig/stigg/models/v1/events/data_export_mint_scoped_token_params.rbs
|
|
624
630
|
- sig/stigg/models/v1/events/data_export_mint_scoped_token_response.rbs
|
|
625
631
|
- sig/stigg/models/v1/events/data_export_trigger_sync_params.rbs
|