stigg 0.1.0.pre.beta.15 → 0.1.0.pre.beta.17
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 +21 -0
- data/README.md +1 -1
- data/lib/stigg/models/v1/events/data_export/destination_create_params.rb +36 -0
- data/lib/stigg/models/v1/events/data_export/destination_create_response.rb +69 -0
- data/lib/stigg/models/v1/events/data_export/destination_delete_params.rb +26 -0
- data/lib/stigg/models/v1/events/data_export/destination_delete_response.rb +69 -0
- data/lib/stigg/models/v1/events/data_export_mint_scoped_token_params.rb +34 -0
- data/lib/stigg/models/v1/events/data_export_mint_scoped_token_response.rb +55 -0
- data/lib/stigg/models/v1/events/data_export_trigger_sync_params.rb +26 -0
- data/lib/stigg/models/v1/events/data_export_trigger_sync_response.rb +75 -0
- data/lib/stigg/resources/v1/events/data_export/destinations.rb +66 -0
- data/lib/stigg/resources/v1/events/data_export.rb +70 -0
- data/lib/stigg/resources/v1/events.rb +4 -0
- data/lib/stigg/version.rb +1 -1
- data/lib/stigg.rb +10 -0
- data/rbi/stigg/models/v1/events/data_export/destination_create_params.rbi +60 -0
- data/rbi/stigg/models/v1/events/data_export/destination_create_response.rbi +161 -0
- data/rbi/stigg/models/v1/events/data_export/destination_delete_params.rbi +47 -0
- data/rbi/stigg/models/v1/events/data_export/destination_delete_response.rbi +161 -0
- data/rbi/stigg/models/v1/events/data_export_mint_scoped_token_params.rbi +61 -0
- data/rbi/stigg/models/v1/events/data_export_mint_scoped_token_response.rbi +111 -0
- data/rbi/stigg/models/v1/events/data_export_trigger_sync_params.rbi +50 -0
- data/rbi/stigg/models/v1/events/data_export_trigger_sync_response.rbi +173 -0
- data/rbi/stigg/resources/v1/events/data_export/destinations.rbi +55 -0
- data/rbi/stigg/resources/v1/events/data_export.rbi +56 -0
- data/rbi/stigg/resources/v1/events.rbi +3 -0
- data/sig/stigg/models/v1/events/data_export/destination_create_params.rbs +34 -0
- data/sig/stigg/models/v1/events/data_export/destination_create_response.rbs +66 -0
- data/sig/stigg/models/v1/events/data_export/destination_delete_params.rbs +30 -0
- data/sig/stigg/models/v1/events/data_export/destination_delete_response.rbs +66 -0
- data/sig/stigg/models/v1/events/data_export_mint_scoped_token_params.rbs +34 -0
- data/sig/stigg/models/v1/events/data_export_mint_scoped_token_response.rbs +51 -0
- data/sig/stigg/models/v1/events/data_export_trigger_sync_params.rbs +29 -0
- data/sig/stigg/models/v1/events/data_export_trigger_sync_response.rbs +77 -0
- data/sig/stigg/resources/v1/events/data_export/destinations.rbs +24 -0
- data/sig/stigg/resources/v1/events/data_export.rbs +24 -0
- data/sig/stigg/resources/v1/events.rbs +2 -0
- metadata +32 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d84c23f7e07a328a24012ae20f916e439e15d421ff7d162d3cfcf09bb38a2e9c
|
|
4
|
+
data.tar.gz: d2b2ca1cc1aa807d10456fa49f0d739f22b459df8dbc7fdc768c683bdb892513
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 84c6344d2a78abec536ebda3572201f9a031682ca63ee95db9467e5e229f1023f1652f20b776a0fd64a4e27a34d4f17763c01f1e768c6eeb9cb7eabb8e099cb8
|
|
7
|
+
data.tar.gz: 1d8271a02feee08875ef796f49479360e7c0e8e131818e484f60aacf19f12de4ee6978b90319abef64e1adc5fbffd8541b4d178ed035e903eb4fc9a91c2c649a
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0-beta.17 (2026-06-04)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.1.0-beta.16...v0.1.0-beta.17](https://github.com/stiggio/stigg-ruby/compare/v0.1.0-beta.16...v0.1.0-beta.17)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** add data_export resource with token/sync/destinations to events ([141a9f9](https://github.com/stiggio/stigg-ruby/commit/141a9f9fe9f94198bab6cd52dec16ddae3bfb802))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Chores
|
|
13
|
+
|
|
14
|
+
* **api:** move beta resources from v1_beta to v1/events/beta namespace ([64ca884](https://github.com/stiggio/stigg-ruby/commit/64ca88458119a7f2c3c16f91ee4cc6bf39f920ca))
|
|
15
|
+
|
|
16
|
+
## 0.1.0-beta.16 (2026-06-03)
|
|
17
|
+
|
|
18
|
+
Full Changelog: [v0.1.0-beta.15...v0.1.0-beta.16](https://github.com/stiggio/stigg-ruby/compare/v0.1.0-beta.15...v0.1.0-beta.16)
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **api:** manual updates ([8cd4840](https://github.com/stiggio/stigg-ruby/commit/8cd48402b95066060e82e72ea0d265b2e81e27d4))
|
|
23
|
+
|
|
3
24
|
## 0.1.0-beta.15 (2026-06-02)
|
|
4
25
|
|
|
5
26
|
Full Changelog: [v0.1.0-beta.14...v0.1.0-beta.15](https://github.com/stiggio/stigg-ruby/compare/v0.1.0-beta.14...v0.1.0-beta.15)
|
data/README.md
CHANGED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Stigg
|
|
4
|
+
module Models
|
|
5
|
+
module V1
|
|
6
|
+
module Events
|
|
7
|
+
module DataExport
|
|
8
|
+
# @see Stigg::Resources::V1::Events::DataExport::Destinations#create
|
|
9
|
+
class DestinationCreateParams < Stigg::Internal::Type::BaseModel
|
|
10
|
+
extend Stigg::Internal::Type::RequestParameters::Converter
|
|
11
|
+
include Stigg::Internal::Type::RequestParameters
|
|
12
|
+
|
|
13
|
+
# @!attribute destination_id
|
|
14
|
+
# The provider destination ID returned by the embedded SDK on connect
|
|
15
|
+
#
|
|
16
|
+
# @return [String]
|
|
17
|
+
required :destination_id, String, api_name: :destinationId
|
|
18
|
+
|
|
19
|
+
# @!attribute destination_type
|
|
20
|
+
# The destination type (e.g. snowflake, bigquery)
|
|
21
|
+
#
|
|
22
|
+
# @return [String]
|
|
23
|
+
required :destination_type, String, api_name: :destinationType
|
|
24
|
+
|
|
25
|
+
# @!method initialize(destination_id:, destination_type:, request_options: {})
|
|
26
|
+
# @param destination_id [String] The provider destination ID returned by the embedded SDK on connect
|
|
27
|
+
#
|
|
28
|
+
# @param destination_type [String] The destination type (e.g. snowflake, bigquery)
|
|
29
|
+
#
|
|
30
|
+
# @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}]
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Stigg
|
|
4
|
+
module Models
|
|
5
|
+
module V1
|
|
6
|
+
module Events
|
|
7
|
+
module DataExport
|
|
8
|
+
# @see Stigg::Resources::V1::Events::DataExport::Destinations#create
|
|
9
|
+
class DestinationCreateResponse < Stigg::Internal::Type::BaseModel
|
|
10
|
+
# @!attribute data
|
|
11
|
+
# Current destinations under the DATA_EXPORT integration.
|
|
12
|
+
#
|
|
13
|
+
# @return [Stigg::Models::V1::Events::DataExport::DestinationCreateResponse::Data]
|
|
14
|
+
required :data, -> { Stigg::Models::V1::Events::DataExport::DestinationCreateResponse::Data }
|
|
15
|
+
|
|
16
|
+
# @!method initialize(data:)
|
|
17
|
+
# Response object
|
|
18
|
+
#
|
|
19
|
+
# @param data [Stigg::Models::V1::Events::DataExport::DestinationCreateResponse::Data] Current destinations under the DATA_EXPORT integration.
|
|
20
|
+
|
|
21
|
+
# @see Stigg::Models::V1::Events::DataExport::DestinationCreateResponse#data
|
|
22
|
+
class Data < Stigg::Internal::Type::BaseModel
|
|
23
|
+
# @!attribute destinations
|
|
24
|
+
# Current destinations under the DATA_EXPORT integration
|
|
25
|
+
#
|
|
26
|
+
# @return [Array<Stigg::Models::V1::Events::DataExport::DestinationCreateResponse::Data::Destination>]
|
|
27
|
+
required :destinations,
|
|
28
|
+
-> { Stigg::Internal::Type::ArrayOf[Stigg::Models::V1::Events::DataExport::DestinationCreateResponse::Data::Destination] }
|
|
29
|
+
|
|
30
|
+
# @!method initialize(destinations:)
|
|
31
|
+
# Current destinations under the DATA_EXPORT integration.
|
|
32
|
+
#
|
|
33
|
+
# @param destinations [Array<Stigg::Models::V1::Events::DataExport::DestinationCreateResponse::Data::Destination>] Current destinations under the DATA_EXPORT integration
|
|
34
|
+
|
|
35
|
+
class Destination < Stigg::Internal::Type::BaseModel
|
|
36
|
+
# @!attribute connected_at
|
|
37
|
+
# ISO8601 timestamp of when the destination was connected
|
|
38
|
+
#
|
|
39
|
+
# @return [String]
|
|
40
|
+
required :connected_at, String, api_name: :connectedAt
|
|
41
|
+
|
|
42
|
+
# @!attribute destination_id
|
|
43
|
+
# Provider destination ID
|
|
44
|
+
#
|
|
45
|
+
# @return [String]
|
|
46
|
+
required :destination_id, String, api_name: :destinationId
|
|
47
|
+
|
|
48
|
+
# @!attribute type
|
|
49
|
+
# Destination type (snowflake, bigquery, ...)
|
|
50
|
+
#
|
|
51
|
+
# @return [String]
|
|
52
|
+
required :type, String
|
|
53
|
+
|
|
54
|
+
# @!method initialize(connected_at:, destination_id:, type:)
|
|
55
|
+
# A single destination entry under the DATA_EXPORT integration.
|
|
56
|
+
#
|
|
57
|
+
# @param connected_at [String] ISO8601 timestamp of when the destination was connected
|
|
58
|
+
#
|
|
59
|
+
# @param destination_id [String] Provider destination ID
|
|
60
|
+
#
|
|
61
|
+
# @param type [String] Destination type (snowflake, bigquery, ...)
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Stigg
|
|
4
|
+
module Models
|
|
5
|
+
module V1
|
|
6
|
+
module Events
|
|
7
|
+
module DataExport
|
|
8
|
+
# @see Stigg::Resources::V1::Events::DataExport::Destinations#delete
|
|
9
|
+
class DestinationDeleteParams < Stigg::Internal::Type::BaseModel
|
|
10
|
+
extend Stigg::Internal::Type::RequestParameters::Converter
|
|
11
|
+
include Stigg::Internal::Type::RequestParameters
|
|
12
|
+
|
|
13
|
+
# @!attribute destination_id
|
|
14
|
+
#
|
|
15
|
+
# @return [String]
|
|
16
|
+
required :destination_id, String
|
|
17
|
+
|
|
18
|
+
# @!method initialize(destination_id:, request_options: {})
|
|
19
|
+
# @param destination_id [String]
|
|
20
|
+
# @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}]
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Stigg
|
|
4
|
+
module Models
|
|
5
|
+
module V1
|
|
6
|
+
module Events
|
|
7
|
+
module DataExport
|
|
8
|
+
# @see Stigg::Resources::V1::Events::DataExport::Destinations#delete
|
|
9
|
+
class DestinationDeleteResponse < Stigg::Internal::Type::BaseModel
|
|
10
|
+
# @!attribute data
|
|
11
|
+
# Current destinations under the DATA_EXPORT integration.
|
|
12
|
+
#
|
|
13
|
+
# @return [Stigg::Models::V1::Events::DataExport::DestinationDeleteResponse::Data]
|
|
14
|
+
required :data, -> { Stigg::Models::V1::Events::DataExport::DestinationDeleteResponse::Data }
|
|
15
|
+
|
|
16
|
+
# @!method initialize(data:)
|
|
17
|
+
# Response object
|
|
18
|
+
#
|
|
19
|
+
# @param data [Stigg::Models::V1::Events::DataExport::DestinationDeleteResponse::Data] Current destinations under the DATA_EXPORT integration.
|
|
20
|
+
|
|
21
|
+
# @see Stigg::Models::V1::Events::DataExport::DestinationDeleteResponse#data
|
|
22
|
+
class Data < Stigg::Internal::Type::BaseModel
|
|
23
|
+
# @!attribute destinations
|
|
24
|
+
# Current destinations under the DATA_EXPORT integration
|
|
25
|
+
#
|
|
26
|
+
# @return [Array<Stigg::Models::V1::Events::DataExport::DestinationDeleteResponse::Data::Destination>]
|
|
27
|
+
required :destinations,
|
|
28
|
+
-> { Stigg::Internal::Type::ArrayOf[Stigg::Models::V1::Events::DataExport::DestinationDeleteResponse::Data::Destination] }
|
|
29
|
+
|
|
30
|
+
# @!method initialize(destinations:)
|
|
31
|
+
# Current destinations under the DATA_EXPORT integration.
|
|
32
|
+
#
|
|
33
|
+
# @param destinations [Array<Stigg::Models::V1::Events::DataExport::DestinationDeleteResponse::Data::Destination>] Current destinations under the DATA_EXPORT integration
|
|
34
|
+
|
|
35
|
+
class Destination < Stigg::Internal::Type::BaseModel
|
|
36
|
+
# @!attribute connected_at
|
|
37
|
+
# ISO8601 timestamp of when the destination was connected
|
|
38
|
+
#
|
|
39
|
+
# @return [String]
|
|
40
|
+
required :connected_at, String, api_name: :connectedAt
|
|
41
|
+
|
|
42
|
+
# @!attribute destination_id
|
|
43
|
+
# Provider destination ID
|
|
44
|
+
#
|
|
45
|
+
# @return [String]
|
|
46
|
+
required :destination_id, String, api_name: :destinationId
|
|
47
|
+
|
|
48
|
+
# @!attribute type
|
|
49
|
+
# Destination type (snowflake, bigquery, ...)
|
|
50
|
+
#
|
|
51
|
+
# @return [String]
|
|
52
|
+
required :type, String
|
|
53
|
+
|
|
54
|
+
# @!method initialize(connected_at:, destination_id:, type:)
|
|
55
|
+
# A single destination entry under the DATA_EXPORT integration.
|
|
56
|
+
#
|
|
57
|
+
# @param connected_at [String] ISO8601 timestamp of when the destination was connected
|
|
58
|
+
#
|
|
59
|
+
# @param destination_id [String] Provider destination ID
|
|
60
|
+
#
|
|
61
|
+
# @param type [String] Destination type (snowflake, bigquery, ...)
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
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#mint_scoped_token
|
|
8
|
+
class DataExportMintScopedTokenParams < Stigg::Internal::Type::BaseModel
|
|
9
|
+
extend Stigg::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Stigg::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
# @!attribute application_origin
|
|
13
|
+
# FE origin the resulting JWT is bound to (provider-side anti-fraud)
|
|
14
|
+
#
|
|
15
|
+
# @return [String]
|
|
16
|
+
required :application_origin, String, api_name: :applicationOrigin
|
|
17
|
+
|
|
18
|
+
# @!attribute destination_type
|
|
19
|
+
# Pin the token to a specific warehouse connect flow
|
|
20
|
+
#
|
|
21
|
+
# @return [String, nil]
|
|
22
|
+
optional :destination_type, String, api_name: :destinationType
|
|
23
|
+
|
|
24
|
+
# @!method initialize(application_origin:, destination_type: nil, request_options: {})
|
|
25
|
+
# @param application_origin [String] FE origin the resulting JWT is bound to (provider-side anti-fraud)
|
|
26
|
+
#
|
|
27
|
+
# @param destination_type [String] Pin the token to a specific warehouse connect flow
|
|
28
|
+
#
|
|
29
|
+
# @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}]
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,55 @@
|
|
|
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#mint_scoped_token
|
|
8
|
+
class DataExportMintScopedTokenResponse < Stigg::Internal::Type::BaseModel
|
|
9
|
+
# @!attribute data
|
|
10
|
+
# Scoped token + expiry + provider-specific metadata for the FE SDK.
|
|
11
|
+
#
|
|
12
|
+
# @return [Stigg::Models::V1::Events::DataExportMintScopedTokenResponse::Data]
|
|
13
|
+
required :data, -> { Stigg::Models::V1::Events::DataExportMintScopedTokenResponse::Data }
|
|
14
|
+
|
|
15
|
+
# @!method initialize(data:)
|
|
16
|
+
# Response object
|
|
17
|
+
#
|
|
18
|
+
# @param data [Stigg::Models::V1::Events::DataExportMintScopedTokenResponse::Data] Scoped token + expiry + provider-specific metadata for the FE SDK.
|
|
19
|
+
|
|
20
|
+
# @see Stigg::Models::V1::Events::DataExportMintScopedTokenResponse#data
|
|
21
|
+
class Data < Stigg::Internal::Type::BaseModel
|
|
22
|
+
# @!attribute token
|
|
23
|
+
# Provider scoped JWT
|
|
24
|
+
#
|
|
25
|
+
# @return [String]
|
|
26
|
+
required :token, String
|
|
27
|
+
|
|
28
|
+
# @!attribute expires_at
|
|
29
|
+
# ISO8601 token expiry
|
|
30
|
+
#
|
|
31
|
+
# @return [String]
|
|
32
|
+
required :expires_at, String, api_name: :expiresAt
|
|
33
|
+
|
|
34
|
+
# @!attribute provider_metadata
|
|
35
|
+
# Provider-specific extras the FE embedded SDK needs
|
|
36
|
+
#
|
|
37
|
+
# @return [Hash{Symbol=>Object}]
|
|
38
|
+
required :provider_metadata,
|
|
39
|
+
Stigg::Internal::Type::HashOf[Stigg::Internal::Type::Unknown],
|
|
40
|
+
api_name: :providerMetadata
|
|
41
|
+
|
|
42
|
+
# @!method initialize(token:, expires_at:, provider_metadata:)
|
|
43
|
+
# Scoped token + expiry + provider-specific metadata for the FE SDK.
|
|
44
|
+
#
|
|
45
|
+
# @param token [String] Provider scoped JWT
|
|
46
|
+
#
|
|
47
|
+
# @param expires_at [String] ISO8601 token expiry
|
|
48
|
+
#
|
|
49
|
+
# @param provider_metadata [Hash{Symbol=>Object}] Provider-specific extras the FE embedded SDK needs
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
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#trigger_sync
|
|
8
|
+
class DataExportTriggerSyncParams < Stigg::Internal::Type::BaseModel
|
|
9
|
+
extend Stigg::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Stigg::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
# @!attribute destination_id
|
|
13
|
+
# Provider destination ID to sync. Omit to sync all destinations.
|
|
14
|
+
#
|
|
15
|
+
# @return [String, nil]
|
|
16
|
+
optional :destination_id, String, api_name: :destinationId
|
|
17
|
+
|
|
18
|
+
# @!method initialize(destination_id: nil, request_options: {})
|
|
19
|
+
# @param destination_id [String] Provider destination ID to sync. Omit to sync all destinations.
|
|
20
|
+
#
|
|
21
|
+
# @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}]
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,75 @@
|
|
|
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#trigger_sync
|
|
8
|
+
class DataExportTriggerSyncResponse < Stigg::Internal::Type::BaseModel
|
|
9
|
+
# @!attribute data
|
|
10
|
+
# Per-destination trigger results across the batch.
|
|
11
|
+
#
|
|
12
|
+
# @return [Stigg::Models::V1::Events::DataExportTriggerSyncResponse::Data]
|
|
13
|
+
required :data, -> { Stigg::Models::V1::Events::DataExportTriggerSyncResponse::Data }
|
|
14
|
+
|
|
15
|
+
# @!method initialize(data:)
|
|
16
|
+
# Response object
|
|
17
|
+
#
|
|
18
|
+
# @param data [Stigg::Models::V1::Events::DataExportTriggerSyncResponse::Data] Per-destination trigger results across the batch.
|
|
19
|
+
|
|
20
|
+
# @see Stigg::Models::V1::Events::DataExportTriggerSyncResponse#data
|
|
21
|
+
class Data < Stigg::Internal::Type::BaseModel
|
|
22
|
+
# @!attribute results
|
|
23
|
+
# Per-destination trigger results
|
|
24
|
+
#
|
|
25
|
+
# @return [Array<Stigg::Models::V1::Events::DataExportTriggerSyncResponse::Data::Result>]
|
|
26
|
+
required :results,
|
|
27
|
+
-> { Stigg::Internal::Type::ArrayOf[Stigg::Models::V1::Events::DataExportTriggerSyncResponse::Data::Result] }
|
|
28
|
+
|
|
29
|
+
# @!method initialize(results:)
|
|
30
|
+
# Per-destination trigger results across the batch.
|
|
31
|
+
#
|
|
32
|
+
# @param results [Array<Stigg::Models::V1::Events::DataExportTriggerSyncResponse::Data::Result>] Per-destination trigger results
|
|
33
|
+
|
|
34
|
+
class Result < Stigg::Internal::Type::BaseModel
|
|
35
|
+
# @!attribute destination_id
|
|
36
|
+
# Provider destination ID
|
|
37
|
+
#
|
|
38
|
+
# @return [String]
|
|
39
|
+
required :destination_id, String, api_name: :destinationId
|
|
40
|
+
|
|
41
|
+
# @!attribute triggered
|
|
42
|
+
# True if a transfer was kicked
|
|
43
|
+
#
|
|
44
|
+
# @return [Boolean]
|
|
45
|
+
required :triggered, Stigg::Internal::Type::Boolean
|
|
46
|
+
|
|
47
|
+
# @!attribute error_message
|
|
48
|
+
# Error message if triggered=false on a hard failure
|
|
49
|
+
#
|
|
50
|
+
# @return [String, nil]
|
|
51
|
+
optional :error_message, String, api_name: :errorMessage
|
|
52
|
+
|
|
53
|
+
# @!attribute transfer_id
|
|
54
|
+
# Provider-side transfer ID
|
|
55
|
+
#
|
|
56
|
+
# @return [String, nil]
|
|
57
|
+
optional :transfer_id, String, api_name: :transferId
|
|
58
|
+
|
|
59
|
+
# @!method initialize(destination_id:, triggered:, error_message: nil, transfer_id: nil)
|
|
60
|
+
# Per-destination trigger results.
|
|
61
|
+
#
|
|
62
|
+
# @param destination_id [String] Provider destination ID
|
|
63
|
+
#
|
|
64
|
+
# @param triggered [Boolean] True if a transfer was kicked
|
|
65
|
+
#
|
|
66
|
+
# @param error_message [String] Error message if triggered=false on a hard failure
|
|
67
|
+
#
|
|
68
|
+
# @param transfer_id [String] Provider-side transfer ID
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Stigg
|
|
4
|
+
module Resources
|
|
5
|
+
class V1
|
|
6
|
+
class Events
|
|
7
|
+
class DataExport
|
|
8
|
+
class Destinations
|
|
9
|
+
# Register a destination on the environment's DATA_EXPORT integration.
|
|
10
|
+
# Lazy-creates the integration row + provider recipient on first call. Idempotent
|
|
11
|
+
# on destinationId.
|
|
12
|
+
#
|
|
13
|
+
# @overload create(destination_id:, destination_type:, request_options: {})
|
|
14
|
+
#
|
|
15
|
+
# @param destination_id [String] The provider destination ID returned by the embedded SDK on connect
|
|
16
|
+
#
|
|
17
|
+
# @param destination_type [String] The destination type (e.g. snowflake, bigquery)
|
|
18
|
+
#
|
|
19
|
+
# @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
20
|
+
#
|
|
21
|
+
# @return [Stigg::Models::V1::Events::DataExport::DestinationCreateResponse]
|
|
22
|
+
#
|
|
23
|
+
# @see Stigg::Models::V1::Events::DataExport::DestinationCreateParams
|
|
24
|
+
def create(params)
|
|
25
|
+
parsed, options = Stigg::V1::Events::DataExport::DestinationCreateParams.dump_request(params)
|
|
26
|
+
@client.request(
|
|
27
|
+
method: :post,
|
|
28
|
+
path: "api/v1/data-export/destinations",
|
|
29
|
+
body: parsed,
|
|
30
|
+
model: Stigg::Models::V1::Events::DataExport::DestinationCreateResponse,
|
|
31
|
+
options: options
|
|
32
|
+
)
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# Remove a destination from the DATA_EXPORT integration metadata. Idempotent.
|
|
36
|
+
#
|
|
37
|
+
# @overload delete(destination_id, request_options: {})
|
|
38
|
+
#
|
|
39
|
+
# @param destination_id [String] Provider destination ID to remove
|
|
40
|
+
#
|
|
41
|
+
# @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
42
|
+
#
|
|
43
|
+
# @return [Stigg::Models::V1::Events::DataExport::DestinationDeleteResponse]
|
|
44
|
+
#
|
|
45
|
+
# @see Stigg::Models::V1::Events::DataExport::DestinationDeleteParams
|
|
46
|
+
def delete(destination_id, params = {})
|
|
47
|
+
@client.request(
|
|
48
|
+
method: :delete,
|
|
49
|
+
path: ["api/v1/data-export/destinations/%1$s", destination_id],
|
|
50
|
+
model: Stigg::Models::V1::Events::DataExport::DestinationDeleteResponse,
|
|
51
|
+
options: params[:request_options]
|
|
52
|
+
)
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# @api private
|
|
56
|
+
#
|
|
57
|
+
# @param client [Stigg::Client]
|
|
58
|
+
def initialize(client:)
|
|
59
|
+
@client = client
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Stigg
|
|
4
|
+
module Resources
|
|
5
|
+
class V1
|
|
6
|
+
class Events
|
|
7
|
+
class DataExport
|
|
8
|
+
# @return [Stigg::Resources::V1::Events::DataExport::Destinations]
|
|
9
|
+
attr_reader :destinations
|
|
10
|
+
|
|
11
|
+
# Mint a scoped JWT for the FE embedded SDK. Lazy-creates the DATA_EXPORT
|
|
12
|
+
# integration if needed.
|
|
13
|
+
#
|
|
14
|
+
# @overload mint_scoped_token(application_origin:, destination_type: nil, request_options: {})
|
|
15
|
+
#
|
|
16
|
+
# @param application_origin [String] FE origin the resulting JWT is bound to (provider-side anti-fraud)
|
|
17
|
+
#
|
|
18
|
+
# @param destination_type [String] Pin the token to a specific warehouse connect flow
|
|
19
|
+
#
|
|
20
|
+
# @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
21
|
+
#
|
|
22
|
+
# @return [Stigg::Models::V1::Events::DataExportMintScopedTokenResponse]
|
|
23
|
+
#
|
|
24
|
+
# @see Stigg::Models::V1::Events::DataExportMintScopedTokenParams
|
|
25
|
+
def mint_scoped_token(params)
|
|
26
|
+
parsed, options = Stigg::V1::Events::DataExportMintScopedTokenParams.dump_request(params)
|
|
27
|
+
@client.request(
|
|
28
|
+
method: :post,
|
|
29
|
+
path: "api/v1/data-export/scoped-token",
|
|
30
|
+
body: parsed,
|
|
31
|
+
model: Stigg::Models::V1::Events::DataExportMintScopedTokenResponse,
|
|
32
|
+
options: options
|
|
33
|
+
)
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# Trigger a sync for one destination or all destinations under the provider
|
|
37
|
+
# entity.
|
|
38
|
+
#
|
|
39
|
+
# @overload trigger_sync(destination_id: nil, request_options: {})
|
|
40
|
+
#
|
|
41
|
+
# @param destination_id [String] Provider destination ID to sync. Omit to sync all destinations.
|
|
42
|
+
#
|
|
43
|
+
# @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
44
|
+
#
|
|
45
|
+
# @return [Stigg::Models::V1::Events::DataExportTriggerSyncResponse]
|
|
46
|
+
#
|
|
47
|
+
# @see Stigg::Models::V1::Events::DataExportTriggerSyncParams
|
|
48
|
+
def trigger_sync(params = {})
|
|
49
|
+
parsed, options = Stigg::V1::Events::DataExportTriggerSyncParams.dump_request(params)
|
|
50
|
+
@client.request(
|
|
51
|
+
method: :post,
|
|
52
|
+
path: "api/v1/data-export/sync",
|
|
53
|
+
body: parsed,
|
|
54
|
+
model: Stigg::Models::V1::Events::DataExportTriggerSyncResponse,
|
|
55
|
+
options: options
|
|
56
|
+
)
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# @api private
|
|
60
|
+
#
|
|
61
|
+
# @param client [Stigg::Client]
|
|
62
|
+
def initialize(client:)
|
|
63
|
+
@client = client
|
|
64
|
+
@destinations = Stigg::Resources::V1::Events::DataExport::Destinations.new(client: client)
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
@@ -8,6 +8,9 @@ module Stigg
|
|
|
8
8
|
# @return [Stigg::Resources::V1::Events::Beta]
|
|
9
9
|
attr_reader :beta
|
|
10
10
|
|
|
11
|
+
# @return [Stigg::Resources::V1::Events::DataExport]
|
|
12
|
+
attr_reader :data_export
|
|
13
|
+
|
|
11
14
|
# Reports raw usage events for event-based metering. Events are ingested
|
|
12
15
|
# asynchronously and aggregated into usage totals.
|
|
13
16
|
#
|
|
@@ -37,6 +40,7 @@ module Stigg
|
|
|
37
40
|
def initialize(client:)
|
|
38
41
|
@client = client
|
|
39
42
|
@beta = Stigg::Resources::V1::Events::Beta.new(client: client)
|
|
43
|
+
@data_export = Stigg::Resources::V1::Events::DataExport.new(client: client)
|
|
40
44
|
end
|
|
41
45
|
end
|
|
42
46
|
end
|
data/lib/stigg/version.rb
CHANGED
data/lib/stigg.rb
CHANGED
|
@@ -154,6 +154,14 @@ require_relative "stigg/models/v1/events/beta/entity_type_list_params"
|
|
|
154
154
|
require_relative "stigg/models/v1/events/beta/entity_type_list_response"
|
|
155
155
|
require_relative "stigg/models/v1/events/beta/entity_type_upsert_params"
|
|
156
156
|
require_relative "stigg/models/v1/events/beta/entity_type_upsert_response"
|
|
157
|
+
require_relative "stigg/models/v1/events/data_export/destination_create_params"
|
|
158
|
+
require_relative "stigg/models/v1/events/data_export/destination_create_response"
|
|
159
|
+
require_relative "stigg/models/v1/events/data_export/destination_delete_params"
|
|
160
|
+
require_relative "stigg/models/v1/events/data_export/destination_delete_response"
|
|
161
|
+
require_relative "stigg/models/v1/events/data_export_mint_scoped_token_params"
|
|
162
|
+
require_relative "stigg/models/v1/events/data_export_mint_scoped_token_response"
|
|
163
|
+
require_relative "stigg/models/v1/events/data_export_trigger_sync_params"
|
|
164
|
+
require_relative "stigg/models/v1/events/data_export_trigger_sync_response"
|
|
157
165
|
require_relative "stigg/models/v1/feature"
|
|
158
166
|
require_relative "stigg/models/v1/feature_archive_feature_params"
|
|
159
167
|
require_relative "stigg/models/v1/feature_create_feature_params"
|
|
@@ -240,6 +248,8 @@ require_relative "stigg/resources/v1/events/beta/customers/assignments"
|
|
|
240
248
|
require_relative "stigg/resources/v1/events/beta/customers/entities"
|
|
241
249
|
require_relative "stigg/resources/v1/events/beta/customers/entitlements"
|
|
242
250
|
require_relative "stigg/resources/v1/events/beta/entity_types"
|
|
251
|
+
require_relative "stigg/resources/v1/events/data_export"
|
|
252
|
+
require_relative "stigg/resources/v1/events/data_export/destinations"
|
|
243
253
|
require_relative "stigg/resources/v1/features"
|
|
244
254
|
require_relative "stigg/resources/v1/plans"
|
|
245
255
|
require_relative "stigg/resources/v1/plans/entitlements"
|