aiconfig.md•71.1 kB
# AIConfig
## Example Usage
```typescript
import { AIConfig } from "@launchdarkly/mcp-server/models/components";
let value: AIConfig = {
access: {
denied: [
{
action: "action",
reason: {
resources: [
"proj/*:env/*;qa_*:/flag/*",
],
notResources: [
"notResources",
"notResources",
],
actions: [
"*",
],
notActions: [
"<value 1>",
"<value 2>",
],
effect: "allow",
roleName: "role_name",
},
},
{
action: "action",
reason: {
resources: [
"proj/*:env/*;qa_*:/flag/*",
],
notResources: [
"notResources",
"notResources",
],
actions: [
"*",
],
notActions: [
"<value 1>",
"<value 2>",
],
effect: "allow",
roleName: "role_name",
},
},
],
allowed: [
{
action: "action",
reason: {
resources: [
"proj/*:env/*;qa_*:/flag/*",
],
notResources: [
"notResources",
"notResources",
],
actions: [
"*",
],
notActions: [
"<value 1>",
"<value 2>",
],
effect: "allow",
roleName: "role_name",
},
},
{
action: "action",
reason: {
resources: [
"proj/*:env/*;qa_*:/flag/*",
],
notResources: [
"notResources",
"notResources",
],
actions: [
"*",
],
notActions: [
"<value 1>",
"<value 2>",
],
effect: "allow",
roleName: "role_name",
},
},
],
},
links: {
self: {
href: "href",
type: "type",
},
parent: {
href: "href",
type: "type",
},
},
description: "description",
key: "key",
maintainer: {
key: "<key>",
name: "<value>",
kind: "kind",
},
name: "name",
tags: [
"tags",
"tags",
],
version: 0,
variations: [
{
links: {
parent: {
href: "href",
type: "type",
},
},
color: "color",
comment: "comment",
description: "description",
instructions: "instructions",
key: "key",
id: "_id",
messages: [
{
content: "content",
role: "role",
},
{
content: "content",
role: "role",
},
],
model: {},
modelConfigKey: "modelConfigKey",
name: "name",
createdAt: 6,
version: 1,
state: "state",
archivedAt: 5,
publishedAt: 5,
},
{
links: {
parent: {
href: "href",
type: "type",
},
},
color: "color",
comment: "comment",
description: "description",
instructions: "instructions",
key: "key",
id: "_id",
messages: [
{
content: "content",
role: "role",
},
{
content: "content",
role: "role",
},
],
model: {},
modelConfigKey: "modelConfigKey",
name: "name",
createdAt: 6,
version: 1,
state: "state",
archivedAt: 5,
publishedAt: 5,
},
],
createdAt: 2,
updatedAt: 7,
};
```
## Fields
| Field | Type | Required | Description | Example |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `access` | [components.AiConfigsAccess](../../models/components/aiconfigsaccess.md) | :heavy_minus_sign: | N/A | {<br/>"allowed": [<br/>{<br/>"reason": {<br/>"role_name": "role_name",<br/>"notActions": [<br/>null,<br/>null<br/>],<br/>"notResources": [<br/>"notResources",<br/>"notResources"<br/>],<br/>"effect": "allow",<br/>"resources": [<br/>"proj/*:env/*;qa_*:/flag/*"<br/>],<br/>"actions": [<br/>"*"<br/>]<br/>},<br/>"action": "action"<br/>},<br/>{<br/>"reason": {<br/>"role_name": "role_name",<br/>"notActions": [<br/>null,<br/>null<br/>],<br/>"notResources": [<br/>"notResources",<br/>"notResources"<br/>],<br/>"effect": "allow",<br/>"resources": [<br/>"proj/*:env/*;qa_*:/flag/*"<br/>],<br/>"actions": [<br/>"*"<br/>]<br/>},<br/>"action": "action"<br/>}<br/>],<br/>"denied": [<br/>{<br/>"reason": {<br/>"role_name": "role_name",<br/>"notActions": [<br/>null,<br/>null<br/>],<br/>"notResources": [<br/>"notResources",<br/>"notResources"<br/>],<br/>"effect": "allow",<br/>"resources": [<br/>"proj/*:env/*;qa_*:/flag/*"<br/>],<br/>"actions": [<br/>"*"<br/>]<br/>},<br/>"action": "action"<br/>},<br/>{<br/>"reason": {<br/>"role_name": "role_name",<br/>"notActions": [<br/>null,<br/>null<br/>],<br/>"notResources": [<br/>"notResources",<br/>"notResources"<br/>],<br/>"effect": "allow",<br/>"resources": [<br/>"proj/*:env/*;qa_*:/flag/*"<br/>],<br/>"actions": [<br/>"*"<br/>]<br/>},<br/>"action": "action"<br/>}<br/>]<br/>} |
| `links` | [components.ParentAndSelfLinks](../../models/components/parentandselflinks.md) | :heavy_minus_sign: | The location and content type of related resources | {<br/>"parent": {<br/>"href": "href",<br/>"type": "type"<br/>},<br/>"self": {<br/>"href": "href",<br/>"type": "type"<br/>}<br/>} |
| `description` | *string* | :heavy_check_mark: | N/A | |
| `key` | *string* | :heavy_check_mark: | N/A | |
| `maintainer` | *components.AIConfigMaintainer* | :heavy_minus_sign: | N/A | {<br/>"kind": "kind"<br/>} |
| `mode` | [components.AIConfigMode](../../models/components/aiconfigmode.md) | :heavy_minus_sign: | N/A | |
| `name` | *string* | :heavy_check_mark: | N/A | |
| `tags` | *string*[] | :heavy_check_mark: | N/A | |
| `version` | *number* | :heavy_check_mark: | N/A | |
| `variations` | [components.AIConfigVariation](../../models/components/aiconfigvariation.md)[] | :heavy_check_mark: | N/A | |
| `createdAt` | *number* | :heavy_check_mark: | N/A | |
| `updatedAt` | *number* | :heavy_check_mark: | N/A | |