stigg-api-client 5.154.0 → 5.164.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: ee8ba6b1ce7f89d163d78435328071990b44f9cf7ef1a4219fdfc63644f33303
4
- data.tar.gz: bc374c77b7d759751407a54ce8cab63c6f1373b1e85e26df83a9e3223af3ad39
3
+ metadata.gz: 1627209a65ce6743c3656df48ff3cde12d8aae5b1f9d8ba03fa09dca63f93c6b
4
+ data.tar.gz: c882d6b96b7e14a69fa23383068b26a4359f4520f5fa2b2a176b1d29beee97b8
5
5
  SHA512:
6
- metadata.gz: 34a5d40571caa194600bd45f45fbd2be0f22dadf25fa2e683d1a1451cf20fb794f3e8bd3782a52bf3ffa188d80e2ae8b057466c42f1f1b41fc5570321c1b9fc2
7
- data.tar.gz: ef27ee97487645f159c8997d35737cdfec11c27845d3c118f5b141cb0c758a7319261f2cfb9099804474e2b643802d784efbf976ba7b6cc9a2e13e9b749ed09a
6
+ metadata.gz: e3cd3fa35d450e102f71ef466bda731ad4deee5d8fb25fe61ff7ae49ee83ae5aa33713ad602c084ef618c4218311e05640818ee9fc395f204d8ab5510d2386c1
7
+ data.tar.gz: 8e3707346bb1351ea47d59e59c6a2e5ed0208d066c857d5dc7dec5b35bd7a1fc3dc9a8d461f0d7983646c78c67e08bc59b401f946fc577eddda2cb5067b57c9c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- stigg-api-client (5.154.0)
4
+ stigg-api-client (5.164.0)
5
5
  graphlient (>= 0.6.0, < 1.0)
6
6
  graphql-client (>= 0.19, < 1.0)
7
7
 
@@ -1651,6 +1651,9 @@ module Stigg
1651
1651
  entitlements {
1652
1652
  ...EntitlementFragment
1653
1653
  }
1654
+ entitlementsV2 {
1655
+ ...EntitlementUnionFragment
1656
+ }
1654
1657
  }
1655
1658
  GRAPHQL
1656
1659
 
@@ -1662,6 +1665,9 @@ module Stigg
1662
1665
  entitlements {
1663
1666
  ...EntitlementFragment
1664
1667
  }
1668
+ entitlementsV2 {
1669
+ ...EntitlementUnionFragment
1670
+ }
1665
1671
  }
1666
1672
  GRAPHQL
1667
1673
 
@@ -1676,6 +1682,9 @@ module Stigg
1676
1682
  entitlements {
1677
1683
  ...EntitlementFragment
1678
1684
  }
1685
+ entitlementsV2 {
1686
+ ...EntitlementUnionFragment
1687
+ }
1679
1688
  }
1680
1689
  GRAPHQL
1681
1690
 
@@ -1900,6 +1909,103 @@ module Stigg
1900
1909
  updatedAt
1901
1910
  }
1902
1911
  GRAPHQL
1912
+
1913
+ FeatureEntitlementFragment = <<~GRAPHQL
1914
+ fragment FeatureEntitlementFragment on FeatureEntitlement {
1915
+ __typename
1916
+ isGranted
1917
+ accessDeniedReason
1918
+ usageLimit
1919
+ hasUnlimitedUsage
1920
+ hasSoftLimit
1921
+ currentUsage
1922
+ enumValues
1923
+ entitlementUpdatedAt
1924
+ usageUpdatedAt
1925
+ usagePeriodAnchor
1926
+ usagePeriodStart
1927
+ usagePeriodEnd
1928
+ resetPeriod
1929
+ resetPeriodConfiguration {
1930
+ ...ResetPeriodConfigurationFragment
1931
+ }
1932
+ feature {
1933
+ ...FeatureFragment
1934
+ }
1935
+ creditRate {
1936
+ amount
1937
+ currencyId
1938
+ }
1939
+ validUntil
1940
+ }
1941
+ GRAPHQL
1942
+
1943
+ CreditEntitlementFragment = <<~GRAPHQL
1944
+ fragment CreditEntitlementFragment on CreditEntitlement {
1945
+ __typename
1946
+ isGranted
1947
+ accessDeniedReason
1948
+ currency {
1949
+ currencyId
1950
+ }
1951
+ usageLimit
1952
+ currentUsage
1953
+ usageUpdatedAt
1954
+ entitlementUpdatedAt
1955
+ validUntil
1956
+ }
1957
+ GRAPHQL
1958
+
1959
+ EntitlementUnionFragment = <<~GRAPHQL
1960
+ fragment EntitlementUnionFragment on EntitlementUnion {
1961
+ ... on FeatureEntitlement {
1962
+ ...FeatureEntitlementFragment
1963
+ }
1964
+ ... on CreditEntitlement {
1965
+ ...CreditEntitlementFragment
1966
+ }
1967
+ }
1968
+ GRAPHQL
1969
+
1970
+ EntitlementReferenceFragment = <<~GRAPHQL
1971
+ fragment EntitlementReferenceFragment on EntitlementReference {
1972
+ id
1973
+ type
1974
+ }
1975
+ GRAPHQL
1976
+
1977
+ UsageV2Fragment = <<~GRAPHQL
1978
+ fragment UsageV2Fragment on UsageV2 {
1979
+ currentUsage
1980
+ usageUpdatedAt
1981
+ usagePeriodStart
1982
+ usagePeriodEnd
1983
+ }
1984
+ GRAPHQL
1985
+
1986
+ EntitlementsUpdatedV2Payload = <<~GRAPHQL
1987
+ fragment EntitlementsUpdatedV2Payload on EntitlementsUpdatedV2 {
1988
+ customerId
1989
+ resourceId
1990
+ accessDeniedReason
1991
+ entitlements {
1992
+ ...EntitlementUnionFragment
1993
+ }
1994
+ }
1995
+ GRAPHQL
1996
+
1997
+ UsageUpdatedV2Payload = <<~GRAPHQL
1998
+ fragment UsageUpdatedV2Payload on UsageUpdatedV2 {
1999
+ customerId
2000
+ resourceId
2001
+ entitlementReference {
2002
+ ...EntitlementReferenceFragment
2003
+ }
2004
+ usage {
2005
+ ...UsageV2Fragment
2006
+ }
2007
+ }
2008
+ GRAPHQL
1903
2009
  end
1904
2010
 
1905
2011
  module Mutation
@@ -1920,6 +2026,9 @@ module Stigg
1920
2026
  #{Fragment::EntitlementFragment}
1921
2027
  #{Fragment::ResetPeriodConfigurationFragment}
1922
2028
  #{Fragment::FeatureFragment}
2029
+ #{Fragment::EntitlementUnionFragment}
2030
+ #{Fragment::FeatureEntitlementFragment}
2031
+ #{Fragment::CreditEntitlementFragment}
1923
2032
  GRAPHQL
1924
2033
 
1925
2034
  ImportCustomerBulk = <<~GRAPHQL
@@ -1994,6 +2103,9 @@ module Stigg
1994
2103
  #{Fragment::EntitlementFragment}
1995
2104
  #{Fragment::ResetPeriodConfigurationFragment}
1996
2105
  #{Fragment::FeatureFragment}
2106
+ #{Fragment::EntitlementUnionFragment}
2107
+ #{Fragment::FeatureEntitlementFragment}
2108
+ #{Fragment::CreditEntitlementFragment}
1997
2109
  GRAPHQL
1998
2110
 
1999
2111
  ApplySubscription = <<~GRAPHQL
@@ -2024,6 +2136,9 @@ module Stigg
2024
2136
  #{Fragment::EntitlementFragment}
2025
2137
  #{Fragment::ResetPeriodConfigurationFragment}
2026
2138
  #{Fragment::FeatureFragment}
2139
+ #{Fragment::EntitlementUnionFragment}
2140
+ #{Fragment::FeatureEntitlementFragment}
2141
+ #{Fragment::CreditEntitlementFragment}
2027
2142
  GRAPHQL
2028
2143
 
2029
2144
  ImportSubscriptionsBulk = <<~GRAPHQL
@@ -2497,12 +2612,18 @@ module Stigg
2497
2612
  entitlements {
2498
2613
  ...EntitlementFragment
2499
2614
  }
2615
+ entitlementsV2 {
2616
+ ...EntitlementUnionFragment
2617
+ }
2500
2618
  accessDeniedReason
2501
2619
  }
2502
2620
  }
2503
2621
  #{Fragment::EntitlementFragment}
2504
2622
  #{Fragment::ResetPeriodConfigurationFragment}
2505
2623
  #{Fragment::FeatureFragment}
2624
+ #{Fragment::EntitlementUnionFragment}
2625
+ #{Fragment::FeatureEntitlementFragment}
2626
+ #{Fragment::CreditEntitlementFragment}
2506
2627
  GRAPHQL
2507
2628
 
2508
2629
  GetEntitlement = <<~GRAPHQL
@@ -2718,6 +2839,20 @@ module Stigg
2718
2839
  #{Fragment::FeatureFragment}
2719
2840
  GRAPHQL
2720
2841
 
2842
+ OnEntitlementsUpdatedV2 = <<~GRAPHQL
2843
+ subscription OnEntitlementsUpdatedV2 {
2844
+ entitlementsUpdatedV2 {
2845
+ ...EntitlementsUpdatedV2Payload
2846
+ }
2847
+ }
2848
+ #{Fragment::EntitlementsUpdatedV2Payload}
2849
+ #{Fragment::EntitlementUnionFragment}
2850
+ #{Fragment::FeatureEntitlementFragment}
2851
+ #{Fragment::ResetPeriodConfigurationFragment}
2852
+ #{Fragment::FeatureFragment}
2853
+ #{Fragment::CreditEntitlementFragment}
2854
+ GRAPHQL
2855
+
2721
2856
  OnUsageUpdated = <<~GRAPHQL
2722
2857
  subscription OnUsageUpdated {
2723
2858
  usageUpdated {
@@ -2731,6 +2866,17 @@ module Stigg
2731
2866
  #{Fragment::FeatureFragment}
2732
2867
  GRAPHQL
2733
2868
 
2869
+ OnUsageUpdatedV2 = <<~GRAPHQL
2870
+ subscription OnUsageUpdatedV2 {
2871
+ usageUpdatedV2 {
2872
+ ...UsageUpdatedV2Payload
2873
+ }
2874
+ }
2875
+ #{Fragment::UsageUpdatedV2Payload}
2876
+ #{Fragment::EntitlementReferenceFragment}
2877
+ #{Fragment::UsageV2Fragment}
2878
+ GRAPHQL
2879
+
2734
2880
  OnPackagePublished = <<~GRAPHQL
2735
2881
  subscription OnPackagePublished {
2736
2882
  packagePublished {
@@ -42,6 +42,12 @@
42
42
  "isDeprecated": false,
43
43
  "deprecationReason": null
44
44
  },
45
+ {
46
+ "name": "EntitlementNotFound",
47
+ "description": "No entitlement was found for the requested feature or currency.",
48
+ "isDeprecated": false,
49
+ "deprecationReason": null
50
+ },
45
51
  {
46
52
  "name": "FeatureNotFound",
47
53
  "description": "The requested feature does not exist or is not defined in the current environment.",
@@ -4534,7 +4540,7 @@
4534
4540
  "fields": [
4535
4541
  {
4536
4542
  "name": "entitlements",
4537
- "description": "The updated entitlements",
4543
+ "description": "The list of feature entitlements granted to the customer.",
4538
4544
  "args": [],
4539
4545
  "type": {
4540
4546
  "kind": "LIST",
@@ -4549,6 +4555,26 @@
4549
4555
  }
4550
4556
  }
4551
4557
  },
4558
+ "isDeprecated": true,
4559
+ "deprecationReason": "Use 'entitlementsV2' field instead to retrieve both feature and credit entitlements."
4560
+ },
4561
+ {
4562
+ "name": "entitlementsV2",
4563
+ "description": "The list of polymorphic entitlements (feature and credit) granted to the customer.",
4564
+ "args": [],
4565
+ "type": {
4566
+ "kind": "LIST",
4567
+ "name": null,
4568
+ "ofType": {
4569
+ "kind": "NON_NULL",
4570
+ "name": null,
4571
+ "ofType": {
4572
+ "kind": "UNION",
4573
+ "name": "EntitlementUnion",
4574
+ "ofType": null
4575
+ }
4576
+ }
4577
+ },
4552
4578
  "isDeprecated": false,
4553
4579
  "deprecationReason": null
4554
4580
  },
@@ -14320,6 +14346,121 @@
14320
14346
  ],
14321
14347
  "possibleTypes": null
14322
14348
  },
14349
+ {
14350
+ "kind": "OBJECT",
14351
+ "name": "CreditEntitlement",
14352
+ "description": "Represents a credit-based entitlement granted to a customer.",
14353
+ "fields": [
14354
+ {
14355
+ "name": "accessDeniedReason",
14356
+ "description": "Optional message explaining why access to the feature is denied.",
14357
+ "args": [],
14358
+ "type": {
14359
+ "kind": "ENUM",
14360
+ "name": "AccessDeniedReason",
14361
+ "ofType": null
14362
+ },
14363
+ "isDeprecated": false,
14364
+ "deprecationReason": null
14365
+ },
14366
+ {
14367
+ "name": "currency",
14368
+ "description": "The custom currency associated with this credit entitlement.",
14369
+ "args": [],
14370
+ "type": {
14371
+ "kind": "NON_NULL",
14372
+ "name": null,
14373
+ "ofType": {
14374
+ "kind": "OBJECT",
14375
+ "name": "EntitlementCurrency",
14376
+ "ofType": null
14377
+ }
14378
+ },
14379
+ "isDeprecated": false,
14380
+ "deprecationReason": null
14381
+ },
14382
+ {
14383
+ "name": "currentUsage",
14384
+ "description": "The total amount of credits consumed by the customer.",
14385
+ "args": [],
14386
+ "type": {
14387
+ "kind": "SCALAR",
14388
+ "name": "Float",
14389
+ "ofType": null
14390
+ },
14391
+ "isDeprecated": false,
14392
+ "deprecationReason": null
14393
+ },
14394
+ {
14395
+ "name": "entitlementUpdatedAt",
14396
+ "description": "Timestamp of the last update to the entitlement grant or configuration.",
14397
+ "args": [],
14398
+ "type": {
14399
+ "kind": "SCALAR",
14400
+ "name": "DateTime",
14401
+ "ofType": null
14402
+ },
14403
+ "isDeprecated": false,
14404
+ "deprecationReason": null
14405
+ },
14406
+ {
14407
+ "name": "isGranted",
14408
+ "description": "Indicates whether the entitlement is currently granted to the customer.",
14409
+ "args": [],
14410
+ "type": {
14411
+ "kind": "NON_NULL",
14412
+ "name": null,
14413
+ "ofType": {
14414
+ "kind": "SCALAR",
14415
+ "name": "Boolean",
14416
+ "ofType": null
14417
+ }
14418
+ },
14419
+ "isDeprecated": false,
14420
+ "deprecationReason": null
14421
+ },
14422
+ {
14423
+ "name": "usageLimit",
14424
+ "description": "The total amount of credits granted to the customer.",
14425
+ "args": [],
14426
+ "type": {
14427
+ "kind": "SCALAR",
14428
+ "name": "Float",
14429
+ "ofType": null
14430
+ },
14431
+ "isDeprecated": false,
14432
+ "deprecationReason": null
14433
+ },
14434
+ {
14435
+ "name": "usageUpdatedAt",
14436
+ "description": "Timestamp of the last update to the credit usage.",
14437
+ "args": [],
14438
+ "type": {
14439
+ "kind": "SCALAR",
14440
+ "name": "DateTime",
14441
+ "ofType": null
14442
+ },
14443
+ "isDeprecated": false,
14444
+ "deprecationReason": null
14445
+ },
14446
+ {
14447
+ "name": "validUntil",
14448
+ "description": "The next time the entitlement should be recalculated",
14449
+ "args": [],
14450
+ "type": {
14451
+ "kind": "SCALAR",
14452
+ "name": "DateTime",
14453
+ "ofType": null
14454
+ },
14455
+ "isDeprecated": false,
14456
+ "deprecationReason": null
14457
+ }
14458
+ ],
14459
+ "inputFields": null,
14460
+ "interfaces": [],
14461
+ "enumValues": null,
14462
+ "possibleTypes": null
14463
+ },
14323
14464
  {
14324
14465
  "kind": "OBJECT",
14325
14466
  "name": "CreditGrant",
@@ -29228,6 +29369,33 @@
29228
29369
  "enumValues": null,
29229
29370
  "possibleTypes": null
29230
29371
  },
29372
+ {
29373
+ "kind": "OBJECT",
29374
+ "name": "EntitlementCurrency",
29375
+ "description": "The currency associated with a credit entitlement.",
29376
+ "fields": [
29377
+ {
29378
+ "name": "currencyId",
29379
+ "description": "The unique identifier of the custom currency.",
29380
+ "args": [],
29381
+ "type": {
29382
+ "kind": "NON_NULL",
29383
+ "name": null,
29384
+ "ofType": {
29385
+ "kind": "SCALAR",
29386
+ "name": "String",
29387
+ "ofType": null
29388
+ }
29389
+ },
29390
+ "isDeprecated": false,
29391
+ "deprecationReason": null
29392
+ }
29393
+ ],
29394
+ "inputFields": null,
29395
+ "interfaces": [],
29396
+ "enumValues": null,
29397
+ "possibleTypes": null
29398
+ },
29231
29399
  {
29232
29400
  "kind": "OBJECT",
29233
29401
  "name": "EntitlementFeature",
@@ -29525,6 +29693,49 @@
29525
29693
  "enumValues": null,
29526
29694
  "possibleTypes": null
29527
29695
  },
29696
+ {
29697
+ "kind": "OBJECT",
29698
+ "name": "EntitlementReference",
29699
+ "description": "Reference to an entitlement with type discriminator and identifier",
29700
+ "fields": [
29701
+ {
29702
+ "name": "id",
29703
+ "description": "Identifier - featureId for FEATURE type, currencyId for CREDIT type",
29704
+ "args": [],
29705
+ "type": {
29706
+ "kind": "NON_NULL",
29707
+ "name": null,
29708
+ "ofType": {
29709
+ "kind": "SCALAR",
29710
+ "name": "String",
29711
+ "ofType": null
29712
+ }
29713
+ },
29714
+ "isDeprecated": false,
29715
+ "deprecationReason": null
29716
+ },
29717
+ {
29718
+ "name": "type",
29719
+ "description": "The type of entitlement (FEATURE or CREDIT)",
29720
+ "args": [],
29721
+ "type": {
29722
+ "kind": "NON_NULL",
29723
+ "name": null,
29724
+ "ofType": {
29725
+ "kind": "ENUM",
29726
+ "name": "EntitlementType",
29727
+ "ofType": null
29728
+ }
29729
+ },
29730
+ "isDeprecated": false,
29731
+ "deprecationReason": null
29732
+ }
29733
+ ],
29734
+ "inputFields": null,
29735
+ "interfaces": [],
29736
+ "enumValues": null,
29737
+ "possibleTypes": null
29738
+ },
29528
29739
  {
29529
29740
  "kind": "ENUM",
29530
29741
  "name": "EntitlementResetPeriod",
@@ -29665,6 +29876,50 @@
29665
29876
  "enumValues": null,
29666
29877
  "possibleTypes": null
29667
29878
  },
29879
+ {
29880
+ "kind": "ENUM",
29881
+ "name": "EntitlementType",
29882
+ "description": "The type of entitlement",
29883
+ "fields": null,
29884
+ "inputFields": null,
29885
+ "interfaces": null,
29886
+ "enumValues": [
29887
+ {
29888
+ "name": "CREDIT",
29889
+ "description": "A credit-based entitlement with balance management",
29890
+ "isDeprecated": false,
29891
+ "deprecationReason": null
29892
+ },
29893
+ {
29894
+ "name": "FEATURE",
29895
+ "description": "A feature-based entitlement with usage limits and access control",
29896
+ "isDeprecated": false,
29897
+ "deprecationReason": null
29898
+ }
29899
+ ],
29900
+ "possibleTypes": null
29901
+ },
29902
+ {
29903
+ "kind": "UNION",
29904
+ "name": "EntitlementUnion",
29905
+ "description": null,
29906
+ "fields": null,
29907
+ "inputFields": null,
29908
+ "interfaces": null,
29909
+ "enumValues": null,
29910
+ "possibleTypes": [
29911
+ {
29912
+ "kind": "OBJECT",
29913
+ "name": "CreditEntitlement",
29914
+ "ofType": null
29915
+ },
29916
+ {
29917
+ "kind": "OBJECT",
29918
+ "name": "FeatureEntitlement",
29919
+ "ofType": null
29920
+ }
29921
+ ]
29922
+ },
29668
29923
  {
29669
29924
  "kind": "OBJECT",
29670
29925
  "name": "EntitlementWithSummary",
@@ -30031,7 +30286,7 @@
30031
30286
  {
30032
30287
  "kind": "OBJECT",
30033
30288
  "name": "EntitlementsState",
30034
- "description": "Represents a list of entitlements granted to a customer, including its usage and reset configuration.",
30289
+ "description": "Represents a list of entitlements (both feature and credit) granted to a customer, including usage and configuration.",
30035
30290
  "fields": [
30036
30291
  {
30037
30292
  "name": "accessDeniedReason",
@@ -30047,7 +30302,7 @@
30047
30302
  },
30048
30303
  {
30049
30304
  "name": "entitlements",
30050
- "description": "The list of entitlements granted to the customer.",
30305
+ "description": "The list of feature entitlements granted to the customer.",
30051
30306
  "args": [],
30052
30307
  "type": {
30053
30308
  "kind": "NON_NULL",
@@ -30066,6 +30321,30 @@
30066
30321
  }
30067
30322
  }
30068
30323
  },
30324
+ "isDeprecated": true,
30325
+ "deprecationReason": "Use 'entitlementsV2' field instead to retrieve both feature and credit entitlements."
30326
+ },
30327
+ {
30328
+ "name": "entitlementsV2",
30329
+ "description": "The list of polymorphic entitlements (feature and credit) granted to the customer.",
30330
+ "args": [],
30331
+ "type": {
30332
+ "kind": "NON_NULL",
30333
+ "name": null,
30334
+ "ofType": {
30335
+ "kind": "LIST",
30336
+ "name": null,
30337
+ "ofType": {
30338
+ "kind": "NON_NULL",
30339
+ "name": null,
30340
+ "ofType": {
30341
+ "kind": "UNION",
30342
+ "name": "EntitlementUnion",
30343
+ "ofType": null
30344
+ }
30345
+ }
30346
+ }
30347
+ },
30069
30348
  "isDeprecated": false,
30070
30349
  "deprecationReason": null
30071
30350
  }
@@ -30211,6 +30490,113 @@
30211
30490
  "enumValues": null,
30212
30491
  "possibleTypes": null
30213
30492
  },
30493
+ {
30494
+ "kind": "OBJECT",
30495
+ "name": "EntitlementsUpdatedV2",
30496
+ "description": "Event payload for when entitlements are updated for a customer (v2 with polymorphic entitlements).",
30497
+ "fields": [
30498
+ {
30499
+ "name": "accessDeniedReason",
30500
+ "description": "The reason why access is denied.",
30501
+ "args": [],
30502
+ "type": {
30503
+ "kind": "ENUM",
30504
+ "name": "EntitlementsStateAccessDeniedReason",
30505
+ "ofType": null
30506
+ },
30507
+ "isDeprecated": false,
30508
+ "deprecationReason": null
30509
+ },
30510
+ {
30511
+ "name": "accountId",
30512
+ "description": "The unique identifier for the account",
30513
+ "args": [],
30514
+ "type": {
30515
+ "kind": "NON_NULL",
30516
+ "name": null,
30517
+ "ofType": {
30518
+ "kind": "SCALAR",
30519
+ "name": "String",
30520
+ "ofType": null
30521
+ }
30522
+ },
30523
+ "isDeprecated": false,
30524
+ "deprecationReason": null
30525
+ },
30526
+ {
30527
+ "name": "customerId",
30528
+ "description": "Identifier of the customer whose entitlements have changed.",
30529
+ "args": [],
30530
+ "type": {
30531
+ "kind": "NON_NULL",
30532
+ "name": null,
30533
+ "ofType": {
30534
+ "kind": "SCALAR",
30535
+ "name": "String",
30536
+ "ofType": null
30537
+ }
30538
+ },
30539
+ "isDeprecated": false,
30540
+ "deprecationReason": null
30541
+ },
30542
+ {
30543
+ "name": "entitlements",
30544
+ "description": "The updated list of polymorphic entitlements (feature and credit) for the customer.",
30545
+ "args": [],
30546
+ "type": {
30547
+ "kind": "NON_NULL",
30548
+ "name": null,
30549
+ "ofType": {
30550
+ "kind": "LIST",
30551
+ "name": null,
30552
+ "ofType": {
30553
+ "kind": "NON_NULL",
30554
+ "name": null,
30555
+ "ofType": {
30556
+ "kind": "UNION",
30557
+ "name": "EntitlementUnion",
30558
+ "ofType": null
30559
+ }
30560
+ }
30561
+ }
30562
+ },
30563
+ "isDeprecated": false,
30564
+ "deprecationReason": null
30565
+ },
30566
+ {
30567
+ "name": "environmentId",
30568
+ "description": "The unique identifier for the environment",
30569
+ "args": [],
30570
+ "type": {
30571
+ "kind": "NON_NULL",
30572
+ "name": null,
30573
+ "ofType": {
30574
+ "kind": "SCALAR",
30575
+ "name": "UUID",
30576
+ "ofType": null
30577
+ }
30578
+ },
30579
+ "isDeprecated": false,
30580
+ "deprecationReason": null
30581
+ },
30582
+ {
30583
+ "name": "resourceId",
30584
+ "description": "The resource the entitlement update is scoped to.",
30585
+ "args": [],
30586
+ "type": {
30587
+ "kind": "SCALAR",
30588
+ "name": "String",
30589
+ "ofType": null
30590
+ },
30591
+ "isDeprecated": false,
30592
+ "deprecationReason": null
30593
+ }
30594
+ ],
30595
+ "inputFields": null,
30596
+ "interfaces": [],
30597
+ "enumValues": null,
30598
+ "possibleTypes": null
30599
+ },
30214
30600
  {
30215
30601
  "kind": "ENUM",
30216
30602
  "name": "EntitySelectionMode",
@@ -37718,6 +38104,237 @@
37718
38104
  "enumValues": null,
37719
38105
  "possibleTypes": null
37720
38106
  },
38107
+ {
38108
+ "kind": "OBJECT",
38109
+ "name": "FeatureEntitlement",
38110
+ "description": "Represents a feature-based entitlement granted to a customer.",
38111
+ "fields": [
38112
+ {
38113
+ "name": "accessDeniedReason",
38114
+ "description": "Optional message explaining why access to the feature is denied.",
38115
+ "args": [],
38116
+ "type": {
38117
+ "kind": "ENUM",
38118
+ "name": "AccessDeniedReason",
38119
+ "ofType": null
38120
+ },
38121
+ "isDeprecated": false,
38122
+ "deprecationReason": null
38123
+ },
38124
+ {
38125
+ "name": "creditRate",
38126
+ "description": "The credit rate associated with this entitlement, if applicable.",
38127
+ "args": [],
38128
+ "type": {
38129
+ "kind": "OBJECT",
38130
+ "name": "CreditRate",
38131
+ "ofType": null
38132
+ },
38133
+ "isDeprecated": false,
38134
+ "deprecationReason": null
38135
+ },
38136
+ {
38137
+ "name": "currentUsage",
38138
+ "description": "The amount of the feature the customer has used so far in the current period.",
38139
+ "args": [],
38140
+ "type": {
38141
+ "kind": "SCALAR",
38142
+ "name": "Float",
38143
+ "ofType": null
38144
+ },
38145
+ "isDeprecated": false,
38146
+ "deprecationReason": null
38147
+ },
38148
+ {
38149
+ "name": "entitlementUpdatedAt",
38150
+ "description": "Timestamp of the last update to the entitlement grant or configuration.",
38151
+ "args": [],
38152
+ "type": {
38153
+ "kind": "SCALAR",
38154
+ "name": "DateTime",
38155
+ "ofType": null
38156
+ },
38157
+ "isDeprecated": false,
38158
+ "deprecationReason": null
38159
+ },
38160
+ {
38161
+ "name": "enumValues",
38162
+ "description": "List of enum values applicable to this entitlement, if it is an enum feature.",
38163
+ "args": [],
38164
+ "type": {
38165
+ "kind": "LIST",
38166
+ "name": null,
38167
+ "ofType": {
38168
+ "kind": "NON_NULL",
38169
+ "name": null,
38170
+ "ofType": {
38171
+ "kind": "SCALAR",
38172
+ "name": "String",
38173
+ "ofType": null
38174
+ }
38175
+ }
38176
+ },
38177
+ "isDeprecated": false,
38178
+ "deprecationReason": null
38179
+ },
38180
+ {
38181
+ "name": "feature",
38182
+ "description": "The feature this entitlement corresponds to.",
38183
+ "args": [],
38184
+ "type": {
38185
+ "kind": "OBJECT",
38186
+ "name": "EntitlementFeature",
38187
+ "ofType": null
38188
+ },
38189
+ "isDeprecated": false,
38190
+ "deprecationReason": null
38191
+ },
38192
+ {
38193
+ "name": "hasSoftLimit",
38194
+ "description": "Indicates whether the usage limit is soft — usage can exceed the limit, but will be tracked.",
38195
+ "args": [],
38196
+ "type": {
38197
+ "kind": "SCALAR",
38198
+ "name": "Boolean",
38199
+ "ofType": null
38200
+ },
38201
+ "isDeprecated": false,
38202
+ "deprecationReason": null
38203
+ },
38204
+ {
38205
+ "name": "hasUnlimitedUsage",
38206
+ "description": "Indicates whether this entitlement grants unlimited usage with no enforced cap.",
38207
+ "args": [],
38208
+ "type": {
38209
+ "kind": "NON_NULL",
38210
+ "name": null,
38211
+ "ofType": {
38212
+ "kind": "SCALAR",
38213
+ "name": "Boolean",
38214
+ "ofType": null
38215
+ }
38216
+ },
38217
+ "isDeprecated": false,
38218
+ "deprecationReason": null
38219
+ },
38220
+ {
38221
+ "name": "isGranted",
38222
+ "description": "Indicates whether the entitlement is currently granted to the customer.",
38223
+ "args": [],
38224
+ "type": {
38225
+ "kind": "NON_NULL",
38226
+ "name": null,
38227
+ "ofType": {
38228
+ "kind": "SCALAR",
38229
+ "name": "Boolean",
38230
+ "ofType": null
38231
+ }
38232
+ },
38233
+ "isDeprecated": false,
38234
+ "deprecationReason": null
38235
+ },
38236
+ {
38237
+ "name": "resetPeriod",
38238
+ "description": "The interval at which usage resets automatically, such as monthly or yearly.",
38239
+ "args": [],
38240
+ "type": {
38241
+ "kind": "ENUM",
38242
+ "name": "EntitlementResetPeriod",
38243
+ "ofType": null
38244
+ },
38245
+ "isDeprecated": false,
38246
+ "deprecationReason": null
38247
+ },
38248
+ {
38249
+ "name": "resetPeriodConfiguration",
38250
+ "description": "Detailed configuration object specifying the usage reset schedule.",
38251
+ "args": [],
38252
+ "type": {
38253
+ "kind": "UNION",
38254
+ "name": "ResetPeriodConfiguration",
38255
+ "ofType": null
38256
+ },
38257
+ "isDeprecated": false,
38258
+ "deprecationReason": null
38259
+ },
38260
+ {
38261
+ "name": "usageLimit",
38262
+ "description": "The maximum allowed usage for this entitlement before restrictions apply.",
38263
+ "args": [],
38264
+ "type": {
38265
+ "kind": "SCALAR",
38266
+ "name": "Float",
38267
+ "ofType": null
38268
+ },
38269
+ "isDeprecated": false,
38270
+ "deprecationReason": null
38271
+ },
38272
+ {
38273
+ "name": "usagePeriodAnchor",
38274
+ "description": "The anchor for calculating the usage period for metered entitlements with a reset period configured",
38275
+ "args": [],
38276
+ "type": {
38277
+ "kind": "SCALAR",
38278
+ "name": "DateTime",
38279
+ "ofType": null
38280
+ },
38281
+ "isDeprecated": false,
38282
+ "deprecationReason": null
38283
+ },
38284
+ {
38285
+ "name": "usagePeriodEnd",
38286
+ "description": "The end date of the usage period for metered entitlements with a reset period configured",
38287
+ "args": [],
38288
+ "type": {
38289
+ "kind": "SCALAR",
38290
+ "name": "DateTime",
38291
+ "ofType": null
38292
+ },
38293
+ "isDeprecated": false,
38294
+ "deprecationReason": null
38295
+ },
38296
+ {
38297
+ "name": "usagePeriodStart",
38298
+ "description": "The start date of the usage period for metered entitlements with a reset period configured",
38299
+ "args": [],
38300
+ "type": {
38301
+ "kind": "SCALAR",
38302
+ "name": "DateTime",
38303
+ "ofType": null
38304
+ },
38305
+ "isDeprecated": false,
38306
+ "deprecationReason": null
38307
+ },
38308
+ {
38309
+ "name": "usageUpdatedAt",
38310
+ "description": "Timestamp of the last update to the usage value.",
38311
+ "args": [],
38312
+ "type": {
38313
+ "kind": "SCALAR",
38314
+ "name": "DateTime",
38315
+ "ofType": null
38316
+ },
38317
+ "isDeprecated": false,
38318
+ "deprecationReason": null
38319
+ },
38320
+ {
38321
+ "name": "validUntil",
38322
+ "description": "The next time the entitlement should be recalculated",
38323
+ "args": [],
38324
+ "type": {
38325
+ "kind": "SCALAR",
38326
+ "name": "DateTime",
38327
+ "ofType": null
38328
+ },
38329
+ "isDeprecated": false,
38330
+ "deprecationReason": null
38331
+ }
38332
+ ],
38333
+ "inputFields": null,
38334
+ "interfaces": [],
38335
+ "enumValues": null,
38336
+ "possibleTypes": null
38337
+ },
37721
38338
  {
37722
38339
  "kind": "INPUT_OBJECT",
37723
38340
  "name": "FeatureFilter",
@@ -79582,7 +80199,7 @@
79582
80199
  },
79583
80200
  {
79584
80201
  "name": "entitlements",
79585
- "description": null,
80202
+ "description": "The list of feature entitlements granted to the customer.",
79586
80203
  "args": [],
79587
80204
  "type": {
79588
80205
  "kind": "LIST",
@@ -79597,6 +80214,26 @@
79597
80214
  }
79598
80215
  }
79599
80216
  },
80217
+ "isDeprecated": true,
80218
+ "deprecationReason": "Use 'entitlementsV2' field instead to retrieve both feature and credit entitlements."
80219
+ },
80220
+ {
80221
+ "name": "entitlementsV2",
80222
+ "description": "The list of polymorphic entitlements (feature and credit) granted to the customer.",
80223
+ "args": [],
80224
+ "type": {
80225
+ "kind": "LIST",
80226
+ "name": null,
80227
+ "ofType": {
80228
+ "kind": "NON_NULL",
80229
+ "name": null,
80230
+ "ofType": {
80231
+ "kind": "UNION",
80232
+ "name": "EntitlementUnion",
80233
+ "ofType": null
80234
+ }
80235
+ }
80236
+ },
79600
80237
  "isDeprecated": false,
79601
80238
  "deprecationReason": null
79602
80239
  },
@@ -79708,7 +80345,7 @@
79708
80345
  },
79709
80346
  {
79710
80347
  "name": "entitlements",
79711
- "description": "Entitlements",
80348
+ "description": "The list of feature entitlements granted to the customer.",
79712
80349
  "args": [],
79713
80350
  "type": {
79714
80351
  "kind": "LIST",
@@ -79723,6 +80360,26 @@
79723
80360
  }
79724
80361
  }
79725
80362
  },
80363
+ "isDeprecated": true,
80364
+ "deprecationReason": "Use 'entitlementsV2' field instead to retrieve both feature and credit entitlements."
80365
+ },
80366
+ {
80367
+ "name": "entitlementsV2",
80368
+ "description": "The list of polymorphic entitlements (feature and credit) granted to the customer.",
80369
+ "args": [],
80370
+ "type": {
80371
+ "kind": "LIST",
80372
+ "name": null,
80373
+ "ofType": {
80374
+ "kind": "NON_NULL",
80375
+ "name": null,
80376
+ "ofType": {
80377
+ "kind": "UNION",
80378
+ "name": "EntitlementUnion",
80379
+ "ofType": null
80380
+ }
80381
+ }
80382
+ },
79726
80383
  "isDeprecated": false,
79727
80384
  "deprecationReason": null
79728
80385
  },
@@ -87427,6 +88084,22 @@
87427
88084
  "ofType": null
87428
88085
  }
87429
88086
  },
88087
+ "isDeprecated": true,
88088
+ "deprecationReason": "Use 'entitlementsUpdatedV2' subscription instead to receive both feature and credit entitlements."
88089
+ },
88090
+ {
88091
+ "name": "entitlementsUpdatedV2",
88092
+ "description": "Subscribe to real-time updates when a customers entitlements change (v2 with polymorphic entitlements).",
88093
+ "args": [],
88094
+ "type": {
88095
+ "kind": "NON_NULL",
88096
+ "name": null,
88097
+ "ofType": {
88098
+ "kind": "OBJECT",
88099
+ "name": "EntitlementsUpdatedV2",
88100
+ "ofType": null
88101
+ }
88102
+ },
87430
88103
  "isDeprecated": false,
87431
88104
  "deprecationReason": null
87432
88105
  },
@@ -87459,6 +88132,22 @@
87459
88132
  "ofType": null
87460
88133
  }
87461
88134
  },
88135
+ "isDeprecated": true,
88136
+ "deprecationReason": "Use usageUpdatedV2 instead, which supports both feature and credit usage updates."
88137
+ },
88138
+ {
88139
+ "name": "usageUpdatedV2",
88140
+ "description": null,
88141
+ "args": [],
88142
+ "type": {
88143
+ "kind": "NON_NULL",
88144
+ "name": null,
88145
+ "ofType": {
88146
+ "kind": "OBJECT",
88147
+ "name": "UsageUpdatedV2",
88148
+ "ofType": null
88149
+ }
88150
+ },
87462
88151
  "isDeprecated": false,
87463
88152
  "deprecationReason": null
87464
88153
  }
@@ -107431,6 +108120,176 @@
107431
108120
  "enumValues": null,
107432
108121
  "possibleTypes": null
107433
108122
  },
108123
+ {
108124
+ "kind": "OBJECT",
108125
+ "name": "UsageUpdatedV2",
108126
+ "description": "Usage updated event supporting both feature and credit consumption",
108127
+ "fields": [
108128
+ {
108129
+ "name": "accountId",
108130
+ "description": "The unique identifier for the account",
108131
+ "args": [],
108132
+ "type": {
108133
+ "kind": "NON_NULL",
108134
+ "name": null,
108135
+ "ofType": {
108136
+ "kind": "SCALAR",
108137
+ "name": "String",
108138
+ "ofType": null
108139
+ }
108140
+ },
108141
+ "isDeprecated": false,
108142
+ "deprecationReason": null
108143
+ },
108144
+ {
108145
+ "name": "customerId",
108146
+ "description": "Customer id",
108147
+ "args": [],
108148
+ "type": {
108149
+ "kind": "NON_NULL",
108150
+ "name": null,
108151
+ "ofType": {
108152
+ "kind": "SCALAR",
108153
+ "name": "String",
108154
+ "ofType": null
108155
+ }
108156
+ },
108157
+ "isDeprecated": false,
108158
+ "deprecationReason": null
108159
+ },
108160
+ {
108161
+ "name": "entitlementReference",
108162
+ "description": "Reference to the entitlement whose usage was updated",
108163
+ "args": [],
108164
+ "type": {
108165
+ "kind": "NON_NULL",
108166
+ "name": null,
108167
+ "ofType": {
108168
+ "kind": "OBJECT",
108169
+ "name": "EntitlementReference",
108170
+ "ofType": null
108171
+ }
108172
+ },
108173
+ "isDeprecated": false,
108174
+ "deprecationReason": null
108175
+ },
108176
+ {
108177
+ "name": "environmentId",
108178
+ "description": "The unique identifier for the environment",
108179
+ "args": [],
108180
+ "type": {
108181
+ "kind": "NON_NULL",
108182
+ "name": null,
108183
+ "ofType": {
108184
+ "kind": "SCALAR",
108185
+ "name": "UUID",
108186
+ "ofType": null
108187
+ }
108188
+ },
108189
+ "isDeprecated": false,
108190
+ "deprecationReason": null
108191
+ },
108192
+ {
108193
+ "name": "resourceId",
108194
+ "description": "Resource id",
108195
+ "args": [],
108196
+ "type": {
108197
+ "kind": "SCALAR",
108198
+ "name": "String",
108199
+ "ofType": null
108200
+ },
108201
+ "isDeprecated": false,
108202
+ "deprecationReason": null
108203
+ },
108204
+ {
108205
+ "name": "usage",
108206
+ "description": "Usage",
108207
+ "args": [],
108208
+ "type": {
108209
+ "kind": "NON_NULL",
108210
+ "name": null,
108211
+ "ofType": {
108212
+ "kind": "OBJECT",
108213
+ "name": "UsageV2",
108214
+ "ofType": null
108215
+ }
108216
+ },
108217
+ "isDeprecated": false,
108218
+ "deprecationReason": null
108219
+ }
108220
+ ],
108221
+ "inputFields": null,
108222
+ "interfaces": [],
108223
+ "enumValues": null,
108224
+ "possibleTypes": null
108225
+ },
108226
+ {
108227
+ "kind": "OBJECT",
108228
+ "name": "UsageV2",
108229
+ "description": "Usage measurement data",
108230
+ "fields": [
108231
+ {
108232
+ "name": "currentUsage",
108233
+ "description": "The current measured usage value",
108234
+ "args": [],
108235
+ "type": {
108236
+ "kind": "NON_NULL",
108237
+ "name": null,
108238
+ "ofType": {
108239
+ "kind": "SCALAR",
108240
+ "name": "Float",
108241
+ "ofType": null
108242
+ }
108243
+ },
108244
+ "isDeprecated": false,
108245
+ "deprecationReason": null
108246
+ },
108247
+ {
108248
+ "name": "usagePeriodEnd",
108249
+ "description": "The end date of the usage period in which this measurement resides (for entitlements with a reset period)",
108250
+ "args": [],
108251
+ "type": {
108252
+ "kind": "SCALAR",
108253
+ "name": "DateTime",
108254
+ "ofType": null
108255
+ },
108256
+ "isDeprecated": false,
108257
+ "deprecationReason": null
108258
+ },
108259
+ {
108260
+ "name": "usagePeriodStart",
108261
+ "description": "The start date of the usage period in which this measurement resides (for entitlements with a reset period)",
108262
+ "args": [],
108263
+ "type": {
108264
+ "kind": "SCALAR",
108265
+ "name": "DateTime",
108266
+ "ofType": null
108267
+ },
108268
+ "isDeprecated": false,
108269
+ "deprecationReason": null
108270
+ },
108271
+ {
108272
+ "name": "usageUpdatedAt",
108273
+ "description": "Timestamp of when the usage was last updated.",
108274
+ "args": [],
108275
+ "type": {
108276
+ "kind": "NON_NULL",
108277
+ "name": null,
108278
+ "ofType": {
108279
+ "kind": "SCALAR",
108280
+ "name": "DateTime",
108281
+ "ofType": null
108282
+ }
108283
+ },
108284
+ "isDeprecated": false,
108285
+ "deprecationReason": null
108286
+ }
108287
+ ],
108288
+ "inputFields": null,
108289
+ "interfaces": [],
108290
+ "enumValues": null,
108291
+ "possibleTypes": null
108292
+ },
107434
108293
  {
107435
108294
  "kind": "OBJECT",
107436
108295
  "name": "User",
data/lib/stigg/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stigg
4
- VERSION = "5.154.0"
4
+ VERSION = "5.164.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: 5.154.0
4
+ version: 5.164.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stigg
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-01-21 00:00:00.000000000 Z
11
+ date: 2026-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphlient