@breign/client 1.0.212 → 1.0.214

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.
Files changed (62) hide show
  1. package/README.md +1 -5
  2. package/dist/apis/GitApi.d.ts +166 -0
  3. package/dist/apis/GitApi.js +406 -0
  4. package/dist/apis/index.d.ts +1 -0
  5. package/dist/apis/index.js +1 -0
  6. package/dist/models/AgentExecutionGroupChoiceUio.d.ts +6 -0
  7. package/dist/models/AgentExecutionGroupChoiceUio.js +2 -0
  8. package/dist/models/AgentExecutionNodeChoiceUio.d.ts +6 -0
  9. package/dist/models/AgentExecutionNodeChoiceUio.js +2 -0
  10. package/dist/models/AgentExecutionUio.d.ts +7 -0
  11. package/dist/models/AgentExecutionUio.js +3 -0
  12. package/dist/models/AgentPatchUio.d.ts +7 -0
  13. package/dist/models/AgentPatchUio.js +3 -0
  14. package/dist/models/AgentSubtaskConfigurationUio.d.ts +39 -0
  15. package/dist/models/AgentSubtaskConfigurationUio.js +51 -0
  16. package/dist/models/AgentSubtaskModelUio.d.ts +38 -0
  17. package/dist/models/AgentSubtaskModelUio.js +54 -0
  18. package/dist/models/AgentUio.d.ts +7 -0
  19. package/dist/models/AgentUio.js +3 -0
  20. package/dist/models/AppUio.d.ts +3 -3
  21. package/dist/models/AppUio.js +2 -2
  22. package/dist/models/AppUpdateRequestUio.d.ts +1 -1
  23. package/dist/models/GitBotConnectionCreateUio.d.ts +38 -0
  24. package/dist/models/GitBotConnectionCreateUio.js +52 -0
  25. package/dist/models/GitConnectionKindUio.d.ts +26 -0
  26. package/dist/models/GitConnectionKindUio.js +52 -0
  27. package/dist/models/GitConnectionUio.d.ts +115 -0
  28. package/dist/models/GitConnectionUio.js +101 -0
  29. package/dist/models/GitGithubAppConnectionCreateUio.d.ts +56 -0
  30. package/dist/models/GitGithubAppConnectionCreateUio.js +62 -0
  31. package/dist/models/GitOAuthAppCreateUio.d.ts +51 -0
  32. package/dist/models/GitOAuthAppCreateUio.js +63 -0
  33. package/dist/models/GitOAuthAppUio.d.ts +81 -0
  34. package/dist/models/GitOAuthAppUio.js +77 -0
  35. package/dist/models/GitOAuthAppUpdateUio.d.ts +38 -0
  36. package/dist/models/GitOAuthAppUpdateUio.js +50 -0
  37. package/dist/models/GitOAuthAuthorizeRequestUio.d.ts +32 -0
  38. package/dist/models/GitOAuthAuthorizeRequestUio.js +48 -0
  39. package/dist/models/GitOAuthAuthorizeResponseUio.d.ts +32 -0
  40. package/dist/models/GitOAuthAuthorizeResponseUio.js +50 -0
  41. package/dist/models/GitOAuthCompleteRequestUio.d.ts +38 -0
  42. package/dist/models/GitOAuthCompleteRequestUio.js +54 -0
  43. package/dist/models/GitOAuthCompleteResponseUio.d.ts +39 -0
  44. package/dist/models/GitOAuthCompleteResponseUio.js +55 -0
  45. package/dist/models/GitOAuthConfigUio.d.ts +32 -0
  46. package/dist/models/GitOAuthConfigUio.js +50 -0
  47. package/dist/models/GitProviderUio.d.ts +25 -0
  48. package/dist/models/GitProviderUio.js +51 -0
  49. package/dist/models/NodeAgentGitConfigAuthorUio.d.ts +38 -0
  50. package/dist/models/NodeAgentGitConfigAuthorUio.js +54 -0
  51. package/dist/models/NodeAgentGitConfigUio.d.ts +46 -0
  52. package/dist/models/NodeAgentGitConfigUio.js +56 -0
  53. package/dist/models/NodeGitRepositoryConnectionUio.d.ts +46 -0
  54. package/dist/models/NodeGitRepositoryConnectionUio.js +60 -0
  55. package/dist/models/NodeGitRepositoryUio.d.ts +79 -0
  56. package/dist/models/NodeGitRepositoryUio.js +82 -0
  57. package/dist/models/SetAgentExecutionRequestUio.d.ts +8 -1
  58. package/dist/models/SetAgentExecutionRequestUio.js +3 -0
  59. package/dist/models/index.d.ts +19 -0
  60. package/dist/models/index.js +19 -0
  61. package/dist/openapi.json +824 -2
  62. package/package.json +1 -1
package/dist/openapi.json CHANGED
@@ -99,6 +99,9 @@
99
99
  }, {
100
100
  "description" : "Groups of execution nodes of an organization, like runners",
101
101
  "name" : "node-groups"
102
+ }, {
103
+ "description" : "Git access of the agents that run on execution nodes (forges, connections)",
104
+ "name" : "git"
102
105
  }, {
103
106
  "description" : "Actions and mentions waiting for the current user",
104
107
  "name" : "inbox"
@@ -23409,6 +23412,457 @@
23409
23412
  "tags" : [ "scheduledTasks" ]
23410
23413
  }
23411
23414
  },
23415
+ "/organizations/{organizationId}/git/oauth-config" : {
23416
+ "get" : {
23417
+ "description" : "L'adresse de retour configurée côté serveur (`git.oauthRedirectUrl`), à déclarer dans l'application OAuth de chaque forge.",
23418
+ "operationId" : "getGitOAuthConfig",
23419
+ "parameters" : [ {
23420
+ "description" : "ID of the organization",
23421
+ "in" : "path",
23422
+ "name" : "organizationId",
23423
+ "required" : true,
23424
+ "schema" : {
23425
+ "type" : "string"
23426
+ }
23427
+ } ],
23428
+ "responses" : {
23429
+ "200" : {
23430
+ "content" : {
23431
+ "application/json" : {
23432
+ "schema" : {
23433
+ "$ref" : "#/components/schemas/GitOAuthConfig"
23434
+ }
23435
+ }
23436
+ },
23437
+ "description" : "OK"
23438
+ },
23439
+ "403" : {
23440
+ "description" : "Not a member of the organization"
23441
+ }
23442
+ },
23443
+ "summary" : "Get the OAuth redirect address of the Git forges",
23444
+ "tags" : [ "git" ]
23445
+ }
23446
+ },
23447
+ "/organizations/{organizationId}/git/oauth-apps" : {
23448
+ "get" : {
23449
+ "description" : "Les forges où les membres peuvent connecter leur compte Git. L'identifiant de l'application n'est rendu qu'aux admins ; le secret jamais.",
23450
+ "operationId" : "listGitOAuthApps",
23451
+ "parameters" : [ {
23452
+ "description" : "ID of the organization",
23453
+ "in" : "path",
23454
+ "name" : "organizationId",
23455
+ "required" : true,
23456
+ "schema" : {
23457
+ "type" : "string"
23458
+ }
23459
+ } ],
23460
+ "responses" : {
23461
+ "200" : {
23462
+ "content" : {
23463
+ "application/json" : {
23464
+ "schema" : {
23465
+ "items" : {
23466
+ "$ref" : "#/components/schemas/GitOAuthApp"
23467
+ },
23468
+ "type" : "array"
23469
+ }
23470
+ }
23471
+ },
23472
+ "description" : "OK"
23473
+ },
23474
+ "403" : {
23475
+ "description" : "Not a member of the organization"
23476
+ }
23477
+ },
23478
+ "summary" : "List the OAuth applications of the Git forges",
23479
+ "tags" : [ "git" ]
23480
+ },
23481
+ "post" : {
23482
+ "description" : "Réservé aux admins. Une application par forge et par organisation.",
23483
+ "operationId" : "createGitOAuthApp",
23484
+ "parameters" : [ {
23485
+ "description" : "ID of the organization",
23486
+ "in" : "path",
23487
+ "name" : "organizationId",
23488
+ "required" : true,
23489
+ "schema" : {
23490
+ "type" : "string"
23491
+ }
23492
+ } ],
23493
+ "requestBody" : {
23494
+ "content" : {
23495
+ "application/json" : {
23496
+ "schema" : {
23497
+ "$ref" : "#/components/schemas/GitOAuthAppCreate"
23498
+ }
23499
+ }
23500
+ },
23501
+ "required" : true
23502
+ },
23503
+ "responses" : {
23504
+ "201" : {
23505
+ "content" : {
23506
+ "application/json" : {
23507
+ "schema" : {
23508
+ "$ref" : "#/components/schemas/GitOAuthApp"
23509
+ }
23510
+ }
23511
+ },
23512
+ "description" : "Created — `redirectUri` is the URL to declare in the forge application"
23513
+ },
23514
+ "400" : {
23515
+ "description" : "Invalid forge URL or credentials"
23516
+ },
23517
+ "403" : {
23518
+ "description" : "Not an admin of the organization"
23519
+ },
23520
+ "409" : {
23521
+ "description" : "An application already exists for this forge"
23522
+ }
23523
+ },
23524
+ "summary" : "Declare the OAuth application of a Git forge",
23525
+ "tags" : [ "git" ]
23526
+ }
23527
+ },
23528
+ "/organizations/{organizationId}/git/oauth-apps/{appId}" : {
23529
+ "delete" : {
23530
+ "description" : "Supprime aussi les comptes que les membres y ont connectés.",
23531
+ "operationId" : "deleteGitOAuthApp",
23532
+ "parameters" : [ {
23533
+ "description" : "ID of the organization",
23534
+ "in" : "path",
23535
+ "name" : "organizationId",
23536
+ "required" : true,
23537
+ "schema" : {
23538
+ "type" : "string"
23539
+ }
23540
+ }, {
23541
+ "in" : "path",
23542
+ "name" : "appId",
23543
+ "required" : true,
23544
+ "schema" : {
23545
+ "format" : "uuid",
23546
+ "type" : "string"
23547
+ }
23548
+ } ],
23549
+ "responses" : {
23550
+ "204" : {
23551
+ "description" : "Deleted"
23552
+ },
23553
+ "403" : {
23554
+ "description" : "Not an admin of the organization"
23555
+ },
23556
+ "404" : {
23557
+ "description" : "Application not found"
23558
+ }
23559
+ },
23560
+ "summary" : "Delete the OAuth application of a Git forge",
23561
+ "tags" : [ "git" ]
23562
+ },
23563
+ "patch" : {
23564
+ "operationId" : "updateGitOAuthApp",
23565
+ "parameters" : [ {
23566
+ "description" : "ID of the organization",
23567
+ "in" : "path",
23568
+ "name" : "organizationId",
23569
+ "required" : true,
23570
+ "schema" : {
23571
+ "type" : "string"
23572
+ }
23573
+ }, {
23574
+ "in" : "path",
23575
+ "name" : "appId",
23576
+ "required" : true,
23577
+ "schema" : {
23578
+ "format" : "uuid",
23579
+ "type" : "string"
23580
+ }
23581
+ } ],
23582
+ "requestBody" : {
23583
+ "content" : {
23584
+ "application/json" : {
23585
+ "schema" : {
23586
+ "$ref" : "#/components/schemas/GitOAuthAppUpdate"
23587
+ }
23588
+ }
23589
+ },
23590
+ "required" : true
23591
+ },
23592
+ "responses" : {
23593
+ "200" : {
23594
+ "content" : {
23595
+ "application/json" : {
23596
+ "schema" : {
23597
+ "$ref" : "#/components/schemas/GitOAuthApp"
23598
+ }
23599
+ }
23600
+ },
23601
+ "description" : "OK"
23602
+ },
23603
+ "403" : {
23604
+ "description" : "Not an admin of the organization"
23605
+ },
23606
+ "404" : {
23607
+ "description" : "Application not found"
23608
+ }
23609
+ },
23610
+ "summary" : "Update the OAuth application of a Git forge",
23611
+ "tags" : [ "git" ]
23612
+ }
23613
+ },
23614
+ "/organizations/{organizationId}/git/oauth-apps/{appId}/authorize" : {
23615
+ "post" : {
23616
+ "description" : "Rend l'adresse de la forge où envoyer le membre (OAuth avec PKCE). La forge le renvoie vers Breign App, qui relaie le code à `POST /git/oauth/complete`.",
23617
+ "operationId" : "authorizeGitOAuthApp",
23618
+ "parameters" : [ {
23619
+ "description" : "ID of the organization",
23620
+ "in" : "path",
23621
+ "name" : "organizationId",
23622
+ "required" : true,
23623
+ "schema" : {
23624
+ "type" : "string"
23625
+ }
23626
+ }, {
23627
+ "in" : "path",
23628
+ "name" : "appId",
23629
+ "required" : true,
23630
+ "schema" : {
23631
+ "format" : "uuid",
23632
+ "type" : "string"
23633
+ }
23634
+ } ],
23635
+ "requestBody" : {
23636
+ "content" : {
23637
+ "application/json" : {
23638
+ "schema" : {
23639
+ "$ref" : "#/components/schemas/GitOAuthAuthorizeRequest"
23640
+ }
23641
+ }
23642
+ },
23643
+ "required" : false
23644
+ },
23645
+ "responses" : {
23646
+ "200" : {
23647
+ "content" : {
23648
+ "application/json" : {
23649
+ "schema" : {
23650
+ "$ref" : "#/components/schemas/GitOAuthAuthorizeResponse"
23651
+ }
23652
+ }
23653
+ },
23654
+ "description" : "OK"
23655
+ },
23656
+ "403" : {
23657
+ "description" : "Not a member of the organization"
23658
+ },
23659
+ "404" : {
23660
+ "description" : "Application not found"
23661
+ },
23662
+ "503" : {
23663
+ "description" : "OAuth redirect URL not configured on the server"
23664
+ }
23665
+ },
23666
+ "summary" : "Start connecting the current member's Git account",
23667
+ "tags" : [ "git" ]
23668
+ }
23669
+ },
23670
+ "/git/oauth/complete" : {
23671
+ "post" : {
23672
+ "description" : "Relaie le retour de la forge (`code`, `state`) : la connexion du membre à cette forge est créée, ou remplacée.",
23673
+ "operationId" : "completeGitOAuth",
23674
+ "requestBody" : {
23675
+ "content" : {
23676
+ "application/json" : {
23677
+ "schema" : {
23678
+ "$ref" : "#/components/schemas/GitOAuthCompleteRequest"
23679
+ }
23680
+ }
23681
+ },
23682
+ "required" : true
23683
+ },
23684
+ "responses" : {
23685
+ "200" : {
23686
+ "content" : {
23687
+ "application/json" : {
23688
+ "schema" : {
23689
+ "$ref" : "#/components/schemas/GitOAuthCompleteResponse"
23690
+ }
23691
+ }
23692
+ },
23693
+ "description" : "OK"
23694
+ },
23695
+ "400" : {
23696
+ "description" : "Invalid or expired link"
23697
+ },
23698
+ "403" : {
23699
+ "description" : "Started by another user"
23700
+ }
23701
+ },
23702
+ "summary" : "Finish connecting the current member's Git account",
23703
+ "tags" : [ "git" ]
23704
+ }
23705
+ },
23706
+ "/organizations/{organizationId}/git/connections" : {
23707
+ "get" : {
23708
+ "description" : "Pour un admin, toutes les connexions de l'organisation ; pour un membre, les siennes et les connexions d'organisation (à choisir pour un dépôt).",
23709
+ "operationId" : "listGitConnections",
23710
+ "parameters" : [ {
23711
+ "description" : "ID of the organization",
23712
+ "in" : "path",
23713
+ "name" : "organizationId",
23714
+ "required" : true,
23715
+ "schema" : {
23716
+ "type" : "string"
23717
+ }
23718
+ } ],
23719
+ "responses" : {
23720
+ "200" : {
23721
+ "content" : {
23722
+ "application/json" : {
23723
+ "schema" : {
23724
+ "items" : {
23725
+ "$ref" : "#/components/schemas/GitConnection"
23726
+ },
23727
+ "type" : "array"
23728
+ }
23729
+ }
23730
+ },
23731
+ "description" : "OK"
23732
+ },
23733
+ "403" : {
23734
+ "description" : "Not a member of the organization"
23735
+ }
23736
+ },
23737
+ "summary" : "List the Git connections",
23738
+ "tags" : [ "git" ]
23739
+ }
23740
+ },
23741
+ "/organizations/{organizationId}/git/connections/gitlab-bot" : {
23742
+ "post" : {
23743
+ "operationId" : "createGitBotConnection",
23744
+ "parameters" : [ {
23745
+ "description" : "ID of the organization",
23746
+ "in" : "path",
23747
+ "name" : "organizationId",
23748
+ "required" : true,
23749
+ "schema" : {
23750
+ "type" : "string"
23751
+ }
23752
+ } ],
23753
+ "requestBody" : {
23754
+ "content" : {
23755
+ "application/json" : {
23756
+ "schema" : {
23757
+ "$ref" : "#/components/schemas/GitBotConnectionCreate"
23758
+ }
23759
+ }
23760
+ },
23761
+ "required" : true
23762
+ },
23763
+ "responses" : {
23764
+ "201" : {
23765
+ "content" : {
23766
+ "application/json" : {
23767
+ "schema" : {
23768
+ "$ref" : "#/components/schemas/GitConnection"
23769
+ }
23770
+ }
23771
+ },
23772
+ "description" : "Created (or the existing connection of this bot account)"
23773
+ },
23774
+ "403" : {
23775
+ "description" : "Not an admin of the organization"
23776
+ },
23777
+ "404" : {
23778
+ "description" : "Bot account not found"
23779
+ }
23780
+ },
23781
+ "summary" : "Use a GitLab bot account as a Git connection of the organization",
23782
+ "tags" : [ "git" ]
23783
+ }
23784
+ },
23785
+ "/organizations/{organizationId}/git/connections/github-app" : {
23786
+ "post" : {
23787
+ "description" : "Réservé aux admins. L'installation est vérifiée avec la clé de l'App ; les agents reçoivent ensuite des jetons d'installation restreints au dépôt sur lequel ils travaillent.",
23788
+ "operationId" : "createGitGithubAppConnection",
23789
+ "parameters" : [ {
23790
+ "description" : "ID of the organization",
23791
+ "in" : "path",
23792
+ "name" : "organizationId",
23793
+ "required" : true,
23794
+ "schema" : {
23795
+ "type" : "string"
23796
+ }
23797
+ } ],
23798
+ "requestBody" : {
23799
+ "content" : {
23800
+ "application/json" : {
23801
+ "schema" : {
23802
+ "$ref" : "#/components/schemas/GitGithubAppConnectionCreate"
23803
+ }
23804
+ }
23805
+ },
23806
+ "required" : true
23807
+ },
23808
+ "responses" : {
23809
+ "201" : {
23810
+ "content" : {
23811
+ "application/json" : {
23812
+ "schema" : {
23813
+ "$ref" : "#/components/schemas/GitConnection"
23814
+ }
23815
+ }
23816
+ },
23817
+ "description" : "Created"
23818
+ },
23819
+ "400" : {
23820
+ "description" : "Invalid App ID"
23821
+ },
23822
+ "403" : {
23823
+ "description" : "Not an admin of the organization"
23824
+ }
23825
+ },
23826
+ "summary" : "Use an installed GitHub App as a Git connection of the organization",
23827
+ "tags" : [ "git" ]
23828
+ }
23829
+ },
23830
+ "/organizations/{organizationId}/git/connections/{connectionId}" : {
23831
+ "delete" : {
23832
+ "description" : "Un membre retire la sienne ; un admin, n'importe laquelle.",
23833
+ "operationId" : "deleteGitConnection",
23834
+ "parameters" : [ {
23835
+ "description" : "ID of the organization",
23836
+ "in" : "path",
23837
+ "name" : "organizationId",
23838
+ "required" : true,
23839
+ "schema" : {
23840
+ "type" : "string"
23841
+ }
23842
+ }, {
23843
+ "in" : "path",
23844
+ "name" : "connectionId",
23845
+ "required" : true,
23846
+ "schema" : {
23847
+ "format" : "uuid",
23848
+ "type" : "string"
23849
+ }
23850
+ } ],
23851
+ "responses" : {
23852
+ "204" : {
23853
+ "description" : "Deleted"
23854
+ },
23855
+ "403" : {
23856
+ "description" : "Not allowed to delete this connection"
23857
+ },
23858
+ "404" : {
23859
+ "description" : "Connection not found"
23860
+ }
23861
+ },
23862
+ "summary" : "Delete a Git connection",
23863
+ "tags" : [ "git" ]
23864
+ }
23865
+ },
23412
23866
  "/organizations/{organizationId}/integrations/gitlab" : {
23413
23867
  "get" : {
23414
23868
  "operationId" : "listGitlabIntegrations",
@@ -25520,6 +25974,12 @@
25520
25974
  } ],
25521
25975
  "nullable" : true
25522
25976
  },
25977
+ "subtaskConfiguration" : {
25978
+ "allOf" : [ {
25979
+ "$ref" : "#/components/schemas/AgentSubtaskConfiguration"
25980
+ } ],
25981
+ "nullable" : true
25982
+ },
25523
25983
  "mcpExposureConfiguration" : {
25524
25984
  "allOf" : [ {
25525
25985
  "$ref" : "#/components/schemas/AgentMcpExposureConfiguration"
@@ -25768,6 +26228,37 @@
25768
26228
  },
25769
26229
  "type" : "object"
25770
26230
  },
26231
+ "AgentSubtaskConfiguration" : {
26232
+ "description" : "Per-agent activation of subtasks: the agent may hand a self-contained piece of work to a fresh conversation of its own, optionally on another model. Opt-in.",
26233
+ "properties" : {
26234
+ "enabled" : {
26235
+ "description" : "Enables the Subtask_run tool for this agent.",
26236
+ "type" : "boolean"
26237
+ },
26238
+ "allowedModels" : {
26239
+ "description" : "Models a subtask may run on, besides the agent's own. Each must be available to the organisation, enforced server-side. Empty: the agent's own model only.",
26240
+ "items" : {
26241
+ "$ref" : "#/components/schemas/AgentSubtaskModel"
26242
+ },
26243
+ "maxItems" : 20,
26244
+ "type" : "array"
26245
+ }
26246
+ },
26247
+ "type" : "object"
26248
+ },
26249
+ "AgentSubtaskModel" : {
26250
+ "properties" : {
26251
+ "providerId" : {
26252
+ "type" : "string"
26253
+ },
26254
+ "modelId" : {
26255
+ "description" : "The provider's model identifier (`modelId`), as shown in the metrics.",
26256
+ "type" : "string"
26257
+ }
26258
+ },
26259
+ "required" : [ "modelId", "providerId" ],
26260
+ "type" : "object"
26261
+ },
25771
26262
  "AgentMcpExposureConfiguration" : {
25772
26263
  "description" : "Reachability from local agents (Claude Code, Pi, Hermes…) through Breign's MCP server. Opt-in: an agent nobody exposed is invisible to list_agents and refuses ask_agent.",
25773
26264
  "properties" : {
@@ -26017,6 +26508,12 @@
26017
26508
  } ],
26018
26509
  "nullable" : true
26019
26510
  },
26511
+ "subtaskConfiguration" : {
26512
+ "allOf" : [ {
26513
+ "$ref" : "#/components/schemas/AgentSubtaskConfiguration"
26514
+ } ],
26515
+ "nullable" : true
26516
+ },
26020
26517
  "mcpExposureConfiguration" : {
26021
26518
  "allOf" : [ {
26022
26519
  "$ref" : "#/components/schemas/AgentMcpExposureConfiguration"
@@ -28483,8 +28980,9 @@
28483
28980
  "voiceProvider" : {
28484
28981
  "type" : "string"
28485
28982
  },
28486
- "voiceProviderApiKey" : {
28487
- "type" : "string"
28983
+ "hasVoiceProviderApiKey" : {
28984
+ "description" : "Whether a voice provider API key is saved for this app. The key itself is write-only and never returned.",
28985
+ "type" : "boolean"
28488
28986
  },
28489
28987
  "voiceProviderOrganization" : {
28490
28988
  "type" : "string"
@@ -28760,6 +29258,7 @@
28760
29258
  "type" : "string"
28761
29259
  },
28762
29260
  "voiceProviderApiKey" : {
29261
+ "description" : "Write-only. Omit to keep the saved key, null to remove it (the platform key is then used).",
28763
29262
  "nullable" : true,
28764
29263
  "type" : "string"
28765
29264
  },
@@ -39068,6 +39567,13 @@
39068
39567
  "autoResume" : {
39069
39568
  "type" : "boolean"
39070
39569
  },
39570
+ "git" : {
39571
+ "allOf" : [ {
39572
+ "$ref" : "#/components/schemas/NodeAgentGitConfig"
39573
+ } ],
39574
+ "description" : "Modes node et group — les dépôts Git de l'agent ; nul s'il travaille dans un dossier du nœud.",
39575
+ "nullable" : true
39576
+ },
39071
39577
  "availableNodes" : {
39072
39578
  "items" : {
39073
39579
  "$ref" : "#/components/schemas/AgentExecutionNodeChoice"
@@ -39110,6 +39616,10 @@
39110
39616
  "$ref" : "#/components/schemas/ExecutionNodeWorkspace"
39111
39617
  },
39112
39618
  "type" : "array"
39619
+ },
39620
+ "git" : {
39621
+ "description" : "Le nœud sait cloner des dépôts Git (contrat v3).",
39622
+ "type" : "boolean"
39113
39623
  }
39114
39624
  },
39115
39625
  "required" : [ "connected", "id", "name", "runtimes", "workspaces" ],
@@ -39142,10 +39652,18 @@
39142
39652
  "type" : "string"
39143
39653
  },
39144
39654
  "workspaceAlias" : {
39655
+ "description" : "Sans `git`, le dossier du nœud ; ignoré avec `git`.",
39145
39656
  "type" : "string"
39146
39657
  },
39147
39658
  "autoResume" : {
39148
39659
  "type" : "boolean"
39660
+ },
39661
+ "git" : {
39662
+ "allOf" : [ {
39663
+ "$ref" : "#/components/schemas/NodeAgentGitConfig"
39664
+ } ],
39665
+ "description" : "Les dépôts Git de l'agent, clonés par le nœud (nœuds v3) ; remplace `workspaceAlias`.",
39666
+ "nullable" : true
39149
39667
  }
39150
39668
  },
39151
39669
  "required" : [ "mode" ],
@@ -39662,6 +40180,225 @@
39662
40180
  "required" : [ "error", "eventStatus", "kind", "url" ],
39663
40181
  "type" : "object"
39664
40182
  },
40183
+ "GitOAuthConfig" : {
40184
+ "properties" : {
40185
+ "redirectUri" : {
40186
+ "description" : "L'adresse de retour que l'API envoie à la forge ; à déclarer dans son application OAuth.",
40187
+ "nullable" : true,
40188
+ "type" : "string"
40189
+ }
40190
+ },
40191
+ "required" : [ "redirectUri" ],
40192
+ "type" : "object"
40193
+ },
40194
+ "GitOAuthApp" : {
40195
+ "description" : "L'application OAuth d'une forge ; le secret ne sort jamais, l'identifiant seulement pour les admins.",
40196
+ "properties" : {
40197
+ "id" : {
40198
+ "format" : "uuid",
40199
+ "type" : "string"
40200
+ },
40201
+ "organizationId" : {
40202
+ "type" : "string"
40203
+ },
40204
+ "provider" : {
40205
+ "$ref" : "#/components/schemas/GitProvider"
40206
+ },
40207
+ "baseUrl" : {
40208
+ "type" : "string"
40209
+ },
40210
+ "clientId" : {
40211
+ "type" : "string"
40212
+ },
40213
+ "redirectUri" : {
40214
+ "description" : "À la création — l'URL de redirection à déclarer dans l'application de la forge.",
40215
+ "nullable" : true,
40216
+ "type" : "string"
40217
+ },
40218
+ "createdByUserId" : {
40219
+ "type" : "string"
40220
+ },
40221
+ "createdAt" : {
40222
+ "type" : "string"
40223
+ },
40224
+ "updatedAt" : {
40225
+ "type" : "string"
40226
+ }
40227
+ },
40228
+ "required" : [ "baseUrl", "createdAt", "id", "organizationId", "provider", "updatedAt" ],
40229
+ "type" : "object"
40230
+ },
40231
+ "GitProvider" : {
40232
+ "enum" : [ "gitlab", "github" ],
40233
+ "type" : "string"
40234
+ },
40235
+ "GitOAuthAppCreate" : {
40236
+ "properties" : {
40237
+ "provider" : {
40238
+ "$ref" : "#/components/schemas/GitProvider"
40239
+ },
40240
+ "baseUrl" : {
40241
+ "description" : "Origine HTTPS de la forge (https://gitlab.exemple.com).",
40242
+ "type" : "string"
40243
+ },
40244
+ "clientId" : {
40245
+ "type" : "string"
40246
+ },
40247
+ "clientSecret" : {
40248
+ "type" : "string"
40249
+ }
40250
+ },
40251
+ "required" : [ "baseUrl", "clientId", "clientSecret", "provider" ],
40252
+ "type" : "object"
40253
+ },
40254
+ "GitOAuthAppUpdate" : {
40255
+ "properties" : {
40256
+ "clientId" : {
40257
+ "type" : "string"
40258
+ },
40259
+ "clientSecret" : {
40260
+ "type" : "string"
40261
+ }
40262
+ },
40263
+ "type" : "object"
40264
+ },
40265
+ "GitOAuthAuthorizeRequest" : {
40266
+ "properties" : {
40267
+ "returnTo" : {
40268
+ "description" : "Chemin de Breign App où revenir après la connexion (commence par `/`).",
40269
+ "type" : "string"
40270
+ }
40271
+ },
40272
+ "type" : "object"
40273
+ },
40274
+ "GitOAuthAuthorizeResponse" : {
40275
+ "properties" : {
40276
+ "url" : {
40277
+ "description" : "L'adresse de la forge où envoyer le membre.",
40278
+ "type" : "string"
40279
+ }
40280
+ },
40281
+ "required" : [ "url" ],
40282
+ "type" : "object"
40283
+ },
40284
+ "GitOAuthCompleteRequest" : {
40285
+ "properties" : {
40286
+ "code" : {
40287
+ "type" : "string"
40288
+ },
40289
+ "state" : {
40290
+ "type" : "string"
40291
+ }
40292
+ },
40293
+ "required" : [ "code", "state" ],
40294
+ "type" : "object"
40295
+ },
40296
+ "GitOAuthCompleteResponse" : {
40297
+ "properties" : {
40298
+ "connection" : {
40299
+ "$ref" : "#/components/schemas/GitConnection"
40300
+ },
40301
+ "returnTo" : {
40302
+ "nullable" : true,
40303
+ "type" : "string"
40304
+ }
40305
+ },
40306
+ "required" : [ "connection", "returnTo" ],
40307
+ "type" : "object"
40308
+ },
40309
+ "GitConnection" : {
40310
+ "description" : "Une connexion Git ; ses jetons ne sortent jamais.",
40311
+ "properties" : {
40312
+ "id" : {
40313
+ "format" : "uuid",
40314
+ "type" : "string"
40315
+ },
40316
+ "organizationId" : {
40317
+ "type" : "string"
40318
+ },
40319
+ "provider" : {
40320
+ "$ref" : "#/components/schemas/GitProvider"
40321
+ },
40322
+ "kind" : {
40323
+ "$ref" : "#/components/schemas/GitConnectionKind"
40324
+ },
40325
+ "baseUrl" : {
40326
+ "type" : "string"
40327
+ },
40328
+ "name" : {
40329
+ "type" : "string"
40330
+ },
40331
+ "userId" : {
40332
+ "nullable" : true,
40333
+ "type" : "string"
40334
+ },
40335
+ "externalUsername" : {
40336
+ "nullable" : true,
40337
+ "type" : "string"
40338
+ },
40339
+ "expiresAt" : {
40340
+ "nullable" : true,
40341
+ "type" : "string"
40342
+ },
40343
+ "status" : {
40344
+ "enum" : [ "active", "token_invalid", "disabled" ],
40345
+ "type" : "string"
40346
+ },
40347
+ "lastError" : {
40348
+ "nullable" : true,
40349
+ "type" : "string"
40350
+ },
40351
+ "createdAt" : {
40352
+ "type" : "string"
40353
+ },
40354
+ "updatedAt" : {
40355
+ "type" : "string"
40356
+ }
40357
+ },
40358
+ "required" : [ "baseUrl", "createdAt", "id", "kind", "name", "organizationId", "provider", "status", "updatedAt" ],
40359
+ "type" : "object"
40360
+ },
40361
+ "GitConnectionKind" : {
40362
+ "enum" : [ "user_oauth", "gitlab_bot", "github_app" ],
40363
+ "type" : "string"
40364
+ },
40365
+ "GitBotConnectionCreate" : {
40366
+ "properties" : {
40367
+ "gitlabBotAccountId" : {
40368
+ "type" : "string"
40369
+ },
40370
+ "name" : {
40371
+ "type" : "string"
40372
+ }
40373
+ },
40374
+ "required" : [ "gitlabBotAccountId" ],
40375
+ "type" : "object"
40376
+ },
40377
+ "GitGithubAppConnectionCreate" : {
40378
+ "description" : "Une GitHub App installée sur une organisation GitHub, comme identité Git de l'organisation.",
40379
+ "properties" : {
40380
+ "baseUrl" : {
40381
+ "description" : "GitHub Enterprise Server (origine HTTPS) ; défaut https://github.com.",
40382
+ "type" : "string"
40383
+ },
40384
+ "appId" : {
40385
+ "type" : "string"
40386
+ },
40387
+ "privateKey" : {
40388
+ "description" : "Clé privée PEM de l'App ; chiffrée côté Breign, jamais rendue.",
40389
+ "type" : "string"
40390
+ },
40391
+ "installationId" : {
40392
+ "minimum" : 1,
40393
+ "type" : "integer"
40394
+ },
40395
+ "name" : {
40396
+ "type" : "string"
40397
+ }
40398
+ },
40399
+ "required" : [ "appId", "installationId", "privateKey" ],
40400
+ "type" : "object"
40401
+ },
39665
40402
  "GitlabIntegration" : {
39666
40403
  "description" : "A GitLab instance linked to an organization. Its projects send webhooks to `webhookUrl`.",
39667
40404
  "properties" : {
@@ -40902,6 +41639,57 @@
40902
41639
  "enum" : [ "comment", "report", "question", "approval", "event" ],
40903
41640
  "type" : "string"
40904
41641
  },
41642
+ "NodeAgentGitConfig" : {
41643
+ "description" : "Les dépôts Git d'un agent rattaché à un nœud ou un groupe (nœuds v3).",
41644
+ "properties" : {
41645
+ "branchPrefix" : {
41646
+ "description" : "Préfixe de la branche de travail (défaut `breign/`).",
41647
+ "nullable" : true,
41648
+ "type" : "string"
41649
+ },
41650
+ "author" : {
41651
+ "$ref" : "#/components/schemas/NodeAgentGitConfig_author"
41652
+ },
41653
+ "repositories" : {
41654
+ "items" : {
41655
+ "$ref" : "#/components/schemas/NodeGitRepository"
41656
+ },
41657
+ "type" : "array"
41658
+ }
41659
+ },
41660
+ "required" : [ "repositories" ],
41661
+ "type" : "object"
41662
+ },
41663
+ "NodeGitRepository" : {
41664
+ "description" : "Un dépôt sur lequel l'agent travaille ; cloné par le nœud dans le dossier `alias`.",
41665
+ "properties" : {
41666
+ "alias" : {
41667
+ "description" : "Dossier du dépôt dans l'environnement, en minuscules (lettres, chiffres, . _ -).",
41668
+ "type" : "string"
41669
+ },
41670
+ "url" : {
41671
+ "description" : "URL HTTPS du dépôt, sans identifiants.",
41672
+ "type" : "string"
41673
+ },
41674
+ "baseBranch" : {
41675
+ "type" : "string"
41676
+ },
41677
+ "connection" : {
41678
+ "$ref" : "#/components/schemas/NodeGitRepository_connection"
41679
+ },
41680
+ "clone" : {
41681
+ "description" : "Cloné à la création de l'environnement, ou seulement quand l'agent le demande.",
41682
+ "enum" : [ "eager", "on_demand" ],
41683
+ "type" : "string"
41684
+ },
41685
+ "access" : {
41686
+ "enum" : [ "read", "write" ],
41687
+ "type" : "string"
41688
+ }
41689
+ },
41690
+ "required" : [ "alias", "baseBranch", "connection", "url" ],
41691
+ "type" : "object"
41692
+ },
40905
41693
  "AgentExecutionGroupChoice" : {
40906
41694
  "description" : "Un groupe que l'utilisateur peut choisir pour l'agent, avec ce que ses nœuds portent.",
40907
41695
  "properties" : {
@@ -40918,6 +41706,10 @@
40918
41706
  "onlineNodeCount" : {
40919
41707
  "type" : "integer"
40920
41708
  },
41709
+ "gitNodeCount" : {
41710
+ "description" : "Les nœuds du groupe qui savent cloner des dépôts Git (contrat v3).",
41711
+ "type" : "integer"
41712
+ },
40921
41713
  "envWaitMs" : {
40922
41714
  "nullable" : true,
40923
41715
  "type" : "integer"
@@ -43793,6 +44585,36 @@
43793
44585
  "required" : [ "status" ],
43794
44586
  "type" : "object"
43795
44587
  },
44588
+ "NodeAgentGitConfig_author" : {
44589
+ "description" : "Auteur des commits (défaut l'identité de la connexion).",
44590
+ "nullable" : true,
44591
+ "properties" : {
44592
+ "name" : {
44593
+ "type" : "string"
44594
+ },
44595
+ "email" : {
44596
+ "type" : "string"
44597
+ }
44598
+ },
44599
+ "required" : [ "email", "name" ],
44600
+ "type" : "object"
44601
+ },
44602
+ "NodeGitRepository_connection" : {
44603
+ "description" : "`user` : le compte Git du membre qui lance la conversation, sur la forge du dépôt. `organization` : une connexion d'organisation (compte bot).",
44604
+ "properties" : {
44605
+ "mode" : {
44606
+ "enum" : [ "user", "organization" ],
44607
+ "type" : "string"
44608
+ },
44609
+ "connectionId" : {
44610
+ "description" : "Requis avec `mode = organization`, absent avec `mode = user` (vérifié par l'API).",
44611
+ "format" : "uuid",
44612
+ "type" : "string"
44613
+ }
44614
+ },
44615
+ "required" : [ "mode" ],
44616
+ "type" : "object"
44617
+ },
43796
44618
  "AgentExecutionGroupChoice_runtimes_inner" : {
43797
44619
  "properties" : {
43798
44620
  "id" : {