@openmeter/sdk 1.0.0-beta-eaa9727f0369 → 1.0.0-beta-463feed415a6

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.
@@ -5551,6 +5551,26 @@ export interface components {
5551
5551
  */
5552
5552
  readonly config?: string;
5553
5553
  };
5554
+ /** @description Generic ErrorExtension as part of HTTPProblem.Extensions.[StatusCode] */
5555
+ ErrorExtension: {
5556
+ /**
5557
+ * @description The path to the field.
5558
+ * @example addons/pro/ratecards/token/featureKey
5559
+ */
5560
+ readonly field: string;
5561
+ /**
5562
+ * @description The machine readable description of the error.
5563
+ * @example invalid_feature_key
5564
+ */
5565
+ readonly code: string;
5566
+ /**
5567
+ * @description The human readable description of the error.
5568
+ * @example not found feature by key
5569
+ */
5570
+ readonly message: string;
5571
+ } & {
5572
+ [key: string]: unknown;
5573
+ };
5554
5574
  /**
5555
5575
  * @description CloudEvents Specification JSON Schema
5556
5576
  *
@@ -10414,6 +10434,40 @@ export interface components {
10414
10434
  /** @description The current billing period. Only has value if the subscription is aligned and active. */
10415
10435
  currentAlignedBillingPeriod?: components['schemas']['Period'];
10416
10436
  };
10437
+ /** @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). Variants with ErrorExtensions specific to subscriptions. */
10438
+ SubscriptionBadRequestErrorResponse: {
10439
+ /**
10440
+ * Format: uri
10441
+ * @description Type contains a URI that identifies the problem type.
10442
+ * @default about:blank
10443
+ * @example about:blank
10444
+ */
10445
+ type: string;
10446
+ /**
10447
+ * @description A a short, human-readable summary of the problem type.
10448
+ * @example Bad Request
10449
+ */
10450
+ title: string;
10451
+ /**
10452
+ * Format: int16
10453
+ * @description The HTTP status code generated by the origin server for this occurrence of the problem.
10454
+ * @example 400
10455
+ */
10456
+ status?: number;
10457
+ /**
10458
+ * @description A human-readable explanation specific to this occurrence of the problem.
10459
+ * @example The request body must be a JSON object.
10460
+ */
10461
+ detail: string;
10462
+ /**
10463
+ * Format: uri
10464
+ * @description A URI reference that identifies the specific occurrence of the problem.
10465
+ * @example urn:request:local/JMOlctsKV8-000001
10466
+ */
10467
+ instance: string;
10468
+ /** @description Additional properties specific to the problem type may be present. */
10469
+ extensions?: components['schemas']['SubscriptionErrorExtensions'];
10470
+ };
10417
10471
  /** @description Change a subscription. */
10418
10472
  SubscriptionChange: components['schemas']['PlanSubscriptionChange'] | components['schemas']['CustomSubscriptionChange'];
10419
10473
  /** @description Response body for subscription change. */
@@ -10429,6 +10483,41 @@ export interface components {
10429
10483
  */
10430
10484
  next: components['schemas']['SubscriptionExpanded'];
10431
10485
  };
10486
+ /** @description The request could not be completed due to a conflict with the current state of the target resource.
10487
+ * Variants with ErrorExtensions specific to subscriptions. */
10488
+ SubscriptionConflictErrorResponse: {
10489
+ /**
10490
+ * Format: uri
10491
+ * @description Type contains a URI that identifies the problem type.
10492
+ * @default about:blank
10493
+ * @example about:blank
10494
+ */
10495
+ type: string;
10496
+ /**
10497
+ * @description A a short, human-readable summary of the problem type.
10498
+ * @example Bad Request
10499
+ */
10500
+ title: string;
10501
+ /**
10502
+ * Format: int16
10503
+ * @description The HTTP status code generated by the origin server for this occurrence of the problem.
10504
+ * @example 400
10505
+ */
10506
+ status?: number;
10507
+ /**
10508
+ * @description A human-readable explanation specific to this occurrence of the problem.
10509
+ * @example The request body must be a JSON object.
10510
+ */
10511
+ detail: string;
10512
+ /**
10513
+ * Format: uri
10514
+ * @description A URI reference that identifies the specific occurrence of the problem.
10515
+ * @example urn:request:local/JMOlctsKV8-000001
10516
+ */
10517
+ instance: string;
10518
+ /** @description Additional properties specific to the problem type may be present. */
10519
+ extensions?: components['schemas']['SubscriptionErrorExtensions'];
10520
+ };
10432
10521
  /** @description Create a subscription. */
10433
10522
  SubscriptionCreate: components['schemas']['PlanSubscriptionCreate'] | components['schemas']['CustomSubscriptionCreate'];
10434
10523
  /** @description Subscription edit input. */
@@ -10441,6 +10530,10 @@ export interface components {
10441
10530
  };
10442
10531
  /** @description The operation to be performed on the subscription. */
10443
10532
  SubscriptionEditOperation: components['schemas']['EditSubscriptionAddItem'] | components['schemas']['EditSubscriptionRemoveItem'] | components['schemas']['EditSubscriptionAddPhase'] | components['schemas']['EditSubscriptionRemovePhase'] | components['schemas']['EditSubscriptionStretchPhase'] | components['schemas']['EditSubscriptionUnscheduleEdit'];
10533
+ /** @description Error extensions for the Subscription Errors. */
10534
+ SubscriptionErrorExtensions: {
10535
+ validationErrors: components['schemas']['ErrorExtension'][];
10536
+ };
10444
10537
  /** @description Expanded subscription */
10445
10538
  SubscriptionExpanded: {
10446
10539
  /**
@@ -10892,6 +10985,21 @@ export interface components {
10892
10985
  * @example urn:request:local/JMOlctsKV8-000001
10893
10986
  */
10894
10987
  instance: string;
10988
+ /**
10989
+ * @description Additional properties specific to the problem type may be present.
10990
+ * @example {
10991
+ * "validationErrors": [
10992
+ * {
10993
+ * "code": "validation_error",
10994
+ * "message": "Validation error"
10995
+ * }
10996
+ * ],
10997
+ * "otherAttribute": "otherValue"
10998
+ * }
10999
+ */
11000
+ extensions?: {
11001
+ [key: string]: unknown;
11002
+ };
10895
11003
  } & {
10896
11004
  [key: string]: unknown;
10897
11005
  };
@@ -10945,42 +11053,6 @@ export interface components {
10945
11053
  /** @description Additional attributes. */
10946
11054
  readonly attributes?: components['schemas']['Annotations'];
10947
11055
  };
10948
- /** @description A BadRequestError with a validationErrors extension. */
10949
- ValidationErrorProblemResponse: {
10950
- /**
10951
- * Format: uri
10952
- * @description Type contains a URI that identifies the problem type.
10953
- * @default about:blank
10954
- * @example about:blank
10955
- */
10956
- type: string;
10957
- /**
10958
- * @description A a short, human-readable summary of the problem type.
10959
- * @example Bad Request
10960
- */
10961
- title: string;
10962
- /**
10963
- * Format: int16
10964
- * @description The HTTP status code generated by the origin server for this occurrence of the problem.
10965
- * @example 400
10966
- */
10967
- status?: number;
10968
- /**
10969
- * @description A human-readable explanation specific to this occurrence of the problem.
10970
- * @example The request body must be a JSON object.
10971
- */
10972
- detail: string;
10973
- /**
10974
- * Format: uri
10975
- * @description A URI reference that identifies the specific occurrence of the problem.
10976
- * @example urn:request:local/JMOlctsKV8-000001
10977
- */
10978
- instance: string;
10979
- /** @description Validation issues. */
10980
- readonly extensions?: {
10981
- validationErrors?: components['schemas']['ValidationError'][];
10982
- };
10983
- };
10984
11056
  /** @description ValidationIssue captures any validation issues related to the invoice.
10985
11057
  *
10986
11058
  * Issues with severity "critical" will prevent the invoice from being issued. */
@@ -11503,6 +11575,7 @@ export type EntitlementV2 = components['schemas']['EntitlementV2'];
11503
11575
  export type EntitlementV2CreateInputs = components['schemas']['EntitlementV2CreateInputs'];
11504
11576
  export type EntitlementV2PaginatedResponse = components['schemas']['EntitlementV2PaginatedResponse'];
11505
11577
  export type EntitlementValue = components['schemas']['EntitlementValue'];
11578
+ export type ErrorExtension = components['schemas']['ErrorExtension'];
11506
11579
  export type Event = components['schemas']['Event'];
11507
11580
  export type ExpirationDuration = components['schemas']['ExpirationDuration'];
11508
11581
  export type ExpirationPeriod = components['schemas']['ExpirationPeriod'];
@@ -11701,11 +11774,14 @@ export type SubscriptionAddonRateCard = components['schemas']['SubscriptionAddon
11701
11774
  export type SubscriptionAddonTimelineSegment = components['schemas']['SubscriptionAddonTimelineSegment'];
11702
11775
  export type SubscriptionAddonUpdate = components['schemas']['SubscriptionAddonUpdate'];
11703
11776
  export type SubscriptionAlignment = components['schemas']['SubscriptionAlignment'];
11777
+ export type SubscriptionBadRequestErrorResponse = components['schemas']['SubscriptionBadRequestErrorResponse'];
11704
11778
  export type SubscriptionChange = components['schemas']['SubscriptionChange'];
11705
11779
  export type SubscriptionChangeResponseBody = components['schemas']['SubscriptionChangeResponseBody'];
11780
+ export type SubscriptionConflictErrorResponse = components['schemas']['SubscriptionConflictErrorResponse'];
11706
11781
  export type SubscriptionCreate = components['schemas']['SubscriptionCreate'];
11707
11782
  export type SubscriptionEdit = components['schemas']['SubscriptionEdit'];
11708
11783
  export type SubscriptionEditOperation = components['schemas']['SubscriptionEditOperation'];
11784
+ export type SubscriptionErrorExtensions = components['schemas']['SubscriptionErrorExtensions'];
11709
11785
  export type SubscriptionExpanded = components['schemas']['SubscriptionExpanded'];
11710
11786
  export type SubscriptionItem = components['schemas']['SubscriptionItem'];
11711
11787
  export type SubscriptionItemIncluded = components['schemas']['SubscriptionItemIncluded'];
@@ -11725,7 +11801,6 @@ export type UnexpectedProblemResponse = components['schemas']['UnexpectedProblem
11725
11801
  export type UnitPrice = components['schemas']['UnitPrice'];
11726
11802
  export type UnitPriceWithCommitments = components['schemas']['UnitPriceWithCommitments'];
11727
11803
  export type ValidationError = components['schemas']['ValidationError'];
11728
- export type ValidationErrorProblemResponse = components['schemas']['ValidationErrorProblemResponse'];
11729
11804
  export type ValidationIssue = components['schemas']['ValidationIssue'];
11730
11805
  export type ValidationIssueSeverity = components['schemas']['ValidationIssueSeverity'];
11731
11806
  export type VoidInvoiceActionCreate = components['schemas']['VoidInvoiceActionCreate'];
@@ -23922,13 +23997,13 @@ export interface operations {
23922
23997
  'application/json': components['schemas']['Subscription'];
23923
23998
  };
23924
23999
  };
23925
- /** @description A BadRequestError with a validationErrors extension. */
24000
+ /** @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). Variants with ErrorExtensions specific to subscriptions. */
23926
24001
  400: {
23927
24002
  headers: {
23928
24003
  [name: string]: unknown;
23929
24004
  };
23930
24005
  content: {
23931
- 'application/problem+json': components['schemas']['ValidationErrorProblemResponse'];
24006
+ 'application/problem+json': components['schemas']['SubscriptionBadRequestErrorResponse'];
23932
24007
  };
23933
24008
  };
23934
24009
  /** @description The request has not been applied because it lacks valid authentication credentials for the target resource. */
@@ -23949,13 +24024,14 @@ export interface operations {
23949
24024
  'application/problem+json': components['schemas']['ForbiddenProblemResponse'];
23950
24025
  };
23951
24026
  };
23952
- /** @description The request could not be completed due to a conflict with the current state of the target resource. */
24027
+ /** @description The request could not be completed due to a conflict with the current state of the target resource.
24028
+ * Variants with ErrorExtensions specific to subscriptions. */
23953
24029
  409: {
23954
24030
  headers: {
23955
24031
  [name: string]: unknown;
23956
24032
  };
23957
24033
  content: {
23958
- 'application/problem+json': components['schemas']['ConflictProblemResponse'];
24034
+ 'application/problem+json': components['schemas']['SubscriptionConflictErrorResponse'];
23959
24035
  };
23960
24036
  };
23961
24037
  /** @description One or more conditions given in the request header fields evaluated to false when tested on the server. */
@@ -24111,13 +24187,13 @@ export interface operations {
24111
24187
  };
24112
24188
  content?: never;
24113
24189
  };
24114
- /** @description A BadRequestError with a validationErrors extension. */
24190
+ /** @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). Variants with ErrorExtensions specific to subscriptions. */
24115
24191
  400: {
24116
24192
  headers: {
24117
24193
  [name: string]: unknown;
24118
24194
  };
24119
24195
  content: {
24120
- 'application/problem+json': components['schemas']['ValidationErrorProblemResponse'];
24196
+ 'application/problem+json': components['schemas']['SubscriptionBadRequestErrorResponse'];
24121
24197
  };
24122
24198
  };
24123
24199
  /** @description The request has not been applied because it lacks valid authentication credentials for the target resource. */
@@ -24147,6 +24223,16 @@ export interface operations {
24147
24223
  'application/problem+json': components['schemas']['NotFoundProblemResponse'];
24148
24224
  };
24149
24225
  };
24226
+ /** @description The request could not be completed due to a conflict with the current state of the target resource.
24227
+ * Variants with ErrorExtensions specific to subscriptions. */
24228
+ 409: {
24229
+ headers: {
24230
+ [name: string]: unknown;
24231
+ };
24232
+ content: {
24233
+ 'application/problem+json': components['schemas']['SubscriptionConflictErrorResponse'];
24234
+ };
24235
+ };
24150
24236
  /** @description One or more conditions given in the request header fields evaluated to false when tested on the server. */
24151
24237
  412: {
24152
24238
  headers: {
@@ -24209,13 +24295,13 @@ export interface operations {
24209
24295
  'application/json': components['schemas']['Subscription'];
24210
24296
  };
24211
24297
  };
24212
- /** @description A BadRequestError with a validationErrors extension. */
24298
+ /** @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). Variants with ErrorExtensions specific to subscriptions. */
24213
24299
  400: {
24214
24300
  headers: {
24215
24301
  [name: string]: unknown;
24216
24302
  };
24217
24303
  content: {
24218
- 'application/problem+json': components['schemas']['ValidationErrorProblemResponse'];
24304
+ 'application/problem+json': components['schemas']['SubscriptionBadRequestErrorResponse'];
24219
24305
  };
24220
24306
  };
24221
24307
  /** @description The request has not been applied because it lacks valid authentication credentials for the target resource. */
@@ -24245,13 +24331,14 @@ export interface operations {
24245
24331
  'application/problem+json': components['schemas']['NotFoundProblemResponse'];
24246
24332
  };
24247
24333
  };
24248
- /** @description The request could not be completed due to a conflict with the current state of the target resource. */
24334
+ /** @description The request could not be completed due to a conflict with the current state of the target resource.
24335
+ * Variants with ErrorExtensions specific to subscriptions. */
24249
24336
  409: {
24250
24337
  headers: {
24251
24338
  [name: string]: unknown;
24252
24339
  };
24253
24340
  content: {
24254
- 'application/problem+json': components['schemas']['ConflictProblemResponse'];
24341
+ 'application/problem+json': components['schemas']['SubscriptionConflictErrorResponse'];
24255
24342
  };
24256
24343
  };
24257
24344
  /** @description One or more conditions given in the request header fields evaluated to false when tested on the server. */
@@ -24714,13 +24801,13 @@ export interface operations {
24714
24801
  'application/json': components['schemas']['Subscription'];
24715
24802
  };
24716
24803
  };
24717
- /** @description A BadRequestError with a validationErrors extension. */
24804
+ /** @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). Variants with ErrorExtensions specific to subscriptions. */
24718
24805
  400: {
24719
24806
  headers: {
24720
24807
  [name: string]: unknown;
24721
24808
  };
24722
24809
  content: {
24723
- 'application/problem+json': components['schemas']['ValidationErrorProblemResponse'];
24810
+ 'application/problem+json': components['schemas']['SubscriptionBadRequestErrorResponse'];
24724
24811
  };
24725
24812
  };
24726
24813
  /** @description The request has not been applied because it lacks valid authentication credentials for the target resource. */
@@ -24750,13 +24837,14 @@ export interface operations {
24750
24837
  'application/problem+json': components['schemas']['NotFoundProblemResponse'];
24751
24838
  };
24752
24839
  };
24753
- /** @description The request could not be completed due to a conflict with the current state of the target resource. */
24840
+ /** @description The request could not be completed due to a conflict with the current state of the target resource.
24841
+ * Variants with ErrorExtensions specific to subscriptions. */
24754
24842
  409: {
24755
24843
  headers: {
24756
24844
  [name: string]: unknown;
24757
24845
  };
24758
24846
  content: {
24759
- 'application/problem+json': components['schemas']['ConflictProblemResponse'];
24847
+ 'application/problem+json': components['schemas']['SubscriptionConflictErrorResponse'];
24760
24848
  };
24761
24849
  };
24762
24850
  /** @description One or more conditions given in the request header fields evaluated to false when tested on the server. */
@@ -24821,13 +24909,13 @@ export interface operations {
24821
24909
  'application/json': components['schemas']['SubscriptionChangeResponseBody'];
24822
24910
  };
24823
24911
  };
24824
- /** @description A BadRequestError with a validationErrors extension. */
24912
+ /** @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). Variants with ErrorExtensions specific to subscriptions. */
24825
24913
  400: {
24826
24914
  headers: {
24827
24915
  [name: string]: unknown;
24828
24916
  };
24829
24917
  content: {
24830
- 'application/problem+json': components['schemas']['ValidationErrorProblemResponse'];
24918
+ 'application/problem+json': components['schemas']['SubscriptionBadRequestErrorResponse'];
24831
24919
  };
24832
24920
  };
24833
24921
  /** @description The request has not been applied because it lacks valid authentication credentials for the target resource. */
@@ -24857,13 +24945,14 @@ export interface operations {
24857
24945
  'application/problem+json': components['schemas']['NotFoundProblemResponse'];
24858
24946
  };
24859
24947
  };
24860
- /** @description The request could not be completed due to a conflict with the current state of the target resource. */
24948
+ /** @description The request could not be completed due to a conflict with the current state of the target resource.
24949
+ * Variants with ErrorExtensions specific to subscriptions. */
24861
24950
  409: {
24862
24951
  headers: {
24863
24952
  [name: string]: unknown;
24864
24953
  };
24865
24954
  content: {
24866
- 'application/problem+json': components['schemas']['ConflictProblemResponse'];
24955
+ 'application/problem+json': components['schemas']['SubscriptionConflictErrorResponse'];
24867
24956
  };
24868
24957
  };
24869
24958
  /** @description One or more conditions given in the request header fields evaluated to false when tested on the server. */
@@ -24947,13 +25036,13 @@ export interface operations {
24947
25036
  'application/json': components['schemas']['SubscriptionChangeResponseBody'];
24948
25037
  };
24949
25038
  };
24950
- /** @description A BadRequestError with a validationErrors extension. */
25039
+ /** @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). Variants with ErrorExtensions specific to subscriptions. */
24951
25040
  400: {
24952
25041
  headers: {
24953
25042
  [name: string]: unknown;
24954
25043
  };
24955
25044
  content: {
24956
- 'application/problem+json': components['schemas']['ValidationErrorProblemResponse'];
25045
+ 'application/problem+json': components['schemas']['SubscriptionBadRequestErrorResponse'];
24957
25046
  };
24958
25047
  };
24959
25048
  /** @description The request has not been applied because it lacks valid authentication credentials for the target resource. */
@@ -24983,13 +25072,14 @@ export interface operations {
24983
25072
  'application/problem+json': components['schemas']['NotFoundProblemResponse'];
24984
25073
  };
24985
25074
  };
24986
- /** @description The request could not be completed due to a conflict with the current state of the target resource. */
25075
+ /** @description The request could not be completed due to a conflict with the current state of the target resource.
25076
+ * Variants with ErrorExtensions specific to subscriptions. */
24987
25077
  409: {
24988
25078
  headers: {
24989
25079
  [name: string]: unknown;
24990
25080
  };
24991
25081
  content: {
24992
- 'application/problem+json': components['schemas']['ConflictProblemResponse'];
25082
+ 'application/problem+json': components['schemas']['SubscriptionConflictErrorResponse'];
24993
25083
  };
24994
25084
  };
24995
25085
  /** @description One or more conditions given in the request header fields evaluated to false when tested on the server. */
@@ -25144,13 +25234,13 @@ export interface operations {
25144
25234
  'application/json': components['schemas']['Subscription'];
25145
25235
  };
25146
25236
  };
25147
- /** @description A BadRequestError with a validationErrors extension. */
25237
+ /** @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). Variants with ErrorExtensions specific to subscriptions. */
25148
25238
  400: {
25149
25239
  headers: {
25150
25240
  [name: string]: unknown;
25151
25241
  };
25152
25242
  content: {
25153
- 'application/problem+json': components['schemas']['ValidationErrorProblemResponse'];
25243
+ 'application/problem+json': components['schemas']['SubscriptionBadRequestErrorResponse'];
25154
25244
  };
25155
25245
  };
25156
25246
  /** @description The request has not been applied because it lacks valid authentication credentials for the target resource. */
@@ -25180,13 +25270,14 @@ export interface operations {
25180
25270
  'application/problem+json': components['schemas']['NotFoundProblemResponse'];
25181
25271
  };
25182
25272
  };
25183
- /** @description The request could not be completed due to a conflict with the current state of the target resource. */
25273
+ /** @description The request could not be completed due to a conflict with the current state of the target resource.
25274
+ * Variants with ErrorExtensions specific to subscriptions. */
25184
25275
  409: {
25185
25276
  headers: {
25186
25277
  [name: string]: unknown;
25187
25278
  };
25188
25279
  content: {
25189
- 'application/problem+json': components['schemas']['ConflictProblemResponse'];
25280
+ 'application/problem+json': components['schemas']['SubscriptionConflictErrorResponse'];
25190
25281
  };
25191
25282
  };
25192
25283
  /** @description One or more conditions given in the request header fields evaluated to false when tested on the server. */