@inklok/api-spec 7.6.0 → 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 +313 -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.0"
11
+ version: "7.6.2"
12
12
  contact:
13
13
  name: Inklok API Support
14
14
  email: support@inklok.com
@@ -435,6 +435,19 @@ paths:
435
435
  schema:
436
436
  type: string
437
437
  description: Organization name or identifier search.
438
+ - in: query
439
+ name: limit
440
+ schema:
441
+ type: integer
442
+ minimum: 1
443
+ maximum: 100
444
+ default: 25
445
+ description: Maximum number of organizations to return for browse/search results.
446
+ - in: query
447
+ name: cursor
448
+ schema:
449
+ type: string
450
+ description: Opaque pagination cursor returned by the previous response.
438
451
  responses:
439
452
  '200':
440
453
  description: Successfully retrieved Platform entitlement information
@@ -491,6 +504,65 @@ paths:
491
504
  '500':
492
505
  $ref: '#/components/responses/InternalServerError'
493
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
+
494
566
  /platform/ses:
495
567
  get:
496
568
  operationId: getPlatformSes
@@ -4074,6 +4146,8 @@ components:
4074
4146
  - accountId
4075
4147
  - isPersonal
4076
4148
  - createdAt
4149
+ - sandboxForOrgId
4150
+ - entitlement
4077
4151
  properties:
4078
4152
  orgId:
4079
4153
  type: string
@@ -4093,6 +4167,55 @@ components:
4093
4167
  createdAt:
4094
4168
  type: string
4095
4169
  format: date-time
4170
+ sandboxForOrgId:
4171
+ type: string
4172
+ nullable: true
4173
+ entitlement:
4174
+ nullable: true
4175
+ allOf:
4176
+ - $ref: '#/components/schemas/PlatformEntitlementOrganizationSummary'
4177
+
4178
+ PlatformEntitlementOrganizationSummary:
4179
+ type: object
4180
+ required:
4181
+ - plan
4182
+ - subscriptionStatus
4183
+ - source
4184
+ - includedSeats
4185
+ - additionalSeats
4186
+ - effectiveSeatLimit
4187
+ - maxApiRequestsPerMinute
4188
+ - hasCustomSeatOverride
4189
+ - hasCustomApiLimit
4190
+ properties:
4191
+ plan:
4192
+ $ref: '#/components/schemas/PlatformPlan'
4193
+ subscriptionStatus:
4194
+ type: string
4195
+ source:
4196
+ type: string
4197
+ enum:
4198
+ - stored
4199
+ - plan-default
4200
+ includedSeats:
4201
+ type: integer
4202
+ nullable: true
4203
+ minimum: 0
4204
+ additionalSeats:
4205
+ type: integer
4206
+ minimum: 0
4207
+ effectiveSeatLimit:
4208
+ type: integer
4209
+ nullable: true
4210
+ minimum: 0
4211
+ maxApiRequestsPerMinute:
4212
+ type: integer
4213
+ nullable: true
4214
+ minimum: 0
4215
+ hasCustomSeatOverride:
4216
+ type: boolean
4217
+ hasCustomApiLimit:
4218
+ type: boolean
4096
4219
 
4097
4220
  PlatformEntitlementSeats:
4098
4221
  type: object
@@ -4225,6 +4348,7 @@ components:
4225
4348
  required:
4226
4349
  - organizations
4227
4350
  - selected
4351
+ - nextCursor
4228
4352
  - generatedAt
4229
4353
  properties:
4230
4354
  organizations:
@@ -4235,6 +4359,9 @@ components:
4235
4359
  nullable: true
4236
4360
  allOf:
4237
4361
  - $ref: '#/components/schemas/PlatformEntitlementDetail'
4362
+ nextCursor:
4363
+ type: string
4364
+ nullable: true
4238
4365
  generatedAt:
4239
4366
  type: string
4240
4367
  format: date-time
@@ -4252,6 +4379,191 @@ components:
4252
4379
  minimum: 0
4253
4380
  description: Enterprise custom included seat value. Ignored for non-Enterprise plans.
4254
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
+
4255
4567
  PlatformCostsResponse:
4256
4568
  type: object
4257
4569
  required:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inklok/api-spec",
3
- "version": "7.6.0",
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",