@1claw/openapi-spec 0.61.49 → 0.61.50
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 +90 -1
- package/openapi.yaml +71 -1
- 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.
|
|
5
|
+
"version": "0.61.50",
|
|
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"
|
|
@@ -7026,6 +7026,38 @@
|
|
|
7026
7026
|
}
|
|
7027
7027
|
}
|
|
7028
7028
|
},
|
|
7029
|
+
"/v1/referrals/me": {
|
|
7030
|
+
"get": {
|
|
7031
|
+
"tags": [
|
|
7032
|
+
"Organization"
|
|
7033
|
+
],
|
|
7034
|
+
"summary": "Your own referral link and signups",
|
|
7035
|
+
"description": "The caller's referral code, the link to share, how many signups it has\nproduced, and a recent list.\n\nUsers only — a referral link belongs to a person, so an agent principal\ngets 403.\n\nThe link's host comes from the brand the request arrived on, the same\nway the SIWE domain and the WebAuthn rpId do: someone on 1claw.co must\nnot be handed a 1claw.xyz link to post.\n\n`recent[].referred_hint` is masked (`a**@example.com`) — enough to\nrecognise someone you did invite, not enough to contact someone you did\nnot. Neither the referred address nor its user id is returned.\n",
|
|
7036
|
+
"operationId": "getMyReferrals",
|
|
7037
|
+
"responses": {
|
|
7038
|
+
"200": {
|
|
7039
|
+
"description": "The caller's referral code, link and signup count",
|
|
7040
|
+
"content": {
|
|
7041
|
+
"application/json": {
|
|
7042
|
+
"schema": {
|
|
7043
|
+
"$ref": "#/components/schemas/MyReferralsResponse"
|
|
7044
|
+
}
|
|
7045
|
+
}
|
|
7046
|
+
}
|
|
7047
|
+
},
|
|
7048
|
+
"403": {
|
|
7049
|
+
"description": "The caller is an agent, not a person.",
|
|
7050
|
+
"content": {
|
|
7051
|
+
"application/json": {
|
|
7052
|
+
"schema": {
|
|
7053
|
+
"$ref": "#/components/schemas/ProblemDetails"
|
|
7054
|
+
}
|
|
7055
|
+
}
|
|
7056
|
+
}
|
|
7057
|
+
}
|
|
7058
|
+
}
|
|
7059
|
+
}
|
|
7060
|
+
},
|
|
7029
7061
|
"/v1/onboarding/provision": {
|
|
7030
7062
|
"post": {
|
|
7031
7063
|
"tags": [
|
|
@@ -32924,6 +32956,63 @@
|
|
|
32924
32956
|
}
|
|
32925
32957
|
},
|
|
32926
32958
|
"schemas": {
|
|
32959
|
+
"MyReferralsResponse": {
|
|
32960
|
+
"type": "object",
|
|
32961
|
+
"required": [
|
|
32962
|
+
"code",
|
|
32963
|
+
"link",
|
|
32964
|
+
"total",
|
|
32965
|
+
"recent"
|
|
32966
|
+
],
|
|
32967
|
+
"properties": {
|
|
32968
|
+
"code": {
|
|
32969
|
+
"type": "string",
|
|
32970
|
+
"description": "The caller's referral code, created on first read.",
|
|
32971
|
+
"example": "7f3a9c2b"
|
|
32972
|
+
},
|
|
32973
|
+
"link": {
|
|
32974
|
+
"type": "string",
|
|
32975
|
+
"format": "uri",
|
|
32976
|
+
"description": "The URL to share, built for the brand the request arrived on.",
|
|
32977
|
+
"example": "https://1claw.co/?ref=7f3a9c2b"
|
|
32978
|
+
},
|
|
32979
|
+
"total": {
|
|
32980
|
+
"type": "integer",
|
|
32981
|
+
"format": "int64",
|
|
32982
|
+
"description": "Countable signups attributed to this code."
|
|
32983
|
+
},
|
|
32984
|
+
"recent": {
|
|
32985
|
+
"type": "array",
|
|
32986
|
+
"items": {
|
|
32987
|
+
"$ref": "#/components/schemas/ReferralRow"
|
|
32988
|
+
}
|
|
32989
|
+
}
|
|
32990
|
+
}
|
|
32991
|
+
},
|
|
32992
|
+
"ReferralRow": {
|
|
32993
|
+
"type": "object",
|
|
32994
|
+
"required": [
|
|
32995
|
+
"signup_method",
|
|
32996
|
+
"created_at"
|
|
32997
|
+
],
|
|
32998
|
+
"properties": {
|
|
32999
|
+
"signup_method": {
|
|
33000
|
+
"type": "string",
|
|
33001
|
+
"description": "How the referred person signed up.",
|
|
33002
|
+
"example": "email_otp"
|
|
33003
|
+
},
|
|
33004
|
+
"created_at": {
|
|
33005
|
+
"type": "string",
|
|
33006
|
+
"format": "date-time"
|
|
33007
|
+
},
|
|
33008
|
+
"referred_hint": {
|
|
33009
|
+
"type": "string",
|
|
33010
|
+
"nullable": true,
|
|
33011
|
+
"description": "Masked address — first character, then the domain.",
|
|
33012
|
+
"example": "a**@example.com"
|
|
33013
|
+
}
|
|
33014
|
+
}
|
|
33015
|
+
},
|
|
32927
33016
|
"OtelTopology": {
|
|
32928
33017
|
"type": "object",
|
|
32929
33018
|
"required": [
|
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.
|
|
5
|
+
version: "0.61.50"
|
|
6
6
|
description: |
|
|
7
7
|
Secure secret management for AI agents. Provides vaults, secrets,
|
|
8
8
|
policy-based access control, agent identity, Intents API,
|
|
@@ -4530,6 +4530,39 @@ paths:
|
|
|
4530
4530
|
schema:
|
|
4531
4531
|
$ref: "#/components/schemas/OnboardingStatus"
|
|
4532
4532
|
|
|
4533
|
+
/v1/referrals/me:
|
|
4534
|
+
get:
|
|
4535
|
+
tags: [Organization]
|
|
4536
|
+
summary: Your own referral link and signups
|
|
4537
|
+
description: |
|
|
4538
|
+
The caller's referral code, the link to share, how many signups it has
|
|
4539
|
+
produced, and a recent list.
|
|
4540
|
+
|
|
4541
|
+
Users only — a referral link belongs to a person, so an agent principal
|
|
4542
|
+
gets 403.
|
|
4543
|
+
|
|
4544
|
+
The link's host comes from the brand the request arrived on, the same
|
|
4545
|
+
way the SIWE domain and the WebAuthn rpId do: someone on 1claw.co must
|
|
4546
|
+
not be handed a 1claw.xyz link to post.
|
|
4547
|
+
|
|
4548
|
+
`recent[].referred_hint` is masked (`a**@example.com`) — enough to
|
|
4549
|
+
recognise someone you did invite, not enough to contact someone you did
|
|
4550
|
+
not. Neither the referred address nor its user id is returned.
|
|
4551
|
+
operationId: getMyReferrals
|
|
4552
|
+
responses:
|
|
4553
|
+
"200":
|
|
4554
|
+
description: The caller's referral code, link and signup count
|
|
4555
|
+
content:
|
|
4556
|
+
application/json:
|
|
4557
|
+
schema:
|
|
4558
|
+
$ref: "#/components/schemas/MyReferralsResponse"
|
|
4559
|
+
"403":
|
|
4560
|
+
description: The caller is an agent, not a person.
|
|
4561
|
+
content:
|
|
4562
|
+
application/json:
|
|
4563
|
+
schema:
|
|
4564
|
+
$ref: "#/components/schemas/ProblemDetails"
|
|
4565
|
+
|
|
4533
4566
|
/v1/onboarding/provision:
|
|
4534
4567
|
post:
|
|
4535
4568
|
tags: [Organization]
|
|
@@ -21113,6 +21146,43 @@ components:
|
|
|
21113
21146
|
$ref: "#/components/schemas/ProblemDetails"
|
|
21114
21147
|
|
|
21115
21148
|
schemas:
|
|
21149
|
+
MyReferralsResponse:
|
|
21150
|
+
type: object
|
|
21151
|
+
required: [code, link, total, recent]
|
|
21152
|
+
properties:
|
|
21153
|
+
code:
|
|
21154
|
+
type: string
|
|
21155
|
+
description: The caller's referral code, created on first read.
|
|
21156
|
+
example: 7f3a9c2b
|
|
21157
|
+
link:
|
|
21158
|
+
type: string
|
|
21159
|
+
format: uri
|
|
21160
|
+
description: The URL to share, built for the brand the request arrived on.
|
|
21161
|
+
example: https://1claw.co/?ref=7f3a9c2b
|
|
21162
|
+
total:
|
|
21163
|
+
type: integer
|
|
21164
|
+
format: int64
|
|
21165
|
+
description: Countable signups attributed to this code.
|
|
21166
|
+
recent:
|
|
21167
|
+
type: array
|
|
21168
|
+
items:
|
|
21169
|
+
$ref: "#/components/schemas/ReferralRow"
|
|
21170
|
+
ReferralRow:
|
|
21171
|
+
type: object
|
|
21172
|
+
required: [signup_method, created_at]
|
|
21173
|
+
properties:
|
|
21174
|
+
signup_method:
|
|
21175
|
+
type: string
|
|
21176
|
+
description: How the referred person signed up.
|
|
21177
|
+
example: email_otp
|
|
21178
|
+
created_at:
|
|
21179
|
+
type: string
|
|
21180
|
+
format: date-time
|
|
21181
|
+
referred_hint:
|
|
21182
|
+
type: string
|
|
21183
|
+
nullable: true
|
|
21184
|
+
description: Masked address — first character, then the domain.
|
|
21185
|
+
example: a**@example.com
|
|
21116
21186
|
OtelTopology:
|
|
21117
21187
|
type: object
|
|
21118
21188
|
required: [nodes, edges, truncated, total_nodes]
|