@breign/client 1.0.173 → 1.0.174
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/apis/ExecutionNodesApi.d.ts +83 -1
- package/dist/apis/ExecutionNodesApi.js +186 -0
- package/dist/models/ExecutionNodeDetailUio.d.ts +7 -0
- package/dist/models/ExecutionNodeDetailUio.js +5 -0
- package/dist/models/ExecutionNodeOrganizationUio.d.ts +44 -0
- package/dist/models/ExecutionNodeOrganizationUio.js +58 -0
- package/dist/models/ExecutionNodeSettingsUio.d.ts +33 -0
- package/dist/models/ExecutionNodeSettingsUio.js +51 -0
- package/dist/models/ExecutionNodeUio.d.ts +7 -0
- package/dist/models/ExecutionNodeUio.js +5 -0
- package/dist/models/NodeAssociationPolicyUio.d.ts +26 -0
- package/dist/models/NodeAssociationPolicyUio.js +52 -0
- package/dist/models/NodeSessionDetailUio.d.ts +1 -1
- package/dist/models/NodeSessionUio.d.ts +1 -1
- package/dist/models/OrganizationExecutionNodeAgentUio.d.ts +52 -0
- package/dist/models/OrganizationExecutionNodeAgentUio.js +66 -0
- package/dist/models/OrganizationExecutionNodeUio.d.ts +97 -0
- package/dist/models/OrganizationExecutionNodeUio.js +97 -0
- package/dist/models/OrganizationExecutionNodeUserUio.d.ts +38 -0
- package/dist/models/OrganizationExecutionNodeUserUio.js +54 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/dist/openapi.json +356 -2
- package/package.json +1 -1
package/dist/openapi.json
CHANGED
|
@@ -18258,6 +18258,247 @@
|
|
|
18258
18258
|
"tags" : [ "execution-nodes" ]
|
|
18259
18259
|
}
|
|
18260
18260
|
},
|
|
18261
|
+
"/execution-nodes/{nodeId}/organizations/{organizationId}" : {
|
|
18262
|
+
"delete" : {
|
|
18263
|
+
"description" : "Retire le nœud de l'organisation : les agents de l'organisation qui y tournaient repassent sur le serveur Breign, et leurs tours ouverts sur ce nœud sont clos (`node_dissociated`) et annulés sur le poste. Les autres organisations du nœud ne sont pas touchées.",
|
|
18264
|
+
"operationId" : "dissociateExecutionNode",
|
|
18265
|
+
"parameters" : [ {
|
|
18266
|
+
"description" : "ID of the Breign Mate execution node",
|
|
18267
|
+
"in" : "path",
|
|
18268
|
+
"name" : "nodeId",
|
|
18269
|
+
"required" : true,
|
|
18270
|
+
"schema" : {
|
|
18271
|
+
"format" : "uuid",
|
|
18272
|
+
"type" : "string"
|
|
18273
|
+
}
|
|
18274
|
+
}, {
|
|
18275
|
+
"description" : "ID of the organization",
|
|
18276
|
+
"in" : "path",
|
|
18277
|
+
"name" : "organizationId",
|
|
18278
|
+
"required" : true,
|
|
18279
|
+
"schema" : {
|
|
18280
|
+
"type" : "string"
|
|
18281
|
+
}
|
|
18282
|
+
} ],
|
|
18283
|
+
"responses" : {
|
|
18284
|
+
"204" : {
|
|
18285
|
+
"description" : "Dissociated"
|
|
18286
|
+
},
|
|
18287
|
+
"401" : {
|
|
18288
|
+
"description" : "Unauthenticated"
|
|
18289
|
+
},
|
|
18290
|
+
"404" : {
|
|
18291
|
+
"description" : "Not found — or not a node of the caller"
|
|
18292
|
+
}
|
|
18293
|
+
},
|
|
18294
|
+
"summary" : "Dissociate my execution node from an organization",
|
|
18295
|
+
"tags" : [ "execution-nodes" ]
|
|
18296
|
+
},
|
|
18297
|
+
"put" : {
|
|
18298
|
+
"description" : "Associe le nœud à l'organisation, depuis Breign Mate : ses agents pourront y tourner. Réservé au propriétaire du nœud, membre de l'organisation — ou admin, selon le réglage de l'organisation. Sans effet sur une association déjà posée.",
|
|
18299
|
+
"operationId" : "associateExecutionNode",
|
|
18300
|
+
"parameters" : [ {
|
|
18301
|
+
"description" : "ID of the Breign Mate execution node",
|
|
18302
|
+
"in" : "path",
|
|
18303
|
+
"name" : "nodeId",
|
|
18304
|
+
"required" : true,
|
|
18305
|
+
"schema" : {
|
|
18306
|
+
"format" : "uuid",
|
|
18307
|
+
"type" : "string"
|
|
18308
|
+
}
|
|
18309
|
+
}, {
|
|
18310
|
+
"description" : "ID of the organization",
|
|
18311
|
+
"in" : "path",
|
|
18312
|
+
"name" : "organizationId",
|
|
18313
|
+
"required" : true,
|
|
18314
|
+
"schema" : {
|
|
18315
|
+
"type" : "string"
|
|
18316
|
+
}
|
|
18317
|
+
} ],
|
|
18318
|
+
"responses" : {
|
|
18319
|
+
"200" : {
|
|
18320
|
+
"content" : {
|
|
18321
|
+
"application/json" : {
|
|
18322
|
+
"schema" : {
|
|
18323
|
+
"$ref" : "#/components/schemas/ExecutionNodeOrganization"
|
|
18324
|
+
}
|
|
18325
|
+
}
|
|
18326
|
+
},
|
|
18327
|
+
"description" : "OK"
|
|
18328
|
+
},
|
|
18329
|
+
"401" : {
|
|
18330
|
+
"description" : "Unauthenticated"
|
|
18331
|
+
},
|
|
18332
|
+
"403" : {
|
|
18333
|
+
"description" : "Pas membre de l'organisation, ou réglage de l'organisation : NODE_ASSOCIATION_ADMINS_ONLY (réservé aux admins), NODE_ASSOCIATION_DISABLED (plus aucun nouveau nœud)."
|
|
18334
|
+
},
|
|
18335
|
+
"404" : {
|
|
18336
|
+
"description" : "Not found — or not a node of the caller"
|
|
18337
|
+
}
|
|
18338
|
+
},
|
|
18339
|
+
"summary" : "Associate my execution node with an organization",
|
|
18340
|
+
"tags" : [ "execution-nodes" ]
|
|
18341
|
+
}
|
|
18342
|
+
},
|
|
18343
|
+
"/organizations/{organizationId}/execution-nodes" : {
|
|
18344
|
+
"get" : {
|
|
18345
|
+
"description" : "Les nœuds Breign Mate associés à l'organisation, avec leur propriétaire, qui les a associés et les agents de l'organisation qui y tournent. Réservé aux admins de l'organisation.",
|
|
18346
|
+
"operationId" : "listOrganizationExecutionNodes",
|
|
18347
|
+
"parameters" : [ {
|
|
18348
|
+
"description" : "ID of the organization",
|
|
18349
|
+
"in" : "path",
|
|
18350
|
+
"name" : "organizationId",
|
|
18351
|
+
"required" : true,
|
|
18352
|
+
"schema" : {
|
|
18353
|
+
"type" : "string"
|
|
18354
|
+
}
|
|
18355
|
+
} ],
|
|
18356
|
+
"responses" : {
|
|
18357
|
+
"200" : {
|
|
18358
|
+
"content" : {
|
|
18359
|
+
"application/json" : {
|
|
18360
|
+
"schema" : {
|
|
18361
|
+
"items" : {
|
|
18362
|
+
"$ref" : "#/components/schemas/OrganizationExecutionNode"
|
|
18363
|
+
},
|
|
18364
|
+
"type" : "array"
|
|
18365
|
+
}
|
|
18366
|
+
}
|
|
18367
|
+
},
|
|
18368
|
+
"description" : "OK"
|
|
18369
|
+
},
|
|
18370
|
+
"401" : {
|
|
18371
|
+
"description" : "Unauthenticated"
|
|
18372
|
+
},
|
|
18373
|
+
"403" : {
|
|
18374
|
+
"description" : "Not an admin of the organization"
|
|
18375
|
+
}
|
|
18376
|
+
},
|
|
18377
|
+
"summary" : "List the execution nodes of an organization",
|
|
18378
|
+
"tags" : [ "execution-nodes" ]
|
|
18379
|
+
}
|
|
18380
|
+
},
|
|
18381
|
+
"/organizations/{organizationId}/execution-nodes/{nodeId}" : {
|
|
18382
|
+
"delete" : {
|
|
18383
|
+
"description" : "Retire le nœud de l'organisation : les agents de l'organisation qui y tournaient repassent sur le serveur Breign, et leurs tours ouverts sur ce nœud sont clos (`node_dissociated`) et annulés sur le poste. Le nœud reste associé à ses autres organisations. Réservé aux admins de l'organisation.",
|
|
18384
|
+
"operationId" : "removeOrganizationExecutionNode",
|
|
18385
|
+
"parameters" : [ {
|
|
18386
|
+
"description" : "ID of the organization",
|
|
18387
|
+
"in" : "path",
|
|
18388
|
+
"name" : "organizationId",
|
|
18389
|
+
"required" : true,
|
|
18390
|
+
"schema" : {
|
|
18391
|
+
"type" : "string"
|
|
18392
|
+
}
|
|
18393
|
+
}, {
|
|
18394
|
+
"description" : "ID of the Breign Mate execution node",
|
|
18395
|
+
"in" : "path",
|
|
18396
|
+
"name" : "nodeId",
|
|
18397
|
+
"required" : true,
|
|
18398
|
+
"schema" : {
|
|
18399
|
+
"format" : "uuid",
|
|
18400
|
+
"type" : "string"
|
|
18401
|
+
}
|
|
18402
|
+
} ],
|
|
18403
|
+
"responses" : {
|
|
18404
|
+
"204" : {
|
|
18405
|
+
"description" : "Removed"
|
|
18406
|
+
},
|
|
18407
|
+
"401" : {
|
|
18408
|
+
"description" : "Unauthenticated"
|
|
18409
|
+
},
|
|
18410
|
+
"403" : {
|
|
18411
|
+
"description" : "Not an admin of the organization"
|
|
18412
|
+
},
|
|
18413
|
+
"404" : {
|
|
18414
|
+
"description" : "Not associated with the organization"
|
|
18415
|
+
}
|
|
18416
|
+
},
|
|
18417
|
+
"summary" : "Remove an execution node from an organization",
|
|
18418
|
+
"tags" : [ "execution-nodes" ]
|
|
18419
|
+
}
|
|
18420
|
+
},
|
|
18421
|
+
"/organizations/{organizationId}/execution-node-settings" : {
|
|
18422
|
+
"get" : {
|
|
18423
|
+
"description" : "Qui peut associer un nœud à l'organisation. Réservé aux admins de l'organisation.",
|
|
18424
|
+
"operationId" : "getOrganizationExecutionNodeSettings",
|
|
18425
|
+
"parameters" : [ {
|
|
18426
|
+
"description" : "ID of the organization",
|
|
18427
|
+
"in" : "path",
|
|
18428
|
+
"name" : "organizationId",
|
|
18429
|
+
"required" : true,
|
|
18430
|
+
"schema" : {
|
|
18431
|
+
"type" : "string"
|
|
18432
|
+
}
|
|
18433
|
+
} ],
|
|
18434
|
+
"responses" : {
|
|
18435
|
+
"200" : {
|
|
18436
|
+
"content" : {
|
|
18437
|
+
"application/json" : {
|
|
18438
|
+
"schema" : {
|
|
18439
|
+
"$ref" : "#/components/schemas/ExecutionNodeSettings"
|
|
18440
|
+
}
|
|
18441
|
+
}
|
|
18442
|
+
},
|
|
18443
|
+
"description" : "OK"
|
|
18444
|
+
},
|
|
18445
|
+
"401" : {
|
|
18446
|
+
"description" : "Unauthenticated"
|
|
18447
|
+
},
|
|
18448
|
+
"403" : {
|
|
18449
|
+
"description" : "Not an admin of the organization"
|
|
18450
|
+
}
|
|
18451
|
+
},
|
|
18452
|
+
"summary" : "Get the execution node settings of an organization",
|
|
18453
|
+
"tags" : [ "execution-nodes" ]
|
|
18454
|
+
},
|
|
18455
|
+
"put" : {
|
|
18456
|
+
"description" : "Change qui peut associer un nœud à l'organisation. Réservé aux admins de l'organisation.",
|
|
18457
|
+
"operationId" : "updateOrganizationExecutionNodeSettings",
|
|
18458
|
+
"parameters" : [ {
|
|
18459
|
+
"description" : "ID of the organization",
|
|
18460
|
+
"in" : "path",
|
|
18461
|
+
"name" : "organizationId",
|
|
18462
|
+
"required" : true,
|
|
18463
|
+
"schema" : {
|
|
18464
|
+
"type" : "string"
|
|
18465
|
+
}
|
|
18466
|
+
} ],
|
|
18467
|
+
"requestBody" : {
|
|
18468
|
+
"content" : {
|
|
18469
|
+
"application/json" : {
|
|
18470
|
+
"schema" : {
|
|
18471
|
+
"$ref" : "#/components/schemas/ExecutionNodeSettings"
|
|
18472
|
+
}
|
|
18473
|
+
}
|
|
18474
|
+
},
|
|
18475
|
+
"required" : true
|
|
18476
|
+
},
|
|
18477
|
+
"responses" : {
|
|
18478
|
+
"200" : {
|
|
18479
|
+
"content" : {
|
|
18480
|
+
"application/json" : {
|
|
18481
|
+
"schema" : {
|
|
18482
|
+
"$ref" : "#/components/schemas/ExecutionNodeSettings"
|
|
18483
|
+
}
|
|
18484
|
+
}
|
|
18485
|
+
},
|
|
18486
|
+
"description" : "OK"
|
|
18487
|
+
},
|
|
18488
|
+
"400" : {
|
|
18489
|
+
"description" : "Unknown policy"
|
|
18490
|
+
},
|
|
18491
|
+
"401" : {
|
|
18492
|
+
"description" : "Unauthenticated"
|
|
18493
|
+
},
|
|
18494
|
+
"403" : {
|
|
18495
|
+
"description" : "Not an admin of the organization"
|
|
18496
|
+
}
|
|
18497
|
+
},
|
|
18498
|
+
"summary" : "Update the execution node settings of an organization",
|
|
18499
|
+
"tags" : [ "execution-nodes" ]
|
|
18500
|
+
}
|
|
18501
|
+
},
|
|
18261
18502
|
"/execution-nodes/{nodeId}/sessions/{sessionId}" : {
|
|
18262
18503
|
"get" : {
|
|
18263
18504
|
"operationId" : "getExecutionNodeSession",
|
|
@@ -29783,6 +30024,13 @@
|
|
|
29783
30024
|
"createdAt" : {
|
|
29784
30025
|
"type" : "string"
|
|
29785
30026
|
},
|
|
30027
|
+
"organizations" : {
|
|
30028
|
+
"description" : "Les organisations auxquelles le nœud est associé, par date d'association.",
|
|
30029
|
+
"items" : {
|
|
30030
|
+
"$ref" : "#/components/schemas/ExecutionNodeOrganization"
|
|
30031
|
+
},
|
|
30032
|
+
"type" : "array"
|
|
30033
|
+
},
|
|
29786
30034
|
"agents" : {
|
|
29787
30035
|
"items" : {
|
|
29788
30036
|
"$ref" : "#/components/schemas/ExecutionNodeAgent"
|
|
@@ -29790,7 +30038,7 @@
|
|
|
29790
30038
|
"type" : "array"
|
|
29791
30039
|
}
|
|
29792
30040
|
},
|
|
29793
|
-
"required" : [ "appVersion", "connected", "createdAt", "id", "lastSeenAt", "name", "os", "revokedAt", "runtimes", "workspaces" ],
|
|
30041
|
+
"required" : [ "appVersion", "connected", "createdAt", "id", "lastSeenAt", "name", "organizations", "os", "revokedAt", "runtimes", "workspaces" ],
|
|
29794
30042
|
"type" : "object"
|
|
29795
30043
|
},
|
|
29796
30044
|
"ExecutionNodeRuntime" : {
|
|
@@ -29819,6 +30067,24 @@
|
|
|
29819
30067
|
"required" : [ "alias", "label" ],
|
|
29820
30068
|
"type" : "object"
|
|
29821
30069
|
},
|
|
30070
|
+
"ExecutionNodeOrganization" : {
|
|
30071
|
+
"description" : "Une organisation à laquelle le nœud est associé : seuls les agents de ces organisations peuvent y tourner. Le propriétaire associe son nœud depuis Breign Mate, organisation par organisation.",
|
|
30072
|
+
"properties" : {
|
|
30073
|
+
"organizationId" : {
|
|
30074
|
+
"type" : "string"
|
|
30075
|
+
},
|
|
30076
|
+
"organizationName" : {
|
|
30077
|
+
"description" : "Nom de l'organisation, résolu par l'API. Null pour une organisation supprimée.",
|
|
30078
|
+
"nullable" : true,
|
|
30079
|
+
"type" : "string"
|
|
30080
|
+
},
|
|
30081
|
+
"associatedAt" : {
|
|
30082
|
+
"type" : "string"
|
|
30083
|
+
}
|
|
30084
|
+
},
|
|
30085
|
+
"required" : [ "associatedAt", "organizationId", "organizationName" ],
|
|
30086
|
+
"type" : "object"
|
|
30087
|
+
},
|
|
29822
30088
|
"ExecutionNodeAgent" : {
|
|
29823
30089
|
"description" : "Un agent rattaché au nœud, avec le runtime et le dossier où il tourne.",
|
|
29824
30090
|
"properties" : {
|
|
@@ -29901,7 +30167,7 @@
|
|
|
29901
30167
|
"$ref" : "#/components/schemas/NodeSessionState"
|
|
29902
30168
|
},
|
|
29903
30169
|
"reason" : {
|
|
29904
|
-
"description" : "Motif d'un tour interrompu ou en échec : cancelled, host_restart, unpaired, runtime_missing, runtime_failed, workdir_refused, invalid_task, node_unreachable, lost_on_node…",
|
|
30170
|
+
"description" : "Motif d'un tour interrompu ou en échec : cancelled, host_restart, unpaired, runtime_missing, runtime_failed, workdir_refused, invalid_task, node_unreachable, lost_on_node, node_dissociated (nœud retiré de l'organisation du tour)…",
|
|
29905
30171
|
"nullable" : true,
|
|
29906
30172
|
"type" : "string"
|
|
29907
30173
|
},
|
|
@@ -29983,6 +30249,94 @@
|
|
|
29983
30249
|
"required" : [ "label" ],
|
|
29984
30250
|
"type" : "object"
|
|
29985
30251
|
},
|
|
30252
|
+
"OrganizationExecutionNode" : {
|
|
30253
|
+
"description" : "Un nœud associé à l'organisation, vu par ses admins.",
|
|
30254
|
+
"properties" : {
|
|
30255
|
+
"id" : {
|
|
30256
|
+
"format" : "uuid",
|
|
30257
|
+
"type" : "string"
|
|
30258
|
+
},
|
|
30259
|
+
"name" : {
|
|
30260
|
+
"type" : "string"
|
|
30261
|
+
},
|
|
30262
|
+
"os" : {
|
|
30263
|
+
"enum" : [ "macos", "windows", "linux" ],
|
|
30264
|
+
"type" : "string"
|
|
30265
|
+
},
|
|
30266
|
+
"appVersion" : {
|
|
30267
|
+
"type" : "string"
|
|
30268
|
+
},
|
|
30269
|
+
"connected" : {
|
|
30270
|
+
"type" : "boolean"
|
|
30271
|
+
},
|
|
30272
|
+
"lastSeenAt" : {
|
|
30273
|
+
"nullable" : true,
|
|
30274
|
+
"type" : "string"
|
|
30275
|
+
},
|
|
30276
|
+
"owner" : {
|
|
30277
|
+
"$ref" : "#/components/schemas/OrganizationExecutionNodeUser"
|
|
30278
|
+
},
|
|
30279
|
+
"associatedBy" : {
|
|
30280
|
+
"$ref" : "#/components/schemas/OrganizationExecutionNodeUser"
|
|
30281
|
+
},
|
|
30282
|
+
"associatedAt" : {
|
|
30283
|
+
"type" : "string"
|
|
30284
|
+
},
|
|
30285
|
+
"agents" : {
|
|
30286
|
+
"description" : "Les agents de cette organisation rattachés au nœud ; ceux des autres n'y figurent pas.",
|
|
30287
|
+
"items" : {
|
|
30288
|
+
"$ref" : "#/components/schemas/OrganizationExecutionNodeAgent"
|
|
30289
|
+
},
|
|
30290
|
+
"type" : "array"
|
|
30291
|
+
}
|
|
30292
|
+
},
|
|
30293
|
+
"required" : [ "agents", "appVersion", "associatedAt", "associatedBy", "connected", "id", "lastSeenAt", "name", "os", "owner" ],
|
|
30294
|
+
"type" : "object"
|
|
30295
|
+
},
|
|
30296
|
+
"OrganizationExecutionNodeUser" : {
|
|
30297
|
+
"properties" : {
|
|
30298
|
+
"id" : {
|
|
30299
|
+
"type" : "string"
|
|
30300
|
+
},
|
|
30301
|
+
"email" : {
|
|
30302
|
+
"nullable" : true,
|
|
30303
|
+
"type" : "string"
|
|
30304
|
+
}
|
|
30305
|
+
},
|
|
30306
|
+
"required" : [ "email", "id" ],
|
|
30307
|
+
"type" : "object"
|
|
30308
|
+
},
|
|
30309
|
+
"OrganizationExecutionNodeAgent" : {
|
|
30310
|
+
"properties" : {
|
|
30311
|
+
"agentId" : {
|
|
30312
|
+
"type" : "string"
|
|
30313
|
+
},
|
|
30314
|
+
"agentName" : {
|
|
30315
|
+
"nullable" : true,
|
|
30316
|
+
"type" : "string"
|
|
30317
|
+
},
|
|
30318
|
+
"runtime" : {
|
|
30319
|
+
"enum" : [ "claude", "opencode" ],
|
|
30320
|
+
"type" : "string"
|
|
30321
|
+
}
|
|
30322
|
+
},
|
|
30323
|
+
"required" : [ "agentId", "agentName", "runtime" ],
|
|
30324
|
+
"type" : "object"
|
|
30325
|
+
},
|
|
30326
|
+
"ExecutionNodeSettings" : {
|
|
30327
|
+
"properties" : {
|
|
30328
|
+
"associationPolicy" : {
|
|
30329
|
+
"$ref" : "#/components/schemas/NodeAssociationPolicy"
|
|
30330
|
+
}
|
|
30331
|
+
},
|
|
30332
|
+
"required" : [ "associationPolicy" ],
|
|
30333
|
+
"type" : "object"
|
|
30334
|
+
},
|
|
30335
|
+
"NodeAssociationPolicy" : {
|
|
30336
|
+
"description" : "Qui peut associer un nœud à l'organisation : tous ses membres, ses admins seulement, ou personne. Les nœuds déjà associés ne sont pas touchés par un changement.",
|
|
30337
|
+
"enum" : [ "members", "admins", "none" ],
|
|
30338
|
+
"type" : "string"
|
|
30339
|
+
},
|
|
29986
30340
|
"NodeSessionDetail" : {
|
|
29987
30341
|
"allOf" : [ {
|
|
29988
30342
|
"$ref" : "#/components/schemas/NodeSession"
|