@openmeter/sdk 1.0.0-beta-00752857ecdd → 1.0.0-beta-213b5dbda168

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