stigg-api-client 3.93.0 → 3.96.0
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/Gemfile.lock +1 -1
- data/lib/stigg/generated/operations.rb +23 -0
- data/lib/stigg/generated/schema.json +304 -0
- data/lib/stigg/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff2ddfce6c7db44d30397b174ad38530252172a481741ae71f9bde265f0834ac
|
4
|
+
data.tar.gz: fb9ec67fd414522823f9019902eb5a64aba26322fc088363307a3d7e8215dcaf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d639e46494804696479de524f61ce0646c15ab331dd1a63f4aeaecb8b707551037046d0851cb712a77fb7759cae142da3bc9df2c6c551716ed8512ffc0b4cb80
|
7
|
+
data.tar.gz: '07609bb9bfbddc0b39bac676ae329d7a8143755a2066ab2789f5cde9f1e4ed3f2d6d1c8f4241781f3174a27ee1c1962a92da3ae041843df1faea9acde5f6b59d'
|
data/Gemfile.lock
CHANGED
@@ -1771,6 +1771,20 @@ module Stigg
|
|
1771
1771
|
token
|
1772
1772
|
}
|
1773
1773
|
GRAPHQL
|
1774
|
+
|
1775
|
+
CreditUsageFragment = <<~GRAPHQL
|
1776
|
+
fragment CreditUsageFragment on CreditUsage {
|
1777
|
+
series {
|
1778
|
+
featureId
|
1779
|
+
featureName
|
1780
|
+
totalCredits
|
1781
|
+
points {
|
1782
|
+
timestamp
|
1783
|
+
value
|
1784
|
+
}
|
1785
|
+
}
|
1786
|
+
}
|
1787
|
+
GRAPHQL
|
1774
1788
|
end
|
1775
1789
|
|
1776
1790
|
module Mutation
|
@@ -2517,6 +2531,15 @@ module Stigg
|
|
2517
2531
|
#{Fragment::CreditLedgerFragment}
|
2518
2532
|
GRAPHQL
|
2519
2533
|
|
2534
|
+
GetCreditUsage = <<~GRAPHQL
|
2535
|
+
query GetCreditUsage($input: CreditUsageInput!) {
|
2536
|
+
creditUsage(input: $input) {
|
2537
|
+
...CreditUsageFragment
|
2538
|
+
}
|
2539
|
+
}
|
2540
|
+
#{Fragment::CreditUsageFragment}
|
2541
|
+
GRAPHQL
|
2542
|
+
|
2520
2543
|
OnEntitlementsUpdated = <<~GRAPHQL
|
2521
2544
|
subscription OnEntitlementsUpdated {
|
2522
2545
|
entitlementsUpdated {
|
@@ -12784,6 +12784,277 @@
|
|
12784
12784
|
"enumValues": null,
|
12785
12785
|
"possibleTypes": null
|
12786
12786
|
},
|
12787
|
+
{
|
12788
|
+
"kind": "OBJECT",
|
12789
|
+
"name": "CreditUsage",
|
12790
|
+
"description": "Credits usage",
|
12791
|
+
"fields": [
|
12792
|
+
{
|
12793
|
+
"name": "series",
|
12794
|
+
"description": "Series of credit usage data points",
|
12795
|
+
"args": [],
|
12796
|
+
"type": {
|
12797
|
+
"kind": "NON_NULL",
|
12798
|
+
"name": null,
|
12799
|
+
"ofType": {
|
12800
|
+
"kind": "LIST",
|
12801
|
+
"name": null,
|
12802
|
+
"ofType": {
|
12803
|
+
"kind": "NON_NULL",
|
12804
|
+
"name": null,
|
12805
|
+
"ofType": {
|
12806
|
+
"kind": "OBJECT",
|
12807
|
+
"name": "CreditUsageSeries",
|
12808
|
+
"ofType": null
|
12809
|
+
}
|
12810
|
+
}
|
12811
|
+
}
|
12812
|
+
},
|
12813
|
+
"isDeprecated": false,
|
12814
|
+
"deprecationReason": null
|
12815
|
+
}
|
12816
|
+
],
|
12817
|
+
"inputFields": null,
|
12818
|
+
"interfaces": [],
|
12819
|
+
"enumValues": null,
|
12820
|
+
"possibleTypes": null
|
12821
|
+
},
|
12822
|
+
{
|
12823
|
+
"kind": "INPUT_OBJECT",
|
12824
|
+
"name": "CreditUsageInput",
|
12825
|
+
"description": "Input for retrieving credit usage",
|
12826
|
+
"fields": null,
|
12827
|
+
"inputFields": [
|
12828
|
+
{
|
12829
|
+
"name": "currencyId",
|
12830
|
+
"description": "The currency ID to filter credit usage by specific currency",
|
12831
|
+
"type": {
|
12832
|
+
"kind": "SCALAR",
|
12833
|
+
"name": "String",
|
12834
|
+
"ofType": null
|
12835
|
+
},
|
12836
|
+
"defaultValue": null,
|
12837
|
+
"isDeprecated": false,
|
12838
|
+
"deprecationReason": null
|
12839
|
+
},
|
12840
|
+
{
|
12841
|
+
"name": "customerId",
|
12842
|
+
"description": "The customer ID of the credit usage",
|
12843
|
+
"type": {
|
12844
|
+
"kind": "NON_NULL",
|
12845
|
+
"name": null,
|
12846
|
+
"ofType": {
|
12847
|
+
"kind": "SCALAR",
|
12848
|
+
"name": "String",
|
12849
|
+
"ofType": null
|
12850
|
+
}
|
12851
|
+
},
|
12852
|
+
"defaultValue": null,
|
12853
|
+
"isDeprecated": false,
|
12854
|
+
"deprecationReason": null
|
12855
|
+
},
|
12856
|
+
{
|
12857
|
+
"name": "environmentId",
|
12858
|
+
"description": "The environment ID of the credit usage",
|
12859
|
+
"type": {
|
12860
|
+
"kind": "SCALAR",
|
12861
|
+
"name": "UUID",
|
12862
|
+
"ofType": null
|
12863
|
+
},
|
12864
|
+
"defaultValue": null,
|
12865
|
+
"isDeprecated": false,
|
12866
|
+
"deprecationReason": null
|
12867
|
+
},
|
12868
|
+
{
|
12869
|
+
"name": "resourceId",
|
12870
|
+
"description": "The resource ID of the credit usage",
|
12871
|
+
"type": {
|
12872
|
+
"kind": "SCALAR",
|
12873
|
+
"name": "String",
|
12874
|
+
"ofType": null
|
12875
|
+
},
|
12876
|
+
"defaultValue": null,
|
12877
|
+
"isDeprecated": false,
|
12878
|
+
"deprecationReason": null
|
12879
|
+
},
|
12880
|
+
{
|
12881
|
+
"name": "timeRange",
|
12882
|
+
"description": "The time range for the credit usage",
|
12883
|
+
"type": {
|
12884
|
+
"kind": "ENUM",
|
12885
|
+
"name": "CreditUsageTimeRange",
|
12886
|
+
"ofType": null
|
12887
|
+
},
|
12888
|
+
"defaultValue": "LAST_MONTH",
|
12889
|
+
"isDeprecated": false,
|
12890
|
+
"deprecationReason": null
|
12891
|
+
}
|
12892
|
+
],
|
12893
|
+
"interfaces": null,
|
12894
|
+
"enumValues": null,
|
12895
|
+
"possibleTypes": null
|
12896
|
+
},
|
12897
|
+
{
|
12898
|
+
"kind": "OBJECT",
|
12899
|
+
"name": "CreditUsagePoint",
|
12900
|
+
"description": "Point in the credit usage series",
|
12901
|
+
"fields": [
|
12902
|
+
{
|
12903
|
+
"name": "timestamp",
|
12904
|
+
"description": "Timestamp of the credit usage point",
|
12905
|
+
"args": [],
|
12906
|
+
"type": {
|
12907
|
+
"kind": "NON_NULL",
|
12908
|
+
"name": null,
|
12909
|
+
"ofType": {
|
12910
|
+
"kind": "SCALAR",
|
12911
|
+
"name": "DateTime",
|
12912
|
+
"ofType": null
|
12913
|
+
}
|
12914
|
+
},
|
12915
|
+
"isDeprecated": false,
|
12916
|
+
"deprecationReason": null
|
12917
|
+
},
|
12918
|
+
{
|
12919
|
+
"name": "value",
|
12920
|
+
"description": "Value of the credit usage point",
|
12921
|
+
"args": [],
|
12922
|
+
"type": {
|
12923
|
+
"kind": "NON_NULL",
|
12924
|
+
"name": null,
|
12925
|
+
"ofType": {
|
12926
|
+
"kind": "SCALAR",
|
12927
|
+
"name": "Float",
|
12928
|
+
"ofType": null
|
12929
|
+
}
|
12930
|
+
},
|
12931
|
+
"isDeprecated": false,
|
12932
|
+
"deprecationReason": null
|
12933
|
+
}
|
12934
|
+
],
|
12935
|
+
"inputFields": null,
|
12936
|
+
"interfaces": [],
|
12937
|
+
"enumValues": null,
|
12938
|
+
"possibleTypes": null
|
12939
|
+
},
|
12940
|
+
{
|
12941
|
+
"kind": "OBJECT",
|
12942
|
+
"name": "CreditUsageSeries",
|
12943
|
+
"description": "Series of credit usage data points",
|
12944
|
+
"fields": [
|
12945
|
+
{
|
12946
|
+
"name": "featureId",
|
12947
|
+
"description": "Feature ID for the credit usage series",
|
12948
|
+
"args": [],
|
12949
|
+
"type": {
|
12950
|
+
"kind": "NON_NULL",
|
12951
|
+
"name": null,
|
12952
|
+
"ofType": {
|
12953
|
+
"kind": "SCALAR",
|
12954
|
+
"name": "String",
|
12955
|
+
"ofType": null
|
12956
|
+
}
|
12957
|
+
},
|
12958
|
+
"isDeprecated": false,
|
12959
|
+
"deprecationReason": null
|
12960
|
+
},
|
12961
|
+
{
|
12962
|
+
"name": "featureName",
|
12963
|
+
"description": "Display name of the feature for the credit usage series",
|
12964
|
+
"args": [],
|
12965
|
+
"type": {
|
12966
|
+
"kind": "NON_NULL",
|
12967
|
+
"name": null,
|
12968
|
+
"ofType": {
|
12969
|
+
"kind": "SCALAR",
|
12970
|
+
"name": "String",
|
12971
|
+
"ofType": null
|
12972
|
+
}
|
12973
|
+
},
|
12974
|
+
"isDeprecated": false,
|
12975
|
+
"deprecationReason": null
|
12976
|
+
},
|
12977
|
+
{
|
12978
|
+
"name": "points",
|
12979
|
+
"description": "Points in the credit usage series",
|
12980
|
+
"args": [],
|
12981
|
+
"type": {
|
12982
|
+
"kind": "NON_NULL",
|
12983
|
+
"name": null,
|
12984
|
+
"ofType": {
|
12985
|
+
"kind": "LIST",
|
12986
|
+
"name": null,
|
12987
|
+
"ofType": {
|
12988
|
+
"kind": "NON_NULL",
|
12989
|
+
"name": null,
|
12990
|
+
"ofType": {
|
12991
|
+
"kind": "OBJECT",
|
12992
|
+
"name": "CreditUsagePoint",
|
12993
|
+
"ofType": null
|
12994
|
+
}
|
12995
|
+
}
|
12996
|
+
}
|
12997
|
+
},
|
12998
|
+
"isDeprecated": false,
|
12999
|
+
"deprecationReason": null
|
13000
|
+
},
|
13001
|
+
{
|
13002
|
+
"name": "totalCredits",
|
13003
|
+
"description": "Total credits consumed by this feature across all time points",
|
13004
|
+
"args": [],
|
13005
|
+
"type": {
|
13006
|
+
"kind": "NON_NULL",
|
13007
|
+
"name": null,
|
13008
|
+
"ofType": {
|
13009
|
+
"kind": "SCALAR",
|
13010
|
+
"name": "Float",
|
13011
|
+
"ofType": null
|
13012
|
+
}
|
13013
|
+
},
|
13014
|
+
"isDeprecated": false,
|
13015
|
+
"deprecationReason": null
|
13016
|
+
}
|
13017
|
+
],
|
13018
|
+
"inputFields": null,
|
13019
|
+
"interfaces": [],
|
13020
|
+
"enumValues": null,
|
13021
|
+
"possibleTypes": null
|
13022
|
+
},
|
13023
|
+
{
|
13024
|
+
"kind": "ENUM",
|
13025
|
+
"name": "CreditUsageTimeRange",
|
13026
|
+
"description": "Time range options for credit usage data",
|
13027
|
+
"fields": null,
|
13028
|
+
"inputFields": null,
|
13029
|
+
"interfaces": null,
|
13030
|
+
"enumValues": [
|
13031
|
+
{
|
13032
|
+
"name": "LAST_DAY",
|
13033
|
+
"description": "Last 24 hours with hourly granularity",
|
13034
|
+
"isDeprecated": false,
|
13035
|
+
"deprecationReason": null
|
13036
|
+
},
|
13037
|
+
{
|
13038
|
+
"name": "LAST_MONTH",
|
13039
|
+
"description": "Last 30 days with daily granularity",
|
13040
|
+
"isDeprecated": false,
|
13041
|
+
"deprecationReason": null
|
13042
|
+
},
|
13043
|
+
{
|
13044
|
+
"name": "LAST_WEEK",
|
13045
|
+
"description": "Last 7 days with daily granularity",
|
13046
|
+
"isDeprecated": false,
|
13047
|
+
"deprecationReason": null
|
13048
|
+
},
|
13049
|
+
{
|
13050
|
+
"name": "LAST_YEAR",
|
13051
|
+
"description": "Last 12 months with monthly granularity",
|
13052
|
+
"isDeprecated": false,
|
13053
|
+
"deprecationReason": null
|
13054
|
+
}
|
13055
|
+
],
|
13056
|
+
"possibleTypes": null
|
13057
|
+
},
|
12787
13058
|
{
|
12788
13059
|
"kind": "ENUM",
|
12789
13060
|
"name": "Currency",
|
@@ -71792,6 +72063,39 @@
|
|
71792
72063
|
"isDeprecated": false,
|
71793
72064
|
"deprecationReason": null
|
71794
72065
|
},
|
72066
|
+
{
|
72067
|
+
"name": "creditUsage",
|
72068
|
+
"description": "Get the credit usage for a customer",
|
72069
|
+
"args": [
|
72070
|
+
{
|
72071
|
+
"name": "input",
|
72072
|
+
"description": null,
|
72073
|
+
"type": {
|
72074
|
+
"kind": "NON_NULL",
|
72075
|
+
"name": null,
|
72076
|
+
"ofType": {
|
72077
|
+
"kind": "INPUT_OBJECT",
|
72078
|
+
"name": "CreditUsageInput",
|
72079
|
+
"ofType": null
|
72080
|
+
}
|
72081
|
+
},
|
72082
|
+
"defaultValue": null,
|
72083
|
+
"isDeprecated": false,
|
72084
|
+
"deprecationReason": null
|
72085
|
+
}
|
72086
|
+
],
|
72087
|
+
"type": {
|
72088
|
+
"kind": "NON_NULL",
|
72089
|
+
"name": null,
|
72090
|
+
"ofType": {
|
72091
|
+
"kind": "OBJECT",
|
72092
|
+
"name": "CreditUsage",
|
72093
|
+
"ofType": null
|
72094
|
+
}
|
72095
|
+
},
|
72096
|
+
"isDeprecated": false,
|
72097
|
+
"deprecationReason": null
|
72098
|
+
},
|
71795
72099
|
{
|
71796
72100
|
"name": "creditsLedger",
|
71797
72101
|
"description": "Get the credit ledger for a customer",
|
data/lib/stigg/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stigg-api-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.96.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stigg
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-09-
|
11
|
+
date: 2025-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: graphlient
|