@inklok/api-spec 7.9.1 → 7.9.3

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.
Files changed (2) hide show
  1. package/openapi.yaml +199 -7
  2. package/package.json +1 -1
package/openapi.yaml CHANGED
@@ -8,7 +8,7 @@ info:
8
8
  Authenticate using an API key or bearer token, then use the resources below to manage
9
9
  templates, agreements, documents, and signing. For your first integration, start with
10
10
  the Quick Start guide.
11
- version: "7.9.1"
11
+ version: "7.9.3"
12
12
  contact:
13
13
  name: Inklok API Support
14
14
  email: support@inklok.com
@@ -486,7 +486,7 @@ paths:
486
486
  content:
487
487
  application/json:
488
488
  schema:
489
- $ref: '#/components/schemas/MeBillingSeatsUpdateRequest'
489
+ $ref: '#/components/schemas/MeBillingSeatsApplyRequest'
490
490
  responses:
491
491
  '200':
492
492
  description: Successfully updated seats
@@ -528,6 +528,45 @@ paths:
528
528
  '500':
529
529
  $ref: '#/components/responses/InternalServerError'
530
530
 
531
+ /me/billing/seats/preview:
532
+ post:
533
+ operationId: previewMeBillingSeats
534
+ summary: Preview an additional-seat change for the current account
535
+ x-internal: true
536
+ x-visibility: internal
537
+ description: |
538
+ Previews the Paddle financial impact of changing the Additional Seat
539
+ subscription item quantity without applying the subscription mutation.
540
+ tags:
541
+ - Me
542
+ requestBody:
543
+ required: true
544
+ content:
545
+ application/json:
546
+ schema:
547
+ $ref: '#/components/schemas/MeBillingSeatsPreviewRequest'
548
+ responses:
549
+ '200':
550
+ description: Successfully previewed the seat change
551
+ content:
552
+ application/json:
553
+ schema:
554
+ $ref: '#/components/schemas/MeBillingSeatsPreviewResponse'
555
+ '400':
556
+ $ref: '#/components/responses/BadRequest'
557
+ '401':
558
+ $ref: '#/components/responses/Unauthorized'
559
+ '403':
560
+ $ref: '#/components/responses/Forbidden'
561
+ '409':
562
+ $ref: '#/components/responses/Conflict'
563
+ '502':
564
+ $ref: '#/components/responses/BadGateway'
565
+ '503':
566
+ $ref: '#/components/responses/ServiceUnavailable'
567
+ '500':
568
+ $ref: '#/components/responses/InternalServerError'
569
+
531
570
  /platform/overview:
532
571
  get:
533
572
  operationId: getPlatformOverview
@@ -713,7 +752,8 @@ paths:
713
752
  summary: Get Platform API usage health
714
753
  x-visibility: internal
715
754
  description: |
716
- Returns a small operational API usage health view for platform administrators.
755
+ Returns a small operational published-API usage health view for platform administrators.
756
+ Cognito-authenticated first-party application traffic is excluded.
717
757
  This endpoint uses existing usage counters and does not expose customer-facing analytics.
718
758
  x-required-global-roles: [PLATFORM_ADMIN]
719
759
  tags:
@@ -739,6 +779,16 @@ paths:
739
779
  - usagePercentage
740
780
  default: throttleCount
741
781
  description: Sort order for returned organizations.
782
+ - in: query
783
+ name: filter
784
+ schema:
785
+ type: string
786
+ enum:
787
+ - all
788
+ - throttled
789
+ - approaching
790
+ default: all
791
+ description: Optional status subset. Approaching means non-throttled organizations at 60% usage or higher.
742
792
  - in: query
743
793
  name: limit
744
794
  schema:
@@ -3982,15 +4032,142 @@ components:
3982
4032
  nullable: true
3983
4033
  minimum: 0
3984
4034
 
3985
- MeBillingSeatsUpdateRequest:
4035
+ MeBillingSeatsPreviewRequest:
4036
+ type: object
4037
+ additionalProperties: false
4038
+ required:
4039
+ - additionalSeats
4040
+ properties:
4041
+ additionalSeats:
4042
+ type: integer
4043
+ minimum: 0
4044
+
4045
+ MeBillingSeatsApplyRequest:
3986
4046
  type: object
3987
4047
  additionalProperties: false
3988
4048
  required:
3989
4049
  - additionalSeats
4050
+ - previewToken
3990
4051
  properties:
3991
4052
  additionalSeats:
3992
4053
  type: integer
3993
4054
  minimum: 0
4055
+ previewToken:
4056
+ type: string
4057
+ description: Signed token returned by the seat-change preview endpoint.
4058
+
4059
+ MeBillingSeatsPreviewResponse:
4060
+ type: object
4061
+ additionalProperties: false
4062
+ required:
4063
+ - accountId
4064
+ - subscriptionId
4065
+ - currentAdditionalSeats
4066
+ - proposedAdditionalSeats
4067
+ - currentEffectiveSeatLimit
4068
+ - proposedEffectiveSeatLimit
4069
+ - direction
4070
+ - prorationBillingMode
4071
+ - memberLimitWarning
4072
+ - immediateAdjustment
4073
+ - nextRecurringAmount
4074
+ - nextBillingDate
4075
+ - billingCycle
4076
+ - previewToken
4077
+ properties:
4078
+ accountId:
4079
+ type: string
4080
+ subscriptionId:
4081
+ type: string
4082
+ currentAdditionalSeats:
4083
+ type: integer
4084
+ minimum: 0
4085
+ proposedAdditionalSeats:
4086
+ type: integer
4087
+ minimum: 0
4088
+ currentEffectiveSeatLimit:
4089
+ type: integer
4090
+ nullable: true
4091
+ minimum: 0
4092
+ proposedEffectiveSeatLimit:
4093
+ type: integer
4094
+ nullable: true
4095
+ minimum: 0
4096
+ direction:
4097
+ type: string
4098
+ enum: [increase, decrease, unchanged]
4099
+ prorationBillingMode:
4100
+ type: string
4101
+ enum: [prorated_immediately, prorated_next_billing_period]
4102
+ memberLimitWarning:
4103
+ type: object
4104
+ nullable: true
4105
+ additionalProperties: false
4106
+ required:
4107
+ - activeMembers
4108
+ - proposedEffectiveSeatLimit
4109
+ - overBy
4110
+ properties:
4111
+ activeMembers:
4112
+ type: integer
4113
+ minimum: 0
4114
+ proposedEffectiveSeatLimit:
4115
+ type: integer
4116
+ minimum: 0
4117
+ overBy:
4118
+ type: integer
4119
+ minimum: 1
4120
+ immediateAdjustment:
4121
+ type: object
4122
+ additionalProperties: false
4123
+ required:
4124
+ - amount
4125
+ - currencyCode
4126
+ - kind
4127
+ properties:
4128
+ amount:
4129
+ type: integer
4130
+ description: Signed minor-unit amount. Positive charges now; negative credits now; zero means no immediate payment.
4131
+ currencyCode:
4132
+ type: string
4133
+ nullable: true
4134
+ kind:
4135
+ type: string
4136
+ enum: [charge, credit, none]
4137
+ nextRecurringAmount:
4138
+ type: object
4139
+ additionalProperties: false
4140
+ required:
4141
+ - amount
4142
+ - currencyCode
4143
+ properties:
4144
+ amount:
4145
+ type: integer
4146
+ nullable: true
4147
+ description: Minor-unit recurring subscription total from Paddle preview.
4148
+ currencyCode:
4149
+ type: string
4150
+ nullable: true
4151
+ nextBillingDate:
4152
+ type: string
4153
+ format: date-time
4154
+ nullable: true
4155
+ billingCycle:
4156
+ type: object
4157
+ additionalProperties: false
4158
+ required:
4159
+ - interval
4160
+ - frequency
4161
+ properties:
4162
+ interval:
4163
+ type: string
4164
+ enum: [day, week, month, year, unknown]
4165
+ frequency:
4166
+ type: integer
4167
+ nullable: true
4168
+ minimum: 1
4169
+ previewToken:
4170
+ type: string
3994
4171
 
3995
4172
  MeBillingResponse:
3996
4173
  type: object
@@ -4903,10 +5080,13 @@ components:
4903
5080
  required:
4904
5081
  - window
4905
5082
  - sort
5083
+ - filter
4906
5084
  - limit
4907
5085
  - nextCursor
4908
5086
  - organizations
4909
5087
  - totalOrganizations
5088
+ - totalThrottledOrganizations
5089
+ - totalApproachingLimitOrganizations
4910
5090
  - dataSource
4911
5091
  - generatedAt
4912
5092
  properties:
@@ -4922,6 +5102,12 @@ components:
4922
5102
  enum:
4923
5103
  - throttleCount
4924
5104
  - usagePercentage
5105
+ filter:
5106
+ type: string
5107
+ enum:
5108
+ - all
5109
+ - throttled
5110
+ - approaching
4925
5111
  limit:
4926
5112
  type: integer
4927
5113
  minimum: 1
@@ -4935,6 +5121,12 @@ components:
4935
5121
  totalOrganizations:
4936
5122
  type: integer
4937
5123
  minimum: 0
5124
+ totalThrottledOrganizations:
5125
+ type: integer
5126
+ minimum: 0
5127
+ totalApproachingLimitOrganizations:
5128
+ type: integer
5129
+ minimum: 0
4938
5130
  dataSource:
4939
5131
  type: object
4940
5132
  required:
@@ -4959,9 +5151,9 @@ components:
4959
5151
  enum:
4960
5152
  - peak_minute
4961
5153
  - daily_capacity
4962
- generatedAt:
4963
- type: string
4964
- format: date-time
5154
+ generatedAt:
5155
+ type: string
5156
+ format: date-time
4965
5157
 
4966
5158
  PlatformBillingActivityType:
4967
5159
  type: string
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inklok/api-spec",
3
- "version": "7.9.1",
3
+ "version": "7.9.3",
4
4
  "description": "Canonical OpenAPI specification for the Inklok public API.",
5
5
  "main": "openapi.yaml",
6
6
  "license": "MIT",