@breign/client 1.0.91 → 1.0.93

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/dist/openapi.json CHANGED
@@ -7448,6 +7448,237 @@
7448
7448
  "tags" : [ "skills" ]
7449
7449
  }
7450
7450
  },
7451
+ "/skills/{skillId}/files" : {
7452
+ "get" : {
7453
+ "description" : "Returns all files attached to the skill — all metadata fields, no content",
7454
+ "operationId" : "listSkillFiles",
7455
+ "parameters" : [ {
7456
+ "description" : "Skill identifier",
7457
+ "in" : "path",
7458
+ "name" : "skillId",
7459
+ "required" : true,
7460
+ "schema" : {
7461
+ "format" : "uuid",
7462
+ "type" : "string"
7463
+ }
7464
+ } ],
7465
+ "responses" : {
7466
+ "200" : {
7467
+ "content" : {
7468
+ "application/json" : {
7469
+ "schema" : {
7470
+ "items" : {
7471
+ "$ref" : "#/components/schemas/SkillFileSummary"
7472
+ },
7473
+ "type" : "array"
7474
+ }
7475
+ }
7476
+ },
7477
+ "description" : "List of skill files without content"
7478
+ },
7479
+ "401" : {
7480
+ "description" : "Unauthorized"
7481
+ },
7482
+ "403" : {
7483
+ "description" : "Forbidden"
7484
+ },
7485
+ "404" : {
7486
+ "description" : "SKILL_NOT_FOUND"
7487
+ }
7488
+ },
7489
+ "summary" : "List skill files",
7490
+ "tags" : [ "skills" ]
7491
+ },
7492
+ "post" : {
7493
+ "operationId" : "createSkillFile",
7494
+ "parameters" : [ {
7495
+ "description" : "Skill identifier",
7496
+ "in" : "path",
7497
+ "name" : "skillId",
7498
+ "required" : true,
7499
+ "schema" : {
7500
+ "format" : "uuid",
7501
+ "type" : "string"
7502
+ }
7503
+ } ],
7504
+ "requestBody" : {
7505
+ "content" : {
7506
+ "application/json" : {
7507
+ "schema" : {
7508
+ "$ref" : "#/components/schemas/SkillFileCreateRequest"
7509
+ }
7510
+ }
7511
+ },
7512
+ "required" : true
7513
+ },
7514
+ "responses" : {
7515
+ "201" : {
7516
+ "content" : {
7517
+ "application/json" : {
7518
+ "schema" : {
7519
+ "$ref" : "#/components/schemas/SkillFile"
7520
+ }
7521
+ }
7522
+ },
7523
+ "description" : "File created"
7524
+ },
7525
+ "401" : {
7526
+ "description" : "Unauthorized"
7527
+ },
7528
+ "403" : {
7529
+ "description" : "Forbidden"
7530
+ },
7531
+ "404" : {
7532
+ "description" : "SKILL_NOT_FOUND"
7533
+ },
7534
+ "422" : {
7535
+ "description" : "Validation error — SKILL_FILE_INVALID_FILENAME, SKILL_FILE_CONTENT_TOO_LARGE, or SKILL_FILE_LIMIT_REACHED (max 15 files per skill)\n"
7536
+ }
7537
+ },
7538
+ "summary" : "Create a skill file",
7539
+ "tags" : [ "skills" ]
7540
+ }
7541
+ },
7542
+ "/skills/{skillId}/files/{fileId}" : {
7543
+ "delete" : {
7544
+ "operationId" : "deleteSkillFile",
7545
+ "parameters" : [ {
7546
+ "description" : "Skill identifier",
7547
+ "in" : "path",
7548
+ "name" : "skillId",
7549
+ "required" : true,
7550
+ "schema" : {
7551
+ "format" : "uuid",
7552
+ "type" : "string"
7553
+ }
7554
+ }, {
7555
+ "description" : "The ID of the file",
7556
+ "in" : "path",
7557
+ "name" : "fileId",
7558
+ "required" : true,
7559
+ "schema" : {
7560
+ "type" : "string"
7561
+ }
7562
+ } ],
7563
+ "responses" : {
7564
+ "204" : {
7565
+ "description" : "File deleted"
7566
+ },
7567
+ "401" : {
7568
+ "description" : "Unauthorized"
7569
+ },
7570
+ "403" : {
7571
+ "description" : "Forbidden"
7572
+ },
7573
+ "404" : {
7574
+ "description" : "SKILL_NOT_FOUND or SKILL_FILE_NOT_FOUND"
7575
+ }
7576
+ },
7577
+ "summary" : "Delete a skill file",
7578
+ "tags" : [ "skills" ]
7579
+ },
7580
+ "get" : {
7581
+ "operationId" : "getSkillFile",
7582
+ "parameters" : [ {
7583
+ "description" : "Skill identifier",
7584
+ "in" : "path",
7585
+ "name" : "skillId",
7586
+ "required" : true,
7587
+ "schema" : {
7588
+ "format" : "uuid",
7589
+ "type" : "string"
7590
+ }
7591
+ }, {
7592
+ "description" : "The ID of the file",
7593
+ "in" : "path",
7594
+ "name" : "fileId",
7595
+ "required" : true,
7596
+ "schema" : {
7597
+ "type" : "string"
7598
+ }
7599
+ } ],
7600
+ "responses" : {
7601
+ "200" : {
7602
+ "content" : {
7603
+ "application/json" : {
7604
+ "schema" : {
7605
+ "$ref" : "#/components/schemas/SkillFile"
7606
+ }
7607
+ }
7608
+ },
7609
+ "description" : "Skill file with full content"
7610
+ },
7611
+ "401" : {
7612
+ "description" : "Unauthorized"
7613
+ },
7614
+ "403" : {
7615
+ "description" : "Forbidden"
7616
+ },
7617
+ "404" : {
7618
+ "description" : "SKILL_NOT_FOUND or SKILL_FILE_NOT_FOUND"
7619
+ }
7620
+ },
7621
+ "summary" : "Get a skill file with content",
7622
+ "tags" : [ "skills" ]
7623
+ },
7624
+ "patch" : {
7625
+ "operationId" : "updateSkillFile",
7626
+ "parameters" : [ {
7627
+ "description" : "Skill identifier",
7628
+ "in" : "path",
7629
+ "name" : "skillId",
7630
+ "required" : true,
7631
+ "schema" : {
7632
+ "format" : "uuid",
7633
+ "type" : "string"
7634
+ }
7635
+ }, {
7636
+ "description" : "The ID of the file",
7637
+ "in" : "path",
7638
+ "name" : "fileId",
7639
+ "required" : true,
7640
+ "schema" : {
7641
+ "type" : "string"
7642
+ }
7643
+ } ],
7644
+ "requestBody" : {
7645
+ "content" : {
7646
+ "application/json" : {
7647
+ "schema" : {
7648
+ "$ref" : "#/components/schemas/SkillFileUpdateRequest"
7649
+ }
7650
+ }
7651
+ },
7652
+ "required" : true
7653
+ },
7654
+ "responses" : {
7655
+ "200" : {
7656
+ "content" : {
7657
+ "application/json" : {
7658
+ "schema" : {
7659
+ "$ref" : "#/components/schemas/SkillFile"
7660
+ }
7661
+ }
7662
+ },
7663
+ "description" : "File updated"
7664
+ },
7665
+ "401" : {
7666
+ "description" : "Unauthorized"
7667
+ },
7668
+ "403" : {
7669
+ "description" : "Forbidden"
7670
+ },
7671
+ "404" : {
7672
+ "description" : "SKILL_NOT_FOUND or SKILL_FILE_NOT_FOUND"
7673
+ },
7674
+ "422" : {
7675
+ "description" : "Validation error — SKILL_FILE_DESC_TOO_SHORT, SKILL_FILE_DESC_TOO_LONG, SKILL_FILE_INVALID_FILENAME or SKILL_FILE_CONTENT_TOO_LARGE"
7676
+ }
7677
+ },
7678
+ "summary" : "Update a skill file",
7679
+ "tags" : [ "skills" ]
7680
+ }
7681
+ },
7451
7682
  "/agents/{agentId}/skills" : {
7452
7683
  "get" : {
7453
7684
  "operationId" : "getAgentSkills",
@@ -9855,6 +10086,13 @@
9855
10086
  },
9856
10087
  "result" : {
9857
10088
  "$ref" : "#/components/schemas/ToolResult"
10089
+ },
10090
+ "error" : {
10091
+ "type" : "string"
10092
+ },
10093
+ "status" : {
10094
+ "enum" : [ "ok", "error" ],
10095
+ "type" : "string"
9858
10096
  }
9859
10097
  },
9860
10098
  "type" : "object"
@@ -12142,13 +12380,18 @@
12142
12380
  "type" : "string"
12143
12381
  },
12144
12382
  "slug" : {
12383
+ "maxLength" : 64,
12384
+ "minLength" : 1,
12145
12385
  "pattern" : "^[a-z0-9]+(?:-[a-z0-9]+)*$",
12146
12386
  "type" : "string"
12147
12387
  },
12148
12388
  "description" : {
12389
+ "maxLength" : 1024,
12390
+ "minLength" : 1,
12149
12391
  "type" : "string"
12150
12392
  },
12151
12393
  "content" : {
12394
+ "minLength" : 1,
12152
12395
  "type" : "string"
12153
12396
  }
12154
12397
  },
@@ -12157,6 +12400,7 @@
12157
12400
  },
12158
12401
  "SkillUpdateRequest" : {
12159
12402
  "additionalProperties" : false,
12403
+ "minProperties" : 1,
12160
12404
  "properties" : {
12161
12405
  "name" : {
12162
12406
  "maxLength" : 255,
@@ -12164,9 +12408,12 @@
12164
12408
  "type" : "string"
12165
12409
  },
12166
12410
  "description" : {
12411
+ "maxLength" : 1024,
12412
+ "minLength" : 1,
12167
12413
  "type" : "string"
12168
12414
  },
12169
12415
  "content" : {
12416
+ "minLength" : 1,
12170
12417
  "type" : "string"
12171
12418
  },
12172
12419
  "isActive" : {
@@ -12175,6 +12422,103 @@
12175
12422
  },
12176
12423
  "type" : "object"
12177
12424
  },
12425
+ "SkillFileSummary" : {
12426
+ "properties" : {
12427
+ "id" : {
12428
+ "format" : "uuid",
12429
+ "type" : "string"
12430
+ },
12431
+ "skillId" : {
12432
+ "format" : "uuid",
12433
+ "type" : "string"
12434
+ },
12435
+ "filename" : {
12436
+ "type" : "string"
12437
+ },
12438
+ "mimeType" : {
12439
+ "type" : "string"
12440
+ },
12441
+ "createdAt" : {
12442
+ "format" : "date-time",
12443
+ "type" : "string"
12444
+ },
12445
+ "updatedAt" : {
12446
+ "format" : "date-time",
12447
+ "type" : "string"
12448
+ }
12449
+ },
12450
+ "required" : [ "createdAt", "filename", "id", "mimeType", "skillId", "updatedAt" ],
12451
+ "type" : "object"
12452
+ },
12453
+ "SkillFileCreateRequest" : {
12454
+ "additionalProperties" : false,
12455
+ "properties" : {
12456
+ "filename" : {
12457
+ "maxLength" : 255,
12458
+ "minLength" : 1,
12459
+ "pattern" : "^[a-zA-Z0-9._\\-/]+$",
12460
+ "type" : "string"
12461
+ },
12462
+ "content" : {
12463
+ "minLength" : 1,
12464
+ "type" : "string"
12465
+ },
12466
+ "mimeType" : {
12467
+ "type" : "string"
12468
+ }
12469
+ },
12470
+ "required" : [ "content", "filename" ],
12471
+ "type" : "object"
12472
+ },
12473
+ "SkillFile" : {
12474
+ "properties" : {
12475
+ "id" : {
12476
+ "format" : "uuid",
12477
+ "type" : "string"
12478
+ },
12479
+ "skillId" : {
12480
+ "format" : "uuid",
12481
+ "type" : "string"
12482
+ },
12483
+ "filename" : {
12484
+ "maxLength" : 255,
12485
+ "type" : "string"
12486
+ },
12487
+ "mimeType" : {
12488
+ "maxLength" : 100,
12489
+ "type" : "string"
12490
+ },
12491
+ "content" : {
12492
+ "type" : "string"
12493
+ },
12494
+ "createdAt" : {
12495
+ "format" : "date-time",
12496
+ "type" : "string"
12497
+ },
12498
+ "updatedAt" : {
12499
+ "format" : "date-time",
12500
+ "type" : "string"
12501
+ }
12502
+ },
12503
+ "required" : [ "content", "createdAt", "filename", "id", "mimeType", "skillId", "updatedAt" ],
12504
+ "type" : "object"
12505
+ },
12506
+ "SkillFileUpdateRequest" : {
12507
+ "additionalProperties" : false,
12508
+ "minProperties" : 1,
12509
+ "properties" : {
12510
+ "filename" : {
12511
+ "maxLength" : 255,
12512
+ "minLength" : 1,
12513
+ "type" : "string"
12514
+ },
12515
+ "content" : {
12516
+ "minLength" : 1,
12517
+ "type" : "string"
12518
+ }
12519
+ },
12520
+ "type" : "object"
12521
+ },
12178
12522
  "SkillAssignRequest" : {
12179
12523
  "additionalProperties" : false,
12180
12524
  "properties" : {
@@ -12925,6 +13269,9 @@
12925
13269
  "tool" : {
12926
13270
  "type" : "string"
12927
13271
  },
13272
+ "toolName" : {
13273
+ "type" : "string"
13274
+ },
12928
13275
  "params" : {
12929
13276
  "type" : "string"
12930
13277
  }
@@ -13262,6 +13609,12 @@
13262
13609
  },
13263
13610
  "usage" : {
13264
13611
  "$ref" : "#/components/schemas/TokenUsage"
13612
+ },
13613
+ "toolResults" : {
13614
+ "items" : {
13615
+ "$ref" : "#/components/schemas/ToolResults"
13616
+ },
13617
+ "type" : "array"
13265
13618
  }
13266
13619
  },
13267
13620
  "required" : [ "content", "id", "role", "timestamp" ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breign/client",
3
- "version": "1.0.91",
3
+ "version": "1.0.93",
4
4
  "main": "dist/index.js",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",