@breign/client 1.0.82 → 1.0.83

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
@@ -66,6 +66,9 @@
66
66
  }, {
67
67
  "description" : "Chat prompts and conversation management",
68
68
  "name" : "prompts"
69
+ }, {
70
+ "description" : "Skills management endpoints",
71
+ "name" : "skills"
69
72
  } ],
70
73
  "paths" : {
71
74
  "/health" : {
@@ -6693,6 +6696,368 @@
6693
6696
  "tags" : [ "tools" ]
6694
6697
  }
6695
6698
  },
6699
+ "/skills" : {
6700
+ "get" : {
6701
+ "description" : "Returns a paginated list of skills scoped to an organization",
6702
+ "operationId" : "listSkills",
6703
+ "parameters" : [ {
6704
+ "description" : "Organization ID",
6705
+ "in" : "query",
6706
+ "name" : "organizationId",
6707
+ "required" : true,
6708
+ "schema" : {
6709
+ "type" : "string"
6710
+ }
6711
+ }, {
6712
+ "description" : "Page number",
6713
+ "in" : "query",
6714
+ "name" : "page",
6715
+ "schema" : {
6716
+ "type" : "integer"
6717
+ }
6718
+ }, {
6719
+ "description" : "Maximum number of skills to return",
6720
+ "in" : "query",
6721
+ "name" : "limit",
6722
+ "schema" : {
6723
+ "default" : 20,
6724
+ "maximum" : 100,
6725
+ "type" : "integer"
6726
+ }
6727
+ } ],
6728
+ "responses" : {
6729
+ "200" : {
6730
+ "content" : {
6731
+ "application/json" : {
6732
+ "schema" : {
6733
+ "items" : {
6734
+ "$ref" : "#/components/schemas/Skill"
6735
+ },
6736
+ "type" : "array"
6737
+ }
6738
+ }
6739
+ },
6740
+ "description" : "List of skills",
6741
+ "headers" : {
6742
+ "X-Total-Count" : {
6743
+ "description" : "Total number of skills in the organization",
6744
+ "schema" : {
6745
+ "type" : "integer"
6746
+ }
6747
+ },
6748
+ "X-Page" : {
6749
+ "schema" : {
6750
+ "type" : "integer"
6751
+ }
6752
+ },
6753
+ "X-Limit" : {
6754
+ "schema" : {
6755
+ "type" : "integer"
6756
+ }
6757
+ },
6758
+ "X-Total-Pages" : {
6759
+ "schema" : {
6760
+ "type" : "integer"
6761
+ }
6762
+ }
6763
+ }
6764
+ },
6765
+ "400" : {
6766
+ "description" : "MISSING_ORG_ID"
6767
+ },
6768
+ "401" : {
6769
+ "description" : "Unauthorized"
6770
+ },
6771
+ "403" : {
6772
+ "description" : "Forbidden"
6773
+ }
6774
+ },
6775
+ "summary" : "List skills in an organization",
6776
+ "tags" : [ "skills" ]
6777
+ },
6778
+ "post" : {
6779
+ "description" : "Creates a new skill in an organization",
6780
+ "operationId" : "createSkill",
6781
+ "requestBody" : {
6782
+ "content" : {
6783
+ "application/json" : {
6784
+ "schema" : {
6785
+ "$ref" : "#/components/schemas/SkillCreateRequest"
6786
+ }
6787
+ }
6788
+ },
6789
+ "required" : true
6790
+ },
6791
+ "responses" : {
6792
+ "201" : {
6793
+ "content" : {
6794
+ "application/json" : {
6795
+ "schema" : {
6796
+ "$ref" : "#/components/schemas/Skill"
6797
+ }
6798
+ }
6799
+ },
6800
+ "description" : "Skill created successfully"
6801
+ },
6802
+ "400" : {
6803
+ "description" : "Invalid request body"
6804
+ },
6805
+ "401" : {
6806
+ "description" : "Unauthorized"
6807
+ },
6808
+ "403" : {
6809
+ "description" : "Forbidden"
6810
+ },
6811
+ "409" : {
6812
+ "description" : "SKILL_SLUG_ALREADY_EXISTS"
6813
+ }
6814
+ },
6815
+ "summary" : "Create a skill",
6816
+ "tags" : [ "skills" ]
6817
+ }
6818
+ },
6819
+ "/skills/{skillId}" : {
6820
+ "delete" : {
6821
+ "operationId" : "deleteSkill",
6822
+ "parameters" : [ {
6823
+ "description" : "Skill identifier",
6824
+ "in" : "path",
6825
+ "name" : "skillId",
6826
+ "required" : true,
6827
+ "schema" : {
6828
+ "format" : "uuid",
6829
+ "type" : "string"
6830
+ }
6831
+ } ],
6832
+ "responses" : {
6833
+ "204" : {
6834
+ "description" : "Skill deleted successfully"
6835
+ },
6836
+ "401" : {
6837
+ "description" : "Unauthorized"
6838
+ },
6839
+ "403" : {
6840
+ "description" : "Forbidden"
6841
+ },
6842
+ "404" : {
6843
+ "description" : "SKILL_NOT_FOUND"
6844
+ }
6845
+ },
6846
+ "summary" : "Delete a skill",
6847
+ "tags" : [ "skills" ]
6848
+ },
6849
+ "get" : {
6850
+ "operationId" : "getSkill",
6851
+ "parameters" : [ {
6852
+ "description" : "Skill identifier",
6853
+ "in" : "path",
6854
+ "name" : "skillId",
6855
+ "required" : true,
6856
+ "schema" : {
6857
+ "format" : "uuid",
6858
+ "type" : "string"
6859
+ }
6860
+ } ],
6861
+ "responses" : {
6862
+ "200" : {
6863
+ "content" : {
6864
+ "application/json" : {
6865
+ "schema" : {
6866
+ "$ref" : "#/components/schemas/Skill"
6867
+ }
6868
+ }
6869
+ },
6870
+ "description" : "Skill details"
6871
+ },
6872
+ "401" : {
6873
+ "description" : "Unauthorized"
6874
+ },
6875
+ "403" : {
6876
+ "description" : "Forbidden"
6877
+ },
6878
+ "404" : {
6879
+ "description" : "SKILL_NOT_FOUND"
6880
+ }
6881
+ },
6882
+ "summary" : "Get a skill by ID",
6883
+ "tags" : [ "skills" ]
6884
+ },
6885
+ "patch" : {
6886
+ "operationId" : "updateSkill",
6887
+ "parameters" : [ {
6888
+ "description" : "Skill identifier",
6889
+ "in" : "path",
6890
+ "name" : "skillId",
6891
+ "required" : true,
6892
+ "schema" : {
6893
+ "format" : "uuid",
6894
+ "type" : "string"
6895
+ }
6896
+ } ],
6897
+ "requestBody" : {
6898
+ "content" : {
6899
+ "application/json" : {
6900
+ "schema" : {
6901
+ "$ref" : "#/components/schemas/SkillUpdateRequest"
6902
+ }
6903
+ }
6904
+ },
6905
+ "required" : true
6906
+ },
6907
+ "responses" : {
6908
+ "200" : {
6909
+ "content" : {
6910
+ "application/json" : {
6911
+ "schema" : {
6912
+ "$ref" : "#/components/schemas/Skill"
6913
+ }
6914
+ }
6915
+ },
6916
+ "description" : "Skill updated successfully"
6917
+ },
6918
+ "400" : {
6919
+ "description" : "Invalid request body"
6920
+ },
6921
+ "401" : {
6922
+ "description" : "Unauthorized"
6923
+ },
6924
+ "403" : {
6925
+ "description" : "Forbidden"
6926
+ },
6927
+ "404" : {
6928
+ "description" : "SKILL_NOT_FOUND"
6929
+ },
6930
+ "409" : {
6931
+ "description" : "SKILL_SLUG_ALREADY_EXISTS"
6932
+ }
6933
+ },
6934
+ "summary" : "Update a skill",
6935
+ "tags" : [ "skills" ]
6936
+ }
6937
+ },
6938
+ "/agents/{agentId}/skills" : {
6939
+ "get" : {
6940
+ "operationId" : "getAgentSkills",
6941
+ "parameters" : [ {
6942
+ "description" : "ID of the agent",
6943
+ "in" : "path",
6944
+ "name" : "agentId",
6945
+ "required" : true,
6946
+ "schema" : {
6947
+ "format" : "uuid",
6948
+ "type" : "string"
6949
+ }
6950
+ } ],
6951
+ "responses" : {
6952
+ "200" : {
6953
+ "content" : {
6954
+ "application/json" : {
6955
+ "schema" : {
6956
+ "items" : {
6957
+ "$ref" : "#/components/schemas/Skill"
6958
+ },
6959
+ "type" : "array"
6960
+ }
6961
+ }
6962
+ },
6963
+ "description" : "List of skills assigned to the agent"
6964
+ },
6965
+ "401" : {
6966
+ "description" : "Unauthorized"
6967
+ },
6968
+ "403" : {
6969
+ "description" : "Forbidden"
6970
+ },
6971
+ "404" : {
6972
+ "description" : "AGENT_NOT_FOUND"
6973
+ }
6974
+ },
6975
+ "summary" : "Get skills assigned to an agent",
6976
+ "tags" : [ "skills" ]
6977
+ },
6978
+ "post" : {
6979
+ "operationId" : "assignSkillToAgent",
6980
+ "parameters" : [ {
6981
+ "description" : "ID of the agent",
6982
+ "in" : "path",
6983
+ "name" : "agentId",
6984
+ "required" : true,
6985
+ "schema" : {
6986
+ "format" : "uuid",
6987
+ "type" : "string"
6988
+ }
6989
+ } ],
6990
+ "requestBody" : {
6991
+ "content" : {
6992
+ "application/json" : {
6993
+ "schema" : {
6994
+ "$ref" : "#/components/schemas/SkillAssignRequest"
6995
+ }
6996
+ }
6997
+ },
6998
+ "required" : true
6999
+ },
7000
+ "responses" : {
7001
+ "200" : {
7002
+ "description" : "Skill assigned (or already assigned — idempotent)"
7003
+ },
7004
+ "400" : {
7005
+ "description" : "Invalid request body"
7006
+ },
7007
+ "401" : {
7008
+ "description" : "Unauthorized"
7009
+ },
7010
+ "403" : {
7011
+ "description" : "Forbidden — SKILL_ORG_MISMATCH if skill belongs to a different org"
7012
+ },
7013
+ "404" : {
7014
+ "description" : "AGENT_NOT_FOUND or SKILL_NOT_FOUND"
7015
+ }
7016
+ },
7017
+ "summary" : "Assign a skill to an agent",
7018
+ "tags" : [ "skills" ]
7019
+ }
7020
+ },
7021
+ "/agents/{agentId}/skills/{skillId}" : {
7022
+ "delete" : {
7023
+ "operationId" : "unassignSkillFromAgent",
7024
+ "parameters" : [ {
7025
+ "description" : "ID of the agent",
7026
+ "in" : "path",
7027
+ "name" : "agentId",
7028
+ "required" : true,
7029
+ "schema" : {
7030
+ "format" : "uuid",
7031
+ "type" : "string"
7032
+ }
7033
+ }, {
7034
+ "description" : "Skill identifier",
7035
+ "in" : "path",
7036
+ "name" : "skillId",
7037
+ "required" : true,
7038
+ "schema" : {
7039
+ "format" : "uuid",
7040
+ "type" : "string"
7041
+ }
7042
+ } ],
7043
+ "responses" : {
7044
+ "204" : {
7045
+ "description" : "Skill unassigned successfully"
7046
+ },
7047
+ "401" : {
7048
+ "description" : "Unauthorized"
7049
+ },
7050
+ "403" : {
7051
+ "description" : "Forbidden"
7052
+ },
7053
+ "404" : {
7054
+ "description" : "AGENT_NOT_FOUND or assignment not found"
7055
+ }
7056
+ },
7057
+ "summary" : "Unassign a skill from an agent",
7058
+ "tags" : [ "skills" ]
7059
+ }
7060
+ },
6696
7061
  "/remote/pin-requests" : {
6697
7062
  "post" : {
6698
7063
  "description" : "Creates a PIN request for remote access",
@@ -7564,6 +7929,16 @@
7564
7929
  "type" : "string"
7565
7930
  }
7566
7931
  },
7932
+ "skillIdPath" : {
7933
+ "description" : "Skill identifier",
7934
+ "in" : "path",
7935
+ "name" : "skillId",
7936
+ "required" : true,
7937
+ "schema" : {
7938
+ "format" : "uuid",
7939
+ "type" : "string"
7940
+ }
7941
+ },
7567
7942
  "async" : {
7568
7943
  "description" : "If true, run the operation in async mode (poll the ressource then).",
7569
7944
  "in" : "query",
@@ -10998,6 +11373,105 @@
10998
11373
  "title" : "RevealTokenResponse",
10999
11374
  "type" : "object"
11000
11375
  },
11376
+ "Skill" : {
11377
+ "properties" : {
11378
+ "id" : {
11379
+ "format" : "uuid",
11380
+ "type" : "string"
11381
+ },
11382
+ "orgId" : {
11383
+ "format" : "uuid",
11384
+ "type" : "string"
11385
+ },
11386
+ "name" : {
11387
+ "type" : "string"
11388
+ },
11389
+ "slug" : {
11390
+ "type" : "string"
11391
+ },
11392
+ "description" : {
11393
+ "type" : "string"
11394
+ },
11395
+ "content" : {
11396
+ "type" : "string"
11397
+ },
11398
+ "isActive" : {
11399
+ "type" : "boolean"
11400
+ },
11401
+ "createdBy" : {
11402
+ "format" : "uuid",
11403
+ "nullable" : true,
11404
+ "type" : "string"
11405
+ },
11406
+ "createdAt" : {
11407
+ "format" : "date-time",
11408
+ "type" : "string"
11409
+ },
11410
+ "updatedAt" : {
11411
+ "format" : "date-time",
11412
+ "type" : "string"
11413
+ }
11414
+ },
11415
+ "required" : [ "content", "description", "id", "isActive", "name", "orgId", "slug" ],
11416
+ "type" : "object"
11417
+ },
11418
+ "SkillCreateRequest" : {
11419
+ "additionalProperties" : false,
11420
+ "properties" : {
11421
+ "orgId" : {
11422
+ "format" : "uuid",
11423
+ "type" : "string"
11424
+ },
11425
+ "name" : {
11426
+ "maxLength" : 255,
11427
+ "minLength" : 1,
11428
+ "type" : "string"
11429
+ },
11430
+ "slug" : {
11431
+ "pattern" : "^[a-z0-9]+(?:-[a-z0-9]+)*$",
11432
+ "type" : "string"
11433
+ },
11434
+ "description" : {
11435
+ "type" : "string"
11436
+ },
11437
+ "content" : {
11438
+ "type" : "string"
11439
+ }
11440
+ },
11441
+ "required" : [ "content", "description", "name", "orgId", "slug" ],
11442
+ "type" : "object"
11443
+ },
11444
+ "SkillUpdateRequest" : {
11445
+ "additionalProperties" : false,
11446
+ "properties" : {
11447
+ "name" : {
11448
+ "maxLength" : 255,
11449
+ "minLength" : 1,
11450
+ "type" : "string"
11451
+ },
11452
+ "description" : {
11453
+ "type" : "string"
11454
+ },
11455
+ "content" : {
11456
+ "type" : "string"
11457
+ },
11458
+ "isActive" : {
11459
+ "type" : "boolean"
11460
+ }
11461
+ },
11462
+ "type" : "object"
11463
+ },
11464
+ "SkillAssignRequest" : {
11465
+ "additionalProperties" : false,
11466
+ "properties" : {
11467
+ "skill_id" : {
11468
+ "format" : "uuid",
11469
+ "type" : "string"
11470
+ }
11471
+ },
11472
+ "required" : [ "skill_id" ],
11473
+ "type" : "object"
11474
+ },
11001
11475
  "PinRequest" : {
11002
11476
  "properties" : {
11003
11477
  "user" : {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breign/client",
3
- "version": "1.0.82",
3
+ "version": "1.0.83",
4
4
  "main": "dist/index.js",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",