@inklok/api-spec 7.6.1 → 7.6.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 +249 -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.1"
11
+ version: "7.6.2"
12
12
  contact:
13
13
  name: Inklok API Support
14
14
  email: support@inklok.com
@@ -504,6 +504,65 @@ paths:
504
504
  '500':
505
505
  $ref: '#/components/responses/InternalServerError'
506
506
 
507
+ /platform/api-usage:
508
+ get:
509
+ operationId: getPlatformApiUsage
510
+ summary: Get Platform API usage health
511
+ x-visibility: internal
512
+ description: |
513
+ Returns a small operational API usage health view for platform administrators.
514
+ This endpoint uses existing usage counters and does not expose customer-facing analytics.
515
+ x-required-global-roles: [PLATFORM_ADMIN]
516
+ tags:
517
+ - Platform
518
+ parameters:
519
+ - in: query
520
+ name: window
521
+ schema:
522
+ type: string
523
+ enum:
524
+ - 1h
525
+ - 24h
526
+ - 7d
527
+ - 30d
528
+ default: 24h
529
+ description: Usage window to inspect.
530
+ - in: query
531
+ name: sort
532
+ schema:
533
+ type: string
534
+ enum:
535
+ - throttleCount
536
+ - usagePercentage
537
+ default: throttleCount
538
+ description: Sort order for returned organizations.
539
+ - in: query
540
+ name: limit
541
+ schema:
542
+ type: integer
543
+ minimum: 1
544
+ maximum: 100
545
+ default: 25
546
+ description: Maximum number of organizations to return.
547
+ - in: query
548
+ name: cursor
549
+ schema:
550
+ type: string
551
+ description: Opaque pagination cursor returned by the previous response.
552
+ responses:
553
+ '200':
554
+ description: Successfully retrieved Platform API usage health
555
+ content:
556
+ application/json:
557
+ schema:
558
+ $ref: '#/components/schemas/PlatformApiUsageResponse'
559
+ '401':
560
+ $ref: '#/components/responses/Unauthorized'
561
+ '403':
562
+ $ref: '#/components/responses/Forbidden'
563
+ '500':
564
+ $ref: '#/components/responses/InternalServerError'
565
+
507
566
  /platform/ses:
508
567
  get:
509
568
  operationId: getPlatformSes
@@ -4087,6 +4146,7 @@ components:
4087
4146
  - accountId
4088
4147
  - isPersonal
4089
4148
  - createdAt
4149
+ - sandboxForOrgId
4090
4150
  - entitlement
4091
4151
  properties:
4092
4152
  orgId:
@@ -4107,6 +4167,9 @@ components:
4107
4167
  createdAt:
4108
4168
  type: string
4109
4169
  format: date-time
4170
+ sandboxForOrgId:
4171
+ type: string
4172
+ nullable: true
4110
4173
  entitlement:
4111
4174
  nullable: true
4112
4175
  allOf:
@@ -4316,6 +4379,191 @@ components:
4316
4379
  minimum: 0
4317
4380
  description: Enterprise custom included seat value. Ignored for non-Enterprise plans.
4318
4381
 
4382
+ PlatformApiUsagePolicySummary:
4383
+ type: object
4384
+ required:
4385
+ - totalApiRequests
4386
+ - throttleCount
4387
+ - configuredLimit
4388
+ - peakUsage
4389
+ - usagePercentage
4390
+ properties:
4391
+ totalApiRequests:
4392
+ type: integer
4393
+ minimum: 0
4394
+ throttleCount:
4395
+ type: integer
4396
+ minimum: 0
4397
+ configuredLimit:
4398
+ type: integer
4399
+ nullable: true
4400
+ minimum: 0
4401
+ peakUsage:
4402
+ type: integer
4403
+ minimum: 0
4404
+ usagePercentage:
4405
+ type: number
4406
+ nullable: true
4407
+ minimum: 0
4408
+
4409
+ PlatformApiUsageCategorySummary:
4410
+ type: object
4411
+ required:
4412
+ - totalApiRequests
4413
+ - throttleCount
4414
+ - peakUsage
4415
+ properties:
4416
+ totalApiRequests:
4417
+ type: integer
4418
+ minimum: 0
4419
+ throttleCount:
4420
+ type: integer
4421
+ minimum: 0
4422
+ peakUsage:
4423
+ type: integer
4424
+ minimum: 0
4425
+
4426
+ PlatformApiUsageOrganization:
4427
+ type: object
4428
+ required:
4429
+ - orgId
4430
+ - organizationName
4431
+ - accountId
4432
+ - plan
4433
+ - totalApiRequests
4434
+ - throttleCount
4435
+ - configuredApiLimit
4436
+ - peakUsage
4437
+ - usagePercentage
4438
+ - lastRequestAt
4439
+ - lastThrottleAt
4440
+ - status
4441
+ - breakdown
4442
+ properties:
4443
+ orgId:
4444
+ type: string
4445
+ organizationName:
4446
+ type: string
4447
+ nullable: true
4448
+ accountId:
4449
+ type: string
4450
+ nullable: true
4451
+ plan:
4452
+ $ref: '#/components/schemas/Plan'
4453
+ totalApiRequests:
4454
+ type: integer
4455
+ minimum: 0
4456
+ throttleCount:
4457
+ type: integer
4458
+ minimum: 0
4459
+ configuredApiLimit:
4460
+ type: integer
4461
+ nullable: true
4462
+ minimum: 0
4463
+ peakUsage:
4464
+ type: integer
4465
+ minimum: 0
4466
+ usagePercentage:
4467
+ type: number
4468
+ nullable: true
4469
+ minimum: 0
4470
+ lastRequestAt:
4471
+ type: string
4472
+ nullable: true
4473
+ format: date-time
4474
+ lastThrottleAt:
4475
+ type: string
4476
+ nullable: true
4477
+ format: date-time
4478
+ status:
4479
+ type: string
4480
+ enum:
4481
+ - THROTTLED
4482
+ - NEAR_LIMIT
4483
+ - WATCH
4484
+ - OK
4485
+ breakdown:
4486
+ type: object
4487
+ required:
4488
+ - publishedApi
4489
+ - firstParty
4490
+ - production
4491
+ - sandbox
4492
+ properties:
4493
+ publishedApi:
4494
+ $ref: '#/components/schemas/PlatformApiUsagePolicySummary'
4495
+ firstParty:
4496
+ $ref: '#/components/schemas/PlatformApiUsagePolicySummary'
4497
+ production:
4498
+ $ref: '#/components/schemas/PlatformApiUsageCategorySummary'
4499
+ sandbox:
4500
+ $ref: '#/components/schemas/PlatformApiUsageCategorySummary'
4501
+
4502
+ PlatformApiUsageResponse:
4503
+ type: object
4504
+ required:
4505
+ - window
4506
+ - sort
4507
+ - limit
4508
+ - nextCursor
4509
+ - organizations
4510
+ - totalOrganizations
4511
+ - dataSource
4512
+ - generatedAt
4513
+ properties:
4514
+ window:
4515
+ type: string
4516
+ enum:
4517
+ - 1h
4518
+ - 24h
4519
+ - 7d
4520
+ - 30d
4521
+ sort:
4522
+ type: string
4523
+ enum:
4524
+ - throttleCount
4525
+ - usagePercentage
4526
+ limit:
4527
+ type: integer
4528
+ minimum: 1
4529
+ nextCursor:
4530
+ type: string
4531
+ nullable: true
4532
+ organizations:
4533
+ type: array
4534
+ items:
4535
+ $ref: '#/components/schemas/PlatformApiUsageOrganization'
4536
+ totalOrganizations:
4537
+ type: integer
4538
+ minimum: 0
4539
+ dataSource:
4540
+ type: object
4541
+ required:
4542
+ - table
4543
+ - rollupTableUsed
4544
+ - precision
4545
+ - usagePercentageBasis
4546
+ properties:
4547
+ table:
4548
+ type: string
4549
+ enum:
4550
+ - usage-counters
4551
+ rollupTableUsed:
4552
+ type: boolean
4553
+ precision:
4554
+ type: string
4555
+ enum:
4556
+ - minute
4557
+ - day
4558
+ usagePercentageBasis:
4559
+ type: string
4560
+ enum:
4561
+ - peak_minute
4562
+ - daily_capacity
4563
+ generatedAt:
4564
+ type: string
4565
+ format: date-time
4566
+
4319
4567
  PlatformCostsResponse:
4320
4568
  type: object
4321
4569
  required:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inklok/api-spec",
3
- "version": "7.6.1",
3
+ "version": "7.6.2",
4
4
  "description": "Canonical OpenAPI specification for the Inklok public API.",
5
5
  "main": "openapi.yaml",
6
6
  "license": "MIT",