stigg-api-client 2.33.0__py3-none-any.whl → 2.49.0__py3-none-any.whl

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.

Potentially problematic release.


This version of stigg-api-client might be problematic. Click here for more details.

stigg/generated/schema.py CHANGED
@@ -62,7 +62,7 @@ class BillingCadence(sgqlc.types.Enum):
62
62
 
63
63
  class BillingModel(sgqlc.types.Enum):
64
64
  __schema__ = schema
65
- __choices__ = ('FLAT_FEE', 'PER_UNIT', 'USAGE_BASED')
65
+ __choices__ = ('FLAT_FEE', 'MINIMUM_SPEND', 'PER_UNIT', 'USAGE_BASED')
66
66
 
67
67
 
68
68
  class BillingPeriod(sgqlc.types.Enum):
@@ -175,7 +175,7 @@ class EnvironmentType(sgqlc.types.Enum):
175
175
 
176
176
  class ErrorCode(sgqlc.types.Enum):
177
177
  __schema__ = schema
178
- __choices__ = ('AccountNotFoundError', 'AddonDependencyMissingError', 'AddonHasToHavePriceError', 'AddonNotFound', 'AddonQuantityExceedsLimitError', 'AddonWithDraftCannotBeDeletedError', 'AmountTooLarge', 'ArchivedCouponCantBeApplied', 'AuthCustomerMismatch', 'AuthCustomerReadonly', 'AwsMarketplaceIntegrationError', 'AwsMarketplaceIntegrationValidationError', 'BadUserInput', 'BillingIntegrationAlreadyExistsError', 'BillingIntegrationMissing', 'BillingPeriodMissingError', 'CannotAddOverrideEntitlementToPlan', 'CannotArchiveFeatureError', 'CannotDeleteCustomerError', 'CannotDeleteFeatureError', 'CannotDeleteProductError', 'CannotEditPackageInNonDraftMode', 'CannotRemovePaymentMethodFromCustomerError', 'CannotReportUsageForEntitlementWithMeterError', 'CannotUpdateUnitTransformationError', 'CannotUpsertToPackageThatHasDraft', 'CheckoutIsNotSupported', 'CouponNotFound', 'CustomerAlreadyHaveCustomerCoupon', 'CustomerAlreadyUsesCoupon', 'CustomerHasNoEmailAddress', 'CustomerNoBillingId', 'CustomerNotFound', 'CustomerResourceNotFound', 'DowngradeBillingPeriodNotSupportedError', 'DraftPlanCantBeArchived', 'DuplicateAddonProvisionedError', 'DuplicateProductValidationError', 'DuplicatedEntityNotAllowed', 'EditAllowedOnDraftPackageOnlyError', 'EntitlementLimitExceededError', 'EntitlementUsageOutOfRangeError', 'EntitlementsMustBelongToSamePackage', 'EntityIdDifferentFromRefIdError', 'EntityIsArchivedError', 'EnvironmentMissing', 'ExperimentAlreadyRunning', 'ExperimentNotFoundError', 'ExperimentStatusError', 'FailedToCreateCheckoutSessionError', 'FailedToImportCustomer', 'FeatureNotFound', 'FetchAllCountriesPricesNotAllowed', 'FreePlanCantHaveCompatiblePackageGroupError', 'HubspotIntegrationError', 'IdentityForbidden', 'ImportAlreadyInProgress', 'ImportSubscriptionsBulkError', 'InitStripePaymentMethodError', 'IntegrationNotFound', 'IntegrationValidationError', 'IntegrityViolation', 'InvalidAddressError', 'InvalidArgumentError', 'InvalidCancellationDate', 'InvalidEntitlementResetPeriod', 'InvalidMemberDelete', 'InvalidMetadataError', 'InvalidQuantity', 'InvalidSubscriptionStatus', 'InvalidUpdatePriceUnitAmountError', 'MemberInvitationError', 'MemberNotFound', 'MergeEnvironmentValidationError', 'MeterMustBeAssociatedToMeteredFeature', 'MeteringNotAvailableForFeatureType', 'MissingEntityIdError', 'MissingSubscriptionInvoiceError', 'MultiSubscriptionCantBeAutoCancellationSourceError', 'NoFeatureEntitlementError', 'NoFeatureEntitlementInSubscription', 'NoProductsAvailable', 'OperationNotAllowedDuringInProgressExperiment', 'PackageAlreadyPublished', 'PackageGroupMinItemsError', 'PackageGroupNotFound', 'PackagePricingTypeNotSet', 'PaymentMethodNotFoundError', 'PlanCannotBePublishWhenBasePlanIsDraft', 'PlanCannotBePublishWhenCompatibleAddonIsDraft', 'PlanIsUsedAsDefaultStartPlan', 'PlanIsUsedAsDowngradePlan', 'PlanNotFound', 'PlanWithChildCantBeDeleted', 'PlansCircularDependencyError', 'PreparePaymentMethodFormError', 'PriceNotFound', 'ProductNotFoundError', 'PromotionCodeCustomerNotFirstPurchase', 'PromotionCodeMaxRedemptionsReached', 'PromotionCodeMinimumAmountNotReached', 'PromotionCodeNotActive', 'PromotionCodeNotForCustomer', 'PromotionCodeNotFound', 'PromotionalEntitlementNotFoundError', 'RateLimitExceeded', 'RecalculateEntitlementsError', 'ResyncAlreadyInProgress', 'ScheduledMigrationAlreadyExistsError', 'SelectedBillingModelDoesntMatchImportedItemError', 'SingleSubscriptionCantBeAutoCancellationTargetError', 'StripeCustomerIsDeleted', 'StripeError', 'SubscriptionAlreadyCanceledOrExpired', 'SubscriptionAlreadyOnLatestPlanError', 'SubscriptionDoesNotHaveBillingPeriod', 'SubscriptionInvoiceStatusError', 'SubscriptionMustHaveSinglePlanError', 'SubscriptionNoBillingId', 'SubscriptionNotFound', 'TooManySubscriptionsPerCustomer', 'TrialMinDateError', 'TrialMustBeCancelledImmediately', 'UnPublishedPackage', 'Unauthenticated', 'UncompatibleSubscriptionAddon', 'UnexpectedError', 'UnsupportedFeatureType', 'UnsupportedSubscriptionScheduleType', 'UnsupportedVendorIdentifier', 'UsageMeasurementDiffOutOfRangeError')
178
+ __choices__ = ('AccountNotFoundError', 'AddonDependencyMissingError', 'AddonHasToHavePriceError', 'AddonIsCompatibleWithGroup', 'AddonIsCompatibleWithPlan', 'AddonNotFound', 'AddonQuantityExceedsLimitError', 'AddonWithDraftCannotBeDeletedError', 'AddonsNotFound', 'AmountTooLarge', 'ArchivedCouponCantBeApplied', 'AuthCustomerMismatch', 'AuthCustomerReadonly', 'AwsMarketplaceIntegrationError', 'AwsMarketplaceIntegrationValidationError', 'BadUserInput', 'BillingIntegrationAlreadyExistsError', 'BillingIntegrationMissing', 'BillingPeriodMissingError', 'CannotAddOverrideEntitlementToPlan', 'CannotArchiveFeatureError', 'CannotDeleteCustomerError', 'CannotDeleteFeatureError', 'CannotDeleteProductError', 'CannotEditPackageInNonDraftMode', 'CannotRemovePaymentMethodFromCustomerError', 'CannotReportUsageForEntitlementWithMeterError', 'CannotUpdateUnitTransformationError', 'CannotUpsertToPackageThatHasDraft', 'CheckoutIsNotSupported', 'CouponNotFound', 'CustomerAlreadyHaveCustomerCoupon', 'CustomerAlreadyUsesCoupon', 'CustomerHasNoEmailAddress', 'CustomerNoBillingId', 'CustomerNotFound', 'CustomerResourceNotFound', 'DowngradeBillingPeriodNotSupportedError', 'DraftAddonCantBeArchived', 'DraftPlanCantBeArchived', 'DuplicateAddonProvisionedError', 'DuplicateProductValidationError', 'DuplicatedEntityNotAllowed', 'EditAllowedOnDraftPackageOnlyError', 'EntitlementLimitExceededError', 'EntitlementUsageOutOfRangeError', 'EntitlementsMustBelongToSamePackage', 'EntityIdDifferentFromRefIdError', 'EntityIsArchivedError', 'EnvironmentMissing', 'ExperimentAlreadyRunning', 'ExperimentNotFoundError', 'ExperimentStatusError', 'FailedToCreateCheckoutSessionError', 'FailedToImportCustomer', 'FeatureNotFound', 'FetchAllCountriesPricesNotAllowed', 'FreePlanCantHaveCompatiblePackageGroupError', 'HubspotIntegrationError', 'IdentityForbidden', 'ImportAlreadyInProgress', 'ImportSubscriptionsBulkError', 'IncompatibleSubscriptionAddon', 'InitStripePaymentMethodError', 'IntegrationNotFound', 'IntegrationValidationError', 'IntegrityViolation', 'InvalidAddressError', 'InvalidArgumentError', 'InvalidCancellationDate', 'InvalidEntitlementResetPeriod', 'InvalidMemberDelete', 'InvalidMetadataError', 'InvalidQuantity', 'InvalidSubscriptionStatus', 'InvalidUpdatePriceUnitAmountError', 'MemberInvitationError', 'MemberNotFound', 'MergeEnvironmentValidationError', 'MeterMustBeAssociatedToMeteredFeature', 'MeteringNotAvailableForFeatureType', 'MissingEntityIdError', 'MissingSubscriptionInvoiceError', 'MultiSubscriptionCantBeAutoCancellationSourceError', 'NoFeatureEntitlementError', 'NoFeatureEntitlementInSubscription', 'NoProductsAvailable', 'OperationNotAllowedDuringInProgressExperiment', 'PackageAlreadyPublished', 'PackageGroupMinItemsError', 'PackageGroupNotFound', 'PackagePricingTypeNotSet', 'PaymentMethodNotFoundError', 'PlanCannotBePublishWhenBasePlanIsDraft', 'PlanCannotBePublishWhenCompatibleAddonIsDraft', 'PlanIsUsedAsDefaultStartPlan', 'PlanIsUsedAsDowngradePlan', 'PlanNotFound', 'PlanWithChildCantBeDeleted', 'PlansCircularDependencyError', 'PreparePaymentMethodFormError', 'PriceNotFound', 'ProductNotFoundError', 'PromotionCodeCustomerNotFirstPurchase', 'PromotionCodeMaxRedemptionsReached', 'PromotionCodeMinimumAmountNotReached', 'PromotionCodeNotActive', 'PromotionCodeNotForCustomer', 'PromotionCodeNotFound', 'PromotionalEntitlementNotFoundError', 'RateLimitExceeded', 'RecalculateEntitlementsError', 'ResyncAlreadyInProgress', 'ScheduledMigrationAlreadyExistsError', 'SelectedBillingModelDoesntMatchImportedItemError', 'SingleSubscriptionCantBeAutoCancellationTargetError', 'StripeCustomerIsDeleted', 'StripeError', 'SubscriptionAlreadyCanceledOrExpired', 'SubscriptionAlreadyOnLatestPlanError', 'SubscriptionDoesNotHaveBillingPeriod', 'SubscriptionInvoiceStatusError', 'SubscriptionMustHaveSinglePlanError', 'SubscriptionNoBillingId', 'SubscriptionNotFound', 'TooManySubscriptionsPerCustomer', 'TrialMinDateError', 'TrialMustBeCancelledImmediately', 'UnPublishedPackage', 'Unauthenticated', 'UnexpectedError', 'UnsupportedFeatureType', 'UnsupportedSubscriptionScheduleType', 'UnsupportedVendorIdentifier', 'UsageMeasurementDiffOutOfRangeError')
179
179
 
180
180
 
181
181
  class EventActor(sgqlc.types.Enum):
@@ -256,7 +256,7 @@ class IntegrationSortFields(sgqlc.types.Enum):
256
256
 
257
257
  class InvoiceLineItemType(sgqlc.types.Enum):
258
258
  __schema__ = schema
259
- __choices__ = ('AddonCharge', 'BaseCharge', 'InAdvanceCommitmentCharge', 'MinimumSpendAdjustmentCharge', 'Other', 'OverageCharge', 'PayAsYouGoCharge', 'TierCharge', 'ZeroAmountBaseCharge')
259
+ __choices__ = ('AddonCharge', 'BaseCharge', 'InAdvanceCommitmentCharge', 'MinimumSpendAdjustmentCharge', 'MinimumSpendCharge', 'Other', 'OverageCharge', 'PayAsYouGoCharge', 'TierCharge', 'ZeroAmountBaseCharge')
260
260
 
261
261
 
262
262
  class JSON(sgqlc.types.Scalar):
@@ -561,6 +561,20 @@ class AddCompatibleAddonsToPlanInput(sgqlc.types.Input):
561
561
  relation_ids = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(String))), graphql_name='relationIds')
562
562
 
563
563
 
564
+ class AddonArchiveInput(sgqlc.types.Input):
565
+ __schema__ = schema
566
+ __field_names__ = ('environment_id', 'ref_id')
567
+ environment_id = sgqlc.types.Field(String, graphql_name='environmentId')
568
+ ref_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='refId')
569
+
570
+
571
+ class AddonAssociatedEntitiesInput(sgqlc.types.Input):
572
+ __schema__ = schema
573
+ __field_names__ = ('environment_id', 'ref_id')
574
+ environment_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='environmentId')
575
+ ref_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='refId')
576
+
577
+
564
578
  class AddonCreateInput(sgqlc.types.Input):
565
579
  __schema__ = schema
566
580
  __field_names__ = ('additional_meta_data', 'aws_marketplace_plan_dimension', 'billing_id', 'dependencies', 'description', 'display_name', 'environment_id', 'hidden_from_widgets', 'max_quantity', 'pricing_type', 'product_id', 'ref_id', 'status')
@@ -4401,6 +4415,29 @@ class AddonAggregateGroupBy(sgqlc.types.Type):
4401
4415
  version_number = sgqlc.types.Field(Int, graphql_name='versionNumber')
4402
4416
 
4403
4417
 
4418
+ class AddonAssociatedEntities(sgqlc.types.Type):
4419
+ __schema__ = schema
4420
+ __field_names__ = ('package_groups', 'plans')
4421
+ package_groups = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null('AddonAssociatedPackageGroup'))), graphql_name='packageGroups')
4422
+ plans = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null('AddonAssociatedPlan'))), graphql_name='plans')
4423
+
4424
+
4425
+ class AddonAssociatedPackageGroup(sgqlc.types.Type):
4426
+ __schema__ = schema
4427
+ __field_names__ = ('display_name', 'package_group_id')
4428
+ display_name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='displayName')
4429
+ package_group_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='packageGroupId')
4430
+
4431
+
4432
+ class AddonAssociatedPlan(sgqlc.types.Type):
4433
+ __schema__ = schema
4434
+ __field_names__ = ('display_name', 'ref_id', 'status', 'version_number')
4435
+ display_name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='displayName')
4436
+ ref_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='refId')
4437
+ status = sgqlc.types.Field(sgqlc.types.non_null(PackageStatus), graphql_name='status')
4438
+ version_number = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name='versionNumber')
4439
+
4440
+
4404
4441
  class AddonAvgAggregate(sgqlc.types.Type):
4405
4442
  __schema__ = schema
4406
4443
  __field_names__ = ('version_number',)
@@ -4442,33 +4479,40 @@ class AddonCountAggregate(sgqlc.types.Type):
4442
4479
 
4443
4480
  class AddonDeleteResponse(sgqlc.types.Type):
4444
4481
  __schema__ = schema
4445
- __field_names__ = ('additional_meta_data', 'billing_id', 'billing_link_url', 'created_at', 'dependencies', 'description', 'display_name', 'draft_details', 'draft_summary', 'entitlements', 'environment_id', 'hidden_from_widgets', 'id', 'is_latest', 'max_quantity', 'overage_billing_period', 'overage_prices', 'prices', 'pricing_type', 'product_id', 'ref_id', 'status', 'sync_states', 'type', 'updated_at', 'version_number')
4482
+ __field_names__ = ('additional_meta_data', 'billing_id', 'billing_link_url', 'created_at', 'dependencies', 'description', 'display_name', 'draft_details', 'draft_summary', 'entitlements', 'environment', 'environment_id', 'has_subscriptions', 'hidden_from_widgets', 'id', 'is_latest', 'max_quantity', 'overage_billing_period', 'overage_prices', 'prices', 'pricing_type', 'product', 'product_id', 'ref_id', 'status', 'sync_states', 'type', 'updated_at', 'version_number')
4446
4483
  additional_meta_data = sgqlc.types.Field(JSON, graphql_name='additionalMetaData')
4447
4484
  billing_id = sgqlc.types.Field(String, graphql_name='billingId')
4448
4485
  billing_link_url = sgqlc.types.Field(String, graphql_name='billingLinkUrl')
4449
4486
  created_at = sgqlc.types.Field(DateTime, graphql_name='createdAt')
4450
4487
  dependencies = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(Addon)), graphql_name='dependencies')
4451
4488
  description = sgqlc.types.Field(String, graphql_name='description')
4452
- display_name = sgqlc.types.Field(String, graphql_name='displayName')
4489
+ display_name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='displayName')
4453
4490
  draft_details = sgqlc.types.Field('PackageDraftDetails', graphql_name='draftDetails')
4454
4491
  draft_summary = sgqlc.types.Field('PackageDraftSummary', graphql_name='draftSummary')
4455
4492
  entitlements = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null('PackageEntitlement')), graphql_name='entitlements')
4456
- environment_id = sgqlc.types.Field(String, graphql_name='environmentId')
4493
+ environment = sgqlc.types.Field(sgqlc.types.non_null('Environment'), graphql_name='environment')
4494
+ environment_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='environmentId')
4495
+ has_subscriptions = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='hasSubscriptions')
4457
4496
  hidden_from_widgets = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(WidgetType)), graphql_name='hiddenFromWidgets')
4458
- id = sgqlc.types.Field(String, graphql_name='id')
4497
+ id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='id')
4459
4498
  is_latest = sgqlc.types.Field(Boolean, graphql_name='isLatest')
4460
4499
  max_quantity = sgqlc.types.Field(Float, graphql_name='maxQuantity')
4461
4500
  overage_billing_period = sgqlc.types.Field(OverageBillingPeriod, graphql_name='overageBillingPeriod')
4462
4501
  overage_prices = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null('Price')), graphql_name='overagePrices')
4463
- prices = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null('Price')), graphql_name='prices')
4502
+ prices = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null('Price')), graphql_name='prices', args=sgqlc.types.ArgDict((
4503
+ ('filter', sgqlc.types.Arg(PriceFilter, graphql_name='filter', default={})),
4504
+ ('sorting', sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(PriceSort)), graphql_name='sorting', default=[{'direction': 'DESC', 'field': 'createdAt'}])),
4505
+ ))
4506
+ )
4464
4507
  pricing_type = sgqlc.types.Field(PricingType, graphql_name='pricingType')
4508
+ product = sgqlc.types.Field('Product', graphql_name='product')
4465
4509
  product_id = sgqlc.types.Field(String, graphql_name='productId')
4466
- ref_id = sgqlc.types.Field(String, graphql_name='refId')
4467
- status = sgqlc.types.Field(PackageStatus, graphql_name='status')
4510
+ ref_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='refId')
4511
+ status = sgqlc.types.Field(sgqlc.types.non_null(PackageStatus), graphql_name='status')
4468
4512
  sync_states = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null('SyncState')), graphql_name='syncStates')
4469
- type = sgqlc.types.Field(String, graphql_name='type')
4513
+ type = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='type')
4470
4514
  updated_at = sgqlc.types.Field(DateTime, graphql_name='updatedAt')
4471
- version_number = sgqlc.types.Field(Int, graphql_name='versionNumber')
4515
+ version_number = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='versionNumber')
4472
4516
 
4473
4517
 
4474
4518
  class AddonDependencyChange(sgqlc.types.Type):
@@ -5232,7 +5276,7 @@ class CustomerSubscription(sgqlc.types.Type):
5232
5276
  payment_collection_method = sgqlc.types.Field(PaymentCollectionMethod, graphql_name='paymentCollectionMethod')
5233
5277
  plan = sgqlc.types.Field(sgqlc.types.non_null('Plan'), graphql_name='plan')
5234
5278
  prices = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null('SubscriptionPrice')), graphql_name='prices', args=sgqlc.types.ArgDict((
5235
- ('filter', sgqlc.types.Arg(SubscriptionPriceFilter, graphql_name='filter', default={})),
5279
+ ('filter', sgqlc.types.Arg(SubscriptionPriceFilter, graphql_name='filter', default={'billingModel': {'neq': 'MINIMUM_SPEND'}})),
5236
5280
  ('sorting', sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(SubscriptionPriceSort)), graphql_name='sorting', default=[{'direction': 'DESC', 'field': 'createdAt'}])),
5237
5281
  ))
5238
5282
  )
@@ -6201,6 +6245,15 @@ class ImportSubTaskError(sgqlc.types.Type):
6201
6245
  id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='id')
6202
6246
 
6203
6247
 
6248
+ class IncompatibleSubscriptionAddonError(sgqlc.types.Type):
6249
+ __schema__ = schema
6250
+ __field_names__ = ('code', 'is_validation_error', 'non_compatible_addons', 'plan_display_name')
6251
+ code = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='code')
6252
+ is_validation_error = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='isValidationError')
6253
+ non_compatible_addons = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(String)), graphql_name='nonCompatibleAddons')
6254
+ plan_display_name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='planDisplayName')
6255
+
6256
+
6204
6257
  class InitAddStripeCustomerPaymentMethod(sgqlc.types.Type):
6205
6258
  __schema__ = schema
6206
6259
  __field_names__ = ('payment_intent_client_secret',)
@@ -6501,13 +6554,17 @@ class MonthlyResetPeriodConfig(sgqlc.types.Type):
6501
6554
 
6502
6555
  class Mutation(sgqlc.types.Type):
6503
6556
  __schema__ = schema
6504
- __field_names__ = ('add_compatible_addons_to_plan', 'apply_subscription', 'archive_customer', 'archive_environment', 'archive_feature', 'archive_one_coupon', 'archive_package_group', 'archive_plan', 'attach_customer_payment_method', 'cancel_schedule', 'cancel_subscription', 'charge_subscription_usage', 'create_account', 'create_addon_draft', 'create_empty_addon_draft', 'create_empty_plan_draft', 'create_feature', 'create_many_package_entitlements', 'create_many_promotional_entitlements', 'create_one_addon', 'create_one_coupon', 'create_one_customer', 'create_one_environment', 'create_one_experiment', 'create_one_hook', 'create_one_integration', 'create_one_plan', 'create_one_product', 'create_or_update_aws_marketplace_product', 'create_package_group', 'create_plan_draft', 'create_subscription', 'create_usage_measurement', 'delete_feature', 'delete_one_addon', 'delete_one_feature', 'delete_one_hook', 'delete_one_integration', 'delete_one_package_entitlement', 'delete_one_price', 'delete_one_product', 'delete_one_promotional_entitlement', 'detach_customer_payment_method', 'duplicate_product', 'edit_package_group', 'estimate_subscription', 'estimate_subscription_update', 'grant_promotional_entitlements', 'hide_getting_started_page', 'import_customers_bulk', 'import_one_customer', 'import_subscriptions_bulk', 'init_add_stripe_customer_payment_method', 'invite_members', 'mark_invoice_as_paid', 'merge_environment', 'migrate_subscription_to_latest', 'prepare_payment_method_form', 'preview_next_invoice', 'preview_subscription', 'provision_customer', 'provision_sandbox', 'provision_subscription', 'provision_subscription_v2', 'publish_addon', 'publish_plan', 'purge_customer_cache', 'recalculate_entitlements', 'register_member', 'remove_addon_draft', 'remove_base_plan_from_plan', 'remove_compatible_addons_from_plan', 'remove_coupon_from_customer', 'remove_coupon_from_customer_subscription', 'remove_experiment_from_customer', 'remove_experiment_from_customer_subscription', 'remove_member', 'remove_plan_draft', 'report_entitlement_check_requested', 'report_event', 'report_usage', 'report_usage_bulk', 'resend_email_verification', 'resync_integration', 'revoke_promotional_entitlement', 'set_base_plan_on_plan', 'set_compatible_addons_on_plan', 'set_compatible_package_groups', 'set_coupon_on_customer', 'set_coupon_on_customer_subscription', 'set_experiment_on_customer', 'set_experiment_on_customer_subscription', 'set_package_group_addons', 'set_package_pricing', 'set_widget_configuration', 'start_experiment', 'stop_experiment', 'subscription_maximum_spend', 'sync_tax_rates', 'transfer_subscription', 'trigger_import_catalog', 'trigger_import_customers', 'trigger_plan_subscription_migration', 'trigger_subscription_billing_month_ends_soon_webhook', 'trigger_subscription_usage_sync', 'unarchive_customer', 'unarchive_environment', 'update_account', 'update_entitlements_order', 'update_feature', 'update_one_addon', 'update_one_coupon', 'update_one_customer', 'update_one_environment', 'update_one_experiment', 'update_one_hook', 'update_one_integration', 'update_one_package_entitlement', 'update_one_plan', 'update_one_product', 'update_one_promotional_entitlement', 'update_one_subscription', 'update_user')
6557
+ __field_names__ = ('add_compatible_addons_to_plan', 'apply_subscription', 'archive_addon', 'archive_customer', 'archive_environment', 'archive_feature', 'archive_one_coupon', 'archive_package_group', 'archive_plan', 'attach_customer_payment_method', 'cancel_schedule', 'cancel_subscription', 'charge_subscription_usage', 'create_account', 'create_addon_draft', 'create_empty_addon_draft', 'create_empty_plan_draft', 'create_feature', 'create_many_package_entitlements', 'create_many_promotional_entitlements', 'create_one_addon', 'create_one_coupon', 'create_one_customer', 'create_one_environment', 'create_one_experiment', 'create_one_hook', 'create_one_integration', 'create_one_plan', 'create_one_product', 'create_or_update_aws_marketplace_product', 'create_package_group', 'create_plan_draft', 'create_subscription', 'create_usage_measurement', 'delete_feature', 'delete_one_addon', 'delete_one_feature', 'delete_one_hook', 'delete_one_integration', 'delete_one_package_entitlement', 'delete_one_price', 'delete_one_product', 'delete_one_promotional_entitlement', 'detach_customer_payment_method', 'duplicate_product', 'edit_package_group', 'estimate_subscription', 'estimate_subscription_update', 'grant_promotional_entitlements', 'hide_getting_started_page', 'import_customers_bulk', 'import_one_customer', 'import_subscriptions_bulk', 'init_add_stripe_customer_payment_method', 'invite_members', 'mark_invoice_as_paid', 'merge_environment', 'migrate_subscription_to_latest', 'prepare_payment_method_form', 'preview_next_invoice', 'preview_subscription', 'provision_customer', 'provision_sandbox', 'provision_subscription', 'provision_subscription_v2', 'publish_addon', 'publish_plan', 'purge_customer_cache', 'recalculate_entitlements', 'register_member', 'remove_addon_draft', 'remove_base_plan_from_plan', 'remove_compatible_addons_from_plan', 'remove_coupon_from_customer', 'remove_coupon_from_customer_subscription', 'remove_experiment_from_customer', 'remove_experiment_from_customer_subscription', 'remove_member', 'remove_plan_draft', 'report_entitlement_check_requested', 'report_event', 'report_usage', 'report_usage_bulk', 'resend_email_verification', 'resync_integration', 'revoke_promotional_entitlement', 'set_base_plan_on_plan', 'set_compatible_addons_on_plan', 'set_compatible_package_groups', 'set_coupon_on_customer', 'set_coupon_on_customer_subscription', 'set_experiment_on_customer', 'set_experiment_on_customer_subscription', 'set_package_group_addons', 'set_package_pricing', 'set_widget_configuration', 'start_experiment', 'stop_experiment', 'subscription_maximum_spend', 'sync_tax_rates', 'transfer_subscription', 'trigger_import_catalog', 'trigger_import_customers', 'trigger_plan_subscription_migration', 'trigger_subscription_billing_month_ends_soon_webhook', 'trigger_subscription_usage_sync', 'unarchive_customer', 'unarchive_environment', 'update_account', 'update_entitlements_order', 'update_feature', 'update_one_addon', 'update_one_coupon', 'update_one_customer', 'update_one_environment', 'update_one_experiment', 'update_one_hook', 'update_one_integration', 'update_one_package_entitlement', 'update_one_plan', 'update_one_product', 'update_one_promotional_entitlement', 'update_one_subscription', 'update_user')
6505
6558
  add_compatible_addons_to_plan = sgqlc.types.Field(sgqlc.types.non_null('Plan'), graphql_name='addCompatibleAddonsToPlan', args=sgqlc.types.ArgDict((
6506
6559
  ('input', sgqlc.types.Arg(sgqlc.types.non_null(AddCompatibleAddonsToPlanInput), graphql_name='input', default=None)),
6507
6560
  ))
6508
6561
  )
6509
6562
  apply_subscription = sgqlc.types.Field(sgqlc.types.non_null(ApplySubscription), graphql_name='applySubscription', args=sgqlc.types.ArgDict((
6510
6563
  ('input', sgqlc.types.Arg(sgqlc.types.non_null(ApplySubscriptionInput), graphql_name='input', default=None)),
6564
+ ))
6565
+ )
6566
+ archive_addon = sgqlc.types.Field(sgqlc.types.non_null(Addon), graphql_name='archiveAddon', args=sgqlc.types.ArgDict((
6567
+ ('input', sgqlc.types.Arg(sgqlc.types.non_null(AddonArchiveInput), graphql_name='input', default=None)),
6511
6568
  ))
6512
6569
  )
6513
6570
  archive_customer = sgqlc.types.Field(sgqlc.types.non_null(Customer), graphql_name='archiveCustomer', args=sgqlc.types.ArgDict((
@@ -6998,6 +7055,14 @@ class NumberChange(sgqlc.types.Type):
6998
7055
  change_type = sgqlc.types.Field(ChangeType, graphql_name='changeType')
6999
7056
 
7000
7057
 
7058
+ class OverageBillingPeriodChange(sgqlc.types.Type):
7059
+ __schema__ = schema
7060
+ __field_names__ = ('after', 'before', 'change_type')
7061
+ after = sgqlc.types.Field(OverageBillingPeriod, graphql_name='after')
7062
+ before = sgqlc.types.Field(OverageBillingPeriod, graphql_name='before')
7063
+ change_type = sgqlc.types.Field(ChangeType, graphql_name='changeType')
7064
+
7065
+
7001
7066
  class PackageAlreadyPublishedError(sgqlc.types.Type):
7002
7067
  __schema__ = schema
7003
7068
  __field_names__ = ('code', 'is_validation_error')
@@ -7007,7 +7072,7 @@ class PackageAlreadyPublishedError(sgqlc.types.Type):
7007
7072
 
7008
7073
  class PackageChanges(sgqlc.types.Type):
7009
7074
  __schema__ = schema
7010
- __field_names__ = ('additional_meta_data', 'base_plan', 'compatible_addons', 'compatible_package_groups', 'default_trial_config', 'dependencies', 'description', 'display_name', 'entitlements', 'hidden_from_widgets', 'max_quantity', 'minimum_spend', 'overage_prices', 'prices', 'pricing_type', 'total_changes')
7075
+ __field_names__ = ('additional_meta_data', 'base_plan', 'compatible_addons', 'compatible_package_groups', 'default_trial_config', 'dependencies', 'description', 'display_name', 'entitlements', 'hidden_from_widgets', 'max_quantity', 'minimum_spend', 'overage_billing_period', 'overage_prices', 'prices', 'pricing_type', 'total_changes')
7011
7076
  additional_meta_data = sgqlc.types.Field(AdditionalMetaDataChange, graphql_name='additionalMetaData')
7012
7077
  base_plan = sgqlc.types.Field(BasePlanChange, graphql_name='basePlan')
7013
7078
  compatible_addons = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null('PlanCompatibleAddonChange')), graphql_name='compatibleAddons')
@@ -7020,6 +7085,7 @@ class PackageChanges(sgqlc.types.Type):
7020
7085
  hidden_from_widgets = sgqlc.types.Field(HiddenFromWidgetsChange, graphql_name='hiddenFromWidgets')
7021
7086
  max_quantity = sgqlc.types.Field(NumberChange, graphql_name='maxQuantity')
7022
7087
  minimum_spend = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(MinimumSpendChange)), graphql_name='minimumSpend')
7088
+ overage_billing_period = sgqlc.types.Field(OverageBillingPeriodChange, graphql_name='overageBillingPeriod')
7023
7089
  overage_prices = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null('PackagePriceChange'))), graphql_name='overagePrices')
7024
7090
  prices = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null('PackagePriceChange'))), graphql_name='prices')
7025
7091
  pricing_type = sgqlc.types.Field('PricingTypeChange', graphql_name='pricingType')
@@ -8149,7 +8215,11 @@ class PublishPackageResult(sgqlc.types.Type):
8149
8215
 
8150
8216
  class Query(sgqlc.types.Type):
8151
8217
  __schema__ = schema
8152
- __field_names__ = ('addons', 'aggregated_events_by_customer', 'cached_entitlements', 'checkout_state', 'coupon', 'coupons', 'current_environment', 'current_user', 'customer_portal', 'customer_resources', 'customer_subscriptions', 'customers', 'does_feature_exist', 'dump_environment_for_merge_comparison', 'dump_environment_product_catalog', 'entitlement', 'entitlements', 'environments', 'event_logs', 'events_fields', 'experiment', 'experiments', 'feature_associated_latest_packages', 'features', 'fetch_account', 'get_active_subscriptions', 'get_addon_by_ref_id', 'get_aws_external_id', 'get_customer_by_ref_id', 'get_experiment_stats', 'get_package_group', 'get_paywall', 'get_plan_by_ref_id', 'get_subscription', 'hook', 'hooks', 'import_integration_tasks', 'integrations', 'list_aws_product_dimensions', 'list_aws_products', 'members', 'mock_paywall', 'package_entitlements', 'package_group', 'package_groups', 'paywall', 'plans', 'products', 'promotional_entitlements', 'sdk_configuration', 'send_test_hook', 'stripe_customers', 'stripe_products', 'stripe_subscriptions', 'subscription_entitlements', 'subscription_migration_tasks', 'test_hook_data', 'usage_events', 'usage_history', 'usage_measurements', 'validate_merge_environment', 'widget_configuration')
8218
+ __field_names__ = ('addon_associated_entities', 'addons', 'aggregated_events_by_customer', 'cached_entitlements', 'checkout_state', 'coupon', 'coupons', 'current_environment', 'current_user', 'customer_portal', 'customer_resources', 'customer_subscriptions', 'customers', 'does_feature_exist', 'dump_environment_for_merge_comparison', 'dump_environment_product_catalog', 'entitlement', 'entitlements', 'environments', 'event_logs', 'events_fields', 'experiment', 'experiments', 'feature_associated_latest_packages', 'features', 'fetch_account', 'get_active_subscriptions', 'get_addon_by_ref_id', 'get_aws_external_id', 'get_customer_by_ref_id', 'get_experiment_stats', 'get_package_group', 'get_paywall', 'get_plan_by_ref_id', 'get_subscription', 'hook', 'hooks', 'import_integration_tasks', 'integrations', 'list_aws_product_dimensions', 'list_aws_products', 'members', 'mock_paywall', 'package_entitlements', 'package_group', 'package_groups', 'paywall', 'plans', 'products', 'promotional_entitlements', 'sdk_configuration', 'send_test_hook', 'stripe_customers', 'stripe_products', 'stripe_subscriptions', 'subscription_entitlements', 'subscription_migration_tasks', 'test_hook_data', 'usage_events', 'usage_history', 'usage_measurements', 'validate_merge_environment', 'widget_configuration')
8219
+ addon_associated_entities = sgqlc.types.Field(sgqlc.types.non_null(AddonAssociatedEntities), graphql_name='addonAssociatedEntities', args=sgqlc.types.ArgDict((
8220
+ ('input', sgqlc.types.Arg(sgqlc.types.non_null(AddonAssociatedEntitiesInput), graphql_name='input', default=None)),
8221
+ ))
8222
+ )
8153
8223
  addons = sgqlc.types.Field(sgqlc.types.non_null(AddonConnection), graphql_name='addons', args=sgqlc.types.ArgDict((
8154
8224
  ('filter', sgqlc.types.Arg(AddonFilter, graphql_name='filter', default={})),
8155
8225
  ('paging', sgqlc.types.Arg(CursorPaging, graphql_name='paging', default={'first': 10})),
@@ -8787,12 +8857,13 @@ class SubscriptionInvoicePreview(sgqlc.types.Type):
8787
8857
 
8788
8858
  class SubscriptionInvoicePreviewLineItem(sgqlc.types.Type):
8789
8859
  __schema__ = schema
8790
- __field_names__ = ('amount', 'cost_description', 'description', 'has_soft_limit', 'lines', 'price', 'proration', 'quantity', 'type', 'unit_price', 'usage_limit')
8860
+ __field_names__ = ('amount', 'cost_description', 'description', 'has_soft_limit', 'lines', 'period', 'price', 'proration', 'quantity', 'type', 'unit_price', 'usage_limit')
8791
8861
  amount = sgqlc.types.Field(sgqlc.types.non_null(Money), graphql_name='amount')
8792
8862
  cost_description = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='costDescription')
8793
8863
  description = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='description')
8794
8864
  has_soft_limit = sgqlc.types.Field(Boolean, graphql_name='hasSoftLimit')
8795
8865
  lines = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null('SubscriptionInvoicePreviewLineItemData')), graphql_name='lines')
8866
+ period = sgqlc.types.Field(sgqlc.types.non_null('SubscriptionInvoicePreviewLineItemPeriod'), graphql_name='period')
8796
8867
  price = sgqlc.types.Field(Price, graphql_name='price')
8797
8868
  proration = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='proration')
8798
8869
  quantity = sgqlc.types.Field(Int, graphql_name='quantity')
@@ -8803,11 +8874,12 @@ class SubscriptionInvoicePreviewLineItem(sgqlc.types.Type):
8803
8874
 
8804
8875
  class SubscriptionInvoicePreviewLineItemData(sgqlc.types.Type):
8805
8876
  __schema__ = schema
8806
- __field_names__ = ('amount', 'cost_description', 'description', 'has_soft_limit', 'price', 'proration', 'quantity', 'type', 'unit_price', 'usage_limit')
8877
+ __field_names__ = ('amount', 'cost_description', 'description', 'has_soft_limit', 'period', 'price', 'proration', 'quantity', 'type', 'unit_price', 'usage_limit')
8807
8878
  amount = sgqlc.types.Field(sgqlc.types.non_null(Money), graphql_name='amount')
8808
8879
  cost_description = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='costDescription')
8809
8880
  description = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='description')
8810
8881
  has_soft_limit = sgqlc.types.Field(Boolean, graphql_name='hasSoftLimit')
8882
+ period = sgqlc.types.Field(sgqlc.types.non_null('SubscriptionInvoicePreviewLineItemPeriod'), graphql_name='period')
8811
8883
  price = sgqlc.types.Field(Price, graphql_name='price')
8812
8884
  proration = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='proration')
8813
8885
  quantity = sgqlc.types.Field(Int, graphql_name='quantity')
@@ -8816,6 +8888,13 @@ class SubscriptionInvoicePreviewLineItemData(sgqlc.types.Type):
8816
8888
  usage_limit = sgqlc.types.Field(Float, graphql_name='usageLimit')
8817
8889
 
8818
8890
 
8891
+ class SubscriptionInvoicePreviewLineItemPeriod(sgqlc.types.Type):
8892
+ __schema__ = schema
8893
+ __field_names__ = ('end', 'start')
8894
+ end = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name='end')
8895
+ start = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name='start')
8896
+
8897
+
8819
8898
  class SubscriptionMaximumSpend(sgqlc.types.Type):
8820
8899
  __schema__ = schema
8821
8900
  __field_names__ = ('discount', 'discount_details', 'last_updated_at', 'lines', 'maximum_spend', 'sub_total', 'total')
@@ -9187,15 +9266,6 @@ class UnPublishedPackageError(sgqlc.types.Type):
9187
9266
  package_type = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='packageType')
9188
9267
 
9189
9268
 
9190
- class UncompatibleSubscriptionAddonError(sgqlc.types.Type):
9191
- __schema__ = schema
9192
- __field_names__ = ('code', 'is_validation_error', 'non_compatible_addons', 'plan_display_name')
9193
- code = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='code')
9194
- is_validation_error = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='isValidationError')
9195
- non_compatible_addons = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(String)), graphql_name='nonCompatibleAddons')
9196
- plan_display_name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='planDisplayName')
9197
-
9198
-
9199
9269
  class UnitAmountChangeVariables(sgqlc.types.Type):
9200
9270
  __schema__ = schema
9201
9271
  __field_names__ = ('feature_id', 'new_unit_amount')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: stigg-api-client
3
- Version: 2.33.0
3
+ Version: 2.49.0
4
4
  Summary:
5
5
  License: STIGG SDK LICENSE
6
6
  Author: Stigg
@@ -2,8 +2,8 @@ stigg/__init__.py,sha256=uQeM3YjvH1X56xOPknIEQezw0yjNNS-m9gi3B0XlSOM,44
2
2
  stigg/client.py,sha256=z9u5SptafEM-tN_K0o_zGKYDy6VVS9LWvkH0ZBMO4jc,3721
3
3
  stigg/generated/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  stigg/generated/operations.py,sha256=s5a3iAo4xzr1Xa-gM0Vfc0dXc9CV-4h8-wX4kxFppFY,70780
5
- stigg/generated/schema.py,sha256=lK9DTXNYnsjQcSckH1okng_nD-m72hEdW_inpUdsh9k,604758
6
- stigg_api_client-2.33.0.dist-info/LICENSE,sha256=yhOTQTha61N-7pgHWeRZ0TGF5uq0ifi5U8qU8nHvzME,5127
7
- stigg_api_client-2.33.0.dist-info/METADATA,sha256=SMl8IvNFIVsijMvKHjanevhAJFu33zp3RRPkIex69Xw,3197
8
- stigg_api_client-2.33.0.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
9
- stigg_api_client-2.33.0.dist-info/RECORD,,
5
+ stigg/generated/schema.py,sha256=xJbp_J3PZx9ZU4JGl88PK5DwlZl1PtAGOZqKeucgor8,609225
6
+ stigg_api_client-2.49.0.dist-info/LICENSE,sha256=yhOTQTha61N-7pgHWeRZ0TGF5uq0ifi5U8qU8nHvzME,5127
7
+ stigg_api_client-2.49.0.dist-info/METADATA,sha256=3-JH9zzrf6HbaMAgcyi5YlozvvQ6_8om4VkXKvN4UM8,3197
8
+ stigg_api_client-2.49.0.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
9
+ stigg_api_client-2.49.0.dist-info/RECORD,,