@inklok/api-spec 7.8.4 → 7.9.0

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 +111 -1
  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.8.4"
11
+ version: "7.9.0"
12
12
  contact:
13
13
  name: Inklok API Support
14
14
  email: support@inklok.com
@@ -470,6 +470,64 @@ paths:
470
470
  '500':
471
471
  $ref: '#/components/responses/InternalServerError'
472
472
 
473
+ /me/billing/seats:
474
+ post:
475
+ operationId: updateMeBillingSeats
476
+ summary: Update additional seats for the current account
477
+ x-internal: true
478
+ x-visibility: internal
479
+ description: |
480
+ Updates the Additional Seat subscription item quantity for the authenticated
481
+ account's active Paddle-managed Pro or Team subscription.
482
+ tags:
483
+ - Me
484
+ requestBody:
485
+ required: true
486
+ content:
487
+ application/json:
488
+ schema:
489
+ $ref: '#/components/schemas/MeBillingSeatsUpdateRequest'
490
+ responses:
491
+ '200':
492
+ description: Successfully updated seats
493
+ content:
494
+ application/json:
495
+ schema:
496
+ $ref: '#/components/schemas/MeBillingResponse'
497
+ '202':
498
+ description: Paddle accepted the seat change and local billing reconciliation was requested
499
+ content:
500
+ application/json:
501
+ schema:
502
+ type: object
503
+ additionalProperties: false
504
+ required:
505
+ - accountId
506
+ - status
507
+ - message
508
+ properties:
509
+ accountId:
510
+ type: string
511
+ status:
512
+ type: string
513
+ enum: [reconciliation_requested]
514
+ message:
515
+ type: string
516
+ '400':
517
+ $ref: '#/components/responses/BadRequest'
518
+ '401':
519
+ $ref: '#/components/responses/Unauthorized'
520
+ '403':
521
+ $ref: '#/components/responses/Forbidden'
522
+ '409':
523
+ $ref: '#/components/responses/Conflict'
524
+ '502':
525
+ $ref: '#/components/responses/BadGateway'
526
+ '503':
527
+ $ref: '#/components/responses/ServiceUnavailable'
528
+ '500':
529
+ $ref: '#/components/responses/InternalServerError'
530
+
473
531
  /platform/overview:
474
532
  get:
475
533
  operationId: getPlatformOverview
@@ -3787,6 +3845,9 @@ components:
3787
3845
  - nextBilledAt
3788
3846
  - nextExpectedBillingTransition
3789
3847
  - reconciliationRequested
3848
+ - includedSeats
3849
+ - additionalSeats
3850
+ - effectiveSeatLimit
3790
3851
  properties:
3791
3852
  source:
3792
3853
  type: string
@@ -3836,6 +3897,52 @@ components:
3836
3897
  nullable: true
3837
3898
  reconciliationRequested:
3838
3899
  type: boolean
3900
+ includedSeats:
3901
+ type: integer
3902
+ nullable: true
3903
+ minimum: 0
3904
+ additionalSeats:
3905
+ type: integer
3906
+ minimum: 0
3907
+ effectiveSeatLimit:
3908
+ type: integer
3909
+ nullable: true
3910
+ minimum: 0
3911
+
3912
+ MeBillingSeats:
3913
+ type: object
3914
+ additionalProperties: false
3915
+ required:
3916
+ - includedSeats
3917
+ - additionalSeats
3918
+ - effectiveSeatLimit
3919
+ - usedSeats
3920
+ properties:
3921
+ includedSeats:
3922
+ type: integer
3923
+ nullable: true
3924
+ minimum: 0
3925
+ additionalSeats:
3926
+ type: integer
3927
+ minimum: 0
3928
+ effectiveSeatLimit:
3929
+ type: integer
3930
+ nullable: true
3931
+ minimum: 0
3932
+ usedSeats:
3933
+ type: integer
3934
+ nullable: true
3935
+ minimum: 0
3936
+
3937
+ MeBillingSeatsUpdateRequest:
3938
+ type: object
3939
+ additionalProperties: false
3940
+ required:
3941
+ - additionalSeats
3942
+ properties:
3943
+ additionalSeats:
3944
+ type: integer
3945
+ minimum: 0
3839
3946
 
3840
3947
  MeBillingResponse:
3841
3948
  type: object
@@ -3846,6 +3953,7 @@ components:
3846
3953
  - plan
3847
3954
  - subscriptionStatus
3848
3955
  - limits
3956
+ - seats
3849
3957
  - billingSubscription
3850
3958
  properties:
3851
3959
  accountId:
@@ -3861,6 +3969,8 @@ components:
3861
3969
  limits:
3862
3970
  type: object
3863
3971
  additionalProperties: true
3972
+ seats:
3973
+ $ref: '#/components/schemas/MeBillingSeats'
3864
3974
  billingSubscription:
3865
3975
  $ref: '#/components/schemas/MeBillingSubscription'
3866
3976
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inklok/api-spec",
3
- "version": "7.8.4",
3
+ "version": "7.9.0",
4
4
  "description": "Canonical OpenAPI specification for the Inklok public API.",
5
5
  "main": "openapi.yaml",
6
6
  "license": "MIT",