@inklok/api-spec 7.6.2 → 7.7.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 +104 -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.6.2"
11
+ version: "7.7.0"
12
12
  contact:
13
13
  name: Inklok API Support
14
14
  email: support@inklok.com
@@ -325,6 +325,29 @@ paths:
325
325
  '500':
326
326
  $ref: '#/components/responses/InternalServerError'
327
327
 
328
+ /me/billing:
329
+ get:
330
+ operationId: getMeBilling
331
+ summary: Get billing state for the current account
332
+ x-internal: true
333
+ x-visibility: internal
334
+ description: |
335
+ Returns the authenticated account's Billing Subscription authority record
336
+ and the derived entitlement projection used by the application UI.
337
+ tags:
338
+ - Me
339
+ responses:
340
+ '200':
341
+ description: Successfully retrieved billing state
342
+ content:
343
+ application/json:
344
+ schema:
345
+ $ref: '#/components/schemas/MeBillingResponse'
346
+ '401':
347
+ $ref: '#/components/responses/Unauthorized'
348
+ '500':
349
+ $ref: '#/components/responses/InternalServerError'
350
+
328
351
  /platform/overview:
329
352
  get:
330
353
  operationId: getPlatformOverview
@@ -3639,6 +3662,86 @@ components:
3639
3662
  profile:
3640
3663
  $ref: '#/components/schemas/BootstrapProfile'
3641
3664
 
3665
+ MeBillingSubscription:
3666
+ type: object
3667
+ additionalProperties: false
3668
+ required:
3669
+ - source
3670
+ - currentPlan
3671
+ - status
3672
+ - billingInterval
3673
+ - currentBillingPeriodStart
3674
+ - currentBillingPeriodEnd
3675
+ - renewalDate
3676
+ - cancelAtPeriodEnd
3677
+ - paddleCustomerId
3678
+ - paddleSubscriptionId
3679
+ - nextBilledAt
3680
+ - nextExpectedBillingTransition
3681
+ properties:
3682
+ source:
3683
+ type: string
3684
+ enum: [PADDLE, INTERNAL]
3685
+ currentPlan:
3686
+ type: string
3687
+ enum: [free, pro, team, enterprise]
3688
+ status:
3689
+ type: string
3690
+ billingInterval:
3691
+ type: string
3692
+ enum: [day, week, month, year, unknown]
3693
+ currentBillingPeriodStart:
3694
+ type: string
3695
+ format: date-time
3696
+ nullable: true
3697
+ currentBillingPeriodEnd:
3698
+ type: string
3699
+ format: date-time
3700
+ nullable: true
3701
+ renewalDate:
3702
+ type: string
3703
+ format: date-time
3704
+ nullable: true
3705
+ cancelAtPeriodEnd:
3706
+ type: boolean
3707
+ paddleCustomerId:
3708
+ type: string
3709
+ nullable: true
3710
+ paddleSubscriptionId:
3711
+ type: string
3712
+ nullable: true
3713
+ nextBilledAt:
3714
+ type: string
3715
+ format: date-time
3716
+ nullable: true
3717
+ nextExpectedBillingTransition:
3718
+ type: string
3719
+ format: date-time
3720
+ nullable: true
3721
+
3722
+ MeBillingResponse:
3723
+ type: object
3724
+ additionalProperties: false
3725
+ required:
3726
+ - accountId
3727
+ - plan
3728
+ - subscriptionStatus
3729
+ - limits
3730
+ - billingSubscription
3731
+ properties:
3732
+ accountId:
3733
+ type: string
3734
+ plan:
3735
+ type: string
3736
+ enum: [free, pro, team, enterprise]
3737
+ subscriptionStatus:
3738
+ type: string
3739
+ limits:
3740
+ type: object
3741
+ additionalProperties: true
3742
+ billingSubscription:
3743
+ $ref: '#/components/schemas/MeBillingSubscription'
3744
+
3642
3745
  PlatformDailyEmailCounts:
3643
3746
  type: object
3644
3747
  required:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inklok/api-spec",
3
- "version": "7.6.2",
3
+ "version": "7.7.0",
4
4
  "description": "Canonical OpenAPI specification for the Inklok public API.",
5
5
  "main": "openapi.yaml",
6
6
  "license": "MIT",