@openmeter/sdk 1.0.0-beta-8527b0b2f1e6 → 1.0.0-beta-0170589286d0

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.
@@ -1773,6 +1773,54 @@ export interface paths {
1773
1773
  patch: operations['editSubscription'];
1774
1774
  trace?: never;
1775
1775
  };
1776
+ '/api/v1/subscriptions/{subscriptionId}/addons': {
1777
+ parameters: {
1778
+ query?: never;
1779
+ header?: never;
1780
+ path?: never;
1781
+ cookie?: never;
1782
+ };
1783
+ /**
1784
+ * List subscription addons
1785
+ * @description List all addons of a subscription. In the returned list will match to a set unique by addonId.
1786
+ */
1787
+ get: operations['listSubscriptionAddons'];
1788
+ put?: never;
1789
+ /**
1790
+ * Create subscription addon
1791
+ * @description Create a new subscription addon, either providing the key or the id of the addon.
1792
+ */
1793
+ post: operations['createSubscriptionAddon'];
1794
+ delete?: never;
1795
+ options?: never;
1796
+ head?: never;
1797
+ patch?: never;
1798
+ trace?: never;
1799
+ };
1800
+ '/api/v1/subscriptions/{subscriptionId}/addons/{subscriptionAddonId}': {
1801
+ parameters: {
1802
+ query?: never;
1803
+ header?: never;
1804
+ path?: never;
1805
+ cookie?: never;
1806
+ };
1807
+ /**
1808
+ * Get subscription addon
1809
+ * @description Get a subscription addon by id.
1810
+ */
1811
+ get: operations['getSubscriptionAddon'];
1812
+ put?: never;
1813
+ post?: never;
1814
+ delete?: never;
1815
+ options?: never;
1816
+ head?: never;
1817
+ /**
1818
+ * Update subscription addon
1819
+ * @description Updates a subscription addon (allows changing the quantity: purchasing more instances or cancelling the current instances)
1820
+ */
1821
+ patch: operations['updateSubscriptionAddon'];
1822
+ trace?: never;
1823
+ };
1776
1824
  '/api/v1/subscriptions/{subscriptionId}/cancel': {
1777
1825
  parameters: {
1778
1826
  query?: never;
@@ -7863,6 +7911,285 @@ export interface components {
7863
7911
  */
7864
7912
  currency: components['schemas']['CurrencyCode'];
7865
7913
  };
7914
+ /** @description A subscription add-on, represents concrete instances of an add-on for a given subscription. */
7915
+ SubscriptionAddon: {
7916
+ /**
7917
+ * ID
7918
+ * @description A unique identifier for the resource.
7919
+ * @example 01G65Z755AFWAKHE12NY0CQ9FH
7920
+ */
7921
+ readonly id: string;
7922
+ /**
7923
+ * Display name
7924
+ * @description Human-readable name for the resource. Between 1 and 256 characters.
7925
+ */
7926
+ name: string;
7927
+ /**
7928
+ * Description
7929
+ * @description Optional description of the resource. Maximum 1024 characters.
7930
+ */
7931
+ description?: string;
7932
+ /**
7933
+ * Metadata
7934
+ * @description Additional metadata for the resource.
7935
+ */
7936
+ metadata?: components['schemas']['Metadata'] | null;
7937
+ /**
7938
+ * Creation Time
7939
+ * Format: date-time
7940
+ * @description Timestamp of when the resource was created.
7941
+ * @example 2024-01-01T01:01:01.001Z
7942
+ */
7943
+ readonly createdAt: Date;
7944
+ /**
7945
+ * Last Update Time
7946
+ * Format: date-time
7947
+ * @description Timestamp of when the resource was last updated.
7948
+ * @example 2024-01-01T01:01:01.001Z
7949
+ */
7950
+ readonly updatedAt: Date;
7951
+ /**
7952
+ * Deletion Time
7953
+ * Format: date-time
7954
+ * @description Timestamp of when the resource was permanently deleted.
7955
+ * @example 2024-01-01T01:01:01.001Z
7956
+ */
7957
+ readonly deletedAt?: Date;
7958
+ /**
7959
+ * Format: date-time
7960
+ * @description The cadence start of the resource.
7961
+ * @example 2023-01-01T01:01:01.001Z
7962
+ */
7963
+ activeFrom: Date;
7964
+ /**
7965
+ * Format: date-time
7966
+ * @description The cadence end of the resource.
7967
+ * @example 2023-01-01T01:01:01.001Z
7968
+ */
7969
+ activeTo?: Date;
7970
+ /**
7971
+ * Addon
7972
+ * @description Partially populated add-on properties.
7973
+ */
7974
+ addon: {
7975
+ /**
7976
+ * ID
7977
+ * @description The ID of the add-on.
7978
+ * @example 01G65Z755AFWAKHE12NY0CQ9FH
7979
+ */
7980
+ id: string;
7981
+ /**
7982
+ * Key
7983
+ * @description A semi-unique identifier for the resource.
7984
+ */
7985
+ readonly key: string;
7986
+ /**
7987
+ * Version
7988
+ * @description The version of the Add-on which templates this instance.
7989
+ * @default 1
7990
+ */
7991
+ readonly version: number;
7992
+ /**
7993
+ * InstanceType
7994
+ * @description The instance type of the add-on.
7995
+ */
7996
+ readonly instanceType: components['schemas']['AddonInstanceType'];
7997
+ };
7998
+ /**
7999
+ * QuantityAt
8000
+ * Format: date-time
8001
+ * @description For which point in time the quantity was resolved to.
8002
+ * @example 2025-01-05T00:00:00Z
8003
+ */
8004
+ readonly quantityAt: Date;
8005
+ /**
8006
+ * Quantity
8007
+ * @description The quantity of the add-on. Always 1 for single instance add-ons.
8008
+ * @example 1
8009
+ */
8010
+ quantity: number;
8011
+ /**
8012
+ * Timeline
8013
+ * @description The timeline of the add-on. The returned periods are sorted and continuous.
8014
+ * @example [
8015
+ * {
8016
+ * "quantity": 1,
8017
+ * "activeFrom": "2025-01-01T00:00:00Z",
8018
+ * "activeTo": "2025-01-02T00:00:00Z"
8019
+ * },
8020
+ * {
8021
+ * "quantity": 0,
8022
+ * "activeFrom": "2025-01-02T00:00:00Z",
8023
+ * "activeTo": "2025-01-03T00:00:00Z"
8024
+ * },
8025
+ * {
8026
+ * "quantity": 1,
8027
+ * "activeFrom": "2025-01-03T00:00:00Z"
8028
+ * }
8029
+ * ]
8030
+ */
8031
+ readonly timeline: components['schemas']['SubscriptionAddonTimelineSegment'][];
8032
+ /**
8033
+ * SubscriptionID
8034
+ * @description The ID of the subscription.
8035
+ * @example 01G65Z755AFWAKHE12NY0CQ9FH
8036
+ */
8037
+ readonly subscriptionId: string;
8038
+ /**
8039
+ * Rate cards
8040
+ * @description The rate cards of the add-on.
8041
+ */
8042
+ readonly rateCards: components['schemas']['SubscriptionAddonRateCard'][];
8043
+ };
8044
+ /** @description Resource create operation model. */
8045
+ SubscriptionAddonCreate: {
8046
+ /**
8047
+ * Display name
8048
+ * @description Human-readable name for the resource. Between 1 and 256 characters.
8049
+ */
8050
+ name: string;
8051
+ /**
8052
+ * Description
8053
+ * @description Optional description of the resource. Maximum 1024 characters.
8054
+ */
8055
+ description?: string;
8056
+ /**
8057
+ * Metadata
8058
+ * @description Additional metadata for the resource.
8059
+ */
8060
+ metadata?: components['schemas']['Metadata'] | null;
8061
+ /**
8062
+ * Format: date-time
8063
+ * @description The cadence start of the resource.
8064
+ * @example 2023-01-01T01:01:01.001Z
8065
+ */
8066
+ activeFrom: Date;
8067
+ /**
8068
+ * Format: date-time
8069
+ * @description The cadence end of the resource.
8070
+ * @example 2023-01-01T01:01:01.001Z
8071
+ */
8072
+ activeTo?: Date;
8073
+ /**
8074
+ * Addon
8075
+ * @description Partially populated add-on properties.
8076
+ */
8077
+ addon: {
8078
+ /**
8079
+ * ID
8080
+ * @description The ID of the add-on.
8081
+ * @example 01G65Z755AFWAKHE12NY0CQ9FH
8082
+ */
8083
+ id: string;
8084
+ /**
8085
+ * Key
8086
+ * @description A semi-unique identifier for the resource.
8087
+ */
8088
+ readonly key: string;
8089
+ /**
8090
+ * Version
8091
+ * @description The version of the Add-on which templates this instance.
8092
+ * @default 1
8093
+ */
8094
+ readonly version: number;
8095
+ /**
8096
+ * InstanceType
8097
+ * @description The instance type of the add-on.
8098
+ */
8099
+ readonly instanceType: components['schemas']['AddonInstanceType'];
8100
+ };
8101
+ /**
8102
+ * Quantity
8103
+ * @description The quantity of the add-on. Always 1 for single instance add-ons.
8104
+ * @example 1
8105
+ */
8106
+ quantity: number;
8107
+ /**
8108
+ * Timing
8109
+ * @description The timing of the operation. After the create or update, a new entry will be created in the timeline.
8110
+ */
8111
+ timing: components['schemas']['SubscriptionTiming'];
8112
+ };
8113
+ /** @description A rate card for a subscription add-on. */
8114
+ SubscriptionAddonRateCard: {
8115
+ /**
8116
+ * Rate card
8117
+ * @description The rate card.
8118
+ */
8119
+ rateCard: components['schemas']['RateCard'];
8120
+ /**
8121
+ * Affected subscription item IDs
8122
+ * @description The IDs of the subscription items that this rate card belongs to.
8123
+ */
8124
+ readonly affectedSubscriptionItemIds: string[];
8125
+ };
8126
+ /** @description A subscription add-on event. */
8127
+ SubscriptionAddonTimelineSegment: {
8128
+ /**
8129
+ * Format: date-time
8130
+ * @description The cadence start of the resource.
8131
+ * @example 2023-01-01T01:01:01.001Z
8132
+ */
8133
+ activeFrom: Date;
8134
+ /**
8135
+ * Format: date-time
8136
+ * @description The cadence end of the resource.
8137
+ * @example 2023-01-01T01:01:01.001Z
8138
+ */
8139
+ activeTo?: Date;
8140
+ /**
8141
+ * Quantity
8142
+ * @description The quantity of the add-on for the given period.
8143
+ * @example 1
8144
+ */
8145
+ readonly quantity: number;
8146
+ };
8147
+ /** @description Resource create or update operation model. */
8148
+ SubscriptionAddonUpdate: {
8149
+ /**
8150
+ * Display name
8151
+ * @description Human-readable name for the resource. Between 1 and 256 characters.
8152
+ */
8153
+ name?: string;
8154
+ /**
8155
+ * Description
8156
+ * @description Optional description of the resource. Maximum 1024 characters.
8157
+ */
8158
+ description?: string;
8159
+ /**
8160
+ * Metadata
8161
+ * @description Additional metadata for the resource.
8162
+ */
8163
+ metadata?: components['schemas']['Metadata'] | null;
8164
+ /**
8165
+ * Format: date-time
8166
+ * @description The cadence start of the resource.
8167
+ * @example 2023-01-01T01:01:01.001Z
8168
+ */
8169
+ activeFrom?: Date;
8170
+ /**
8171
+ * Format: date-time
8172
+ * @description The cadence end of the resource.
8173
+ * @example 2023-01-01T01:01:01.001Z
8174
+ */
8175
+ activeTo?: Date;
8176
+ /**
8177
+ * Addon
8178
+ * @description Partially populated add-on properties.
8179
+ */
8180
+ addon?: Record<string, never>;
8181
+ /**
8182
+ * Quantity
8183
+ * @description The quantity of the add-on. Always 1 for single instance add-ons.
8184
+ * @example 1
8185
+ */
8186
+ quantity?: number;
8187
+ /**
8188
+ * Timing
8189
+ * @description The timing of the operation. After the create or update, a new entry will be created in the timeline.
8190
+ */
8191
+ timing?: components['schemas']['SubscriptionTiming'];
8192
+ };
7866
8193
  /** @description Alignment details enriched with the current billing period. */
7867
8194
  SubscriptionAlignment: {
7868
8195
  /** @description Whether all Billable items and RateCards must align.
@@ -8980,6 +9307,11 @@ export type StripeWebhookResponse = components['schemas']['StripeWebhookResponse
8980
9307
  export type Subject = components['schemas']['Subject'];
8981
9308
  export type SubjectUpsert = components['schemas']['SubjectUpsert'];
8982
9309
  export type Subscription = components['schemas']['Subscription'];
9310
+ export type SubscriptionAddon = components['schemas']['SubscriptionAddon'];
9311
+ export type SubscriptionAddonCreate = components['schemas']['SubscriptionAddonCreate'];
9312
+ export type SubscriptionAddonRateCard = components['schemas']['SubscriptionAddonRateCard'];
9313
+ export type SubscriptionAddonTimelineSegment = components['schemas']['SubscriptionAddonTimelineSegment'];
9314
+ export type SubscriptionAddonUpdate = components['schemas']['SubscriptionAddonUpdate'];
8983
9315
  export type SubscriptionAlignment = components['schemas']['SubscriptionAlignment'];
8984
9316
  export type SubscriptionChange = components['schemas']['SubscriptionChange'];
8985
9317
  export type SubscriptionChangeResponseBody = components['schemas']['SubscriptionChangeResponseBody'];
@@ -20127,6 +20459,401 @@ export interface operations {
20127
20459
  };
20128
20460
  };
20129
20461
  };
20462
+ listSubscriptionAddons: {
20463
+ parameters: {
20464
+ query?: never;
20465
+ header?: never;
20466
+ path: {
20467
+ subscriptionId: string;
20468
+ };
20469
+ cookie?: never;
20470
+ };
20471
+ requestBody?: never;
20472
+ responses: {
20473
+ /** @description The request has succeeded. */
20474
+ 200: {
20475
+ headers: {
20476
+ [name: string]: unknown;
20477
+ };
20478
+ content: {
20479
+ 'application/json': components['schemas']['SubscriptionAddon'][];
20480
+ };
20481
+ };
20482
+ /** @description The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing). */
20483
+ 400: {
20484
+ headers: {
20485
+ [name: string]: unknown;
20486
+ };
20487
+ content: {
20488
+ 'application/problem+json': components['schemas']['BadRequestProblemResponse'];
20489
+ };
20490
+ };
20491
+ /** @description The request has not been applied because it lacks valid authentication credentials for the target resource. */
20492
+ 401: {
20493
+ headers: {
20494
+ [name: string]: unknown;
20495
+ };
20496
+ content: {
20497
+ 'application/problem+json': components['schemas']['UnauthorizedProblemResponse'];
20498
+ };
20499
+ };
20500
+ /** @description The server understood the request but refuses to authorize it. */
20501
+ 403: {
20502
+ headers: {
20503
+ [name: string]: unknown;
20504
+ };
20505
+ content: {
20506
+ 'application/problem+json': components['schemas']['ForbiddenProblemResponse'];
20507
+ };
20508
+ };
20509
+ /** @description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists. */
20510
+ 404: {
20511
+ headers: {
20512
+ [name: string]: unknown;
20513
+ };
20514
+ content: {
20515
+ 'application/problem+json': components['schemas']['NotFoundProblemResponse'];
20516
+ };
20517
+ };
20518
+ /** @description One or more conditions given in the request header fields evaluated to false when tested on the server. */
20519
+ 412: {
20520
+ headers: {
20521
+ [name: string]: unknown;
20522
+ };
20523
+ content: {
20524
+ 'application/problem+json': components['schemas']['PreconditionFailedProblemResponse'];
20525
+ };
20526
+ };
20527
+ /** @description The server encountered an unexpected condition that prevented it from fulfilling the request. */
20528
+ 500: {
20529
+ headers: {
20530
+ [name: string]: unknown;
20531
+ };
20532
+ content: {
20533
+ 'application/problem+json': components['schemas']['InternalServerErrorProblemResponse'];
20534
+ };
20535
+ };
20536
+ /** @description The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, which will likely be alleviated after some delay. */
20537
+ 503: {
20538
+ headers: {
20539
+ [name: string]: unknown;
20540
+ };
20541
+ content: {
20542
+ 'application/problem+json': components['schemas']['ServiceUnavailableProblemResponse'];
20543
+ };
20544
+ };
20545
+ /** @description An unexpected error response. */
20546
+ default: {
20547
+ headers: {
20548
+ [name: string]: unknown;
20549
+ };
20550
+ content: {
20551
+ 'application/problem+json': components['schemas']['UnexpectedProblemResponse'];
20552
+ };
20553
+ };
20554
+ };
20555
+ };
20556
+ createSubscriptionAddon: {
20557
+ parameters: {
20558
+ query?: never;
20559
+ header?: never;
20560
+ path: {
20561
+ subscriptionId: string;
20562
+ };
20563
+ cookie?: never;
20564
+ };
20565
+ requestBody: {
20566
+ content: {
20567
+ 'application/json': components['schemas']['SubscriptionAddonCreate'];
20568
+ };
20569
+ };
20570
+ responses: {
20571
+ /** @description The request has succeeded and a new resource has been created as a result. */
20572
+ 201: {
20573
+ headers: {
20574
+ [name: string]: unknown;
20575
+ };
20576
+ content: {
20577
+ 'application/json': components['schemas']['SubscriptionAddon'];
20578
+ };
20579
+ };
20580
+ /** @description The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing). */
20581
+ 400: {
20582
+ headers: {
20583
+ [name: string]: unknown;
20584
+ };
20585
+ content: {
20586
+ 'application/problem+json': components['schemas']['BadRequestProblemResponse'];
20587
+ };
20588
+ };
20589
+ /** @description The request has not been applied because it lacks valid authentication credentials for the target resource. */
20590
+ 401: {
20591
+ headers: {
20592
+ [name: string]: unknown;
20593
+ };
20594
+ content: {
20595
+ 'application/problem+json': components['schemas']['UnauthorizedProblemResponse'];
20596
+ };
20597
+ };
20598
+ /** @description The server understood the request but refuses to authorize it. */
20599
+ 403: {
20600
+ headers: {
20601
+ [name: string]: unknown;
20602
+ };
20603
+ content: {
20604
+ 'application/problem+json': components['schemas']['ForbiddenProblemResponse'];
20605
+ };
20606
+ };
20607
+ /** @description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists. */
20608
+ 404: {
20609
+ headers: {
20610
+ [name: string]: unknown;
20611
+ };
20612
+ content: {
20613
+ 'application/problem+json': components['schemas']['NotFoundProblemResponse'];
20614
+ };
20615
+ };
20616
+ /** @description The request could not be completed due to a conflict with the current state of the target resource. */
20617
+ 409: {
20618
+ headers: {
20619
+ [name: string]: unknown;
20620
+ };
20621
+ content: {
20622
+ 'application/problem+json': components['schemas']['ConflictProblemResponse'];
20623
+ };
20624
+ };
20625
+ /** @description One or more conditions given in the request header fields evaluated to false when tested on the server. */
20626
+ 412: {
20627
+ headers: {
20628
+ [name: string]: unknown;
20629
+ };
20630
+ content: {
20631
+ 'application/problem+json': components['schemas']['PreconditionFailedProblemResponse'];
20632
+ };
20633
+ };
20634
+ /** @description The server encountered an unexpected condition that prevented it from fulfilling the request. */
20635
+ 500: {
20636
+ headers: {
20637
+ [name: string]: unknown;
20638
+ };
20639
+ content: {
20640
+ 'application/problem+json': components['schemas']['InternalServerErrorProblemResponse'];
20641
+ };
20642
+ };
20643
+ /** @description The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, which will likely be alleviated after some delay. */
20644
+ 503: {
20645
+ headers: {
20646
+ [name: string]: unknown;
20647
+ };
20648
+ content: {
20649
+ 'application/problem+json': components['schemas']['ServiceUnavailableProblemResponse'];
20650
+ };
20651
+ };
20652
+ /** @description An unexpected error response. */
20653
+ default: {
20654
+ headers: {
20655
+ [name: string]: unknown;
20656
+ };
20657
+ content: {
20658
+ 'application/problem+json': components['schemas']['UnexpectedProblemResponse'];
20659
+ };
20660
+ };
20661
+ };
20662
+ };
20663
+ getSubscriptionAddon: {
20664
+ parameters: {
20665
+ query?: never;
20666
+ header?: never;
20667
+ path: {
20668
+ subscriptionId: string;
20669
+ subscriptionAddonId: string;
20670
+ };
20671
+ cookie?: never;
20672
+ };
20673
+ requestBody?: never;
20674
+ responses: {
20675
+ /** @description The request has succeeded. */
20676
+ 200: {
20677
+ headers: {
20678
+ [name: string]: unknown;
20679
+ };
20680
+ content: {
20681
+ 'application/json': components['schemas']['SubscriptionAddon'];
20682
+ };
20683
+ };
20684
+ /** @description The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing). */
20685
+ 400: {
20686
+ headers: {
20687
+ [name: string]: unknown;
20688
+ };
20689
+ content: {
20690
+ 'application/problem+json': components['schemas']['BadRequestProblemResponse'];
20691
+ };
20692
+ };
20693
+ /** @description The request has not been applied because it lacks valid authentication credentials for the target resource. */
20694
+ 401: {
20695
+ headers: {
20696
+ [name: string]: unknown;
20697
+ };
20698
+ content: {
20699
+ 'application/problem+json': components['schemas']['UnauthorizedProblemResponse'];
20700
+ };
20701
+ };
20702
+ /** @description The server understood the request but refuses to authorize it. */
20703
+ 403: {
20704
+ headers: {
20705
+ [name: string]: unknown;
20706
+ };
20707
+ content: {
20708
+ 'application/problem+json': components['schemas']['ForbiddenProblemResponse'];
20709
+ };
20710
+ };
20711
+ /** @description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists. */
20712
+ 404: {
20713
+ headers: {
20714
+ [name: string]: unknown;
20715
+ };
20716
+ content: {
20717
+ 'application/problem+json': components['schemas']['NotFoundProblemResponse'];
20718
+ };
20719
+ };
20720
+ /** @description One or more conditions given in the request header fields evaluated to false when tested on the server. */
20721
+ 412: {
20722
+ headers: {
20723
+ [name: string]: unknown;
20724
+ };
20725
+ content: {
20726
+ 'application/problem+json': components['schemas']['PreconditionFailedProblemResponse'];
20727
+ };
20728
+ };
20729
+ /** @description The server encountered an unexpected condition that prevented it from fulfilling the request. */
20730
+ 500: {
20731
+ headers: {
20732
+ [name: string]: unknown;
20733
+ };
20734
+ content: {
20735
+ 'application/problem+json': components['schemas']['InternalServerErrorProblemResponse'];
20736
+ };
20737
+ };
20738
+ /** @description The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, which will likely be alleviated after some delay. */
20739
+ 503: {
20740
+ headers: {
20741
+ [name: string]: unknown;
20742
+ };
20743
+ content: {
20744
+ 'application/problem+json': components['schemas']['ServiceUnavailableProblemResponse'];
20745
+ };
20746
+ };
20747
+ /** @description An unexpected error response. */
20748
+ default: {
20749
+ headers: {
20750
+ [name: string]: unknown;
20751
+ };
20752
+ content: {
20753
+ 'application/problem+json': components['schemas']['UnexpectedProblemResponse'];
20754
+ };
20755
+ };
20756
+ };
20757
+ };
20758
+ updateSubscriptionAddon: {
20759
+ parameters: {
20760
+ query?: never;
20761
+ header?: never;
20762
+ path: {
20763
+ subscriptionId: string;
20764
+ subscriptionAddonId: string;
20765
+ };
20766
+ cookie?: never;
20767
+ };
20768
+ requestBody: {
20769
+ content: {
20770
+ 'application/json': components['schemas']['SubscriptionAddonUpdate'];
20771
+ };
20772
+ };
20773
+ responses: {
20774
+ /** @description The request has succeeded. */
20775
+ 200: {
20776
+ headers: {
20777
+ [name: string]: unknown;
20778
+ };
20779
+ content: {
20780
+ 'application/json': components['schemas']['SubscriptionAddon'];
20781
+ };
20782
+ };
20783
+ /** @description The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing). */
20784
+ 400: {
20785
+ headers: {
20786
+ [name: string]: unknown;
20787
+ };
20788
+ content: {
20789
+ 'application/problem+json': components['schemas']['BadRequestProblemResponse'];
20790
+ };
20791
+ };
20792
+ /** @description The request has not been applied because it lacks valid authentication credentials for the target resource. */
20793
+ 401: {
20794
+ headers: {
20795
+ [name: string]: unknown;
20796
+ };
20797
+ content: {
20798
+ 'application/problem+json': components['schemas']['UnauthorizedProblemResponse'];
20799
+ };
20800
+ };
20801
+ /** @description The server understood the request but refuses to authorize it. */
20802
+ 403: {
20803
+ headers: {
20804
+ [name: string]: unknown;
20805
+ };
20806
+ content: {
20807
+ 'application/problem+json': components['schemas']['ForbiddenProblemResponse'];
20808
+ };
20809
+ };
20810
+ /** @description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists. */
20811
+ 404: {
20812
+ headers: {
20813
+ [name: string]: unknown;
20814
+ };
20815
+ content: {
20816
+ 'application/problem+json': components['schemas']['NotFoundProblemResponse'];
20817
+ };
20818
+ };
20819
+ /** @description One or more conditions given in the request header fields evaluated to false when tested on the server. */
20820
+ 412: {
20821
+ headers: {
20822
+ [name: string]: unknown;
20823
+ };
20824
+ content: {
20825
+ 'application/problem+json': components['schemas']['PreconditionFailedProblemResponse'];
20826
+ };
20827
+ };
20828
+ /** @description The server encountered an unexpected condition that prevented it from fulfilling the request. */
20829
+ 500: {
20830
+ headers: {
20831
+ [name: string]: unknown;
20832
+ };
20833
+ content: {
20834
+ 'application/problem+json': components['schemas']['InternalServerErrorProblemResponse'];
20835
+ };
20836
+ };
20837
+ /** @description The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, which will likely be alleviated after some delay. */
20838
+ 503: {
20839
+ headers: {
20840
+ [name: string]: unknown;
20841
+ };
20842
+ content: {
20843
+ 'application/problem+json': components['schemas']['ServiceUnavailableProblemResponse'];
20844
+ };
20845
+ };
20846
+ /** @description An unexpected error response. */
20847
+ default: {
20848
+ headers: {
20849
+ [name: string]: unknown;
20850
+ };
20851
+ content: {
20852
+ 'application/problem+json': components['schemas']['UnexpectedProblemResponse'];
20853
+ };
20854
+ };
20855
+ };
20856
+ };
20130
20857
  cancelSubscription: {
20131
20858
  parameters: {
20132
20859
  query?: never;