@inklok/api-spec 7.7.0 → 7.7.2

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 +79 -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.7.0"
11
+ version: "7.7.2"
12
12
  contact:
13
13
  name: Inklok API Support
14
14
  email: support@inklok.com
@@ -348,6 +348,38 @@ paths:
348
348
  '500':
349
349
  $ref: '#/components/responses/InternalServerError'
350
350
 
351
+ /me/billing/customer-portal:
352
+ post:
353
+ operationId: createMeBillingCustomerPortalSession
354
+ summary: Create a Paddle customer portal session for the current account
355
+ x-internal: true
356
+ x-visibility: internal
357
+ description: |
358
+ Creates a short-lived authenticated Paddle customer portal URL for the
359
+ authenticated account's Paddle-managed billing subscription. The Paddle
360
+ API key is never exposed to the client, and the portal URL must not be cached.
361
+ tags:
362
+ - Me
363
+ responses:
364
+ '200':
365
+ description: Successfully created a customer portal session
366
+ content:
367
+ application/json:
368
+ schema:
369
+ $ref: '#/components/schemas/MeBillingCustomerPortalResponse'
370
+ '401':
371
+ $ref: '#/components/responses/Unauthorized'
372
+ '403':
373
+ $ref: '#/components/responses/Forbidden'
374
+ '409':
375
+ $ref: '#/components/responses/Conflict'
376
+ '502':
377
+ $ref: '#/components/responses/BadGateway'
378
+ '503':
379
+ $ref: '#/components/responses/ServiceUnavailable'
380
+ '500':
381
+ $ref: '#/components/responses/InternalServerError'
382
+
351
383
  /platform/overview:
352
384
  get:
353
385
  operationId: getPlatformOverview
@@ -3667,6 +3699,7 @@ components:
3667
3699
  additionalProperties: false
3668
3700
  required:
3669
3701
  - source
3702
+ - productPlan
3670
3703
  - currentPlan
3671
3704
  - status
3672
3705
  - billingInterval
@@ -3674,14 +3707,19 @@ components:
3674
3707
  - currentBillingPeriodEnd
3675
3708
  - renewalDate
3676
3709
  - cancelAtPeriodEnd
3710
+ - canceledAt
3677
3711
  - paddleCustomerId
3678
3712
  - paddleSubscriptionId
3679
3713
  - nextBilledAt
3680
3714
  - nextExpectedBillingTransition
3715
+ - reconciliationRequested
3681
3716
  properties:
3682
3717
  source:
3683
3718
  type: string
3684
3719
  enum: [PADDLE, INTERNAL]
3720
+ productPlan:
3721
+ type: string
3722
+ enum: [free, pro, team, enterprise]
3685
3723
  currentPlan:
3686
3724
  type: string
3687
3725
  enum: [free, pro, team, enterprise]
@@ -3704,6 +3742,10 @@ components:
3704
3742
  nullable: true
3705
3743
  cancelAtPeriodEnd:
3706
3744
  type: boolean
3745
+ canceledAt:
3746
+ type: string
3747
+ format: date-time
3748
+ nullable: true
3707
3749
  paddleCustomerId:
3708
3750
  type: string
3709
3751
  nullable: true
@@ -3718,12 +3760,15 @@ components:
3718
3760
  type: string
3719
3761
  format: date-time
3720
3762
  nullable: true
3763
+ reconciliationRequested:
3764
+ type: boolean
3721
3765
 
3722
3766
  MeBillingResponse:
3723
3767
  type: object
3724
3768
  additionalProperties: false
3725
3769
  required:
3726
3770
  - accountId
3771
+ - currentPlan
3727
3772
  - plan
3728
3773
  - subscriptionStatus
3729
3774
  - limits
@@ -3731,6 +3776,9 @@ components:
3731
3776
  properties:
3732
3777
  accountId:
3733
3778
  type: string
3779
+ currentPlan:
3780
+ type: string
3781
+ enum: [free, pro, team, enterprise]
3734
3782
  plan:
3735
3783
  type: string
3736
3784
  enum: [free, pro, team, enterprise]
@@ -3742,6 +3790,22 @@ components:
3742
3790
  billingSubscription:
3743
3791
  $ref: '#/components/schemas/MeBillingSubscription'
3744
3792
 
3793
+ MeBillingCustomerPortalResponse:
3794
+ type: object
3795
+ additionalProperties: false
3796
+ required:
3797
+ - url
3798
+ - customerId
3799
+ - subscriptionId
3800
+ properties:
3801
+ url:
3802
+ type: string
3803
+ format: uri
3804
+ customerId:
3805
+ type: string
3806
+ subscriptionId:
3807
+ type: string
3808
+
3745
3809
  PlatformDailyEmailCounts:
3746
3810
  type: object
3747
3811
  required:
@@ -6616,6 +6680,20 @@ components:
6616
6680
  schema:
6617
6681
  $ref: '#/components/schemas/Error'
6618
6682
 
6683
+ BadGateway:
6684
+ description: Bad gateway - upstream service failed
6685
+ content:
6686
+ application/json:
6687
+ schema:
6688
+ $ref: '#/components/schemas/Error'
6689
+
6690
+ ServiceUnavailable:
6691
+ description: Service unavailable - dependency or configuration unavailable
6692
+ content:
6693
+ application/json:
6694
+ schema:
6695
+ $ref: '#/components/schemas/Error'
6696
+
6619
6697
  RateLimited:
6620
6698
  description: Too many requests
6621
6699
  content:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inklok/api-spec",
3
- "version": "7.7.0",
3
+ "version": "7.7.2",
4
4
  "description": "Canonical OpenAPI specification for the Inklok public API.",
5
5
  "main": "openapi.yaml",
6
6
  "license": "MIT",