stigg-api-client 6.11.0 → 6.13.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: ed75c80e732fb6b7d5e341d5ece16c920f7740e08b2da30ba012901948700afa
4
- data.tar.gz: c1228f5394cc535b1946663bf7520f41d17179b087f98e4f16d323def99f4a0a
3
+ metadata.gz: ca7f7496d56241a34e947601f4f2132790220d2e5f992c919deb81c99df08613
4
+ data.tar.gz: a6781ae1722b36663f3f45fc5646efee34dd8d7acb831dacd86046749a533b41
5
5
  SHA512:
6
- metadata.gz: daf5f2493fc03d69507b83bb87a65d9e8eac249a097d436538b05fe41f0d23e66eb7cbcf7383c8a3556dd242d9bbdaf9ab63086a68c1547e027a05a7112792f5
7
- data.tar.gz: b10a594b19923936f64e71dbbc5782feebbed92577f5551f0edbb75bf56e2b76e69c02bf759c74039b0ca7aa312be749630c7435f0165582dd9104184724632e
6
+ metadata.gz: 88acf1afc095af9b35dda2f93e2ce9900ddbcddbd061f8e62dbafd2cead0967cdea5ccf44f27388050d94adff5f3f0f4587502be6d72ef36ea3b96cd500f9ffe
7
+ data.tar.gz: '086e7403853c4af50acc1cecda339ab23d2be9759d59ea4160523bd1a78dd6eed63beadd6fd14149bd81fd2ed9d9fc594603e1ff0091f7b91da67587ddbcf62d'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- stigg-api-client (6.11.0)
4
+ stigg-api-client (6.13.0)
5
5
  graphlient (>= 0.6.0, < 1.0)
6
6
  graphql-client (>= 0.19, < 1.0)
7
7
 
@@ -1450,6 +1450,28 @@ module Stigg
1450
1450
  scheduledUpdates {
1451
1451
  ...CustomerPortalSubscriptionScheduledUpdateDataFragment
1452
1452
  }
1453
+ previewNextInvoice {
1454
+ total {
1455
+ amount
1456
+ currency
1457
+ }
1458
+ amountDue {
1459
+ amount
1460
+ currency
1461
+ }
1462
+ lines {
1463
+ quantity
1464
+ period {
1465
+ start
1466
+ end
1467
+ }
1468
+ price {
1469
+ feature {
1470
+ refId
1471
+ }
1472
+ }
1473
+ }
1474
+ }
1453
1475
  }
1454
1476
  GRAPHQL
1455
1477
 
@@ -1830,6 +1852,12 @@ module Stigg
1830
1852
  customerId
1831
1853
  resourceId
1832
1854
  currentUsage
1855
+ credit {
1856
+ currencyId
1857
+ currentUsage
1858
+ usagePeriodEnd
1859
+ timestamp
1860
+ }
1833
1861
  usagePeriodStart
1834
1862
  usagePeriodEnd
1835
1863
  nextResetDate
@@ -593,6 +593,26 @@
593
593
  "isDeprecated": false,
594
594
  "deprecationReason": null
595
595
  },
596
+ {
597
+ "name": "enabledModels",
598
+ "description": "Subset of data-export models to enable on this destination (omit for all)",
599
+ "type": {
600
+ "kind": "LIST",
601
+ "name": null,
602
+ "ofType": {
603
+ "kind": "NON_NULL",
604
+ "name": null,
605
+ "ofType": {
606
+ "kind": "SCALAR",
607
+ "name": "String",
608
+ "ofType": null
609
+ }
610
+ }
611
+ },
612
+ "defaultValue": null,
613
+ "isDeprecated": false,
614
+ "deprecationReason": null
615
+ },
596
616
  {
597
617
  "name": "environmentId",
598
618
  "description": "The unique identifier for the environment",
@@ -5166,6 +5186,18 @@
5166
5186
  "isDeprecated": false,
5167
5187
  "deprecationReason": null
5168
5188
  },
5189
+ {
5190
+ "name": "cancellationDate",
5191
+ "description": "Subscription cancellation date",
5192
+ "type": {
5193
+ "kind": "SCALAR",
5194
+ "name": "DateTime",
5195
+ "ofType": null
5196
+ },
5197
+ "defaultValue": null,
5198
+ "isDeprecated": false,
5199
+ "deprecationReason": null
5200
+ },
5169
5201
  {
5170
5202
  "name": "charges",
5171
5203
  "description": null,
@@ -22967,6 +22999,18 @@
22967
22999
  "isDeprecated": false,
22968
23000
  "deprecationReason": null
22969
23001
  },
23002
+ {
23003
+ "name": "previewNextInvoice",
23004
+ "description": "A period-scoped preview of the next upcoming invoice for this subscription, including the amount due and per-line usage quantities. Integration-aware (mirrors the previewNextInvoice mutation). Null when the preview could not be computed.",
23005
+ "args": [],
23006
+ "type": {
23007
+ "kind": "OBJECT",
23008
+ "name": "SubscriptionInvoicePreview",
23009
+ "ofType": null
23010
+ },
23011
+ "isDeprecated": false,
23012
+ "deprecationReason": null
23013
+ },
22970
23014
  {
22971
23015
  "name": "scheduledUpdates",
22972
23016
  "description": "Any upcoming changes to the subscription that are scheduled to take effect.",
@@ -28832,6 +28876,151 @@
28832
28876
  ],
28833
28877
  "possibleTypes": null
28834
28878
  },
28879
+ {
28880
+ "kind": "OBJECT",
28881
+ "name": "DataExportModel",
28882
+ "description": "A single data-export model the customer can opt into.",
28883
+ "fields": [
28884
+ {
28885
+ "name": "displayName",
28886
+ "description": "Customer-facing label for the model",
28887
+ "args": [],
28888
+ "type": {
28889
+ "kind": "NON_NULL",
28890
+ "name": null,
28891
+ "ofType": {
28892
+ "kind": "SCALAR",
28893
+ "name": "String",
28894
+ "ofType": null
28895
+ }
28896
+ },
28897
+ "isDeprecated": false,
28898
+ "deprecationReason": null
28899
+ },
28900
+ {
28901
+ "name": "id",
28902
+ "description": "Wire identifier — what gets persisted on the destination and registered with the provider",
28903
+ "args": [],
28904
+ "type": {
28905
+ "kind": "NON_NULL",
28906
+ "name": null,
28907
+ "ofType": {
28908
+ "kind": "SCALAR",
28909
+ "name": "String",
28910
+ "ofType": null
28911
+ }
28912
+ },
28913
+ "isDeprecated": false,
28914
+ "deprecationReason": null
28915
+ }
28916
+ ],
28917
+ "inputFields": null,
28918
+ "interfaces": [],
28919
+ "enumValues": null,
28920
+ "possibleTypes": null
28921
+ },
28922
+ {
28923
+ "kind": "OBJECT",
28924
+ "name": "DataExportModelCatalog",
28925
+ "description": "Grouped catalog of every data-export model a destination can opt into.",
28926
+ "fields": [
28927
+ {
28928
+ "name": "groups",
28929
+ "description": "Groups of data-export models, in display order",
28930
+ "args": [],
28931
+ "type": {
28932
+ "kind": "NON_NULL",
28933
+ "name": null,
28934
+ "ofType": {
28935
+ "kind": "LIST",
28936
+ "name": null,
28937
+ "ofType": {
28938
+ "kind": "NON_NULL",
28939
+ "name": null,
28940
+ "ofType": {
28941
+ "kind": "OBJECT",
28942
+ "name": "DataExportModelGroup",
28943
+ "ofType": null
28944
+ }
28945
+ }
28946
+ }
28947
+ },
28948
+ "isDeprecated": false,
28949
+ "deprecationReason": null
28950
+ }
28951
+ ],
28952
+ "inputFields": null,
28953
+ "interfaces": [],
28954
+ "enumValues": null,
28955
+ "possibleTypes": null
28956
+ },
28957
+ {
28958
+ "kind": "OBJECT",
28959
+ "name": "DataExportModelGroup",
28960
+ "description": "A group of related data-export models, mirroring the public docs taxonomy.",
28961
+ "fields": [
28962
+ {
28963
+ "name": "displayName",
28964
+ "description": "Customer-facing group label",
28965
+ "args": [],
28966
+ "type": {
28967
+ "kind": "NON_NULL",
28968
+ "name": null,
28969
+ "ofType": {
28970
+ "kind": "SCALAR",
28971
+ "name": "String",
28972
+ "ofType": null
28973
+ }
28974
+ },
28975
+ "isDeprecated": false,
28976
+ "deprecationReason": null
28977
+ },
28978
+ {
28979
+ "name": "id",
28980
+ "description": "Stable group identifier",
28981
+ "args": [],
28982
+ "type": {
28983
+ "kind": "NON_NULL",
28984
+ "name": null,
28985
+ "ofType": {
28986
+ "kind": "SCALAR",
28987
+ "name": "String",
28988
+ "ofType": null
28989
+ }
28990
+ },
28991
+ "isDeprecated": false,
28992
+ "deprecationReason": null
28993
+ },
28994
+ {
28995
+ "name": "models",
28996
+ "description": "Models in this group",
28997
+ "args": [],
28998
+ "type": {
28999
+ "kind": "NON_NULL",
29000
+ "name": null,
29001
+ "ofType": {
29002
+ "kind": "LIST",
29003
+ "name": null,
29004
+ "ofType": {
29005
+ "kind": "NON_NULL",
29006
+ "name": null,
29007
+ "ofType": {
29008
+ "kind": "OBJECT",
29009
+ "name": "DataExportModel",
29010
+ "ofType": null
29011
+ }
29012
+ }
29013
+ }
29014
+ },
29015
+ "isDeprecated": false,
29016
+ "deprecationReason": null
29017
+ }
29018
+ ],
29019
+ "inputFields": null,
29020
+ "interfaces": [],
29021
+ "enumValues": null,
29022
+ "possibleTypes": null
29023
+ },
28835
29024
  {
28836
29025
  "kind": "OBJECT",
28837
29026
  "name": "DataExportScopedToken",
@@ -35001,6 +35190,12 @@
35001
35190
  "isDeprecated": false,
35002
35191
  "deprecationReason": null
35003
35192
  },
35193
+ {
35194
+ "name": "InvoicePreviewNotAvailableForDraftContract",
35195
+ "description": "Invoice preview is not available while the billing contract is still a draft",
35196
+ "isDeprecated": false,
35197
+ "deprecationReason": null
35198
+ },
35004
35199
  {
35005
35200
  "name": "MemberInvitationError",
35006
35201
  "description": null,
@@ -44934,6 +45129,26 @@
44934
45129
  "isDeprecated": false,
44935
45130
  "deprecationReason": null
44936
45131
  },
45132
+ {
45133
+ "name": "enabledModels",
45134
+ "description": "Subset of data-export models to enable on this destination (omit for all)",
45135
+ "type": {
45136
+ "kind": "LIST",
45137
+ "name": null,
45138
+ "ofType": {
45139
+ "kind": "NON_NULL",
45140
+ "name": null,
45141
+ "ofType": {
45142
+ "kind": "SCALAR",
45143
+ "name": "String",
45144
+ "ofType": null
45145
+ }
45146
+ }
45147
+ },
45148
+ "defaultValue": null,
45149
+ "isDeprecated": false,
45150
+ "deprecationReason": null
45151
+ },
44937
45152
  {
44938
45153
  "name": "environmentId",
44939
45154
  "description": "The unique identifier for the environment",
@@ -59333,6 +59548,39 @@
59333
59548
  "isDeprecated": false,
59334
59549
  "deprecationReason": null
59335
59550
  },
59551
+ {
59552
+ "name": "updateDataExportDestinationSelection",
59553
+ "description": "Update the model selection of an existing data-export destination (dashboard post-connect editor).",
59554
+ "args": [
59555
+ {
59556
+ "name": "input",
59557
+ "description": null,
59558
+ "type": {
59559
+ "kind": "NON_NULL",
59560
+ "name": null,
59561
+ "ofType": {
59562
+ "kind": "INPUT_OBJECT",
59563
+ "name": "UpdateDataExportSelectionInput",
59564
+ "ofType": null
59565
+ }
59566
+ },
59567
+ "defaultValue": null,
59568
+ "isDeprecated": false,
59569
+ "deprecationReason": null
59570
+ }
59571
+ ],
59572
+ "type": {
59573
+ "kind": "NON_NULL",
59574
+ "name": null,
59575
+ "ofType": {
59576
+ "kind": "SCALAR",
59577
+ "name": "JSON",
59578
+ "ofType": null
59579
+ }
59580
+ },
59581
+ "isDeprecated": false,
59582
+ "deprecationReason": null
59583
+ },
59336
59584
  {
59337
59585
  "name": "updateEntitlementsOrder",
59338
59586
  "description": "Update entitlements order",
@@ -86526,6 +86774,22 @@
86526
86774
  "isDeprecated": false,
86527
86775
  "deprecationReason": null
86528
86776
  },
86777
+ {
86778
+ "name": "dataExportModelCatalog",
86779
+ "description": "List the catalog of data-export models the customer can opt into when connecting a destination",
86780
+ "args": [],
86781
+ "type": {
86782
+ "kind": "NON_NULL",
86783
+ "name": null,
86784
+ "ofType": {
86785
+ "kind": "OBJECT",
86786
+ "name": "DataExportModelCatalog",
86787
+ "ofType": null
86788
+ }
86789
+ },
86790
+ "isDeprecated": false,
86791
+ "deprecationReason": null
86792
+ },
86529
86793
  {
86530
86794
  "name": "dataExportSyncStatus",
86531
86795
  "description": "Get the last sync status of a data export integration",
@@ -98612,6 +98876,18 @@
98612
98876
  "isDeprecated": false,
98613
98877
  "deprecationReason": null
98614
98878
  },
98879
+ {
98880
+ "name": "cancellationDate",
98881
+ "description": "Subscription cancellation date",
98882
+ "type": {
98883
+ "kind": "SCALAR",
98884
+ "name": "DateTime",
98885
+ "ofType": null
98886
+ },
98887
+ "defaultValue": null,
98888
+ "isDeprecated": false,
98889
+ "deprecationReason": null
98890
+ },
98615
98891
  {
98616
98892
  "name": "charges",
98617
98893
  "description": null,
@@ -110569,6 +110845,85 @@
110569
110845
  "enumValues": null,
110570
110846
  "possibleTypes": null
110571
110847
  },
110848
+ {
110849
+ "kind": "INPUT_OBJECT",
110850
+ "name": "UpdateDataExportSelectionInput",
110851
+ "description": "Input for updating the model selection of an existing data-export destination",
110852
+ "fields": null,
110853
+ "inputFields": [
110854
+ {
110855
+ "name": "destinationId",
110856
+ "description": "The provider's opaque destination identifier to update",
110857
+ "type": {
110858
+ "kind": "NON_NULL",
110859
+ "name": null,
110860
+ "ofType": {
110861
+ "kind": "SCALAR",
110862
+ "name": "String",
110863
+ "ofType": null
110864
+ }
110865
+ },
110866
+ "defaultValue": null,
110867
+ "isDeprecated": false,
110868
+ "deprecationReason": null
110869
+ },
110870
+ {
110871
+ "name": "enabledModels",
110872
+ "description": "The new, non-empty set of data-export models to enable on this destination",
110873
+ "type": {
110874
+ "kind": "NON_NULL",
110875
+ "name": null,
110876
+ "ofType": {
110877
+ "kind": "LIST",
110878
+ "name": null,
110879
+ "ofType": {
110880
+ "kind": "NON_NULL",
110881
+ "name": null,
110882
+ "ofType": {
110883
+ "kind": "SCALAR",
110884
+ "name": "String",
110885
+ "ofType": null
110886
+ }
110887
+ }
110888
+ }
110889
+ },
110890
+ "defaultValue": null,
110891
+ "isDeprecated": false,
110892
+ "deprecationReason": null
110893
+ },
110894
+ {
110895
+ "name": "environmentId",
110896
+ "description": "The unique identifier for the environment",
110897
+ "type": {
110898
+ "kind": "SCALAR",
110899
+ "name": "String",
110900
+ "ofType": null
110901
+ },
110902
+ "defaultValue": null,
110903
+ "isDeprecated": false,
110904
+ "deprecationReason": null
110905
+ },
110906
+ {
110907
+ "name": "integrationId",
110908
+ "description": "The ID of the data export integration that owns the destination",
110909
+ "type": {
110910
+ "kind": "NON_NULL",
110911
+ "name": null,
110912
+ "ofType": {
110913
+ "kind": "SCALAR",
110914
+ "name": "String",
110915
+ "ofType": null
110916
+ }
110917
+ },
110918
+ "defaultValue": null,
110919
+ "isDeprecated": false,
110920
+ "deprecationReason": null
110921
+ }
110922
+ ],
110923
+ "interfaces": null,
110924
+ "enumValues": null,
110925
+ "possibleTypes": null
110926
+ },
110572
110927
  {
110573
110928
  "kind": "OBJECT",
110574
110929
  "name": "UpdateEntitlementsOrderDTO",
@@ -112022,6 +112377,18 @@
112022
112377
  "isDeprecated": false,
112023
112378
  "deprecationReason": null
112024
112379
  },
112380
+ {
112381
+ "name": "salesforceId",
112382
+ "description": "Salesforce ID",
112383
+ "type": {
112384
+ "kind": "SCALAR",
112385
+ "name": "String",
112386
+ "ofType": null
112387
+ },
112388
+ "defaultValue": null,
112389
+ "isDeprecated": false,
112390
+ "deprecationReason": null
112391
+ },
112025
112392
  {
112026
112393
  "name": "scheduleStrategy",
112027
112394
  "description": null,
@@ -112996,6 +113363,18 @@
112996
113363
  "isDeprecated": false,
112997
113364
  "deprecationReason": null
112998
113365
  },
113366
+ {
113367
+ "name": "pageInfo",
113368
+ "description": "Cursor pagination info for series groups; present only when paging input is provided.",
113369
+ "args": [],
113370
+ "type": {
113371
+ "kind": "OBJECT",
113372
+ "name": "PageInfo",
113373
+ "ofType": null
113374
+ },
113375
+ "isDeprecated": false,
113376
+ "deprecationReason": null
113377
+ },
112999
113378
  {
113000
113379
  "name": "series",
113001
113380
  "description": "Series of usage history",
@@ -113120,6 +113499,18 @@
113120
113499
  "isDeprecated": false,
113121
113500
  "deprecationReason": null
113122
113501
  },
113502
+ {
113503
+ "name": "paging",
113504
+ "description": "Cursor pagination over series groups. When omitted, all groups are returned and no pageInfo is emitted.",
113505
+ "type": {
113506
+ "kind": "INPUT_OBJECT",
113507
+ "name": "CursorPaging",
113508
+ "ofType": null
113509
+ },
113510
+ "defaultValue": null,
113511
+ "isDeprecated": false,
113512
+ "deprecationReason": null
113513
+ },
113123
113514
  {
113124
113515
  "name": "resourceId",
113125
113516
  "description": "Resource id",
@@ -113654,6 +114045,93 @@
113654
114045
  "enumValues": null,
113655
114046
  "possibleTypes": null
113656
114047
  },
114048
+ {
114049
+ "kind": "OBJECT",
114050
+ "name": "UsageMeasurementCredit",
114051
+ "description": "Optimistic credit balance for a credit-backed feature",
114052
+ "fields": [
114053
+ {
114054
+ "name": "currencyId",
114055
+ "description": "The credit currency identifier",
114056
+ "args": [],
114057
+ "type": {
114058
+ "kind": "NON_NULL",
114059
+ "name": null,
114060
+ "ofType": {
114061
+ "kind": "SCALAR",
114062
+ "name": "String",
114063
+ "ofType": null
114064
+ }
114065
+ },
114066
+ "isDeprecated": false,
114067
+ "deprecationReason": null
114068
+ },
114069
+ {
114070
+ "name": "currentUsage",
114071
+ "description": "The credits consumed (optimistic — includes not-yet-reconciled usage)",
114072
+ "args": [],
114073
+ "type": {
114074
+ "kind": "NON_NULL",
114075
+ "name": null,
114076
+ "ofType": {
114077
+ "kind": "SCALAR",
114078
+ "name": "Float",
114079
+ "ofType": null
114080
+ }
114081
+ },
114082
+ "isDeprecated": false,
114083
+ "deprecationReason": null
114084
+ },
114085
+ {
114086
+ "name": "timestamp",
114087
+ "description": "The grant-version timestamp of this balance, used by the SDK for last-write-wins reconciliation",
114088
+ "args": [],
114089
+ "type": {
114090
+ "kind": "NON_NULL",
114091
+ "name": null,
114092
+ "ofType": {
114093
+ "kind": "SCALAR",
114094
+ "name": "DateTime",
114095
+ "ofType": null
114096
+ }
114097
+ },
114098
+ "isDeprecated": false,
114099
+ "deprecationReason": null
114100
+ },
114101
+ {
114102
+ "name": "usageLimit",
114103
+ "description": "The total credits granted",
114104
+ "args": [],
114105
+ "type": {
114106
+ "kind": "NON_NULL",
114107
+ "name": null,
114108
+ "ofType": {
114109
+ "kind": "SCALAR",
114110
+ "name": "Float",
114111
+ "ofType": null
114112
+ }
114113
+ },
114114
+ "isDeprecated": false,
114115
+ "deprecationReason": null
114116
+ },
114117
+ {
114118
+ "name": "usagePeriodEnd",
114119
+ "description": "End of the current credit grant period (when recurring credits reset), if applicable",
114120
+ "args": [],
114121
+ "type": {
114122
+ "kind": "SCALAR",
114123
+ "name": "DateTime",
114124
+ "ofType": null
114125
+ },
114126
+ "isDeprecated": false,
114127
+ "deprecationReason": null
114128
+ }
114129
+ ],
114130
+ "inputFields": null,
114131
+ "interfaces": [],
114132
+ "enumValues": null,
114133
+ "possibleTypes": null
114134
+ },
113657
114135
  {
113658
114136
  "kind": "OBJECT",
113659
114137
  "name": "UsageMeasurementEdge",
@@ -114619,6 +115097,18 @@
114619
115097
  "isDeprecated": false,
114620
115098
  "deprecationReason": null
114621
115099
  },
115100
+ {
115101
+ "name": "credit",
115102
+ "description": "The optimistic balance of the credit wallet (currency) that this feature consumes from, in credit units. It is the per-currency total shared across every feature drawing on that currency — not this feature’s individual consumption — and reflects usage before async reconciliation. Populated only for credit-backed features.",
115103
+ "args": [],
115104
+ "type": {
115105
+ "kind": "OBJECT",
115106
+ "name": "UsageMeasurementCredit",
115107
+ "ofType": null
115108
+ },
115109
+ "isDeprecated": false,
115110
+ "deprecationReason": null
115111
+ },
114622
115112
  {
114623
115113
  "name": "currentUsage",
114624
115114
  "description": "The current measured usage value",
data/lib/stigg/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stigg
4
- VERSION = "6.11.0"
4
+ VERSION = "6.13.0"
5
5
  end
data/package.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@stigg/api-client-ruby",
3
- "version": "6.11.0"
3
+ "version": "6.13.0"
4
4
  }
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: 6.11.0
4
+ version: 6.13.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-06-23 00:00:00.000000000 Z
11
+ date: 2026-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphlient