stigg-api-client 3.100.0 → 3.101.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8c509a401251b5a9405b02cf4a550e37e4d241f3b86decdf380baf3b0eacbbe8
4
- data.tar.gz: d5c64d844d4042ffad7a5d7de88974038a47c75b06dbbe4453511893f2538856
3
+ metadata.gz: 606ef5f86320d55e30611bbf337eb18829b4988ee2493676b633d3f7230311f9
4
+ data.tar.gz: 54479759eefb9d0ff9da7b27ea44b14c45863f2999d9940b9602e84aa418e052
5
5
  SHA512:
6
- metadata.gz: 788423aec877b58c34478e3f0c5e5e68306531d153e5da8277ef2e9220cace53cdbb6d221b59682a62c4dc98ba0f87dd652584f25c76284e81c8a9f177c92899
7
- data.tar.gz: 04b8cec1838dc67d62caaa2132225b078e56aee17c259f405fb480b3454f8da37a238fb95ac6def71bb7de359f5cfb489f8d584242df5bf2de304896e1607973
6
+ metadata.gz: dde2640abbb0e6a2e83ef28fa5b2cfece6c4a5c50e2985da0eec057f23e52f33289c4f5c72cb697db44f65683b28f2d0f11843beb1f32018f6eae1ec44466f43
7
+ data.tar.gz: d5364b7b08377b850455e1eb862a36872766b5a6cdfa1cf373be1858aea8e1ce8f95477ea81fdac9a4dadba6b28ceb299da7cd553aeb8f3372698c834fcfe890
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- stigg-api-client (3.100.0)
4
+ stigg-api-client (3.101.0)
5
5
  graphlient (>= 0.6.0, < 1.0)
6
6
  graphql-client (>= 0.19, < 1.0)
7
7
 
@@ -58,6 +58,7 @@ module Stigg
58
58
  creditRate {
59
59
  amount
60
60
  customCurrencyId
61
+ currencyId
61
62
  }
62
63
  tiersMode
63
64
  tiers {
@@ -984,6 +985,11 @@ module Stigg
984
985
  feature {
985
986
  ...FeatureFragment
986
987
  }
988
+ creditRate {
989
+ amount
990
+ currencyId
991
+ }
992
+ validUntil
987
993
  }
988
994
  GRAPHQL
989
995
 
@@ -1094,6 +1100,27 @@ module Stigg
1094
1100
  }
1095
1101
  GRAPHQL
1096
1102
 
1103
+ CreditBalanceUpdatedPayload = <<~GRAPHQL
1104
+ fragment CreditBalanceUpdatedPayload on CreditBalanceUpdated {
1105
+ currency {
1106
+ currencyId
1107
+ displayName
1108
+ symbol
1109
+ units {
1110
+ singular
1111
+ plural
1112
+ }
1113
+ }
1114
+ currencyId
1115
+ currentBalance
1116
+ customerId
1117
+ validUntil
1118
+ resourceId
1119
+ totalConsumed
1120
+ totalGranted
1121
+ }
1122
+ GRAPHQL
1123
+
1097
1124
  CustomerPortalFragment = <<~GRAPHQL
1098
1125
  fragment CustomerPortalFragment on CustomerPortal {
1099
1126
  subscriptions {
@@ -1221,7 +1248,7 @@ module Stigg
1221
1248
  }
1222
1249
  creditRate {
1223
1250
  amount
1224
- customCurrencyId
1251
+ currencyId
1225
1252
  }
1226
1253
  feature {
1227
1254
  id
@@ -1254,7 +1281,7 @@ module Stigg
1254
1281
  }
1255
1282
  creditRate {
1256
1283
  amount
1257
- customCurrencyId
1284
+ currencyId
1258
1285
  }
1259
1286
  feature {
1260
1287
  featureUnits
@@ -1442,7 +1469,7 @@ module Stigg
1442
1469
  }
1443
1470
  creditRate {
1444
1471
  amount
1445
- customCurrencyId
1472
+ currencyId
1446
1473
  }
1447
1474
  tiersMode
1448
1475
  tiers {
@@ -1750,19 +1777,28 @@ module Stigg
1750
1777
  fragment CreditsBalanceSummaryFragment on CreditBalanceSummary {
1751
1778
  customerId
1752
1779
  balances {
1753
- currency {
1754
- currencyId
1755
- displayName
1756
- symbol
1757
- units {
1758
- singular
1759
- plural
1760
- }
1780
+ ...CreditBalanceFragment
1781
+ }
1782
+ }
1783
+ GRAPHQL
1784
+
1785
+ CreditBalanceFragment = <<~GRAPHQL
1786
+ fragment CreditBalanceFragment on CreditBalance {
1787
+ customerId
1788
+ currency {
1789
+ currencyId
1790
+ displayName
1791
+ symbol
1792
+ units {
1793
+ singular
1794
+ plural
1761
1795
  }
1762
- currentBalance
1763
- totalConsumed
1764
- totalGranted
1765
1796
  }
1797
+ currentBalance
1798
+ totalConsumed
1799
+ totalGranted
1800
+ resourceId
1801
+ validUntil
1766
1802
  }
1767
1803
  GRAPHQL
1768
1804
 
@@ -2514,6 +2550,7 @@ module Stigg
2514
2550
  }
2515
2551
  }
2516
2552
  #{Fragment::CreditsBalanceSummaryFragment}
2553
+ #{Fragment::CreditBalanceFragment}
2517
2554
  GRAPHQL
2518
2555
 
2519
2556
  GetCreditGrants = <<~GRAPHQL
@@ -2588,5 +2625,14 @@ module Stigg
2588
2625
  }
2589
2626
  #{Fragment::PackagePublishedPayload}
2590
2627
  GRAPHQL
2628
+
2629
+ OnCreditBalanceUpdated = <<~GRAPHQL
2630
+ subscription OnCreditBalanceUpdated {
2631
+ creditBalanceUpdated {
2632
+ ...CreditBalanceUpdatedPayload
2633
+ }
2634
+ }
2635
+ #{Fragment::CreditBalanceUpdatedPayload}
2636
+ GRAPHQL
2591
2637
  end
2592
2638
  end
@@ -11689,6 +11689,34 @@
11689
11689
  "isDeprecated": false,
11690
11690
  "deprecationReason": null
11691
11691
  },
11692
+ {
11693
+ "name": "customerId",
11694
+ "description": "The customer ID of the credit grant",
11695
+ "args": [],
11696
+ "type": {
11697
+ "kind": "NON_NULL",
11698
+ "name": null,
11699
+ "ofType": {
11700
+ "kind": "SCALAR",
11701
+ "name": "String",
11702
+ "ofType": null
11703
+ }
11704
+ },
11705
+ "isDeprecated": false,
11706
+ "deprecationReason": null
11707
+ },
11708
+ {
11709
+ "name": "resourceId",
11710
+ "description": "The resource ID of the credit grant",
11711
+ "args": [],
11712
+ "type": {
11713
+ "kind": "SCALAR",
11714
+ "name": "String",
11715
+ "ofType": null
11716
+ },
11717
+ "isDeprecated": false,
11718
+ "deprecationReason": null
11719
+ },
11692
11720
  {
11693
11721
  "name": "totalConsumed",
11694
11722
  "description": "Total amount consumed from all grants",
@@ -11720,6 +11748,18 @@
11720
11748
  },
11721
11749
  "isDeprecated": false,
11722
11750
  "deprecationReason": null
11751
+ },
11752
+ {
11753
+ "name": "validUntil",
11754
+ "description": "The next time the balance will be updated (e.g., when a grant expires or becomes effective)",
11755
+ "args": [],
11756
+ "type": {
11757
+ "kind": "SCALAR",
11758
+ "name": "Float",
11759
+ "ofType": null
11760
+ },
11761
+ "isDeprecated": false,
11762
+ "deprecationReason": null
11723
11763
  }
11724
11764
  ],
11725
11765
  "inputFields": null,
@@ -11853,6 +11893,169 @@
11853
11893
  "enumValues": null,
11854
11894
  "possibleTypes": null
11855
11895
  },
11896
+ {
11897
+ "kind": "OBJECT",
11898
+ "name": "CreditBalanceUpdated",
11899
+ "description": "Credit balance update notification",
11900
+ "fields": [
11901
+ {
11902
+ "name": "accountId",
11903
+ "description": "The unique identifier for the account",
11904
+ "args": [],
11905
+ "type": {
11906
+ "kind": "NON_NULL",
11907
+ "name": null,
11908
+ "ofType": {
11909
+ "kind": "SCALAR",
11910
+ "name": "String",
11911
+ "ofType": null
11912
+ }
11913
+ },
11914
+ "isDeprecated": false,
11915
+ "deprecationReason": null
11916
+ },
11917
+ {
11918
+ "name": "currency",
11919
+ "description": "Stigg custom currency object with minimal fields",
11920
+ "args": [],
11921
+ "type": {
11922
+ "kind": "NON_NULL",
11923
+ "name": null,
11924
+ "ofType": {
11925
+ "kind": "OBJECT",
11926
+ "name": "SlimCustomCurrency",
11927
+ "ofType": null
11928
+ }
11929
+ },
11930
+ "isDeprecated": false,
11931
+ "deprecationReason": null
11932
+ },
11933
+ {
11934
+ "name": "currencyId",
11935
+ "description": "The custom currency ID of the credit grant",
11936
+ "args": [],
11937
+ "type": {
11938
+ "kind": "NON_NULL",
11939
+ "name": null,
11940
+ "ofType": {
11941
+ "kind": "SCALAR",
11942
+ "name": "String",
11943
+ "ofType": null
11944
+ }
11945
+ },
11946
+ "isDeprecated": true,
11947
+ "deprecationReason": "Use currency instead"
11948
+ },
11949
+ {
11950
+ "name": "currentBalance",
11951
+ "description": "Current available balance",
11952
+ "args": [],
11953
+ "type": {
11954
+ "kind": "NON_NULL",
11955
+ "name": null,
11956
+ "ofType": {
11957
+ "kind": "SCALAR",
11958
+ "name": "Float",
11959
+ "ofType": null
11960
+ }
11961
+ },
11962
+ "isDeprecated": false,
11963
+ "deprecationReason": null
11964
+ },
11965
+ {
11966
+ "name": "customerId",
11967
+ "description": "The customer ID of the credit grant",
11968
+ "args": [],
11969
+ "type": {
11970
+ "kind": "NON_NULL",
11971
+ "name": null,
11972
+ "ofType": {
11973
+ "kind": "SCALAR",
11974
+ "name": "String",
11975
+ "ofType": null
11976
+ }
11977
+ },
11978
+ "isDeprecated": false,
11979
+ "deprecationReason": null
11980
+ },
11981
+ {
11982
+ "name": "environmentId",
11983
+ "description": "The unique identifier for the environment",
11984
+ "args": [],
11985
+ "type": {
11986
+ "kind": "NON_NULL",
11987
+ "name": null,
11988
+ "ofType": {
11989
+ "kind": "SCALAR",
11990
+ "name": "String",
11991
+ "ofType": null
11992
+ }
11993
+ },
11994
+ "isDeprecated": false,
11995
+ "deprecationReason": null
11996
+ },
11997
+ {
11998
+ "name": "resourceId",
11999
+ "description": "The resource ID of the credit grant",
12000
+ "args": [],
12001
+ "type": {
12002
+ "kind": "SCALAR",
12003
+ "name": "String",
12004
+ "ofType": null
12005
+ },
12006
+ "isDeprecated": false,
12007
+ "deprecationReason": null
12008
+ },
12009
+ {
12010
+ "name": "totalConsumed",
12011
+ "description": "Total amount consumed from all grants",
12012
+ "args": [],
12013
+ "type": {
12014
+ "kind": "NON_NULL",
12015
+ "name": null,
12016
+ "ofType": {
12017
+ "kind": "SCALAR",
12018
+ "name": "Float",
12019
+ "ofType": null
12020
+ }
12021
+ },
12022
+ "isDeprecated": false,
12023
+ "deprecationReason": null
12024
+ },
12025
+ {
12026
+ "name": "totalGranted",
12027
+ "description": "Total amount granted across all active grants",
12028
+ "args": [],
12029
+ "type": {
12030
+ "kind": "NON_NULL",
12031
+ "name": null,
12032
+ "ofType": {
12033
+ "kind": "SCALAR",
12034
+ "name": "Float",
12035
+ "ofType": null
12036
+ }
12037
+ },
12038
+ "isDeprecated": false,
12039
+ "deprecationReason": null
12040
+ },
12041
+ {
12042
+ "name": "validUntil",
12043
+ "description": "The next time the balance will be updated (e.g., when a grant expires or becomes effective)",
12044
+ "args": [],
12045
+ "type": {
12046
+ "kind": "SCALAR",
12047
+ "name": "Float",
12048
+ "ofType": null
12049
+ },
12050
+ "isDeprecated": false,
12051
+ "deprecationReason": null
12052
+ }
12053
+ ],
12054
+ "inputFields": null,
12055
+ "interfaces": [],
12056
+ "enumValues": null,
12057
+ "possibleTypes": null
12058
+ },
11856
12059
  {
11857
12060
  "kind": "OBJECT",
11858
12061
  "name": "CreditGrant",
@@ -12744,20 +12947,32 @@
12744
12947
  "deprecationReason": null
12745
12948
  },
12746
12949
  {
12747
- "name": "customCurrencyId",
12748
- "description": "The custom currency ID for the credit rate",
12950
+ "name": "currencyId",
12951
+ "description": "The custom currency refId for the credit rate",
12749
12952
  "args": [],
12750
12953
  "type": {
12751
12954
  "kind": "NON_NULL",
12752
12955
  "name": null,
12753
12956
  "ofType": {
12754
12957
  "kind": "SCALAR",
12755
- "name": "UUID",
12958
+ "name": "String",
12756
12959
  "ofType": null
12757
12960
  }
12758
12961
  },
12759
12962
  "isDeprecated": false,
12760
12963
  "deprecationReason": null
12964
+ },
12965
+ {
12966
+ "name": "customCurrencyId",
12967
+ "description": "The custom currency ID for the credit rate",
12968
+ "args": [],
12969
+ "type": {
12970
+ "kind": "SCALAR",
12971
+ "name": "UUID",
12972
+ "ofType": null
12973
+ },
12974
+ "isDeprecated": true,
12975
+ "deprecationReason": "use currencyId instead"
12761
12976
  }
12762
12977
  ],
12763
12978
  "inputFields": null,
@@ -12787,17 +13002,25 @@
12787
13002
  "isDeprecated": false,
12788
13003
  "deprecationReason": null
12789
13004
  },
13005
+ {
13006
+ "name": "currencyId",
13007
+ "description": "The custom currency refId for the credit rate",
13008
+ "type": {
13009
+ "kind": "SCALAR",
13010
+ "name": "String",
13011
+ "ofType": null
13012
+ },
13013
+ "defaultValue": null,
13014
+ "isDeprecated": false,
13015
+ "deprecationReason": null
13016
+ },
12790
13017
  {
12791
13018
  "name": "customCurrencyId",
12792
13019
  "description": "The custom currency ID for the credit rate",
12793
13020
  "type": {
12794
- "kind": "NON_NULL",
12795
- "name": null,
12796
- "ofType": {
12797
- "kind": "SCALAR",
12798
- "name": "UUID",
12799
- "ofType": null
12800
- }
13021
+ "kind": "SCALAR",
13022
+ "name": "UUID",
13023
+ "ofType": null
12801
13024
  },
12802
13025
  "defaultValue": null,
12803
13026
  "isDeprecated": false,
@@ -25025,6 +25248,18 @@
25025
25248
  "isDeprecated": false,
25026
25249
  "deprecationReason": null
25027
25250
  },
25251
+ {
25252
+ "name": "creditRate",
25253
+ "description": "The credit rate associated with this entitlement, if applicable.",
25254
+ "args": [],
25255
+ "type": {
25256
+ "kind": "OBJECT",
25257
+ "name": "CreditRate",
25258
+ "ofType": null
25259
+ },
25260
+ "isDeprecated": false,
25261
+ "deprecationReason": null
25262
+ },
25028
25263
  {
25029
25264
  "name": "currentUsage",
25030
25265
  "description": "The amount of the feature the customer has used so far in the current period.",
@@ -25320,6 +25555,18 @@
25320
25555
  },
25321
25556
  "isDeprecated": false,
25322
25557
  "deprecationReason": null
25558
+ },
25559
+ {
25560
+ "name": "validUntil",
25561
+ "description": "The next time the entitlement should be recalculated",
25562
+ "args": [],
25563
+ "type": {
25564
+ "kind": "SCALAR",
25565
+ "name": "Float",
25566
+ "ofType": null
25567
+ },
25568
+ "isDeprecated": false,
25569
+ "deprecationReason": null
25323
25570
  }
25324
25571
  ],
25325
25572
  "inputFields": null,
@@ -26118,6 +26365,18 @@
26118
26365
  "isDeprecated": false,
26119
26366
  "deprecationReason": null
26120
26367
  },
26368
+ {
26369
+ "name": "creditRate",
26370
+ "description": "The credit rate associated with this entitlement, if applicable.",
26371
+ "args": [],
26372
+ "type": {
26373
+ "kind": "OBJECT",
26374
+ "name": "CreditRate",
26375
+ "ofType": null
26376
+ },
26377
+ "isDeprecated": false,
26378
+ "deprecationReason": null
26379
+ },
26121
26380
  {
26122
26381
  "name": "currentUsage",
26123
26382
  "description": "The amount of the feature the customer has used so far in the current period.",
@@ -26433,6 +26692,18 @@
26433
26692
  },
26434
26693
  "isDeprecated": false,
26435
26694
  "deprecationReason": null
26695
+ },
26696
+ {
26697
+ "name": "validUntil",
26698
+ "description": "The next time the entitlement should be recalculated",
26699
+ "args": [],
26700
+ "type": {
26701
+ "kind": "SCALAR",
26702
+ "name": "Float",
26703
+ "ofType": null
26704
+ },
26705
+ "isDeprecated": false,
26706
+ "deprecationReason": null
26436
26707
  }
26437
26708
  ],
26438
26709
  "inputFields": null,
@@ -78523,6 +78794,22 @@
78523
78794
  "name": "Subscription",
78524
78795
  "description": null,
78525
78796
  "fields": [
78797
+ {
78798
+ "name": "creditBalanceUpdated",
78799
+ "description": "Subscription for credit balance updates for a specific customer",
78800
+ "args": [],
78801
+ "type": {
78802
+ "kind": "NON_NULL",
78803
+ "name": null,
78804
+ "ofType": {
78805
+ "kind": "OBJECT",
78806
+ "name": "CreditBalanceUpdated",
78807
+ "ofType": null
78808
+ }
78809
+ },
78810
+ "isDeprecated": false,
78811
+ "deprecationReason": null
78812
+ },
78526
78813
  {
78527
78814
  "name": "entitlementsUpdated",
78528
78815
  "description": "Subscribe to real-time updates when a customers entitlements change.",
data/lib/stigg/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stigg
4
- VERSION = "3.100.0"
4
+ VERSION = "3.101.0"
5
5
  end
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.100.0
4
+ version: 3.101.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-28 00:00:00.000000000 Z
11
+ date: 2025-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphlient