@inklok/api-spec 7.7.0 → 7.7.1

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 +63 -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.1"
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
@@ -3742,6 +3774,22 @@ components:
3742
3774
  billingSubscription:
3743
3775
  $ref: '#/components/schemas/MeBillingSubscription'
3744
3776
 
3777
+ MeBillingCustomerPortalResponse:
3778
+ type: object
3779
+ additionalProperties: false
3780
+ required:
3781
+ - url
3782
+ - customerId
3783
+ - subscriptionId
3784
+ properties:
3785
+ url:
3786
+ type: string
3787
+ format: uri
3788
+ customerId:
3789
+ type: string
3790
+ subscriptionId:
3791
+ type: string
3792
+
3745
3793
  PlatformDailyEmailCounts:
3746
3794
  type: object
3747
3795
  required:
@@ -6616,6 +6664,20 @@ components:
6616
6664
  schema:
6617
6665
  $ref: '#/components/schemas/Error'
6618
6666
 
6667
+ BadGateway:
6668
+ description: Bad gateway - upstream service failed
6669
+ content:
6670
+ application/json:
6671
+ schema:
6672
+ $ref: '#/components/schemas/Error'
6673
+
6674
+ ServiceUnavailable:
6675
+ description: Service unavailable - dependency or configuration unavailable
6676
+ content:
6677
+ application/json:
6678
+ schema:
6679
+ $ref: '#/components/schemas/Error'
6680
+
6619
6681
  RateLimited:
6620
6682
  description: Too many requests
6621
6683
  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.1",
4
4
  "description": "Canonical OpenAPI specification for the Inklok public API.",
5
5
  "main": "openapi.yaml",
6
6
  "license": "MIT",