@1claw/openapi-spec 0.40.1 → 0.41.0

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
@@ -17098,6 +17098,39 @@
17098
17098
  }
17099
17099
  }
17100
17100
  },
17101
+ "CredentialSource": {
17102
+ "type": "object",
17103
+ "required": [
17104
+ "type"
17105
+ ],
17106
+ "description": "Credential source — inline value (stored in __agent-keys) or live pointer to a vault secret (resolved at execution time).",
17107
+ "discriminator": {
17108
+ "propertyName": "type"
17109
+ },
17110
+ "properties": {
17111
+ "type": {
17112
+ "type": "string",
17113
+ "enum": [
17114
+ "inline",
17115
+ "vault_ref"
17116
+ ]
17117
+ },
17118
+ "value": {
17119
+ "type": "object",
17120
+ "additionalProperties": true,
17121
+ "description": "For inline — the credential value object."
17122
+ },
17123
+ "vault_id": {
17124
+ "type": "string",
17125
+ "format": "uuid",
17126
+ "description": "For vault_ref — the vault containing the referenced secret."
17127
+ },
17128
+ "path": {
17129
+ "type": "string",
17130
+ "description": "For vault_ref — the secret path in the vault."
17131
+ }
17132
+ }
17133
+ },
17101
17134
  "CreateBindingRequest": {
17102
17135
  "type": "object",
17103
17136
  "required": [
@@ -17133,7 +17166,11 @@
17133
17166
  },
17134
17167
  "credential": {
17135
17168
  "type": "object",
17136
- "additionalProperties": true
17169
+ "additionalProperties": true,
17170
+ "description": "Legacy: inline credential value. Use credential_source for new integrations."
17171
+ },
17172
+ "credential_source": {
17173
+ "$ref": "#/components/schemas/CredentialSource"
17137
17174
  }
17138
17175
  }
17139
17176
  },
@@ -17153,7 +17190,11 @@
17153
17190
  },
17154
17191
  "credential": {
17155
17192
  "type": "object",
17156
- "additionalProperties": true
17193
+ "additionalProperties": true,
17194
+ "description": "Legacy: inline credential value."
17195
+ },
17196
+ "credential_source": {
17197
+ "$ref": "#/components/schemas/CredentialSource"
17157
17198
  }
17158
17199
  }
17159
17200
  },
@@ -17210,6 +17251,26 @@
17210
17251
  "type": "boolean",
17211
17252
  "description": "Whether a credential is stored for this binding. The value itself is never returned."
17212
17253
  },
17254
+ "credential_source_type": {
17255
+ "type": "string",
17256
+ "enum": [
17257
+ "inline",
17258
+ "vault_ref"
17259
+ ],
17260
+ "nullable": true,
17261
+ "description": "How the credential is sourced — inline (HSM-encrypted copy) or vault_ref (live pointer)."
17262
+ },
17263
+ "credential_vault_id": {
17264
+ "type": "string",
17265
+ "format": "uuid",
17266
+ "nullable": true,
17267
+ "description": "For vault_ref credentials — the vault containing the referenced secret."
17268
+ },
17269
+ "credential_path": {
17270
+ "type": "string",
17271
+ "nullable": true,
17272
+ "description": "For vault_ref credentials — the secret path in the referenced vault."
17273
+ },
17213
17274
  "created_at": {
17214
17275
  "type": "string",
17215
17276
  "format": "date-time"
package/openapi.yaml CHANGED
@@ -11300,6 +11300,28 @@ components:
11300
11300
 
11301
11301
  # --- Execution Intents ---
11302
11302
 
11303
+ CredentialSource:
11304
+ type: object
11305
+ required: [type]
11306
+ description: Credential source — inline value (stored in __agent-keys) or live pointer to a vault secret (resolved at execution time).
11307
+ discriminator:
11308
+ propertyName: type
11309
+ properties:
11310
+ type:
11311
+ type: string
11312
+ enum: [inline, vault_ref]
11313
+ value:
11314
+ type: object
11315
+ additionalProperties: true
11316
+ description: For inline — the credential value object.
11317
+ vault_id:
11318
+ type: string
11319
+ format: uuid
11320
+ description: For vault_ref — the vault containing the referenced secret.
11321
+ path:
11322
+ type: string
11323
+ description: For vault_ref — the secret path in the vault.
11324
+
11303
11325
  CreateBindingRequest:
11304
11326
  type: object
11305
11327
  required: [name, binding_type]
@@ -11318,6 +11340,9 @@ components:
11318
11340
  credential:
11319
11341
  type: object
11320
11342
  additionalProperties: true
11343
+ description: "Legacy: inline credential value. Use credential_source for new integrations."
11344
+ credential_source:
11345
+ $ref: "#/components/schemas/CredentialSource"
11321
11346
 
11322
11347
  UpdateBindingRequest:
11323
11348
  type: object
@@ -11333,6 +11358,9 @@ components:
11333
11358
  credential:
11334
11359
  type: object
11335
11360
  additionalProperties: true
11361
+ description: "Legacy: inline credential value."
11362
+ credential_source:
11363
+ $ref: "#/components/schemas/CredentialSource"
11336
11364
 
11337
11365
  BindingResponse:
11338
11366
  type: object
@@ -11360,6 +11388,20 @@ components:
11360
11388
  credential_set:
11361
11389
  type: boolean
11362
11390
  description: Whether a credential is stored for this binding. The value itself is never returned.
11391
+ credential_source_type:
11392
+ type: string
11393
+ enum: [inline, vault_ref]
11394
+ nullable: true
11395
+ description: How the credential is sourced — inline (HSM-encrypted copy) or vault_ref (live pointer).
11396
+ credential_vault_id:
11397
+ type: string
11398
+ format: uuid
11399
+ nullable: true
11400
+ description: For vault_ref credentials — the vault containing the referenced secret.
11401
+ credential_path:
11402
+ type: string
11403
+ nullable: true
11404
+ description: For vault_ref credentials — the secret path in the referenced vault.
11363
11405
  created_at:
11364
11406
  type: string
11365
11407
  format: date-time
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1claw/openapi-spec",
3
- "version": "0.40.1",
3
+ "version": "0.41.0",
4
4
  "description": "OpenAPI 3.1.0 specification for the 1Claw Vault API — generate clients in any language",
5
5
  "license": "MIT",
6
6
  "repository": {