@1claw/openapi-spec 0.61.42 → 0.61.43

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.
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.42",
5
+ "version": "0.61.43",
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"
@@ -29544,6 +29544,62 @@
29544
29544
  }
29545
29545
  }
29546
29546
  },
29547
+ "/v1/runtimes/{runtime_id}/agent-token/renew": {
29548
+ "parameters": [
29549
+ {
29550
+ "name": "runtime_id",
29551
+ "in": "path",
29552
+ "required": true,
29553
+ "schema": {
29554
+ "type": "string"
29555
+ }
29556
+ }
29557
+ ],
29558
+ "post": {
29559
+ "tags": [
29560
+ "Runtimes"
29561
+ ],
29562
+ "summary": "Renew this runtime's own agent JWT before it expires",
29563
+ "description": "Called by the runtime container itself, not by a human or an external client.\nA runtime's `ONECLAW_AGENT_TOKEN` is a short-lived JWT that Cloud Run resolves from Secret Manager when the instance starts and never again, so a container that outlives the TTL loses its credential — and with it every 1claw tool — until it is restarted. This lets it replace the token in place instead.\nAuthenticated by the credential being renewed: the caller must present a still-valid runtime-bound agent JWT together with a matching `X-1Claw-Runtime-Id` header, and must be the agent that runtime is bound to. It grants nothing new — the same claims with a later expiry — and stops working the moment the token lapses, the token is revoked, the agent is suspended, or the runtime is no longer deployed. Exempt from the monthly request quota: upkeep of an already-paid-for runtime is not itself a billable request.",
29564
+ "operationId": "renew_runtime_agent_token",
29565
+ "responses": {
29566
+ "200": {
29567
+ "description": "A fresh access token",
29568
+ "content": {
29569
+ "application/json": {
29570
+ "schema": {
29571
+ "type": "object",
29572
+ "properties": {
29573
+ "access_token": {
29574
+ "type": "string"
29575
+ },
29576
+ "expires_in": {
29577
+ "type": "integer"
29578
+ },
29579
+ "token_type": {
29580
+ "type": "string",
29581
+ "example": "Bearer"
29582
+ }
29583
+ }
29584
+ }
29585
+ }
29586
+ }
29587
+ },
29588
+ "400": {
29589
+ "description": "The runtime is not deployed, so it has nothing to renew"
29590
+ },
29591
+ "401": {
29592
+ "description": "Unauthenticated, or the token presented has already expired"
29593
+ },
29594
+ "403": {
29595
+ "description": "Not an agent caller"
29596
+ },
29597
+ "404": {
29598
+ "description": "No such runtime, or it is not bound to this agent"
29599
+ }
29600
+ }
29601
+ }
29602
+ },
29547
29603
  "/v1/otel/stream": {
29548
29604
  "get": {
29549
29605
  "tags": [
@@ -30668,6 +30724,39 @@
30668
30724
  }
30669
30725
  }
30670
30726
  },
30727
+ "/v1/runtimes/{runtime_id}/enable-recommended-tools": {
30728
+ "parameters": [
30729
+ {
30730
+ "name": "runtime_id",
30731
+ "in": "path",
30732
+ "required": true,
30733
+ "schema": {
30734
+ "type": "string"
30735
+ }
30736
+ }
30737
+ ],
30738
+ "post": {
30739
+ "tags": [
30740
+ "Runtimes"
30741
+ ],
30742
+ "summary": "Enable the recommended tool set (image generation, web search, memory, Shroud, intents) on the runtime's agent. Human-only.",
30743
+ "operationId": "enable_recommended_tools",
30744
+ "responses": {
30745
+ "200": {
30746
+ "description": "Success"
30747
+ },
30748
+ "401": {
30749
+ "description": "Unauthenticated"
30750
+ },
30751
+ "403": {
30752
+ "description": "Forbidden, or the plan does not include this"
30753
+ },
30754
+ "404": {
30755
+ "description": "Not found"
30756
+ }
30757
+ }
30758
+ }
30759
+ },
30671
30760
  "/v1/vaults/{vault_id}/secret-version-disable/{*path_and_version}": {
30672
30761
  "parameters": [
30673
30762
  {
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.42"
5
+ version: "0.61.43"
6
6
  description: |
7
7
  Secure secret management for AI agents. Provides vaults, secrets,
8
8
  policy-based access control, agent identity, Intents API,
@@ -18893,6 +18893,58 @@ paths:
18893
18893
  description: Forbidden, or the plan does not include this
18894
18894
  '404':
18895
18895
  description: Not found
18896
+ /v1/runtimes/{runtime_id}/agent-token/renew:
18897
+ parameters:
18898
+ - name: runtime_id
18899
+ in: path
18900
+ required: true
18901
+ schema:
18902
+ type: string
18903
+ post:
18904
+ tags: [Runtimes]
18905
+ summary: "Renew this runtime's own agent JWT before it expires"
18906
+ description: >-
18907
+ Called by the runtime container itself, not by a human or an
18908
+ external client.
18909
+
18910
+ A runtime's `ONECLAW_AGENT_TOKEN` is a short-lived JWT that Cloud
18911
+ Run resolves from Secret Manager when the instance starts and
18912
+ never again, so a container that outlives the TTL loses its
18913
+ credential — and with it every 1claw tool — until it is
18914
+ restarted. This lets it replace the token in place instead.
18915
+
18916
+ Authenticated by the credential being renewed: the caller must
18917
+ present a still-valid runtime-bound agent JWT together with a
18918
+ matching `X-1Claw-Runtime-Id` header, and must be the agent that
18919
+ runtime is bound to. It grants nothing new — the same claims with
18920
+ a later expiry — and stops working the moment the token lapses,
18921
+ the token is revoked, the agent is suspended, or the runtime is
18922
+ no longer deployed. Exempt from the monthly request quota: upkeep
18923
+ of an already-paid-for runtime is not itself a billable request.
18924
+ operationId: renew_runtime_agent_token
18925
+ responses:
18926
+ '200':
18927
+ description: A fresh access token
18928
+ content:
18929
+ application/json:
18930
+ schema:
18931
+ type: object
18932
+ properties:
18933
+ access_token:
18934
+ type: string
18935
+ expires_in:
18936
+ type: integer
18937
+ token_type:
18938
+ type: string
18939
+ example: Bearer
18940
+ '400':
18941
+ description: The runtime is not deployed, so it has nothing to renew
18942
+ '401':
18943
+ description: Unauthenticated, or the token presented has already expired
18944
+ '403':
18945
+ description: Not an agent caller
18946
+ '404':
18947
+ description: No such runtime, or it is not bound to this agent
18896
18948
  /v1/otel/stream:
18897
18949
  get:
18898
18950
  tags: [Observability]
@@ -19596,6 +19648,26 @@ paths:
19596
19648
  description: Forbidden, or the plan does not include this
19597
19649
  '404':
19598
19650
  description: Not found
19651
+ /v1/runtimes/{runtime_id}/enable-recommended-tools:
19652
+ parameters:
19653
+ - name: runtime_id
19654
+ in: path
19655
+ required: true
19656
+ schema:
19657
+ type: string
19658
+ post:
19659
+ tags: [Runtimes]
19660
+ summary: "Enable the recommended tool set (image generation, web search, memory, Shroud, intents) on the runtime's agent. Human-only."
19661
+ operationId: enable_recommended_tools
19662
+ responses:
19663
+ '200':
19664
+ description: Success
19665
+ '401':
19666
+ description: Unauthenticated
19667
+ '403':
19668
+ description: Forbidden, or the plan does not include this
19669
+ '404':
19670
+ description: Not found
19599
19671
  /v1/vaults/{vault_id}/secret-version-disable/{*path_and_version}:
19600
19672
  parameters:
19601
19673
  - name: vault_id
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1claw/openapi-spec",
3
- "version": "0.61.42",
3
+ "version": "0.61.43",
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": {