@1claw/openapi-spec 0.61.36 → 0.61.38

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 (3) hide show
  1. package/openapi.json +174 -1
  2. package/openapi.yaml +127 -1
  3. package/package.json +1 -1
package/openapi.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "openapi": "3.1.0",
3
3
  "info": {
4
4
  "title": "1Claw API",
5
- "version": "0.61.36",
5
+ "version": "0.61.38",
6
6
  "description": "Secure secret management for AI agents. Provides vaults, secrets,\npolicy-based access control, agent identity, Intents API,\nsharing, billing, and audit logging. Automations (workflow_spec,\nwebhook tokens, event triggers, Assist), cloud runtimes with\ninteractive shell sessions, agent memory, and discovery.\n\n## Domains\n\n`api.1claw.co` is canonical: it is the OIDC issuer, the `aud` the API\nmints, and the first entry in `servers` — a generated client takes its\nbase URL from there, and the previous ordering pointed every SDK at the\ndomain the issuer had already left. `api.1claw.xyz` still answers and is\nstill accepted on token validation, because tokens minted before the\nmove carry it; it is never minted now.\n\nOne deliberate exception: the Shroud attestation identity token is\nrequested from GCP with `audience: https://api.1claw.xyz`, so\n`/v1/shroud/attestation` reports that as its `expected_audience`. That\nis accurate rather than stale — the audience is a verification contract\nwith anyone already checking the token, and moving it is a breaking\nchange for them, not a rename.\n\nAll endpoints require JWT Bearer authentication unless marked with\n`security: []`.\n",
7
7
  "contact": {
8
8
  "email": "ops@1claw.co"
@@ -6610,6 +6610,46 @@
6610
6610
  }
6611
6611
  }
6612
6612
  },
6613
+ "/v1/org/overview": {
6614
+ "get": {
6615
+ "tags": [
6616
+ "Organization"
6617
+ ],
6618
+ "summary": "System overview",
6619
+ "operationId": "getOrgOverview",
6620
+ "description": "The whole org in one call: inventory (vaults, secrets, agents, runtimes,\nautomations, bindings, policies, wallets, apps, members), activity in the last\n`hours` (secret reads/writes, denials, executions, transactions, Shroud\nrequests/blocked/redacted/injections, automation runs, approvals, consensus,\nrisk events, API requests), spend (inference, executions, automations, credit\nbalance), health (expiring secrets, stale/suspended/unpoliced agents, failing\nautomations, errored runtimes, overdue approvals) and a 7-day trend. Human and\nplatform callers only. Backs the dashboard's Overview tab.\n",
6621
+ "parameters": [
6622
+ {
6623
+ "name": "hours",
6624
+ "in": "query",
6625
+ "schema": {
6626
+ "type": "integer",
6627
+ "minimum": 1,
6628
+ "maximum": 168,
6629
+ "default": 24
6630
+ }
6631
+ }
6632
+ ],
6633
+ "responses": {
6634
+ "200": {
6635
+ "description": "Overview",
6636
+ "content": {
6637
+ "application/json": {
6638
+ "schema": {
6639
+ "$ref": "#/components/schemas/OrgOverview"
6640
+ }
6641
+ }
6642
+ }
6643
+ },
6644
+ "401": {
6645
+ "$ref": "#/components/responses/Unauthorized"
6646
+ },
6647
+ "403": {
6648
+ "$ref": "#/components/responses/Forbidden"
6649
+ }
6650
+ }
6651
+ }
6652
+ },
6613
6653
  "/v1/org/members": {
6614
6654
  "get": {
6615
6655
  "tags": [
@@ -43353,6 +43393,101 @@
43353
43393
  }
43354
43394
  }
43355
43395
  },
43396
+ "OrgOverview": {
43397
+ "type": "object",
43398
+ "required": [
43399
+ "generated_at",
43400
+ "window_hours",
43401
+ "inventory",
43402
+ "activity",
43403
+ "spend",
43404
+ "health",
43405
+ "trend"
43406
+ ],
43407
+ "properties": {
43408
+ "generated_at": {
43409
+ "type": "string",
43410
+ "format": "date-time"
43411
+ },
43412
+ "window_hours": {
43413
+ "type": "integer"
43414
+ },
43415
+ "inventory": {
43416
+ "type": "object",
43417
+ "additionalProperties": {
43418
+ "type": "integer"
43419
+ },
43420
+ "description": "vaults, secrets, agents_total, agents_active, child_agents, runtimes_total, runtimes_running, automations_total, automations_active, bindings, policies, treasury_wallets, signing_keys, platform_apps, connected_apps, team_members"
43421
+ },
43422
+ "activity": {
43423
+ "type": "object",
43424
+ "additionalProperties": {
43425
+ "type": "integer"
43426
+ },
43427
+ "description": "audit_events, secret_reads, secret_writes, policy_denials, executions, execution_failures, transactions, transactions_failed, shroud_requests, shroud_blocked, shroud_redacted, shroud_injections, automation_runs, automation_runs_failed, automation_runs_parked, approvals_pending, approvals_decided, consensus_pending, risk_events, threats_open, api_requests"
43428
+ },
43429
+ "spend": {
43430
+ "type": "object",
43431
+ "properties": {
43432
+ "inference_usd": {
43433
+ "type": "number"
43434
+ },
43435
+ "inference_tokens": {
43436
+ "type": "integer"
43437
+ },
43438
+ "execution_cost_cents": {
43439
+ "type": "integer"
43440
+ },
43441
+ "automation_cost_cents": {
43442
+ "type": "integer"
43443
+ },
43444
+ "credit_balance_micro_usd": {
43445
+ "type": "integer"
43446
+ },
43447
+ "billing_tier": {
43448
+ "type": "string"
43449
+ }
43450
+ }
43451
+ },
43452
+ "health": {
43453
+ "type": "object",
43454
+ "additionalProperties": {
43455
+ "type": "integer"
43456
+ },
43457
+ "description": "secrets_expiring_7d, stale_agents, agents_without_policy, automations_failing, runtimes_errored, approvals_overdue, agents_suspended"
43458
+ },
43459
+ "trend": {
43460
+ "type": "array",
43461
+ "items": {
43462
+ "type": "object",
43463
+ "properties": {
43464
+ "day": {
43465
+ "type": "string",
43466
+ "format": "date"
43467
+ },
43468
+ "audit_events": {
43469
+ "type": "integer"
43470
+ },
43471
+ "denials": {
43472
+ "type": "integer"
43473
+ },
43474
+ "shroud_requests": {
43475
+ "type": "integer"
43476
+ },
43477
+ "shroud_blocked": {
43478
+ "type": "integer"
43479
+ },
43480
+ "automation_runs": {
43481
+ "type": "integer"
43482
+ },
43483
+ "transactions": {
43484
+ "type": "integer"
43485
+ }
43486
+ }
43487
+ }
43488
+ }
43489
+ }
43490
+ },
43356
43491
  "DryRunRequest": {
43357
43492
  "type": "object",
43358
43493
  "properties": {
@@ -43987,6 +44122,24 @@
43987
44122
  "UpdateRuntimeRequest": {
43988
44123
  "type": "object",
43989
44124
  "properties": {
44125
+ "schedule": {
44126
+ "nullable": true,
44127
+ "description": "Scheduled start/stop: start the container when `start_cron` fires (IANA\n`timezone`, default UTC) and stop it `stop_after_secs` later (60–86400; null\nleaves it to the idle reconciler). `null` clears the schedule.\n",
44128
+ "type": "object",
44129
+ "properties": {
44130
+ "start_cron": {
44131
+ "type": "string"
44132
+ },
44133
+ "timezone": {
44134
+ "type": "string",
44135
+ "default": "UTC"
44136
+ },
44137
+ "stop_after_secs": {
44138
+ "type": "integer",
44139
+ "nullable": true
44140
+ }
44141
+ }
44142
+ },
43990
44143
  "name": {
43991
44144
  "type": "string"
43992
44145
  },
@@ -44051,6 +44204,26 @@
44051
44204
  "updated_at"
44052
44205
  ],
44053
44206
  "properties": {
44207
+ "image_digest": {
44208
+ "type": "string",
44209
+ "nullable": true,
44210
+ "description": "Resolved image (digest form when the provider reports one); runtime-minted agent tokens carry it as `runtime_image`, which access policies can require via `conditions.runtime_image_in`."
44211
+ },
44212
+ "schedule": {
44213
+ "type": "object",
44214
+ "nullable": true,
44215
+ "additionalProperties": true
44216
+ },
44217
+ "next_scheduled_start_at": {
44218
+ "type": "string",
44219
+ "format": "date-time",
44220
+ "nullable": true
44221
+ },
44222
+ "scheduled_stop_at": {
44223
+ "type": "string",
44224
+ "format": "date-time",
44225
+ "nullable": true
44226
+ },
44054
44227
  "id": {
44055
44228
  "type": "string",
44056
44229
  "format": "uuid"
package/openapi.yaml CHANGED
@@ -2,7 +2,7 @@ openapi: 3.1.0
2
2
 
3
3
  info:
4
4
  title: 1Claw API
5
- version: "0.61.36"
5
+ version: "0.61.38"
6
6
  description: |
7
7
  Secure secret management for AI agents. Provides vaults, secrets,
8
8
  policy-based access control, agent identity, Intents API,
@@ -4282,6 +4282,40 @@ paths:
4282
4282
  # Organization
4283
4283
  # ---------------------------------------------------------------------------
4284
4284
 
4285
+ /v1/org/overview:
4286
+ get:
4287
+ tags: [Organization]
4288
+ summary: System overview
4289
+ operationId: getOrgOverview
4290
+ description: |
4291
+ The whole org in one call: inventory (vaults, secrets, agents, runtimes,
4292
+ automations, bindings, policies, wallets, apps, members), activity in the last
4293
+ `hours` (secret reads/writes, denials, executions, transactions, Shroud
4294
+ requests/blocked/redacted/injections, automation runs, approvals, consensus,
4295
+ risk events, API requests), spend (inference, executions, automations, credit
4296
+ balance), health (expiring secrets, stale/suspended/unpoliced agents, failing
4297
+ automations, errored runtimes, overdue approvals) and a 7-day trend. Human and
4298
+ platform callers only. Backs the dashboard's Overview tab.
4299
+ parameters:
4300
+ - name: hours
4301
+ in: query
4302
+ schema:
4303
+ type: integer
4304
+ minimum: 1
4305
+ maximum: 168
4306
+ default: 24
4307
+ responses:
4308
+ "200":
4309
+ description: Overview
4310
+ content:
4311
+ application/json:
4312
+ schema:
4313
+ $ref: "#/components/schemas/OrgOverview"
4314
+ "401":
4315
+ $ref: "#/components/responses/Unauthorized"
4316
+ "403":
4317
+ $ref: "#/components/responses/Forbidden"
4318
+
4285
4319
  /v1/org/members:
4286
4320
  get:
4287
4321
  tags: [Organization]
@@ -28061,6 +28095,66 @@ components:
28061
28095
  format: uuid
28062
28096
  description: Control-plane approval when rolling back to a wider spec.
28063
28097
 
28098
+ OrgOverview:
28099
+ type: object
28100
+ required: [generated_at, window_hours, inventory, activity, spend, health, trend]
28101
+ properties:
28102
+ generated_at:
28103
+ type: string
28104
+ format: date-time
28105
+ window_hours:
28106
+ type: integer
28107
+ inventory:
28108
+ type: object
28109
+ additionalProperties:
28110
+ type: integer
28111
+ description: vaults, secrets, agents_total, agents_active, child_agents, runtimes_total, runtimes_running, automations_total, automations_active, bindings, policies, treasury_wallets, signing_keys, platform_apps, connected_apps, team_members
28112
+ activity:
28113
+ type: object
28114
+ additionalProperties:
28115
+ type: integer
28116
+ description: audit_events, secret_reads, secret_writes, policy_denials, executions, execution_failures, transactions, transactions_failed, shroud_requests, shroud_blocked, shroud_redacted, shroud_injections, automation_runs, automation_runs_failed, automation_runs_parked, approvals_pending, approvals_decided, consensus_pending, risk_events, threats_open, api_requests
28117
+ spend:
28118
+ type: object
28119
+ properties:
28120
+ inference_usd:
28121
+ type: number
28122
+ inference_tokens:
28123
+ type: integer
28124
+ execution_cost_cents:
28125
+ type: integer
28126
+ automation_cost_cents:
28127
+ type: integer
28128
+ credit_balance_micro_usd:
28129
+ type: integer
28130
+ billing_tier:
28131
+ type: string
28132
+ health:
28133
+ type: object
28134
+ additionalProperties:
28135
+ type: integer
28136
+ description: secrets_expiring_7d, stale_agents, agents_without_policy, automations_failing, runtimes_errored, approvals_overdue, agents_suspended
28137
+ trend:
28138
+ type: array
28139
+ items:
28140
+ type: object
28141
+ properties:
28142
+ day:
28143
+ type: string
28144
+ format: date
28145
+ audit_events:
28146
+ type: integer
28147
+ denials:
28148
+ type: integer
28149
+ shroud_requests:
28150
+ type: integer
28151
+ shroud_blocked:
28152
+ type: integer
28153
+ automation_runs:
28154
+ type: integer
28155
+ transactions:
28156
+ type: integer
28157
+
28064
28158
  DryRunRequest:
28065
28159
  type: object
28066
28160
  properties:
@@ -28475,6 +28569,22 @@ components:
28475
28569
  UpdateRuntimeRequest:
28476
28570
  type: object
28477
28571
  properties:
28572
+ schedule:
28573
+ nullable: true
28574
+ description: |
28575
+ Scheduled start/stop: start the container when `start_cron` fires (IANA
28576
+ `timezone`, default UTC) and stop it `stop_after_secs` later (60–86400; null
28577
+ leaves it to the idle reconciler). `null` clears the schedule.
28578
+ type: object
28579
+ properties:
28580
+ start_cron:
28581
+ type: string
28582
+ timezone:
28583
+ type: string
28584
+ default: UTC
28585
+ stop_after_secs:
28586
+ type: integer
28587
+ nullable: true
28478
28588
  name:
28479
28589
  type: string
28480
28590
  template:
@@ -28512,6 +28622,22 @@ components:
28512
28622
  type: object
28513
28623
  required: [id, name, agent_id, status, created_at, updated_at]
28514
28624
  properties:
28625
+ image_digest:
28626
+ type: string
28627
+ nullable: true
28628
+ description: Resolved image (digest form when the provider reports one); runtime-minted agent tokens carry it as `runtime_image`, which access policies can require via `conditions.runtime_image_in`.
28629
+ schedule:
28630
+ type: object
28631
+ nullable: true
28632
+ additionalProperties: true
28633
+ next_scheduled_start_at:
28634
+ type: string
28635
+ format: date-time
28636
+ nullable: true
28637
+ scheduled_stop_at:
28638
+ type: string
28639
+ format: date-time
28640
+ nullable: true
28515
28641
  id:
28516
28642
  type: string
28517
28643
  format: uuid
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1claw/openapi-spec",
3
- "version": "0.61.36",
3
+ "version": "0.61.38",
4
4
  "description": "OpenAPI 3.1.0 specification for the 1Claw Vault API \u2014 generate clients in any language",
5
5
  "license": "MIT",
6
6
  "repository": {