@breign/client 1.0.175 → 1.0.177
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/AuthApi.d.ts +60 -1
- package/dist/apis/AuthApi.js +130 -1
- package/dist/apis/IntegrationsApi.d.ts +174 -0
- package/dist/apis/IntegrationsApi.js +445 -0
- package/dist/apis/ScheduledTasksApi.d.ts +14 -1
- package/dist/apis/ScheduledTasksApi.js +33 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/ApplicationAuthorizationErrorUio.d.ts +32 -0
- package/dist/models/ApplicationAuthorizationErrorUio.js +50 -0
- package/dist/models/ApplicationAuthorizationRequestUio.d.ts +63 -0
- package/dist/models/ApplicationAuthorizationRequestUio.js +71 -0
- package/dist/models/ApplicationAuthorizationResponseUio.d.ts +38 -0
- package/dist/models/ApplicationAuthorizationResponseUio.js +54 -0
- package/dist/models/ApplicationTokenErrorUio.d.ts +38 -0
- package/dist/models/ApplicationTokenErrorUio.js +52 -0
- package/dist/models/ApplicationTokenRequestUio.d.ts +63 -0
- package/dist/models/ApplicationTokenRequestUio.js +73 -0
- package/dist/models/ApplicationTokenResponseUio.d.ts +63 -0
- package/dist/models/ApplicationTokenResponseUio.js +71 -0
- package/dist/models/ExternalEventRoutingUio.d.ts +53 -0
- package/dist/models/ExternalEventRoutingUio.js +67 -0
- package/dist/models/ExternalEventStatusUio.d.ts +33 -0
- package/dist/models/ExternalEventStatusUio.js +59 -0
- package/dist/models/ExternalEventUio.d.ts +135 -0
- package/dist/models/ExternalEventUio.js +123 -0
- package/dist/models/GitlabAccessLevelUio.d.ts +28 -0
- package/dist/models/GitlabAccessLevelUio.js +54 -0
- package/dist/models/GitlabBotAccountCreateUio.d.ts +50 -0
- package/dist/models/GitlabBotAccountCreateUio.js +58 -0
- package/dist/models/GitlabBotAccountSummaryUio.d.ts +77 -0
- package/dist/models/GitlabBotAccountSummaryUio.js +83 -0
- package/dist/models/GitlabBotAccountUio.d.ts +125 -0
- package/dist/models/GitlabBotAccountUio.js +115 -0
- package/dist/models/GitlabBotAccountUpdateUio.d.ts +64 -0
- package/dist/models/GitlabBotAccountUpdateUio.js +64 -0
- package/dist/models/GitlabConnectionTestResultUio.d.ts +50 -0
- package/dist/models/GitlabConnectionTestResultUio.js +62 -0
- package/dist/models/GitlabIntegrationCreateUio.d.ts +45 -0
- package/dist/models/GitlabIntegrationCreateUio.js +57 -0
- package/dist/models/GitlabIntegrationDetailUio.d.ts +120 -0
- package/dist/models/GitlabIntegrationDetailUio.js +112 -0
- package/dist/models/GitlabIntegrationUio.d.ts +107 -0
- package/dist/models/GitlabIntegrationUio.js +103 -0
- package/dist/models/GitlabIntegrationUpdateUio.d.ts +65 -0
- package/dist/models/GitlabIntegrationUpdateUio.js +65 -0
- package/dist/models/GitlabRoutingTestResultAgentUio.d.ts +38 -0
- package/dist/models/GitlabRoutingTestResultAgentUio.js +54 -0
- package/dist/models/GitlabRoutingTestResultAutomationsInnerUio.d.ts +38 -0
- package/dist/models/GitlabRoutingTestResultAutomationsInnerUio.js +54 -0
- package/dist/models/GitlabRoutingTestResultBotAccountUio.d.ts +38 -0
- package/dist/models/GitlabRoutingTestResultBotAccountUio.js +54 -0
- package/dist/models/GitlabRoutingTestResultRunAsUserUio.d.ts +38 -0
- package/dist/models/GitlabRoutingTestResultRunAsUserUio.js +54 -0
- package/dist/models/GitlabRoutingTestResultUio.d.ts +77 -0
- package/dist/models/GitlabRoutingTestResultUio.js +85 -0
- package/dist/models/GitlabRoutingTestUio.d.ts +32 -0
- package/dist/models/GitlabRoutingTestUio.js +50 -0
- package/dist/models/ScheduledTaskCreateUio.d.ts +9 -2
- package/dist/models/ScheduledTaskCreateUio.js +4 -3
- package/dist/models/ScheduledTaskRunTriggerAuthorUio.d.ts +38 -0
- package/dist/models/ScheduledTaskRunTriggerAuthorUio.js +54 -0
- package/dist/models/ScheduledTaskRunTriggerUio.d.ts +142 -0
- package/dist/models/ScheduledTaskRunTriggerUio.js +129 -0
- package/dist/models/ScheduledTaskRunUio.d.ts +20 -0
- package/dist/models/ScheduledTaskRunUio.js +12 -1
- package/dist/models/ScheduledTaskUio.d.ts +9 -2
- package/dist/models/ScheduledTaskUio.js +3 -0
- package/dist/models/TaskTriggerReplyUio.d.ts +38 -0
- package/dist/models/TaskTriggerReplyUio.js +54 -0
- package/dist/models/TaskTriggerUio.d.ts +88 -0
- package/dist/models/TaskTriggerUio.js +84 -0
- package/dist/models/index.d.ts +29 -0
- package/dist/models/index.js +29 -0
- package/dist/openapi.json +1558 -34
- package/package.json +1 -1
package/dist/openapi.json
CHANGED
|
@@ -72,6 +72,9 @@
|
|
|
72
72
|
}, {
|
|
73
73
|
"description" : "Scheduled task management endpoints",
|
|
74
74
|
"name" : "scheduled-tasks"
|
|
75
|
+
}, {
|
|
76
|
+
"description" : "GitLab integrations whose mentions trigger automations",
|
|
77
|
+
"name" : "integrations"
|
|
75
78
|
}, {
|
|
76
79
|
"description" : "User management endpoints",
|
|
77
80
|
"name" : "users"
|
|
@@ -3010,6 +3013,60 @@
|
|
|
3010
3013
|
"tags" : [ "scheduledTasks" ]
|
|
3011
3014
|
}
|
|
3012
3015
|
},
|
|
3016
|
+
"/agents/{agentId}/scheduled-tasks/{taskId}/runs/{runId}/trigger" : {
|
|
3017
|
+
"get" : {
|
|
3018
|
+
"operationId" : "getScheduledTaskRunTrigger",
|
|
3019
|
+
"parameters" : [ {
|
|
3020
|
+
"description" : "ID of the agent",
|
|
3021
|
+
"in" : "path",
|
|
3022
|
+
"name" : "agentId",
|
|
3023
|
+
"required" : true,
|
|
3024
|
+
"schema" : {
|
|
3025
|
+
"format" : "uuid",
|
|
3026
|
+
"type" : "string"
|
|
3027
|
+
}
|
|
3028
|
+
}, {
|
|
3029
|
+
"description" : "ID of the scheduled task",
|
|
3030
|
+
"in" : "path",
|
|
3031
|
+
"name" : "taskId",
|
|
3032
|
+
"required" : true,
|
|
3033
|
+
"schema" : {
|
|
3034
|
+
"type" : "string"
|
|
3035
|
+
}
|
|
3036
|
+
}, {
|
|
3037
|
+
"description" : "ID of the scheduled task run",
|
|
3038
|
+
"in" : "path",
|
|
3039
|
+
"name" : "runId",
|
|
3040
|
+
"required" : true,
|
|
3041
|
+
"schema" : {
|
|
3042
|
+
"type" : "string"
|
|
3043
|
+
}
|
|
3044
|
+
} ],
|
|
3045
|
+
"responses" : {
|
|
3046
|
+
"200" : {
|
|
3047
|
+
"content" : {
|
|
3048
|
+
"application/json" : {
|
|
3049
|
+
"schema" : {
|
|
3050
|
+
"$ref" : "#/components/schemas/ScheduledTaskRunTrigger"
|
|
3051
|
+
}
|
|
3052
|
+
}
|
|
3053
|
+
},
|
|
3054
|
+
"description" : "The GitLab mention behind the run"
|
|
3055
|
+
},
|
|
3056
|
+
"401" : {
|
|
3057
|
+
"description" : "Unauthorized"
|
|
3058
|
+
},
|
|
3059
|
+
"403" : {
|
|
3060
|
+
"description" : "Forbidden"
|
|
3061
|
+
},
|
|
3062
|
+
"404" : {
|
|
3063
|
+
"description" : "Run not found, or not triggered by an event"
|
|
3064
|
+
}
|
|
3065
|
+
},
|
|
3066
|
+
"summary" : "The external event that triggered a run (« Déclenché par »)",
|
|
3067
|
+
"tags" : [ "scheduledTasks" ]
|
|
3068
|
+
}
|
|
3069
|
+
},
|
|
3013
3070
|
"/agents/{agentId}/apps" : {
|
|
3014
3071
|
"get" : {
|
|
3015
3072
|
"description" : "Get apps for agent id",
|
|
@@ -4678,6 +4735,181 @@
|
|
|
4678
4735
|
"tags" : [ "auth" ]
|
|
4679
4736
|
}
|
|
4680
4737
|
},
|
|
4738
|
+
"/auth/authorize" : {
|
|
4739
|
+
"get" : {
|
|
4740
|
+
"description" : "Entry point of the browser authorization of a desktop application (OAuth2 authorization code with PKCE, loopback redirect per RFC 8252). The request is checked, then the browser is redirected to the consent page of Breign App, which issues the code through `POST /auth/authorizations`.\n",
|
|
4741
|
+
"operationId" : "authorizeApplication",
|
|
4742
|
+
"parameters" : [ {
|
|
4743
|
+
"in" : "query",
|
|
4744
|
+
"name" : "response_type",
|
|
4745
|
+
"required" : true,
|
|
4746
|
+
"schema" : {
|
|
4747
|
+
"enum" : [ "code" ],
|
|
4748
|
+
"type" : "string"
|
|
4749
|
+
}
|
|
4750
|
+
}, {
|
|
4751
|
+
"in" : "query",
|
|
4752
|
+
"name" : "client_id",
|
|
4753
|
+
"required" : true,
|
|
4754
|
+
"schema" : {
|
|
4755
|
+
"maxLength" : 100,
|
|
4756
|
+
"type" : "string"
|
|
4757
|
+
}
|
|
4758
|
+
}, {
|
|
4759
|
+
"description" : "Loopback HTTP address with a port, e.g. `http://127.0.0.1:53682/callback`.",
|
|
4760
|
+
"in" : "query",
|
|
4761
|
+
"name" : "redirect_uri",
|
|
4762
|
+
"required" : true,
|
|
4763
|
+
"schema" : {
|
|
4764
|
+
"maxLength" : 200,
|
|
4765
|
+
"type" : "string"
|
|
4766
|
+
}
|
|
4767
|
+
}, {
|
|
4768
|
+
"in" : "query",
|
|
4769
|
+
"name" : "code_challenge",
|
|
4770
|
+
"required" : true,
|
|
4771
|
+
"schema" : {
|
|
4772
|
+
"maxLength" : 128,
|
|
4773
|
+
"minLength" : 43,
|
|
4774
|
+
"type" : "string"
|
|
4775
|
+
}
|
|
4776
|
+
}, {
|
|
4777
|
+
"in" : "query",
|
|
4778
|
+
"name" : "code_challenge_method",
|
|
4779
|
+
"required" : true,
|
|
4780
|
+
"schema" : {
|
|
4781
|
+
"enum" : [ "S256" ],
|
|
4782
|
+
"type" : "string"
|
|
4783
|
+
}
|
|
4784
|
+
}, {
|
|
4785
|
+
"in" : "query",
|
|
4786
|
+
"name" : "state",
|
|
4787
|
+
"required" : false,
|
|
4788
|
+
"schema" : {
|
|
4789
|
+
"maxLength" : 200,
|
|
4790
|
+
"type" : "string"
|
|
4791
|
+
}
|
|
4792
|
+
}, {
|
|
4793
|
+
"description" : "Name of the machine, shown on the consent page and in the API key name.",
|
|
4794
|
+
"in" : "query",
|
|
4795
|
+
"name" : "device_name",
|
|
4796
|
+
"required" : false,
|
|
4797
|
+
"schema" : {
|
|
4798
|
+
"maxLength" : 100,
|
|
4799
|
+
"type" : "string"
|
|
4800
|
+
}
|
|
4801
|
+
} ],
|
|
4802
|
+
"responses" : {
|
|
4803
|
+
"302" : {
|
|
4804
|
+
"description" : "Redirect to the consent page of Breign App"
|
|
4805
|
+
},
|
|
4806
|
+
"400" : {
|
|
4807
|
+
"content" : {
|
|
4808
|
+
"application/json" : {
|
|
4809
|
+
"schema" : {
|
|
4810
|
+
"$ref" : "#/components/schemas/ApplicationTokenError"
|
|
4811
|
+
}
|
|
4812
|
+
}
|
|
4813
|
+
},
|
|
4814
|
+
"description" : "Invalid authorization request (`invalid_request`), never redirected"
|
|
4815
|
+
}
|
|
4816
|
+
},
|
|
4817
|
+
"security" : [ ],
|
|
4818
|
+
"summary" : "Start an application authorization",
|
|
4819
|
+
"tags" : [ "auth" ]
|
|
4820
|
+
}
|
|
4821
|
+
},
|
|
4822
|
+
"/auth/authorizations" : {
|
|
4823
|
+
"post" : {
|
|
4824
|
+
"description" : "Called on behalf of the signed-in user once they consented to the application. Returns a single-use code, valid 5 minutes, bound to the redirect address and the PKCE challenge.\n",
|
|
4825
|
+
"operationId" : "createApplicationAuthorization",
|
|
4826
|
+
"requestBody" : {
|
|
4827
|
+
"content" : {
|
|
4828
|
+
"application/json" : {
|
|
4829
|
+
"schema" : {
|
|
4830
|
+
"$ref" : "#/components/schemas/ApplicationAuthorizationRequest"
|
|
4831
|
+
}
|
|
4832
|
+
}
|
|
4833
|
+
},
|
|
4834
|
+
"required" : true
|
|
4835
|
+
},
|
|
4836
|
+
"responses" : {
|
|
4837
|
+
"201" : {
|
|
4838
|
+
"content" : {
|
|
4839
|
+
"application/json" : {
|
|
4840
|
+
"schema" : {
|
|
4841
|
+
"$ref" : "#/components/schemas/ApplicationAuthorizationResponse"
|
|
4842
|
+
}
|
|
4843
|
+
}
|
|
4844
|
+
},
|
|
4845
|
+
"description" : "Authorization code"
|
|
4846
|
+
},
|
|
4847
|
+
"400" : {
|
|
4848
|
+
"content" : {
|
|
4849
|
+
"application/json" : {
|
|
4850
|
+
"schema" : {
|
|
4851
|
+
"$ref" : "#/components/schemas/ApplicationAuthorizationError"
|
|
4852
|
+
}
|
|
4853
|
+
}
|
|
4854
|
+
},
|
|
4855
|
+
"description" : "Invalid authorization request"
|
|
4856
|
+
},
|
|
4857
|
+
"403" : {
|
|
4858
|
+
"content" : {
|
|
4859
|
+
"application/json" : {
|
|
4860
|
+
"schema" : {
|
|
4861
|
+
"$ref" : "#/components/schemas/ApplicationAuthorizationError"
|
|
4862
|
+
}
|
|
4863
|
+
}
|
|
4864
|
+
},
|
|
4865
|
+
"description" : "No user account behind the call"
|
|
4866
|
+
}
|
|
4867
|
+
},
|
|
4868
|
+
"summary" : "Issue an application authorization code",
|
|
4869
|
+
"tags" : [ "auth" ]
|
|
4870
|
+
}
|
|
4871
|
+
},
|
|
4872
|
+
"/auth/token" : {
|
|
4873
|
+
"post" : {
|
|
4874
|
+
"description" : "Exchanges the code issued by `POST /auth/authorizations` for an API key of the user, after checking the PKCE verifier, the client and the redirect address. The code is single use. Errors follow RFC 6749 section 5.2.\n",
|
|
4875
|
+
"operationId" : "exchangeApplicationAuthorizationCode",
|
|
4876
|
+
"requestBody" : {
|
|
4877
|
+
"content" : {
|
|
4878
|
+
"application/json" : {
|
|
4879
|
+
"schema" : {
|
|
4880
|
+
"$ref" : "#/components/schemas/ApplicationTokenRequest"
|
|
4881
|
+
}
|
|
4882
|
+
}
|
|
4883
|
+
},
|
|
4884
|
+
"required" : true
|
|
4885
|
+
},
|
|
4886
|
+
"responses" : {
|
|
4887
|
+
"200" : {
|
|
4888
|
+
"content" : {
|
|
4889
|
+
"application/json" : {
|
|
4890
|
+
"schema" : {
|
|
4891
|
+
"$ref" : "#/components/schemas/ApplicationTokenResponse"
|
|
4892
|
+
}
|
|
4893
|
+
}
|
|
4894
|
+
},
|
|
4895
|
+
"description" : "API key of the user"
|
|
4896
|
+
},
|
|
4897
|
+
"400" : {
|
|
4898
|
+
"content" : {
|
|
4899
|
+
"application/json" : {
|
|
4900
|
+
"schema" : {
|
|
4901
|
+
"$ref" : "#/components/schemas/ApplicationTokenError"
|
|
4902
|
+
}
|
|
4903
|
+
}
|
|
4904
|
+
},
|
|
4905
|
+
"description" : "OAuth error (`invalid_request`, `invalid_grant`, `unsupported_grant_type`)"
|
|
4906
|
+
}
|
|
4907
|
+
},
|
|
4908
|
+
"security" : [ ],
|
|
4909
|
+
"summary" : "Exchange an application authorization code",
|
|
4910
|
+
"tags" : [ "auth" ]
|
|
4911
|
+
}
|
|
4912
|
+
},
|
|
4681
4913
|
"/.well-known/jwks.json" : {
|
|
4682
4914
|
"get" : {
|
|
4683
4915
|
"description" : "Returns the JSON Web Key Set for JWT verification",
|
|
@@ -19068,6 +19300,547 @@
|
|
|
19068
19300
|
"tags" : [ "tickets" ]
|
|
19069
19301
|
}
|
|
19070
19302
|
},
|
|
19303
|
+
"/organizations/{organizationId}/integrations/gitlab" : {
|
|
19304
|
+
"get" : {
|
|
19305
|
+
"operationId" : "listGitlabIntegrations",
|
|
19306
|
+
"parameters" : [ {
|
|
19307
|
+
"description" : "ID of the organization",
|
|
19308
|
+
"in" : "path",
|
|
19309
|
+
"name" : "organizationId",
|
|
19310
|
+
"required" : true,
|
|
19311
|
+
"schema" : {
|
|
19312
|
+
"type" : "string"
|
|
19313
|
+
}
|
|
19314
|
+
} ],
|
|
19315
|
+
"responses" : {
|
|
19316
|
+
"200" : {
|
|
19317
|
+
"content" : {
|
|
19318
|
+
"application/json" : {
|
|
19319
|
+
"schema" : {
|
|
19320
|
+
"items" : {
|
|
19321
|
+
"$ref" : "#/components/schemas/GitlabIntegration"
|
|
19322
|
+
},
|
|
19323
|
+
"type" : "array"
|
|
19324
|
+
}
|
|
19325
|
+
}
|
|
19326
|
+
},
|
|
19327
|
+
"description" : "The integrations"
|
|
19328
|
+
},
|
|
19329
|
+
"403" : {
|
|
19330
|
+
"description" : "Not an admin of the organization"
|
|
19331
|
+
}
|
|
19332
|
+
},
|
|
19333
|
+
"summary" : "List the GitLab integrations of an organization",
|
|
19334
|
+
"tags" : [ "integrations" ]
|
|
19335
|
+
},
|
|
19336
|
+
"post" : {
|
|
19337
|
+
"description" : "A webhook secret is generated; it is returned with the integration.",
|
|
19338
|
+
"operationId" : "createGitlabIntegration",
|
|
19339
|
+
"parameters" : [ {
|
|
19340
|
+
"description" : "ID of the organization",
|
|
19341
|
+
"in" : "path",
|
|
19342
|
+
"name" : "organizationId",
|
|
19343
|
+
"required" : true,
|
|
19344
|
+
"schema" : {
|
|
19345
|
+
"type" : "string"
|
|
19346
|
+
}
|
|
19347
|
+
} ],
|
|
19348
|
+
"requestBody" : {
|
|
19349
|
+
"content" : {
|
|
19350
|
+
"application/json" : {
|
|
19351
|
+
"schema" : {
|
|
19352
|
+
"$ref" : "#/components/schemas/GitlabIntegrationCreate"
|
|
19353
|
+
}
|
|
19354
|
+
}
|
|
19355
|
+
},
|
|
19356
|
+
"required" : true
|
|
19357
|
+
},
|
|
19358
|
+
"responses" : {
|
|
19359
|
+
"201" : {
|
|
19360
|
+
"content" : {
|
|
19361
|
+
"application/json" : {
|
|
19362
|
+
"schema" : {
|
|
19363
|
+
"$ref" : "#/components/schemas/GitlabIntegrationDetail"
|
|
19364
|
+
}
|
|
19365
|
+
}
|
|
19366
|
+
},
|
|
19367
|
+
"description" : "Integration created"
|
|
19368
|
+
},
|
|
19369
|
+
"400" : {
|
|
19370
|
+
"description" : "Invalid body"
|
|
19371
|
+
},
|
|
19372
|
+
"403" : {
|
|
19373
|
+
"description" : "Not an admin of the organization"
|
|
19374
|
+
},
|
|
19375
|
+
"422" : {
|
|
19376
|
+
"description" : "Invalid base URL, or GITLAB_HOST_NOT_ALLOWED (private or reserved network)"
|
|
19377
|
+
}
|
|
19378
|
+
},
|
|
19379
|
+
"summary" : "Link a GitLab instance to the organization",
|
|
19380
|
+
"tags" : [ "integrations" ]
|
|
19381
|
+
}
|
|
19382
|
+
},
|
|
19383
|
+
"/organizations/{organizationId}/integrations/gitlab/{integrationId}" : {
|
|
19384
|
+
"delete" : {
|
|
19385
|
+
"operationId" : "deleteGitlabIntegration",
|
|
19386
|
+
"parameters" : [ {
|
|
19387
|
+
"description" : "ID of the organization",
|
|
19388
|
+
"in" : "path",
|
|
19389
|
+
"name" : "organizationId",
|
|
19390
|
+
"required" : true,
|
|
19391
|
+
"schema" : {
|
|
19392
|
+
"type" : "string"
|
|
19393
|
+
}
|
|
19394
|
+
}, {
|
|
19395
|
+
"in" : "path",
|
|
19396
|
+
"name" : "integrationId",
|
|
19397
|
+
"required" : true,
|
|
19398
|
+
"schema" : {
|
|
19399
|
+
"type" : "string"
|
|
19400
|
+
}
|
|
19401
|
+
} ],
|
|
19402
|
+
"responses" : {
|
|
19403
|
+
"204" : {
|
|
19404
|
+
"description" : "Deleted"
|
|
19405
|
+
},
|
|
19406
|
+
"403" : {
|
|
19407
|
+
"description" : "Not an admin of the organization"
|
|
19408
|
+
},
|
|
19409
|
+
"404" : {
|
|
19410
|
+
"description" : "Integration not found"
|
|
19411
|
+
}
|
|
19412
|
+
},
|
|
19413
|
+
"summary" : "Delete a GitLab integration, its bot accounts and its events",
|
|
19414
|
+
"tags" : [ "integrations" ]
|
|
19415
|
+
},
|
|
19416
|
+
"get" : {
|
|
19417
|
+
"operationId" : "getGitlabIntegration",
|
|
19418
|
+
"parameters" : [ {
|
|
19419
|
+
"description" : "ID of the organization",
|
|
19420
|
+
"in" : "path",
|
|
19421
|
+
"name" : "organizationId",
|
|
19422
|
+
"required" : true,
|
|
19423
|
+
"schema" : {
|
|
19424
|
+
"type" : "string"
|
|
19425
|
+
}
|
|
19426
|
+
}, {
|
|
19427
|
+
"in" : "path",
|
|
19428
|
+
"name" : "integrationId",
|
|
19429
|
+
"required" : true,
|
|
19430
|
+
"schema" : {
|
|
19431
|
+
"type" : "string"
|
|
19432
|
+
}
|
|
19433
|
+
} ],
|
|
19434
|
+
"responses" : {
|
|
19435
|
+
"200" : {
|
|
19436
|
+
"content" : {
|
|
19437
|
+
"application/json" : {
|
|
19438
|
+
"schema" : {
|
|
19439
|
+
"$ref" : "#/components/schemas/GitlabIntegrationDetail"
|
|
19440
|
+
}
|
|
19441
|
+
}
|
|
19442
|
+
},
|
|
19443
|
+
"description" : "The integration"
|
|
19444
|
+
},
|
|
19445
|
+
"403" : {
|
|
19446
|
+
"description" : "Not an admin of the organization"
|
|
19447
|
+
},
|
|
19448
|
+
"404" : {
|
|
19449
|
+
"description" : "Integration not found"
|
|
19450
|
+
}
|
|
19451
|
+
},
|
|
19452
|
+
"summary" : "Get a GitLab integration, its webhook secret and its bot accounts",
|
|
19453
|
+
"tags" : [ "integrations" ]
|
|
19454
|
+
},
|
|
19455
|
+
"patch" : {
|
|
19456
|
+
"description" : "Changing `baseUrl` wipes the token of every bot account (status token_invalid, lastError BASE_URL_CHANGED): a token is never sent to another host than the one it was given for.",
|
|
19457
|
+
"operationId" : "updateGitlabIntegration",
|
|
19458
|
+
"parameters" : [ {
|
|
19459
|
+
"description" : "ID of the organization",
|
|
19460
|
+
"in" : "path",
|
|
19461
|
+
"name" : "organizationId",
|
|
19462
|
+
"required" : true,
|
|
19463
|
+
"schema" : {
|
|
19464
|
+
"type" : "string"
|
|
19465
|
+
}
|
|
19466
|
+
}, {
|
|
19467
|
+
"in" : "path",
|
|
19468
|
+
"name" : "integrationId",
|
|
19469
|
+
"required" : true,
|
|
19470
|
+
"schema" : {
|
|
19471
|
+
"type" : "string"
|
|
19472
|
+
}
|
|
19473
|
+
} ],
|
|
19474
|
+
"requestBody" : {
|
|
19475
|
+
"content" : {
|
|
19476
|
+
"application/json" : {
|
|
19477
|
+
"schema" : {
|
|
19478
|
+
"$ref" : "#/components/schemas/GitlabIntegrationUpdate"
|
|
19479
|
+
}
|
|
19480
|
+
}
|
|
19481
|
+
},
|
|
19482
|
+
"required" : true
|
|
19483
|
+
},
|
|
19484
|
+
"responses" : {
|
|
19485
|
+
"200" : {
|
|
19486
|
+
"content" : {
|
|
19487
|
+
"application/json" : {
|
|
19488
|
+
"schema" : {
|
|
19489
|
+
"$ref" : "#/components/schemas/GitlabIntegrationDetail"
|
|
19490
|
+
}
|
|
19491
|
+
}
|
|
19492
|
+
},
|
|
19493
|
+
"description" : "The updated integration"
|
|
19494
|
+
},
|
|
19495
|
+
"403" : {
|
|
19496
|
+
"description" : "Not an admin of the organization"
|
|
19497
|
+
},
|
|
19498
|
+
"404" : {
|
|
19499
|
+
"description" : "Integration not found"
|
|
19500
|
+
},
|
|
19501
|
+
"422" : {
|
|
19502
|
+
"description" : "Invalid base URL, or GITLAB_HOST_NOT_ALLOWED (private or reserved network)"
|
|
19503
|
+
}
|
|
19504
|
+
},
|
|
19505
|
+
"summary" : "Update a GitLab integration",
|
|
19506
|
+
"tags" : [ "integrations" ]
|
|
19507
|
+
}
|
|
19508
|
+
},
|
|
19509
|
+
"/organizations/{organizationId}/integrations/gitlab/{integrationId}/events" : {
|
|
19510
|
+
"get" : {
|
|
19511
|
+
"operationId" : "listGitlabIntegrationEvents",
|
|
19512
|
+
"parameters" : [ {
|
|
19513
|
+
"description" : "ID of the organization",
|
|
19514
|
+
"in" : "path",
|
|
19515
|
+
"name" : "organizationId",
|
|
19516
|
+
"required" : true,
|
|
19517
|
+
"schema" : {
|
|
19518
|
+
"type" : "string"
|
|
19519
|
+
}
|
|
19520
|
+
}, {
|
|
19521
|
+
"in" : "path",
|
|
19522
|
+
"name" : "integrationId",
|
|
19523
|
+
"required" : true,
|
|
19524
|
+
"schema" : {
|
|
19525
|
+
"type" : "string"
|
|
19526
|
+
}
|
|
19527
|
+
} ],
|
|
19528
|
+
"responses" : {
|
|
19529
|
+
"200" : {
|
|
19530
|
+
"content" : {
|
|
19531
|
+
"application/json" : {
|
|
19532
|
+
"schema" : {
|
|
19533
|
+
"items" : {
|
|
19534
|
+
"$ref" : "#/components/schemas/ExternalEvent"
|
|
19535
|
+
},
|
|
19536
|
+
"type" : "array"
|
|
19537
|
+
}
|
|
19538
|
+
}
|
|
19539
|
+
},
|
|
19540
|
+
"description" : "The 20 latest events, most recent first"
|
|
19541
|
+
},
|
|
19542
|
+
"403" : {
|
|
19543
|
+
"description" : "Not an admin of the organization"
|
|
19544
|
+
},
|
|
19545
|
+
"404" : {
|
|
19546
|
+
"description" : "Integration not found"
|
|
19547
|
+
}
|
|
19548
|
+
},
|
|
19549
|
+
"summary" : "The latest mentions received by a GitLab integration",
|
|
19550
|
+
"tags" : [ "integrations" ]
|
|
19551
|
+
}
|
|
19552
|
+
},
|
|
19553
|
+
"/organizations/{organizationId}/integrations/gitlab/{integrationId}/test-connection" : {
|
|
19554
|
+
"post" : {
|
|
19555
|
+
"description" : "An accepted token puts its account back in service; a rejected one marks it token_invalid.",
|
|
19556
|
+
"operationId" : "testGitlabConnection",
|
|
19557
|
+
"parameters" : [ {
|
|
19558
|
+
"description" : "ID of the organization",
|
|
19559
|
+
"in" : "path",
|
|
19560
|
+
"name" : "organizationId",
|
|
19561
|
+
"required" : true,
|
|
19562
|
+
"schema" : {
|
|
19563
|
+
"type" : "string"
|
|
19564
|
+
}
|
|
19565
|
+
}, {
|
|
19566
|
+
"in" : "path",
|
|
19567
|
+
"name" : "integrationId",
|
|
19568
|
+
"required" : true,
|
|
19569
|
+
"schema" : {
|
|
19570
|
+
"type" : "string"
|
|
19571
|
+
}
|
|
19572
|
+
} ],
|
|
19573
|
+
"responses" : {
|
|
19574
|
+
"200" : {
|
|
19575
|
+
"content" : {
|
|
19576
|
+
"application/json" : {
|
|
19577
|
+
"schema" : {
|
|
19578
|
+
"items" : {
|
|
19579
|
+
"$ref" : "#/components/schemas/GitlabConnectionTestResult"
|
|
19580
|
+
},
|
|
19581
|
+
"type" : "array"
|
|
19582
|
+
}
|
|
19583
|
+
}
|
|
19584
|
+
},
|
|
19585
|
+
"description" : "One result per bot account"
|
|
19586
|
+
},
|
|
19587
|
+
"403" : {
|
|
19588
|
+
"description" : "Not an admin of the organization"
|
|
19589
|
+
},
|
|
19590
|
+
"404" : {
|
|
19591
|
+
"description" : "Integration not found"
|
|
19592
|
+
}
|
|
19593
|
+
},
|
|
19594
|
+
"summary" : "Test the connection of every bot account (GET /user with its token)",
|
|
19595
|
+
"tags" : [ "integrations" ]
|
|
19596
|
+
}
|
|
19597
|
+
},
|
|
19598
|
+
"/organizations/{organizationId}/integrations/gitlab/{integrationId}/test-routing" : {
|
|
19599
|
+
"post" : {
|
|
19600
|
+
"operationId" : "testGitlabRouting",
|
|
19601
|
+
"parameters" : [ {
|
|
19602
|
+
"description" : "ID of the organization",
|
|
19603
|
+
"in" : "path",
|
|
19604
|
+
"name" : "organizationId",
|
|
19605
|
+
"required" : true,
|
|
19606
|
+
"schema" : {
|
|
19607
|
+
"type" : "string"
|
|
19608
|
+
}
|
|
19609
|
+
}, {
|
|
19610
|
+
"in" : "path",
|
|
19611
|
+
"name" : "integrationId",
|
|
19612
|
+
"required" : true,
|
|
19613
|
+
"schema" : {
|
|
19614
|
+
"type" : "string"
|
|
19615
|
+
}
|
|
19616
|
+
} ],
|
|
19617
|
+
"requestBody" : {
|
|
19618
|
+
"content" : {
|
|
19619
|
+
"application/json" : {
|
|
19620
|
+
"schema" : {
|
|
19621
|
+
"$ref" : "#/components/schemas/GitlabRoutingTest"
|
|
19622
|
+
}
|
|
19623
|
+
}
|
|
19624
|
+
},
|
|
19625
|
+
"required" : true
|
|
19626
|
+
},
|
|
19627
|
+
"responses" : {
|
|
19628
|
+
"200" : {
|
|
19629
|
+
"content" : {
|
|
19630
|
+
"application/json" : {
|
|
19631
|
+
"schema" : {
|
|
19632
|
+
"$ref" : "#/components/schemas/GitlabRoutingTestResult"
|
|
19633
|
+
}
|
|
19634
|
+
}
|
|
19635
|
+
},
|
|
19636
|
+
"description" : "The account, agent, instruction and automations the comment would reach"
|
|
19637
|
+
},
|
|
19638
|
+
"403" : {
|
|
19639
|
+
"description" : "Not an admin of the organization"
|
|
19640
|
+
},
|
|
19641
|
+
"404" : {
|
|
19642
|
+
"description" : "Integration not found"
|
|
19643
|
+
}
|
|
19644
|
+
},
|
|
19645
|
+
"summary" : "Preview what a GitLab comment would trigger",
|
|
19646
|
+
"tags" : [ "integrations" ]
|
|
19647
|
+
}
|
|
19648
|
+
},
|
|
19649
|
+
"/organizations/{organizationId}/integrations/gitlab/{integrationId}/bot-accounts" : {
|
|
19650
|
+
"post" : {
|
|
19651
|
+
"description" : "The token is checked against GitLab (GET /user). The service user must be a member of the organization, the named agents must belong to it, and no two callable agents may share a name once normalized (409 DUPLICATE_AGENT_NAMES, with the duplicates).",
|
|
19652
|
+
"operationId" : "createGitlabBotAccount",
|
|
19653
|
+
"parameters" : [ {
|
|
19654
|
+
"description" : "ID of the organization",
|
|
19655
|
+
"in" : "path",
|
|
19656
|
+
"name" : "organizationId",
|
|
19657
|
+
"required" : true,
|
|
19658
|
+
"schema" : {
|
|
19659
|
+
"type" : "string"
|
|
19660
|
+
}
|
|
19661
|
+
}, {
|
|
19662
|
+
"in" : "path",
|
|
19663
|
+
"name" : "integrationId",
|
|
19664
|
+
"required" : true,
|
|
19665
|
+
"schema" : {
|
|
19666
|
+
"type" : "string"
|
|
19667
|
+
}
|
|
19668
|
+
} ],
|
|
19669
|
+
"requestBody" : {
|
|
19670
|
+
"content" : {
|
|
19671
|
+
"application/json" : {
|
|
19672
|
+
"schema" : {
|
|
19673
|
+
"$ref" : "#/components/schemas/GitlabBotAccountCreate"
|
|
19674
|
+
}
|
|
19675
|
+
}
|
|
19676
|
+
},
|
|
19677
|
+
"required" : true
|
|
19678
|
+
},
|
|
19679
|
+
"responses" : {
|
|
19680
|
+
"201" : {
|
|
19681
|
+
"content" : {
|
|
19682
|
+
"application/json" : {
|
|
19683
|
+
"schema" : {
|
|
19684
|
+
"$ref" : "#/components/schemas/GitlabBotAccount"
|
|
19685
|
+
}
|
|
19686
|
+
}
|
|
19687
|
+
},
|
|
19688
|
+
"description" : "Bot account created"
|
|
19689
|
+
},
|
|
19690
|
+
"403" : {
|
|
19691
|
+
"description" : "Not an admin of the organization"
|
|
19692
|
+
},
|
|
19693
|
+
"404" : {
|
|
19694
|
+
"description" : "Integration not found"
|
|
19695
|
+
},
|
|
19696
|
+
"409" : {
|
|
19697
|
+
"description" : "Duplicate callable agent names, or this GitLab account is already configured"
|
|
19698
|
+
},
|
|
19699
|
+
"422" : {
|
|
19700
|
+
"description" : "Token rejected by GitLab, GitLab unreachable, service user not a member, or unknown agents"
|
|
19701
|
+
}
|
|
19702
|
+
},
|
|
19703
|
+
"summary" : "Add a bot account to a GitLab integration",
|
|
19704
|
+
"tags" : [ "integrations" ]
|
|
19705
|
+
}
|
|
19706
|
+
},
|
|
19707
|
+
"/organizations/{organizationId}/integrations/gitlab/{integrationId}/bot-accounts/{accountId}" : {
|
|
19708
|
+
"delete" : {
|
|
19709
|
+
"operationId" : "deleteGitlabBotAccount",
|
|
19710
|
+
"parameters" : [ {
|
|
19711
|
+
"description" : "ID of the organization",
|
|
19712
|
+
"in" : "path",
|
|
19713
|
+
"name" : "organizationId",
|
|
19714
|
+
"required" : true,
|
|
19715
|
+
"schema" : {
|
|
19716
|
+
"type" : "string"
|
|
19717
|
+
}
|
|
19718
|
+
}, {
|
|
19719
|
+
"in" : "path",
|
|
19720
|
+
"name" : "integrationId",
|
|
19721
|
+
"required" : true,
|
|
19722
|
+
"schema" : {
|
|
19723
|
+
"type" : "string"
|
|
19724
|
+
}
|
|
19725
|
+
}, {
|
|
19726
|
+
"in" : "path",
|
|
19727
|
+
"name" : "accountId",
|
|
19728
|
+
"required" : true,
|
|
19729
|
+
"schema" : {
|
|
19730
|
+
"type" : "string"
|
|
19731
|
+
}
|
|
19732
|
+
} ],
|
|
19733
|
+
"responses" : {
|
|
19734
|
+
"204" : {
|
|
19735
|
+
"description" : "Deleted"
|
|
19736
|
+
},
|
|
19737
|
+
"403" : {
|
|
19738
|
+
"description" : "Not an admin of the organization"
|
|
19739
|
+
},
|
|
19740
|
+
"404" : {
|
|
19741
|
+
"description" : "Integration or bot account not found"
|
|
19742
|
+
}
|
|
19743
|
+
},
|
|
19744
|
+
"summary" : "Remove a bot account",
|
|
19745
|
+
"tags" : [ "integrations" ]
|
|
19746
|
+
},
|
|
19747
|
+
"patch" : {
|
|
19748
|
+
"operationId" : "updateGitlabBotAccount",
|
|
19749
|
+
"parameters" : [ {
|
|
19750
|
+
"description" : "ID of the organization",
|
|
19751
|
+
"in" : "path",
|
|
19752
|
+
"name" : "organizationId",
|
|
19753
|
+
"required" : true,
|
|
19754
|
+
"schema" : {
|
|
19755
|
+
"type" : "string"
|
|
19756
|
+
}
|
|
19757
|
+
}, {
|
|
19758
|
+
"in" : "path",
|
|
19759
|
+
"name" : "integrationId",
|
|
19760
|
+
"required" : true,
|
|
19761
|
+
"schema" : {
|
|
19762
|
+
"type" : "string"
|
|
19763
|
+
}
|
|
19764
|
+
}, {
|
|
19765
|
+
"in" : "path",
|
|
19766
|
+
"name" : "accountId",
|
|
19767
|
+
"required" : true,
|
|
19768
|
+
"schema" : {
|
|
19769
|
+
"type" : "string"
|
|
19770
|
+
}
|
|
19771
|
+
} ],
|
|
19772
|
+
"requestBody" : {
|
|
19773
|
+
"content" : {
|
|
19774
|
+
"application/json" : {
|
|
19775
|
+
"schema" : {
|
|
19776
|
+
"$ref" : "#/components/schemas/GitlabBotAccountUpdate"
|
|
19777
|
+
}
|
|
19778
|
+
}
|
|
19779
|
+
},
|
|
19780
|
+
"required" : true
|
|
19781
|
+
},
|
|
19782
|
+
"responses" : {
|
|
19783
|
+
"200" : {
|
|
19784
|
+
"content" : {
|
|
19785
|
+
"application/json" : {
|
|
19786
|
+
"schema" : {
|
|
19787
|
+
"$ref" : "#/components/schemas/GitlabBotAccount"
|
|
19788
|
+
}
|
|
19789
|
+
}
|
|
19790
|
+
},
|
|
19791
|
+
"description" : "The updated bot account"
|
|
19792
|
+
},
|
|
19793
|
+
"403" : {
|
|
19794
|
+
"description" : "Not an admin of the organization"
|
|
19795
|
+
},
|
|
19796
|
+
"404" : {
|
|
19797
|
+
"description" : "Integration or bot account not found"
|
|
19798
|
+
},
|
|
19799
|
+
"409" : {
|
|
19800
|
+
"description" : "Duplicate callable agent names"
|
|
19801
|
+
},
|
|
19802
|
+
"422" : {
|
|
19803
|
+
"description" : "Token rejected by GitLab, service user not a member, or unknown agents"
|
|
19804
|
+
}
|
|
19805
|
+
},
|
|
19806
|
+
"summary" : "Update a bot account (agents, service user, token, status)",
|
|
19807
|
+
"tags" : [ "integrations" ]
|
|
19808
|
+
}
|
|
19809
|
+
},
|
|
19810
|
+
"/organizations/{organizationId}/gitlab-bot-accounts" : {
|
|
19811
|
+
"get" : {
|
|
19812
|
+
"operationId" : "listOrganizationGitlabBotAccounts",
|
|
19813
|
+
"parameters" : [ {
|
|
19814
|
+
"description" : "ID of the organization",
|
|
19815
|
+
"in" : "path",
|
|
19816
|
+
"name" : "organizationId",
|
|
19817
|
+
"required" : true,
|
|
19818
|
+
"schema" : {
|
|
19819
|
+
"type" : "string"
|
|
19820
|
+
}
|
|
19821
|
+
} ],
|
|
19822
|
+
"responses" : {
|
|
19823
|
+
"200" : {
|
|
19824
|
+
"content" : {
|
|
19825
|
+
"application/json" : {
|
|
19826
|
+
"schema" : {
|
|
19827
|
+
"items" : {
|
|
19828
|
+
"$ref" : "#/components/schemas/GitlabBotAccountSummary"
|
|
19829
|
+
},
|
|
19830
|
+
"type" : "array"
|
|
19831
|
+
}
|
|
19832
|
+
}
|
|
19833
|
+
},
|
|
19834
|
+
"description" : "The bot accounts, without secrets"
|
|
19835
|
+
},
|
|
19836
|
+
"403" : {
|
|
19837
|
+
"description" : "Not a member of the organization"
|
|
19838
|
+
}
|
|
19839
|
+
},
|
|
19840
|
+
"summary" : "The GitLab bot accounts of the organization, to pick one in an automation",
|
|
19841
|
+
"tags" : [ "integrations" ]
|
|
19842
|
+
}
|
|
19843
|
+
},
|
|
19071
19844
|
"/organizations/{organizationId}/inbox" : {
|
|
19072
19845
|
"get" : {
|
|
19073
19846
|
"description" : "todo : actions en attente (questions, propositions, relectures, feux verts), les plus anciennes d'abord ; mentions : mentions non traitées ; done : éléments traités, les plus récents d'abord.",
|
|
@@ -22563,7 +23336,14 @@
|
|
|
22563
23336
|
"type" : "string"
|
|
22564
23337
|
},
|
|
22565
23338
|
"schedule" : {
|
|
22566
|
-
"
|
|
23339
|
+
"allOf" : [ {
|
|
23340
|
+
"$ref" : "#/components/schemas/TaskSchedule"
|
|
23341
|
+
} ],
|
|
23342
|
+
"description" : "null for an automation triggered by an event.",
|
|
23343
|
+
"nullable" : true
|
|
23344
|
+
},
|
|
23345
|
+
"trigger" : {
|
|
23346
|
+
"$ref" : "#/components/schemas/TaskTrigger"
|
|
22567
23347
|
},
|
|
22568
23348
|
"cronExpression" : {
|
|
22569
23349
|
"type" : "string"
|
|
@@ -22665,7 +23445,45 @@
|
|
|
22665
23445
|
} ],
|
|
22666
23446
|
"type" : "object"
|
|
22667
23447
|
},
|
|
23448
|
+
"TaskTrigger" : {
|
|
23449
|
+
"description" : "What starts the automation. `schedule` (default): its schedule. `event`: a mention of one of the bot accounts in GitLab, in the given kinds of objects and projects (empty: all projects; `groupe/projet` or `groupe/*`).",
|
|
23450
|
+
"properties" : {
|
|
23451
|
+
"type" : {
|
|
23452
|
+
"enum" : [ "schedule", "event" ],
|
|
23453
|
+
"type" : "string"
|
|
23454
|
+
},
|
|
23455
|
+
"source" : {
|
|
23456
|
+
"enum" : [ "gitlab_mention" ],
|
|
23457
|
+
"type" : "string"
|
|
23458
|
+
},
|
|
23459
|
+
"botAccountIds" : {
|
|
23460
|
+
"items" : {
|
|
23461
|
+
"type" : "string"
|
|
23462
|
+
},
|
|
23463
|
+
"type" : "array"
|
|
23464
|
+
},
|
|
23465
|
+
"kinds" : {
|
|
23466
|
+
"items" : {
|
|
23467
|
+
"enum" : [ "merge_request", "issue", "work_item", "commit" ],
|
|
23468
|
+
"type" : "string"
|
|
23469
|
+
},
|
|
23470
|
+
"type" : "array"
|
|
23471
|
+
},
|
|
23472
|
+
"projects" : {
|
|
23473
|
+
"items" : {
|
|
23474
|
+
"type" : "string"
|
|
23475
|
+
},
|
|
23476
|
+
"type" : "array"
|
|
23477
|
+
},
|
|
23478
|
+
"reply" : {
|
|
23479
|
+
"$ref" : "#/components/schemas/TaskTrigger_reply"
|
|
23480
|
+
}
|
|
23481
|
+
},
|
|
23482
|
+
"required" : [ "type" ],
|
|
23483
|
+
"type" : "object"
|
|
23484
|
+
},
|
|
22668
23485
|
"ScheduledTaskCreate" : {
|
|
23486
|
+
"description" : "`schedule` is required unless `trigger.type` is `event` (then `mode` must be `recurring`).",
|
|
22669
23487
|
"properties" : {
|
|
22670
23488
|
"message" : {
|
|
22671
23489
|
"minLength" : 1,
|
|
@@ -22678,6 +23496,9 @@
|
|
|
22678
23496
|
"schedule" : {
|
|
22679
23497
|
"$ref" : "#/components/schemas/TaskSchedule"
|
|
22680
23498
|
},
|
|
23499
|
+
"trigger" : {
|
|
23500
|
+
"$ref" : "#/components/schemas/TaskTrigger"
|
|
23501
|
+
},
|
|
22681
23502
|
"name" : {
|
|
22682
23503
|
"type" : "string"
|
|
22683
23504
|
},
|
|
@@ -22693,7 +23514,7 @@
|
|
|
22693
23514
|
"type" : "string"
|
|
22694
23515
|
}
|
|
22695
23516
|
},
|
|
22696
|
-
"required" : [ "message", "mode"
|
|
23517
|
+
"required" : [ "message", "mode" ],
|
|
22697
23518
|
"type" : "object"
|
|
22698
23519
|
},
|
|
22699
23520
|
"ScheduledTaskStatusToggle" : {
|
|
@@ -22790,6 +23611,15 @@
|
|
|
22790
23611
|
},
|
|
22791
23612
|
"type" : "array"
|
|
22792
23613
|
},
|
|
23614
|
+
"triggerEventId" : {
|
|
23615
|
+
"description" : "The external event (GitLab mention) that triggered the run.",
|
|
23616
|
+
"type" : "string"
|
|
23617
|
+
},
|
|
23618
|
+
"executor" : {
|
|
23619
|
+
"description" : "internal — run by brain-api itself (event-triggered runs); the external executor of scheduled runs must ignore them. Absent means external.",
|
|
23620
|
+
"enum" : [ "internal", "external" ],
|
|
23621
|
+
"type" : "string"
|
|
23622
|
+
},
|
|
22793
23623
|
"createdAt" : {
|
|
22794
23624
|
"format" : "date-time",
|
|
22795
23625
|
"type" : "string"
|
|
@@ -22823,6 +23653,75 @@
|
|
|
22823
23653
|
"required" : [ "at", "type" ],
|
|
22824
23654
|
"type" : "object"
|
|
22825
23655
|
},
|
|
23656
|
+
"ScheduledTaskRunTrigger" : {
|
|
23657
|
+
"description" : "The GitLab mention that triggered a run.",
|
|
23658
|
+
"properties" : {
|
|
23659
|
+
"eventId" : {
|
|
23660
|
+
"type" : "string"
|
|
23661
|
+
},
|
|
23662
|
+
"source" : {
|
|
23663
|
+
"enum" : [ "gitlab" ],
|
|
23664
|
+
"type" : "string"
|
|
23665
|
+
},
|
|
23666
|
+
"status" : {
|
|
23667
|
+
"$ref" : "#/components/schemas/ExternalEventStatus"
|
|
23668
|
+
},
|
|
23669
|
+
"receivedAt" : {
|
|
23670
|
+
"format" : "date-time",
|
|
23671
|
+
"type" : "string"
|
|
23672
|
+
},
|
|
23673
|
+
"projectPath" : {
|
|
23674
|
+
"type" : "string"
|
|
23675
|
+
},
|
|
23676
|
+
"targetType" : {
|
|
23677
|
+
"enum" : [ "merge_request", "issue", "work_item", "commit" ],
|
|
23678
|
+
"type" : "string"
|
|
23679
|
+
},
|
|
23680
|
+
"targetIid" : {
|
|
23681
|
+
"nullable" : true,
|
|
23682
|
+
"type" : "integer"
|
|
23683
|
+
},
|
|
23684
|
+
"targetTitle" : {
|
|
23685
|
+
"nullable" : true,
|
|
23686
|
+
"type" : "string"
|
|
23687
|
+
},
|
|
23688
|
+
"targetUrl" : {
|
|
23689
|
+
"nullable" : true,
|
|
23690
|
+
"type" : "string"
|
|
23691
|
+
},
|
|
23692
|
+
"noteUrl" : {
|
|
23693
|
+
"nullable" : true,
|
|
23694
|
+
"type" : "string"
|
|
23695
|
+
},
|
|
23696
|
+
"author" : {
|
|
23697
|
+
"$ref" : "#/components/schemas/ScheduledTaskRunTrigger_author"
|
|
23698
|
+
},
|
|
23699
|
+
"body" : {
|
|
23700
|
+
"description" : "The comment text (untrusted user content).",
|
|
23701
|
+
"type" : "string"
|
|
23702
|
+
},
|
|
23703
|
+
"botUsername" : {
|
|
23704
|
+
"nullable" : true,
|
|
23705
|
+
"type" : "string"
|
|
23706
|
+
},
|
|
23707
|
+
"routing" : {
|
|
23708
|
+
"allOf" : [ {
|
|
23709
|
+
"$ref" : "#/components/schemas/ExternalEventRouting"
|
|
23710
|
+
} ],
|
|
23711
|
+
"nullable" : true
|
|
23712
|
+
},
|
|
23713
|
+
"replyUrl" : {
|
|
23714
|
+
"nullable" : true,
|
|
23715
|
+
"type" : "string"
|
|
23716
|
+
},
|
|
23717
|
+
"conversationId" : {
|
|
23718
|
+
"nullable" : true,
|
|
23719
|
+
"type" : "string"
|
|
23720
|
+
}
|
|
23721
|
+
},
|
|
23722
|
+
"required" : [ "author", "body", "botUsername", "conversationId", "eventId", "noteUrl", "projectPath", "receivedAt", "replyUrl", "routing", "source", "status", "targetIid", "targetTitle", "targetType", "targetUrl" ],
|
|
23723
|
+
"type" : "object"
|
|
23724
|
+
},
|
|
22826
23725
|
"AppLight" : {
|
|
22827
23726
|
"properties" : {
|
|
22828
23727
|
"id" : {
|
|
@@ -23717,6 +24616,117 @@
|
|
|
23717
24616
|
"required" : [ "message" ],
|
|
23718
24617
|
"type" : "object"
|
|
23719
24618
|
},
|
|
24619
|
+
"ApplicationTokenError" : {
|
|
24620
|
+
"properties" : {
|
|
24621
|
+
"error" : {
|
|
24622
|
+
"type" : "string"
|
|
24623
|
+
},
|
|
24624
|
+
"error_description" : {
|
|
24625
|
+
"type" : "string"
|
|
24626
|
+
}
|
|
24627
|
+
},
|
|
24628
|
+
"required" : [ "error" ],
|
|
24629
|
+
"type" : "object"
|
|
24630
|
+
},
|
|
24631
|
+
"ApplicationAuthorizationRequest" : {
|
|
24632
|
+
"additionalProperties" : false,
|
|
24633
|
+
"properties" : {
|
|
24634
|
+
"clientId" : {
|
|
24635
|
+
"maxLength" : 100,
|
|
24636
|
+
"minLength" : 1,
|
|
24637
|
+
"type" : "string"
|
|
24638
|
+
},
|
|
24639
|
+
"redirectUri" : {
|
|
24640
|
+
"description" : "Loopback HTTP address with a port, e.g. `http://127.0.0.1:53682/callback`.",
|
|
24641
|
+
"maxLength" : 200,
|
|
24642
|
+
"minLength" : 1,
|
|
24643
|
+
"type" : "string"
|
|
24644
|
+
},
|
|
24645
|
+
"codeChallenge" : {
|
|
24646
|
+
"maxLength" : 128,
|
|
24647
|
+
"minLength" : 43,
|
|
24648
|
+
"type" : "string"
|
|
24649
|
+
},
|
|
24650
|
+
"codeChallengeMethod" : {
|
|
24651
|
+
"enum" : [ "S256" ],
|
|
24652
|
+
"type" : "string"
|
|
24653
|
+
},
|
|
24654
|
+
"deviceName" : {
|
|
24655
|
+
"maxLength" : 100,
|
|
24656
|
+
"type" : "string"
|
|
24657
|
+
}
|
|
24658
|
+
},
|
|
24659
|
+
"required" : [ "clientId", "codeChallenge", "codeChallengeMethod", "redirectUri" ],
|
|
24660
|
+
"type" : "object"
|
|
24661
|
+
},
|
|
24662
|
+
"ApplicationAuthorizationResponse" : {
|
|
24663
|
+
"properties" : {
|
|
24664
|
+
"code" : {
|
|
24665
|
+
"type" : "string"
|
|
24666
|
+
},
|
|
24667
|
+
"expiresIn" : {
|
|
24668
|
+
"description" : "Lifetime of the code, in seconds.",
|
|
24669
|
+
"type" : "integer"
|
|
24670
|
+
}
|
|
24671
|
+
},
|
|
24672
|
+
"required" : [ "code", "expiresIn" ],
|
|
24673
|
+
"type" : "object"
|
|
24674
|
+
},
|
|
24675
|
+
"ApplicationAuthorizationError" : {
|
|
24676
|
+
"properties" : {
|
|
24677
|
+
"message" : {
|
|
24678
|
+
"type" : "string"
|
|
24679
|
+
}
|
|
24680
|
+
},
|
|
24681
|
+
"required" : [ "message" ],
|
|
24682
|
+
"type" : "object"
|
|
24683
|
+
},
|
|
24684
|
+
"ApplicationTokenRequest" : {
|
|
24685
|
+
"properties" : {
|
|
24686
|
+
"grant_type" : {
|
|
24687
|
+
"enum" : [ "authorization_code" ],
|
|
24688
|
+
"type" : "string"
|
|
24689
|
+
},
|
|
24690
|
+
"code" : {
|
|
24691
|
+
"type" : "string"
|
|
24692
|
+
},
|
|
24693
|
+
"code_verifier" : {
|
|
24694
|
+
"type" : "string"
|
|
24695
|
+
},
|
|
24696
|
+
"redirect_uri" : {
|
|
24697
|
+
"type" : "string"
|
|
24698
|
+
},
|
|
24699
|
+
"client_id" : {
|
|
24700
|
+
"type" : "string"
|
|
24701
|
+
}
|
|
24702
|
+
},
|
|
24703
|
+
"required" : [ "client_id", "code", "code_verifier", "grant_type", "redirect_uri" ],
|
|
24704
|
+
"type" : "object"
|
|
24705
|
+
},
|
|
24706
|
+
"ApplicationTokenResponse" : {
|
|
24707
|
+
"properties" : {
|
|
24708
|
+
"access_token" : {
|
|
24709
|
+
"description" : "API key, to send in the `x-api-key` header.",
|
|
24710
|
+
"type" : "string"
|
|
24711
|
+
},
|
|
24712
|
+
"token_type" : {
|
|
24713
|
+
"enum" : [ "api_key" ],
|
|
24714
|
+
"type" : "string"
|
|
24715
|
+
},
|
|
24716
|
+
"key_id" : {
|
|
24717
|
+
"type" : "string"
|
|
24718
|
+
},
|
|
24719
|
+
"key_name" : {
|
|
24720
|
+
"type" : "string"
|
|
24721
|
+
},
|
|
24722
|
+
"email" : {
|
|
24723
|
+
"nullable" : true,
|
|
24724
|
+
"type" : "string"
|
|
24725
|
+
}
|
|
24726
|
+
},
|
|
24727
|
+
"required" : [ "access_token", "key_id", "key_name", "token_type" ],
|
|
24728
|
+
"type" : "object"
|
|
24729
|
+
},
|
|
23720
24730
|
"Chunk" : {
|
|
23721
24731
|
"properties" : {
|
|
23722
24732
|
"id" : {
|
|
@@ -30588,77 +31598,511 @@
|
|
|
30588
31598
|
},
|
|
30589
31599
|
"type" : "object"
|
|
30590
31600
|
},
|
|
30591
|
-
"ConversationTicketProposal" : {
|
|
30592
|
-
"description" : "Proposition de ticket portée par un message d'agent.",
|
|
31601
|
+
"ConversationTicketProposal" : {
|
|
31602
|
+
"description" : "Proposition de ticket portée par un message d'agent.",
|
|
31603
|
+
"properties" : {
|
|
31604
|
+
"proposalId" : {
|
|
31605
|
+
"format" : "uuid",
|
|
31606
|
+
"type" : "string"
|
|
31607
|
+
},
|
|
31608
|
+
"status" : {
|
|
31609
|
+
"$ref" : "#/components/schemas/TicketProposalStatus"
|
|
31610
|
+
},
|
|
31611
|
+
"mode" : {
|
|
31612
|
+
"$ref" : "#/components/schemas/AgentTicketCreation"
|
|
31613
|
+
},
|
|
31614
|
+
"projectId" : {
|
|
31615
|
+
"description" : "Projet proposé par l'agent ; null = l'humain doit en choisir un",
|
|
31616
|
+
"format" : "uuid",
|
|
31617
|
+
"nullable" : true,
|
|
31618
|
+
"type" : "string"
|
|
31619
|
+
},
|
|
31620
|
+
"payload" : {
|
|
31621
|
+
"$ref" : "#/components/schemas/TicketProposalPayload"
|
|
31622
|
+
},
|
|
31623
|
+
"ticketId" : {
|
|
31624
|
+
"format" : "uuid",
|
|
31625
|
+
"nullable" : true,
|
|
31626
|
+
"type" : "string"
|
|
31627
|
+
},
|
|
31628
|
+
"ticketKey" : {
|
|
31629
|
+
"nullable" : true,
|
|
31630
|
+
"type" : "string"
|
|
31631
|
+
}
|
|
31632
|
+
},
|
|
31633
|
+
"required" : [ "mode", "payload", "projectId", "proposalId", "status", "ticketId", "ticketKey" ],
|
|
31634
|
+
"type" : "object"
|
|
31635
|
+
},
|
|
31636
|
+
"TicketProposalPayload" : {
|
|
31637
|
+
"properties" : {
|
|
31638
|
+
"title" : {
|
|
31639
|
+
"type" : "string"
|
|
31640
|
+
},
|
|
31641
|
+
"description" : {
|
|
31642
|
+
"nullable" : true,
|
|
31643
|
+
"type" : "string"
|
|
31644
|
+
},
|
|
31645
|
+
"assignees" : {
|
|
31646
|
+
"items" : {
|
|
31647
|
+
"$ref" : "#/components/schemas/TicketAssigneeInput"
|
|
31648
|
+
},
|
|
31649
|
+
"type" : "array"
|
|
31650
|
+
},
|
|
31651
|
+
"reviewer" : {
|
|
31652
|
+
"allOf" : [ {
|
|
31653
|
+
"$ref" : "#/components/schemas/MemberRef"
|
|
31654
|
+
} ],
|
|
31655
|
+
"nullable" : true
|
|
31656
|
+
},
|
|
31657
|
+
"priority" : {
|
|
31658
|
+
"$ref" : "#/components/schemas/TicketPriority"
|
|
31659
|
+
},
|
|
31660
|
+
"startMode" : {
|
|
31661
|
+
"$ref" : "#/components/schemas/TicketStartMode"
|
|
31662
|
+
},
|
|
31663
|
+
"workspacePaths" : {
|
|
31664
|
+
"description" : "Fichiers du workspace de la session à joindre comme artefacts",
|
|
31665
|
+
"items" : {
|
|
31666
|
+
"type" : "string"
|
|
31667
|
+
},
|
|
31668
|
+
"type" : "array"
|
|
31669
|
+
}
|
|
31670
|
+
},
|
|
31671
|
+
"required" : [ "assignees", "description", "priority", "reviewer", "startMode", "title", "workspacePaths" ],
|
|
31672
|
+
"type" : "object"
|
|
31673
|
+
},
|
|
31674
|
+
"GitlabIntegration" : {
|
|
31675
|
+
"description" : "A GitLab instance linked to an organization. Its projects send webhooks to `webhookUrl`.",
|
|
30593
31676
|
"properties" : {
|
|
30594
|
-
"
|
|
30595
|
-
"
|
|
31677
|
+
"id" : {
|
|
31678
|
+
"type" : "string"
|
|
31679
|
+
},
|
|
31680
|
+
"organizationId" : {
|
|
31681
|
+
"type" : "string"
|
|
31682
|
+
},
|
|
31683
|
+
"name" : {
|
|
31684
|
+
"type" : "string"
|
|
31685
|
+
},
|
|
31686
|
+
"baseUrl" : {
|
|
31687
|
+
"description" : "The instance URL, without a trailing slash.",
|
|
30596
31688
|
"type" : "string"
|
|
30597
31689
|
},
|
|
31690
|
+
"minAccessLevel" : {
|
|
31691
|
+
"$ref" : "#/components/schemas/GitlabAccessLevel"
|
|
31692
|
+
},
|
|
30598
31693
|
"status" : {
|
|
30599
|
-
"
|
|
31694
|
+
"enum" : [ "active", "disabled" ],
|
|
31695
|
+
"type" : "string"
|
|
30600
31696
|
},
|
|
30601
|
-
"
|
|
30602
|
-
"
|
|
31697
|
+
"webhookUrl" : {
|
|
31698
|
+
"description" : "The URL to declare in GitLab, Settings › Webhooks.",
|
|
31699
|
+
"type" : "string"
|
|
30603
31700
|
},
|
|
30604
|
-
"
|
|
30605
|
-
"
|
|
30606
|
-
"format" : "uuid",
|
|
31701
|
+
"lastEventAt" : {
|
|
31702
|
+
"format" : "date-time",
|
|
30607
31703
|
"nullable" : true,
|
|
30608
31704
|
"type" : "string"
|
|
30609
31705
|
},
|
|
30610
|
-
"
|
|
30611
|
-
"
|
|
31706
|
+
"botAccountCount" : {
|
|
31707
|
+
"type" : "integer"
|
|
30612
31708
|
},
|
|
30613
|
-
"
|
|
30614
|
-
"
|
|
30615
|
-
"
|
|
31709
|
+
"handledLast7Days" : {
|
|
31710
|
+
"description" : "Mentions answered over the last 7 days.",
|
|
31711
|
+
"type" : "integer"
|
|
31712
|
+
},
|
|
31713
|
+
"createdAt" : {
|
|
31714
|
+
"format" : "date-time",
|
|
30616
31715
|
"type" : "string"
|
|
30617
31716
|
},
|
|
30618
|
-
"
|
|
30619
|
-
"
|
|
31717
|
+
"updatedAt" : {
|
|
31718
|
+
"format" : "date-time",
|
|
30620
31719
|
"type" : "string"
|
|
30621
31720
|
}
|
|
30622
31721
|
},
|
|
30623
|
-
"required" : [ "
|
|
31722
|
+
"required" : [ "baseUrl", "botAccountCount", "createdAt", "handledLast7Days", "id", "lastEventAt", "minAccessLevel", "name", "organizationId", "status", "updatedAt", "webhookUrl" ],
|
|
30624
31723
|
"type" : "object"
|
|
30625
31724
|
},
|
|
30626
|
-
"
|
|
31725
|
+
"GitlabAccessLevel" : {
|
|
31726
|
+
"description" : "GitLab access level — Guest (10), Reporter (20), Developer (30), Maintainer (40), Owner (50).",
|
|
31727
|
+
"enum" : [ 10, 20, 30, 40, 50 ],
|
|
31728
|
+
"type" : "integer"
|
|
31729
|
+
},
|
|
31730
|
+
"GitlabIntegrationCreate" : {
|
|
31731
|
+
"additionalProperties" : false,
|
|
30627
31732
|
"properties" : {
|
|
30628
|
-
"
|
|
31733
|
+
"name" : {
|
|
31734
|
+
"maxLength" : 120,
|
|
31735
|
+
"minLength" : 1,
|
|
30629
31736
|
"type" : "string"
|
|
30630
31737
|
},
|
|
30631
|
-
"
|
|
31738
|
+
"baseUrl" : {
|
|
31739
|
+
"maxLength" : 500,
|
|
31740
|
+
"minLength" : 1,
|
|
31741
|
+
"type" : "string"
|
|
31742
|
+
},
|
|
31743
|
+
"minAccessLevel" : {
|
|
31744
|
+
"$ref" : "#/components/schemas/GitlabAccessLevel"
|
|
31745
|
+
}
|
|
31746
|
+
},
|
|
31747
|
+
"required" : [ "baseUrl", "name" ],
|
|
31748
|
+
"type" : "object"
|
|
31749
|
+
},
|
|
31750
|
+
"GitlabIntegrationDetail" : {
|
|
31751
|
+
"allOf" : [ {
|
|
31752
|
+
"$ref" : "#/components/schemas/GitlabIntegration"
|
|
31753
|
+
}, {
|
|
31754
|
+
"properties" : {
|
|
31755
|
+
"webhookSecret" : {
|
|
31756
|
+
"description" : "The webhook \"Secret token\" to copy into GitLab. Only organization admins read it.",
|
|
31757
|
+
"type" : "string"
|
|
31758
|
+
},
|
|
31759
|
+
"botAccounts" : {
|
|
31760
|
+
"items" : {
|
|
31761
|
+
"$ref" : "#/components/schemas/GitlabBotAccount"
|
|
31762
|
+
},
|
|
31763
|
+
"type" : "array"
|
|
31764
|
+
}
|
|
31765
|
+
},
|
|
31766
|
+
"required" : [ "botAccounts", "webhookSecret" ],
|
|
31767
|
+
"type" : "object"
|
|
31768
|
+
} ]
|
|
31769
|
+
},
|
|
31770
|
+
"GitlabBotAccount" : {
|
|
31771
|
+
"description" : "A GitLab account mentioned to wake an agent. `@bot Agent …` wakes the named agent when it is callable; otherwise the whole text goes to the default agent.",
|
|
31772
|
+
"properties" : {
|
|
31773
|
+
"id" : {
|
|
31774
|
+
"type" : "string"
|
|
31775
|
+
},
|
|
31776
|
+
"integrationId" : {
|
|
31777
|
+
"type" : "string"
|
|
31778
|
+
},
|
|
31779
|
+
"organizationId" : {
|
|
31780
|
+
"type" : "string"
|
|
31781
|
+
},
|
|
31782
|
+
"gitlabUserId" : {
|
|
30632
31783
|
"nullable" : true,
|
|
31784
|
+
"type" : "integer"
|
|
31785
|
+
},
|
|
31786
|
+
"username" : {
|
|
31787
|
+
"description" : "Without the `@`.",
|
|
30633
31788
|
"type" : "string"
|
|
30634
31789
|
},
|
|
30635
|
-
"
|
|
31790
|
+
"tokenHint" : {
|
|
31791
|
+
"description" : "The end of the token (`glpat-…7f2a`); the token itself is never returned.",
|
|
31792
|
+
"type" : "string"
|
|
31793
|
+
},
|
|
31794
|
+
"tokenExpiresAt" : {
|
|
31795
|
+
"nullable" : true,
|
|
31796
|
+
"type" : "string"
|
|
31797
|
+
},
|
|
31798
|
+
"defaultAgentId" : {
|
|
31799
|
+
"nullable" : true,
|
|
31800
|
+
"type" : "string"
|
|
31801
|
+
},
|
|
31802
|
+
"callableAgentIds" : {
|
|
31803
|
+
"description" : "null — every (non personal) agent of the organization is callable by its name.",
|
|
30636
31804
|
"items" : {
|
|
30637
|
-
"
|
|
31805
|
+
"type" : "string"
|
|
30638
31806
|
},
|
|
31807
|
+
"nullable" : true,
|
|
30639
31808
|
"type" : "array"
|
|
30640
31809
|
},
|
|
30641
|
-
"
|
|
31810
|
+
"runAsUserId" : {
|
|
31811
|
+
"description" : "The organization member the conversations run as (user-scoped MCP tools, quotas).",
|
|
31812
|
+
"type" : "string"
|
|
31813
|
+
},
|
|
31814
|
+
"runAsUserName" : {
|
|
31815
|
+
"nullable" : true,
|
|
31816
|
+
"type" : "string"
|
|
31817
|
+
},
|
|
31818
|
+
"status" : {
|
|
31819
|
+
"enum" : [ "active", "token_invalid", "disabled" ],
|
|
31820
|
+
"type" : "string"
|
|
31821
|
+
},
|
|
31822
|
+
"lastError" : {
|
|
31823
|
+
"nullable" : true,
|
|
31824
|
+
"type" : "string"
|
|
31825
|
+
},
|
|
31826
|
+
"createdAt" : {
|
|
31827
|
+
"type" : "string"
|
|
31828
|
+
},
|
|
31829
|
+
"updatedAt" : {
|
|
31830
|
+
"type" : "string"
|
|
31831
|
+
}
|
|
31832
|
+
},
|
|
31833
|
+
"required" : [ "callableAgentIds", "createdAt", "defaultAgentId", "gitlabUserId", "id", "integrationId", "lastError", "organizationId", "runAsUserId", "runAsUserName", "status", "tokenExpiresAt", "tokenHint", "updatedAt", "username" ],
|
|
31834
|
+
"type" : "object"
|
|
31835
|
+
},
|
|
31836
|
+
"GitlabIntegrationUpdate" : {
|
|
31837
|
+
"additionalProperties" : false,
|
|
31838
|
+
"properties" : {
|
|
31839
|
+
"name" : {
|
|
31840
|
+
"maxLength" : 120,
|
|
31841
|
+
"minLength" : 1,
|
|
31842
|
+
"type" : "string"
|
|
31843
|
+
},
|
|
31844
|
+
"baseUrl" : {
|
|
31845
|
+
"maxLength" : 500,
|
|
31846
|
+
"minLength" : 1,
|
|
31847
|
+
"type" : "string"
|
|
31848
|
+
},
|
|
31849
|
+
"minAccessLevel" : {
|
|
31850
|
+
"$ref" : "#/components/schemas/GitlabAccessLevel"
|
|
31851
|
+
},
|
|
31852
|
+
"status" : {
|
|
31853
|
+
"enum" : [ "active", "disabled" ],
|
|
31854
|
+
"type" : "string"
|
|
31855
|
+
},
|
|
31856
|
+
"regenerateSecret" : {
|
|
31857
|
+
"description" : "Generate a new webhook secret; GitLab must then be given the new one.",
|
|
31858
|
+
"type" : "boolean"
|
|
31859
|
+
}
|
|
31860
|
+
},
|
|
31861
|
+
"type" : "object"
|
|
31862
|
+
},
|
|
31863
|
+
"ExternalEvent" : {
|
|
31864
|
+
"description" : "A mention received from GitLab and its way through the queue.",
|
|
31865
|
+
"properties" : {
|
|
31866
|
+
"id" : {
|
|
31867
|
+
"type" : "string"
|
|
31868
|
+
},
|
|
31869
|
+
"status" : {
|
|
31870
|
+
"$ref" : "#/components/schemas/ExternalEventStatus"
|
|
31871
|
+
},
|
|
31872
|
+
"receivedAt" : {
|
|
31873
|
+
"format" : "date-time",
|
|
31874
|
+
"type" : "string"
|
|
31875
|
+
},
|
|
31876
|
+
"ref" : {
|
|
31877
|
+
"description" : "groupe/projet!142, groupe/projet#88…",
|
|
31878
|
+
"type" : "string"
|
|
31879
|
+
},
|
|
31880
|
+
"targetType" : {
|
|
31881
|
+
"enum" : [ "merge_request", "issue", "work_item", "commit" ],
|
|
31882
|
+
"type" : "string"
|
|
31883
|
+
},
|
|
31884
|
+
"targetTitle" : {
|
|
31885
|
+
"nullable" : true,
|
|
31886
|
+
"type" : "string"
|
|
31887
|
+
},
|
|
31888
|
+
"url" : {
|
|
31889
|
+
"nullable" : true,
|
|
31890
|
+
"type" : "string"
|
|
31891
|
+
},
|
|
31892
|
+
"author" : {
|
|
31893
|
+
"$ref" : "#/components/schemas/ScheduledTaskRunTrigger_author"
|
|
31894
|
+
},
|
|
31895
|
+
"botAccountId" : {
|
|
31896
|
+
"nullable" : true,
|
|
31897
|
+
"type" : "string"
|
|
31898
|
+
},
|
|
31899
|
+
"agentId" : {
|
|
31900
|
+
"nullable" : true,
|
|
31901
|
+
"type" : "string"
|
|
31902
|
+
},
|
|
31903
|
+
"agentName" : {
|
|
31904
|
+
"nullable" : true,
|
|
31905
|
+
"type" : "string"
|
|
31906
|
+
},
|
|
31907
|
+
"taskId" : {
|
|
31908
|
+
"nullable" : true,
|
|
31909
|
+
"type" : "string"
|
|
31910
|
+
},
|
|
31911
|
+
"runId" : {
|
|
31912
|
+
"nullable" : true,
|
|
31913
|
+
"type" : "string"
|
|
31914
|
+
},
|
|
31915
|
+
"routing" : {
|
|
30642
31916
|
"allOf" : [ {
|
|
30643
|
-
"$ref" : "#/components/schemas/
|
|
31917
|
+
"$ref" : "#/components/schemas/ExternalEventRouting"
|
|
30644
31918
|
} ],
|
|
30645
31919
|
"nullable" : true
|
|
30646
31920
|
},
|
|
30647
|
-
"
|
|
30648
|
-
"
|
|
31921
|
+
"lastError" : {
|
|
31922
|
+
"nullable" : true,
|
|
31923
|
+
"type" : "string"
|
|
30649
31924
|
},
|
|
30650
|
-
"
|
|
30651
|
-
"
|
|
31925
|
+
"replyUrl" : {
|
|
31926
|
+
"nullable" : true,
|
|
31927
|
+
"type" : "string"
|
|
31928
|
+
}
|
|
31929
|
+
},
|
|
31930
|
+
"required" : [ "agentId", "agentName", "author", "botAccountId", "id", "lastError", "receivedAt", "ref", "replyUrl", "routing", "runId", "status", "targetTitle", "targetType", "taskId", "url" ],
|
|
31931
|
+
"type" : "object"
|
|
31932
|
+
},
|
|
31933
|
+
"ExternalEventStatus" : {
|
|
31934
|
+
"enum" : [ "received", "queued", "running", "replying", "done", "ignored", "no_automation", "expired", "dead", "dropped_overload" ],
|
|
31935
|
+
"type" : "string"
|
|
31936
|
+
},
|
|
31937
|
+
"ExternalEventRouting" : {
|
|
31938
|
+
"properties" : {
|
|
31939
|
+
"mode" : {
|
|
31940
|
+
"description" : "named — the first word was a callable agent; default — the whole text went to the default agent.",
|
|
31941
|
+
"enum" : [ "named", "default", "help" ],
|
|
31942
|
+
"type" : "string"
|
|
30652
31943
|
},
|
|
30653
|
-
"
|
|
30654
|
-
"
|
|
31944
|
+
"agentName" : {
|
|
31945
|
+
"nullable" : true,
|
|
31946
|
+
"type" : "string"
|
|
31947
|
+
},
|
|
31948
|
+
"instruction" : {
|
|
31949
|
+
"type" : "string"
|
|
31950
|
+
}
|
|
31951
|
+
},
|
|
31952
|
+
"required" : [ "agentName", "instruction", "mode" ],
|
|
31953
|
+
"type" : "object"
|
|
31954
|
+
},
|
|
31955
|
+
"GitlabConnectionTestResult" : {
|
|
31956
|
+
"properties" : {
|
|
31957
|
+
"botAccountId" : {
|
|
31958
|
+
"type" : "string"
|
|
31959
|
+
},
|
|
31960
|
+
"username" : {
|
|
31961
|
+
"type" : "string"
|
|
31962
|
+
},
|
|
31963
|
+
"ok" : {
|
|
31964
|
+
"type" : "boolean"
|
|
31965
|
+
},
|
|
31966
|
+
"error" : {
|
|
31967
|
+
"nullable" : true,
|
|
31968
|
+
"type" : "string"
|
|
31969
|
+
}
|
|
31970
|
+
},
|
|
31971
|
+
"required" : [ "botAccountId", "error", "ok", "username" ],
|
|
31972
|
+
"type" : "object"
|
|
31973
|
+
},
|
|
31974
|
+
"GitlabRoutingTest" : {
|
|
31975
|
+
"additionalProperties" : false,
|
|
31976
|
+
"properties" : {
|
|
31977
|
+
"text" : {
|
|
31978
|
+
"maxLength" : 20000,
|
|
31979
|
+
"minLength" : 1,
|
|
31980
|
+
"type" : "string"
|
|
31981
|
+
}
|
|
31982
|
+
},
|
|
31983
|
+
"required" : [ "text" ],
|
|
31984
|
+
"type" : "object"
|
|
31985
|
+
},
|
|
31986
|
+
"GitlabRoutingTestResult" : {
|
|
31987
|
+
"description" : "What a comment would trigger, without running anything.",
|
|
31988
|
+
"properties" : {
|
|
31989
|
+
"outcome" : {
|
|
31990
|
+
"enum" : [ "routed", "help", "no_bot_mention", "no_automation" ],
|
|
31991
|
+
"type" : "string"
|
|
31992
|
+
},
|
|
31993
|
+
"botAccount" : {
|
|
31994
|
+
"$ref" : "#/components/schemas/GitlabRoutingTestResult_botAccount"
|
|
31995
|
+
},
|
|
31996
|
+
"agent" : {
|
|
31997
|
+
"$ref" : "#/components/schemas/GitlabRoutingTestResult_agent"
|
|
31998
|
+
},
|
|
31999
|
+
"routing" : {
|
|
32000
|
+
"allOf" : [ {
|
|
32001
|
+
"$ref" : "#/components/schemas/ExternalEventRouting"
|
|
32002
|
+
} ],
|
|
32003
|
+
"nullable" : true
|
|
32004
|
+
},
|
|
32005
|
+
"runAsUser" : {
|
|
32006
|
+
"$ref" : "#/components/schemas/GitlabRoutingTestResult_runAsUser"
|
|
32007
|
+
},
|
|
32008
|
+
"automations" : {
|
|
32009
|
+
"items" : {
|
|
32010
|
+
"$ref" : "#/components/schemas/GitlabRoutingTestResult_automations_inner"
|
|
32011
|
+
},
|
|
32012
|
+
"type" : "array"
|
|
32013
|
+
}
|
|
32014
|
+
},
|
|
32015
|
+
"required" : [ "agent", "automations", "botAccount", "outcome", "routing", "runAsUser" ],
|
|
32016
|
+
"type" : "object"
|
|
32017
|
+
},
|
|
32018
|
+
"GitlabBotAccountCreate" : {
|
|
32019
|
+
"additionalProperties" : false,
|
|
32020
|
+
"properties" : {
|
|
32021
|
+
"token" : {
|
|
32022
|
+
"description" : "A personal access token of the bot account (scope `api`). Checked against GitLab.",
|
|
32023
|
+
"maxLength" : 500,
|
|
32024
|
+
"minLength" : 8,
|
|
32025
|
+
"type" : "string"
|
|
32026
|
+
},
|
|
32027
|
+
"defaultAgentId" : {
|
|
32028
|
+
"nullable" : true,
|
|
32029
|
+
"type" : "string"
|
|
32030
|
+
},
|
|
32031
|
+
"callableAgentIds" : {
|
|
30655
32032
|
"items" : {
|
|
30656
32033
|
"type" : "string"
|
|
30657
32034
|
},
|
|
32035
|
+
"nullable" : true,
|
|
30658
32036
|
"type" : "array"
|
|
32037
|
+
},
|
|
32038
|
+
"runAsUserId" : {
|
|
32039
|
+
"type" : "string"
|
|
32040
|
+
}
|
|
32041
|
+
},
|
|
32042
|
+
"required" : [ "runAsUserId", "token" ],
|
|
32043
|
+
"type" : "object"
|
|
32044
|
+
},
|
|
32045
|
+
"GitlabBotAccountUpdate" : {
|
|
32046
|
+
"additionalProperties" : false,
|
|
32047
|
+
"properties" : {
|
|
32048
|
+
"token" : {
|
|
32049
|
+
"maxLength" : 500,
|
|
32050
|
+
"minLength" : 8,
|
|
32051
|
+
"type" : "string"
|
|
32052
|
+
},
|
|
32053
|
+
"defaultAgentId" : {
|
|
32054
|
+
"nullable" : true,
|
|
32055
|
+
"type" : "string"
|
|
32056
|
+
},
|
|
32057
|
+
"callableAgentIds" : {
|
|
32058
|
+
"items" : {
|
|
32059
|
+
"type" : "string"
|
|
32060
|
+
},
|
|
32061
|
+
"nullable" : true,
|
|
32062
|
+
"type" : "array"
|
|
32063
|
+
},
|
|
32064
|
+
"runAsUserId" : {
|
|
32065
|
+
"type" : "string"
|
|
32066
|
+
},
|
|
32067
|
+
"status" : {
|
|
32068
|
+
"enum" : [ "active", "disabled" ],
|
|
32069
|
+
"type" : "string"
|
|
30659
32070
|
}
|
|
30660
32071
|
},
|
|
30661
|
-
"
|
|
32072
|
+
"type" : "object"
|
|
32073
|
+
},
|
|
32074
|
+
"GitlabBotAccountSummary" : {
|
|
32075
|
+
"description" : "A bot account as members see it, to pick one in an automation. No secret.",
|
|
32076
|
+
"properties" : {
|
|
32077
|
+
"id" : {
|
|
32078
|
+
"type" : "string"
|
|
32079
|
+
},
|
|
32080
|
+
"username" : {
|
|
32081
|
+
"type" : "string"
|
|
32082
|
+
},
|
|
32083
|
+
"integrationId" : {
|
|
32084
|
+
"type" : "string"
|
|
32085
|
+
},
|
|
32086
|
+
"integrationName" : {
|
|
32087
|
+
"type" : "string"
|
|
32088
|
+
},
|
|
32089
|
+
"defaultAgentId" : {
|
|
32090
|
+
"nullable" : true,
|
|
32091
|
+
"type" : "string"
|
|
32092
|
+
},
|
|
32093
|
+
"callableAgentIds" : {
|
|
32094
|
+
"items" : {
|
|
32095
|
+
"type" : "string"
|
|
32096
|
+
},
|
|
32097
|
+
"nullable" : true,
|
|
32098
|
+
"type" : "array"
|
|
32099
|
+
},
|
|
32100
|
+
"status" : {
|
|
32101
|
+
"enum" : [ "active", "token_invalid", "disabled" ],
|
|
32102
|
+
"type" : "string"
|
|
32103
|
+
}
|
|
32104
|
+
},
|
|
32105
|
+
"required" : [ "callableAgentIds", "defaultAgentId", "id", "integrationId", "integrationName", "status", "username" ],
|
|
30662
32106
|
"type" : "object"
|
|
30663
32107
|
},
|
|
30664
32108
|
"InboxTab" : {
|
|
@@ -32358,6 +33802,33 @@
|
|
|
32358
33802
|
"required" : [ "date", "type" ],
|
|
32359
33803
|
"type" : "object"
|
|
32360
33804
|
},
|
|
33805
|
+
"TaskTrigger_reply" : {
|
|
33806
|
+
"properties" : {
|
|
33807
|
+
"thread" : {
|
|
33808
|
+
"description" : "Post the agent answer in the GitLab thread.",
|
|
33809
|
+
"type" : "boolean"
|
|
33810
|
+
},
|
|
33811
|
+
"ack" : {
|
|
33812
|
+
"description" : "React with \"eyes\" as soon as the mention is taken.",
|
|
33813
|
+
"type" : "boolean"
|
|
33814
|
+
}
|
|
33815
|
+
},
|
|
33816
|
+
"required" : [ "ack", "thread" ],
|
|
33817
|
+
"type" : "object"
|
|
33818
|
+
},
|
|
33819
|
+
"ScheduledTaskRunTrigger_author" : {
|
|
33820
|
+
"properties" : {
|
|
33821
|
+
"username" : {
|
|
33822
|
+
"type" : "string"
|
|
33823
|
+
},
|
|
33824
|
+
"name" : {
|
|
33825
|
+
"nullable" : true,
|
|
33826
|
+
"type" : "string"
|
|
33827
|
+
}
|
|
33828
|
+
},
|
|
33829
|
+
"required" : [ "name", "username" ],
|
|
33830
|
+
"type" : "object"
|
|
33831
|
+
},
|
|
32361
33832
|
"AppCreateRequest_ephemeralInstances" : {
|
|
32362
33833
|
"additionalProperties" : false,
|
|
32363
33834
|
"properties" : {
|
|
@@ -33492,6 +34963,59 @@
|
|
|
33492
34963
|
"required" : [ "connected", "id", "name", "ownedByMe" ],
|
|
33493
34964
|
"type" : "object"
|
|
33494
34965
|
},
|
|
34966
|
+
"GitlabRoutingTestResult_botAccount" : {
|
|
34967
|
+
"nullable" : true,
|
|
34968
|
+
"properties" : {
|
|
34969
|
+
"id" : {
|
|
34970
|
+
"type" : "string"
|
|
34971
|
+
},
|
|
34972
|
+
"username" : {
|
|
34973
|
+
"type" : "string"
|
|
34974
|
+
}
|
|
34975
|
+
},
|
|
34976
|
+
"required" : [ "id", "username" ],
|
|
34977
|
+
"type" : "object"
|
|
34978
|
+
},
|
|
34979
|
+
"GitlabRoutingTestResult_agent" : {
|
|
34980
|
+
"nullable" : true,
|
|
34981
|
+
"properties" : {
|
|
34982
|
+
"id" : {
|
|
34983
|
+
"type" : "string"
|
|
34984
|
+
},
|
|
34985
|
+
"name" : {
|
|
34986
|
+
"type" : "string"
|
|
34987
|
+
}
|
|
34988
|
+
},
|
|
34989
|
+
"required" : [ "id", "name" ],
|
|
34990
|
+
"type" : "object"
|
|
34991
|
+
},
|
|
34992
|
+
"GitlabRoutingTestResult_runAsUser" : {
|
|
34993
|
+
"nullable" : true,
|
|
34994
|
+
"properties" : {
|
|
34995
|
+
"id" : {
|
|
34996
|
+
"type" : "string"
|
|
34997
|
+
},
|
|
34998
|
+
"name" : {
|
|
34999
|
+
"nullable" : true,
|
|
35000
|
+
"type" : "string"
|
|
35001
|
+
}
|
|
35002
|
+
},
|
|
35003
|
+
"required" : [ "id", "name" ],
|
|
35004
|
+
"type" : "object"
|
|
35005
|
+
},
|
|
35006
|
+
"GitlabRoutingTestResult_automations_inner" : {
|
|
35007
|
+
"properties" : {
|
|
35008
|
+
"id" : {
|
|
35009
|
+
"type" : "string"
|
|
35010
|
+
},
|
|
35011
|
+
"name" : {
|
|
35012
|
+
"nullable" : true,
|
|
35013
|
+
"type" : "string"
|
|
35014
|
+
}
|
|
35015
|
+
},
|
|
35016
|
+
"required" : [ "id", "name" ],
|
|
35017
|
+
"type" : "object"
|
|
35018
|
+
},
|
|
33495
35019
|
"InboxItem_project" : {
|
|
33496
35020
|
"nullable" : true,
|
|
33497
35021
|
"properties" : {
|