@launchdarkly/mcp-server 0.4.0 → 0.4.2
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/FUNCTIONS.md +3 -5
- package/README.md +9 -0
- package/bin/mcp-server.js +846 -58
- package/bin/mcp-server.js.map +28 -9
- package/dist/commonjs/funcs/codeReferencesListRepositories.d.ts +19 -0
- package/dist/commonjs/funcs/codeReferencesListRepositories.d.ts.map +1 -0
- package/dist/commonjs/funcs/codeReferencesListRepositories.js +125 -0
- package/dist/commonjs/funcs/codeReferencesListRepositories.js.map +1 -0
- package/dist/commonjs/funcs/environmentsListByProject.d.ts +41 -0
- package/dist/commonjs/funcs/environmentsListByProject.d.ts.map +1 -0
- package/dist/commonjs/funcs/environmentsListByProject.js +153 -0
- package/dist/commonjs/funcs/environmentsListByProject.js.map +1 -0
- package/dist/commonjs/funcs/featureFlagsGetStatus.d.ts +19 -0
- package/dist/commonjs/funcs/featureFlagsGetStatus.d.ts.map +1 -0
- package/dist/commonjs/funcs/featureFlagsGetStatus.js +133 -0
- package/dist/commonjs/funcs/featureFlagsGetStatus.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +7 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/codeReferencesListRepositories.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/codeReferencesListRepositories.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/codeReferencesListRepositories.js +64 -0
- package/dist/commonjs/mcp-server/tools/codeReferencesListRepositories.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/environmentsListByProject.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/environmentsListByProject.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/environmentsListByProject.js +64 -0
- package/dist/commonjs/mcp-server/tools/environmentsListByProject.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/featureFlagsGetStatus.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/featureFlagsGetStatus.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/featureFlagsGetStatus.js +64 -0
- package/dist/commonjs/mcp-server/tools/featureFlagsGetStatus.js.map +1 -0
- package/dist/commonjs/models/components/approvalsettings.d.ts +83 -0
- package/dist/commonjs/models/components/approvalsettings.d.ts.map +1 -0
- package/dist/commonjs/models/components/approvalsettings.js +89 -0
- package/dist/commonjs/models/components/approvalsettings.js.map +1 -0
- package/dist/commonjs/models/components/branchrep.d.ts +59 -0
- package/dist/commonjs/models/components/branchrep.d.ts.map +1 -0
- package/dist/commonjs/models/components/branchrep.js +89 -0
- package/dist/commonjs/models/components/branchrep.js.map +1 -0
- package/dist/commonjs/models/components/environment.d.ts +114 -0
- package/dist/commonjs/models/components/environment.d.ts.map +1 -0
- package/dist/commonjs/models/components/environment.js +113 -0
- package/dist/commonjs/models/components/environment.js.map +1 -0
- package/dist/commonjs/models/components/environments.d.ts +48 -0
- package/dist/commonjs/models/components/environments.d.ts.map +1 -0
- package/dist/commonjs/models/components/environments.js +84 -0
- package/dist/commonjs/models/components/environments.js.map +1 -0
- package/dist/commonjs/models/components/featureflagstatus.d.ts +80 -0
- package/dist/commonjs/models/components/featureflagstatus.d.ts.map +1 -0
- package/dist/commonjs/models/components/featureflagstatus.js +98 -0
- package/dist/commonjs/models/components/featureflagstatus.js.map +1 -0
- package/dist/commonjs/models/components/featureflagstatusacrossenvironments.d.ts +49 -0
- package/dist/commonjs/models/components/featureflagstatusacrossenvironments.d.ts.map +1 -0
- package/dist/commonjs/models/components/featureflagstatusacrossenvironments.js +84 -0
- package/dist/commonjs/models/components/featureflagstatusacrossenvironments.js.map +1 -0
- package/dist/commonjs/models/components/hunkrep.d.ts +52 -0
- package/dist/commonjs/models/components/hunkrep.d.ts.map +1 -0
- package/dist/commonjs/models/components/hunkrep.js +77 -0
- package/dist/commonjs/models/components/hunkrep.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +10 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +10 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/referencerep.d.ts +40 -0
- package/dist/commonjs/models/components/referencerep.d.ts.map +1 -0
- package/dist/commonjs/models/components/referencerep.js +74 -0
- package/dist/commonjs/models/components/referencerep.js.map +1 -0
- package/dist/commonjs/models/components/repositorycollectionrep.d.ts +40 -0
- package/dist/commonjs/models/components/repositorycollectionrep.d.ts.map +1 -0
- package/dist/commonjs/models/components/repositorycollectionrep.js +82 -0
- package/dist/commonjs/models/components/repositorycollectionrep.js.map +1 -0
- package/dist/commonjs/models/components/repositoryrep.d.ts +120 -0
- package/dist/commonjs/models/components/repositoryrep.d.ts.map +1 -0
- package/dist/commonjs/models/components/repositoryrep.js +126 -0
- package/dist/commonjs/models/components/repositoryrep.js.map +1 -0
- package/dist/commonjs/models/operations/getenvironmentsbyproject.d.ts +52 -0
- package/dist/commonjs/models/operations/getenvironmentsbyproject.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getenvironmentsbyproject.js +77 -0
- package/dist/commonjs/models/operations/getenvironmentsbyproject.js.map +1 -0
- package/dist/commonjs/models/operations/getfeatureflagstatusacrossenvironments.d.ts +42 -0
- package/dist/commonjs/models/operations/getfeatureflagstatusacrossenvironments.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getfeatureflagstatusacrossenvironments.js +73 -0
- package/dist/commonjs/models/operations/getfeatureflagstatusacrossenvironments.js.map +1 -0
- package/dist/commonjs/models/operations/getrepositories.d.ts +47 -0
- package/dist/commonjs/models/operations/getrepositories.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getrepositories.js +75 -0
- package/dist/commonjs/models/operations/getrepositories.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +3 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +3 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/sdk/codereferences.d.ts +13 -0
- package/dist/commonjs/sdk/codereferences.d.ts.map +1 -0
- package/dist/commonjs/sdk/codereferences.js +22 -0
- package/dist/commonjs/sdk/codereferences.js.map +1 -0
- package/dist/commonjs/sdk/environments.d.ts +35 -0
- package/dist/commonjs/sdk/environments.d.ts.map +1 -0
- package/dist/commonjs/sdk/environments.js +44 -0
- package/dist/commonjs/sdk/environments.js.map +1 -0
- package/dist/commonjs/sdk/featureflags.d.ts +7 -0
- package/dist/commonjs/sdk/featureflags.d.ts.map +1 -1
- package/dist/commonjs/sdk/featureflags.js +10 -0
- package/dist/commonjs/sdk/featureflags.js.map +1 -1
- package/dist/commonjs/sdk/sdk.d.ts +6 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +8 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/esm/funcs/codeReferencesListRepositories.d.ts +19 -0
- package/dist/esm/funcs/codeReferencesListRepositories.d.ts.map +1 -0
- package/dist/esm/funcs/codeReferencesListRepositories.js +89 -0
- package/dist/esm/funcs/codeReferencesListRepositories.js.map +1 -0
- package/dist/esm/funcs/environmentsListByProject.d.ts +41 -0
- package/dist/esm/funcs/environmentsListByProject.d.ts.map +1 -0
- package/dist/esm/funcs/environmentsListByProject.js +117 -0
- package/dist/esm/funcs/environmentsListByProject.js.map +1 -0
- package/dist/esm/funcs/featureFlagsGetStatus.d.ts +19 -0
- package/dist/esm/funcs/featureFlagsGetStatus.d.ts.map +1 -0
- package/dist/esm/funcs/featureFlagsGetStatus.js +97 -0
- package/dist/esm/funcs/featureFlagsGetStatus.js.map +1 -0
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +7 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/codeReferencesListRepositories.d.ts +8 -0
- package/dist/esm/mcp-server/tools/codeReferencesListRepositories.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/codeReferencesListRepositories.js +28 -0
- package/dist/esm/mcp-server/tools/codeReferencesListRepositories.js.map +1 -0
- package/dist/esm/mcp-server/tools/environmentsListByProject.d.ts +8 -0
- package/dist/esm/mcp-server/tools/environmentsListByProject.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/environmentsListByProject.js +28 -0
- package/dist/esm/mcp-server/tools/environmentsListByProject.js.map +1 -0
- package/dist/esm/mcp-server/tools/featureFlagsGetStatus.d.ts +8 -0
- package/dist/esm/mcp-server/tools/featureFlagsGetStatus.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/featureFlagsGetStatus.js +28 -0
- package/dist/esm/mcp-server/tools/featureFlagsGetStatus.js.map +1 -0
- package/dist/esm/models/components/approvalsettings.d.ts +83 -0
- package/dist/esm/models/components/approvalsettings.d.ts.map +1 -0
- package/dist/esm/models/components/approvalsettings.js +51 -0
- package/dist/esm/models/components/approvalsettings.js.map +1 -0
- package/dist/esm/models/components/branchrep.d.ts +59 -0
- package/dist/esm/models/components/branchrep.d.ts.map +1 -0
- package/dist/esm/models/components/branchrep.js +51 -0
- package/dist/esm/models/components/branchrep.js.map +1 -0
- package/dist/esm/models/components/environment.d.ts +114 -0
- package/dist/esm/models/components/environment.d.ts.map +1 -0
- package/dist/esm/models/components/environment.js +75 -0
- package/dist/esm/models/components/environment.js.map +1 -0
- package/dist/esm/models/components/environments.d.ts +48 -0
- package/dist/esm/models/components/environments.d.ts.map +1 -0
- package/dist/esm/models/components/environments.js +46 -0
- package/dist/esm/models/components/environments.js.map +1 -0
- package/dist/esm/models/components/featureflagstatus.d.ts +80 -0
- package/dist/esm/models/components/featureflagstatus.d.ts.map +1 -0
- package/dist/esm/models/components/featureflagstatus.js +60 -0
- package/dist/esm/models/components/featureflagstatus.js.map +1 -0
- package/dist/esm/models/components/featureflagstatusacrossenvironments.d.ts +49 -0
- package/dist/esm/models/components/featureflagstatusacrossenvironments.d.ts.map +1 -0
- package/dist/esm/models/components/featureflagstatusacrossenvironments.js +46 -0
- package/dist/esm/models/components/featureflagstatusacrossenvironments.js.map +1 -0
- package/dist/esm/models/components/hunkrep.d.ts +52 -0
- package/dist/esm/models/components/hunkrep.d.ts.map +1 -0
- package/dist/esm/models/components/hunkrep.js +39 -0
- package/dist/esm/models/components/hunkrep.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +10 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +10 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/referencerep.d.ts +40 -0
- package/dist/esm/models/components/referencerep.d.ts.map +1 -0
- package/dist/esm/models/components/referencerep.js +36 -0
- package/dist/esm/models/components/referencerep.js.map +1 -0
- package/dist/esm/models/components/repositorycollectionrep.d.ts +40 -0
- package/dist/esm/models/components/repositorycollectionrep.d.ts.map +1 -0
- package/dist/esm/models/components/repositorycollectionrep.js +44 -0
- package/dist/esm/models/components/repositorycollectionrep.js.map +1 -0
- package/dist/esm/models/components/repositoryrep.d.ts +120 -0
- package/dist/esm/models/components/repositoryrep.d.ts.map +1 -0
- package/dist/esm/models/components/repositoryrep.js +88 -0
- package/dist/esm/models/components/repositoryrep.js.map +1 -0
- package/dist/esm/models/operations/getenvironmentsbyproject.d.ts +52 -0
- package/dist/esm/models/operations/getenvironmentsbyproject.d.ts.map +1 -0
- package/dist/esm/models/operations/getenvironmentsbyproject.js +39 -0
- package/dist/esm/models/operations/getenvironmentsbyproject.js.map +1 -0
- package/dist/esm/models/operations/getfeatureflagstatusacrossenvironments.d.ts +42 -0
- package/dist/esm/models/operations/getfeatureflagstatusacrossenvironments.d.ts.map +1 -0
- package/dist/esm/models/operations/getfeatureflagstatusacrossenvironments.js +35 -0
- package/dist/esm/models/operations/getfeatureflagstatusacrossenvironments.js.map +1 -0
- package/dist/esm/models/operations/getrepositories.d.ts +47 -0
- package/dist/esm/models/operations/getrepositories.d.ts.map +1 -0
- package/dist/esm/models/operations/getrepositories.js +37 -0
- package/dist/esm/models/operations/getrepositories.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +3 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +3 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/sdk/codereferences.d.ts +13 -0
- package/dist/esm/sdk/codereferences.d.ts.map +1 -0
- package/dist/esm/sdk/codereferences.js +18 -0
- package/dist/esm/sdk/codereferences.js.map +1 -0
- package/dist/esm/sdk/environments.d.ts +35 -0
- package/dist/esm/sdk/environments.d.ts.map +1 -0
- package/dist/esm/sdk/environments.js +40 -0
- package/dist/esm/sdk/environments.js.map +1 -0
- package/dist/esm/sdk/featureflags.d.ts +7 -0
- package/dist/esm/sdk/featureflags.d.ts.map +1 -1
- package/dist/esm/sdk/featureflags.js +10 -0
- package/dist/esm/sdk/featureflags.js.map +1 -1
- package/dist/esm/sdk/sdk.d.ts +6 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +8 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/docs/sdks/codereferences/README.md +79 -0
- package/docs/sdks/environments/README.md +112 -0
- package/docs/sdks/featureflags/README.md +79 -0
- package/examples/{featureFlagsList.example.ts → codeReferencesListRepositories.example.ts} +2 -4
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/schemas/openapi.json +2 -0
- package/schemas/output.json +26 -3
- package/src/funcs/codeReferencesListRepositories.ts +185 -0
- package/src/funcs/environmentsListByProject.ts +229 -0
- package/src/funcs/featureFlagsGetStatus.ts +201 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +7 -1
- package/src/mcp-server/tools/codeReferencesListRepositories.ts +39 -0
- package/src/mcp-server/tools/environmentsListByProject.ts +38 -0
- package/src/mcp-server/tools/featureFlagsGetStatus.ts +39 -0
- package/src/models/components/approvalsettings.ts +136 -0
- package/src/models/components/branchrep.ts +112 -0
- package/src/models/components/environment.ts +193 -0
- package/src/models/components/environments.ts +100 -0
- package/src/models/components/featureflagstatus.ts +121 -0
- package/src/models/components/featureflagstatusacrossenvironments.ts +106 -0
- package/src/models/components/hunkrep.ts +90 -0
- package/src/models/components/index.ts +10 -0
- package/src/models/components/referencerep.ts +82 -0
- package/src/models/components/repositorycollectionrep.ts +94 -0
- package/src/models/components/repositoryrep.ts +188 -0
- package/src/models/operations/getenvironmentsbyproject.ts +99 -0
- package/src/models/operations/getfeatureflagstatusacrossenvironments.ts +96 -0
- package/src/models/operations/getrepositories.ts +90 -0
- package/src/models/operations/index.ts +3 -0
- package/src/sdk/codereferences.ts +28 -0
- package/src/sdk/environments.ts +50 -0
- package/src/sdk/featureflags.ts +18 -0
- package/src/sdk/sdk.ts +12 -0
package/bin/mcp-server.js
CHANGED
|
@@ -34236,9 +34236,9 @@ var init_config = __esm(() => {
|
|
|
34236
34236
|
SDK_METADATA = {
|
|
34237
34237
|
language: "typescript",
|
|
34238
34238
|
openapiDocVersion: "2.0",
|
|
34239
|
-
sdkVersion: "0.4.
|
|
34239
|
+
sdkVersion: "0.4.2",
|
|
34240
34240
|
genVersion: "2.654.2",
|
|
34241
|
-
userAgent: "speakeasy-sdk/typescript 0.4.
|
|
34241
|
+
userAgent: "speakeasy-sdk/typescript 0.4.2 2.654.2 2.0 @launchdarkly/mcp-server"
|
|
34242
34242
|
};
|
|
34243
34243
|
});
|
|
34244
34244
|
|
|
@@ -37197,6 +37197,123 @@ var init_aiconfigvariationsresponse = __esm(() => {
|
|
|
37197
37197
|
})(AIConfigVariationsResponse$ ||= {});
|
|
37198
37198
|
});
|
|
37199
37199
|
|
|
37200
|
+
// src/models/components/approvalsettings.ts
|
|
37201
|
+
var ApprovalSettings$inboundSchema, ApprovalSettings$outboundSchema, ApprovalSettings$;
|
|
37202
|
+
var init_approvalsettings = __esm(() => {
|
|
37203
|
+
init_esm();
|
|
37204
|
+
ApprovalSettings$inboundSchema = objectType({
|
|
37205
|
+
required: booleanType(),
|
|
37206
|
+
bypassApprovalsForPendingChanges: booleanType(),
|
|
37207
|
+
minNumApprovals: numberType().int(),
|
|
37208
|
+
canReviewOwnRequest: booleanType(),
|
|
37209
|
+
canApplyDeclinedChanges: booleanType(),
|
|
37210
|
+
autoApplyApprovedChanges: booleanType().optional(),
|
|
37211
|
+
serviceKind: stringType(),
|
|
37212
|
+
serviceConfig: recordType(anyType()),
|
|
37213
|
+
requiredApprovalTags: arrayType(stringType()),
|
|
37214
|
+
serviceKindConfigurationId: stringType().optional(),
|
|
37215
|
+
resourceKind: stringType().optional()
|
|
37216
|
+
});
|
|
37217
|
+
ApprovalSettings$outboundSchema = objectType({
|
|
37218
|
+
required: booleanType(),
|
|
37219
|
+
bypassApprovalsForPendingChanges: booleanType(),
|
|
37220
|
+
minNumApprovals: numberType().int(),
|
|
37221
|
+
canReviewOwnRequest: booleanType(),
|
|
37222
|
+
canApplyDeclinedChanges: booleanType(),
|
|
37223
|
+
autoApplyApprovedChanges: booleanType().optional(),
|
|
37224
|
+
serviceKind: stringType(),
|
|
37225
|
+
serviceConfig: recordType(anyType()),
|
|
37226
|
+
requiredApprovalTags: arrayType(stringType()),
|
|
37227
|
+
serviceKindConfigurationId: stringType().optional(),
|
|
37228
|
+
resourceKind: stringType().optional()
|
|
37229
|
+
});
|
|
37230
|
+
((ApprovalSettings$) => {
|
|
37231
|
+
ApprovalSettings$.inboundSchema = ApprovalSettings$inboundSchema;
|
|
37232
|
+
ApprovalSettings$.outboundSchema = ApprovalSettings$outboundSchema;
|
|
37233
|
+
})(ApprovalSettings$ ||= {});
|
|
37234
|
+
});
|
|
37235
|
+
|
|
37236
|
+
// src/models/components/hunkrep.ts
|
|
37237
|
+
var HunkRep$inboundSchema, HunkRep$outboundSchema, HunkRep$;
|
|
37238
|
+
var init_hunkrep = __esm(() => {
|
|
37239
|
+
init_esm();
|
|
37240
|
+
HunkRep$inboundSchema = objectType({
|
|
37241
|
+
startingLineNumber: numberType().int(),
|
|
37242
|
+
lines: stringType().optional(),
|
|
37243
|
+
projKey: stringType().optional(),
|
|
37244
|
+
flagKey: stringType().optional(),
|
|
37245
|
+
aliases: arrayType(stringType()).optional()
|
|
37246
|
+
});
|
|
37247
|
+
HunkRep$outboundSchema = objectType({
|
|
37248
|
+
startingLineNumber: numberType().int(),
|
|
37249
|
+
lines: stringType().optional(),
|
|
37250
|
+
projKey: stringType().optional(),
|
|
37251
|
+
flagKey: stringType().optional(),
|
|
37252
|
+
aliases: arrayType(stringType()).optional()
|
|
37253
|
+
});
|
|
37254
|
+
((HunkRep$) => {
|
|
37255
|
+
HunkRep$.inboundSchema = HunkRep$inboundSchema;
|
|
37256
|
+
HunkRep$.outboundSchema = HunkRep$outboundSchema;
|
|
37257
|
+
})(HunkRep$ ||= {});
|
|
37258
|
+
});
|
|
37259
|
+
|
|
37260
|
+
// src/models/components/referencerep.ts
|
|
37261
|
+
var ReferenceRep$inboundSchema, ReferenceRep$outboundSchema, ReferenceRep$;
|
|
37262
|
+
var init_referencerep = __esm(() => {
|
|
37263
|
+
init_esm();
|
|
37264
|
+
init_hunkrep();
|
|
37265
|
+
ReferenceRep$inboundSchema = objectType({
|
|
37266
|
+
path: stringType(),
|
|
37267
|
+
hint: stringType().optional(),
|
|
37268
|
+
hunks: arrayType(HunkRep$inboundSchema)
|
|
37269
|
+
});
|
|
37270
|
+
ReferenceRep$outboundSchema = objectType({
|
|
37271
|
+
path: stringType(),
|
|
37272
|
+
hint: stringType().optional(),
|
|
37273
|
+
hunks: arrayType(HunkRep$outboundSchema)
|
|
37274
|
+
});
|
|
37275
|
+
((ReferenceRep$) => {
|
|
37276
|
+
ReferenceRep$.inboundSchema = ReferenceRep$inboundSchema;
|
|
37277
|
+
ReferenceRep$.outboundSchema = ReferenceRep$outboundSchema;
|
|
37278
|
+
})(ReferenceRep$ ||= {});
|
|
37279
|
+
});
|
|
37280
|
+
|
|
37281
|
+
// src/models/components/branchrep.ts
|
|
37282
|
+
var BranchRep$inboundSchema, BranchRep$outboundSchema, BranchRep$;
|
|
37283
|
+
var init_branchrep = __esm(() => {
|
|
37284
|
+
init_esm();
|
|
37285
|
+
init_primitives();
|
|
37286
|
+
init_referencerep();
|
|
37287
|
+
BranchRep$inboundSchema = objectType({
|
|
37288
|
+
name: stringType(),
|
|
37289
|
+
head: stringType(),
|
|
37290
|
+
updateSequenceId: numberType().int().optional(),
|
|
37291
|
+
syncTime: numberType().int(),
|
|
37292
|
+
references: arrayType(ReferenceRep$inboundSchema).optional(),
|
|
37293
|
+
_links: recordType(anyType())
|
|
37294
|
+
}).transform((v2) => {
|
|
37295
|
+
return remap(v2, {
|
|
37296
|
+
_links: "links"
|
|
37297
|
+
});
|
|
37298
|
+
});
|
|
37299
|
+
BranchRep$outboundSchema = objectType({
|
|
37300
|
+
name: stringType(),
|
|
37301
|
+
head: stringType(),
|
|
37302
|
+
updateSequenceId: numberType().int().optional(),
|
|
37303
|
+
syncTime: numberType().int(),
|
|
37304
|
+
references: arrayType(ReferenceRep$outboundSchema).optional(),
|
|
37305
|
+
links: recordType(anyType())
|
|
37306
|
+
}).transform((v2) => {
|
|
37307
|
+
return remap(v2, {
|
|
37308
|
+
links: "_links"
|
|
37309
|
+
});
|
|
37310
|
+
});
|
|
37311
|
+
((BranchRep$) => {
|
|
37312
|
+
BranchRep$.inboundSchema = BranchRep$inboundSchema;
|
|
37313
|
+
BranchRep$.outboundSchema = BranchRep$outboundSchema;
|
|
37314
|
+
})(BranchRep$ ||= {});
|
|
37315
|
+
});
|
|
37316
|
+
|
|
37200
37317
|
// src/models/components/clause.ts
|
|
37201
37318
|
var Clause$inboundSchema, Clause$outboundSchema, Clause$;
|
|
37202
37319
|
var init_clause = __esm(() => {
|
|
@@ -37304,6 +37421,114 @@ var init_defaults = __esm(() => {
|
|
|
37304
37421
|
})(Defaults$ ||= {});
|
|
37305
37422
|
});
|
|
37306
37423
|
|
|
37424
|
+
// src/models/components/link.ts
|
|
37425
|
+
var Link$inboundSchema, Link$outboundSchema, Link$;
|
|
37426
|
+
var init_link = __esm(() => {
|
|
37427
|
+
init_esm();
|
|
37428
|
+
Link$inboundSchema = objectType({
|
|
37429
|
+
href: stringType().optional(),
|
|
37430
|
+
type: stringType().optional()
|
|
37431
|
+
});
|
|
37432
|
+
Link$outboundSchema = objectType({
|
|
37433
|
+
href: stringType().optional(),
|
|
37434
|
+
type: stringType().optional()
|
|
37435
|
+
});
|
|
37436
|
+
((Link$) => {
|
|
37437
|
+
Link$.inboundSchema = Link$inboundSchema;
|
|
37438
|
+
Link$.outboundSchema = Link$outboundSchema;
|
|
37439
|
+
})(Link$ ||= {});
|
|
37440
|
+
});
|
|
37441
|
+
|
|
37442
|
+
// src/models/components/environment.ts
|
|
37443
|
+
var Environment$inboundSchema, Environment$outboundSchema, Environment$;
|
|
37444
|
+
var init_environment = __esm(() => {
|
|
37445
|
+
init_esm();
|
|
37446
|
+
init_primitives();
|
|
37447
|
+
init_approvalsettings();
|
|
37448
|
+
init_link();
|
|
37449
|
+
Environment$inboundSchema = objectType({
|
|
37450
|
+
_links: recordType(Link$inboundSchema),
|
|
37451
|
+
_id: stringType(),
|
|
37452
|
+
key: stringType(),
|
|
37453
|
+
name: stringType(),
|
|
37454
|
+
apiKey: stringType(),
|
|
37455
|
+
mobileKey: stringType(),
|
|
37456
|
+
color: stringType(),
|
|
37457
|
+
defaultTtl: numberType().int(),
|
|
37458
|
+
secureMode: booleanType(),
|
|
37459
|
+
defaultTrackEvents: booleanType(),
|
|
37460
|
+
requireComments: booleanType(),
|
|
37461
|
+
confirmChanges: booleanType(),
|
|
37462
|
+
tags: arrayType(stringType()),
|
|
37463
|
+
approvalSettings: ApprovalSettings$inboundSchema.optional(),
|
|
37464
|
+
resourceApprovalSettings: recordType(ApprovalSettings$inboundSchema).optional(),
|
|
37465
|
+
critical: booleanType()
|
|
37466
|
+
}).transform((v2) => {
|
|
37467
|
+
return remap(v2, {
|
|
37468
|
+
_links: "links",
|
|
37469
|
+
_id: "id"
|
|
37470
|
+
});
|
|
37471
|
+
});
|
|
37472
|
+
Environment$outboundSchema = objectType({
|
|
37473
|
+
links: recordType(Link$outboundSchema),
|
|
37474
|
+
id: stringType(),
|
|
37475
|
+
key: stringType(),
|
|
37476
|
+
name: stringType(),
|
|
37477
|
+
apiKey: stringType(),
|
|
37478
|
+
mobileKey: stringType(),
|
|
37479
|
+
color: stringType(),
|
|
37480
|
+
defaultTtl: numberType().int(),
|
|
37481
|
+
secureMode: booleanType(),
|
|
37482
|
+
defaultTrackEvents: booleanType(),
|
|
37483
|
+
requireComments: booleanType(),
|
|
37484
|
+
confirmChanges: booleanType(),
|
|
37485
|
+
tags: arrayType(stringType()),
|
|
37486
|
+
approvalSettings: ApprovalSettings$outboundSchema.optional(),
|
|
37487
|
+
resourceApprovalSettings: recordType(ApprovalSettings$outboundSchema).optional(),
|
|
37488
|
+
critical: booleanType()
|
|
37489
|
+
}).transform((v2) => {
|
|
37490
|
+
return remap(v2, {
|
|
37491
|
+
links: "_links",
|
|
37492
|
+
id: "_id"
|
|
37493
|
+
});
|
|
37494
|
+
});
|
|
37495
|
+
((Environment$) => {
|
|
37496
|
+
Environment$.inboundSchema = Environment$inboundSchema;
|
|
37497
|
+
Environment$.outboundSchema = Environment$outboundSchema;
|
|
37498
|
+
})(Environment$ ||= {});
|
|
37499
|
+
});
|
|
37500
|
+
|
|
37501
|
+
// src/models/components/environments.ts
|
|
37502
|
+
var Environments$inboundSchema, Environments$outboundSchema, Environments$;
|
|
37503
|
+
var init_environments = __esm(() => {
|
|
37504
|
+
init_esm();
|
|
37505
|
+
init_primitives();
|
|
37506
|
+
init_environment();
|
|
37507
|
+
init_link();
|
|
37508
|
+
Environments$inboundSchema = objectType({
|
|
37509
|
+
_links: recordType(Link$inboundSchema).optional(),
|
|
37510
|
+
totalCount: numberType().int().optional(),
|
|
37511
|
+
items: arrayType(Environment$inboundSchema)
|
|
37512
|
+
}).transform((v2) => {
|
|
37513
|
+
return remap(v2, {
|
|
37514
|
+
_links: "links"
|
|
37515
|
+
});
|
|
37516
|
+
});
|
|
37517
|
+
Environments$outboundSchema = objectType({
|
|
37518
|
+
links: recordType(Link$outboundSchema).optional(),
|
|
37519
|
+
totalCount: numberType().int().optional(),
|
|
37520
|
+
items: arrayType(Environment$outboundSchema)
|
|
37521
|
+
}).transform((v2) => {
|
|
37522
|
+
return remap(v2, {
|
|
37523
|
+
links: "_links"
|
|
37524
|
+
});
|
|
37525
|
+
});
|
|
37526
|
+
((Environments$) => {
|
|
37527
|
+
Environments$.inboundSchema = Environments$inboundSchema;
|
|
37528
|
+
Environments$.outboundSchema = Environments$outboundSchema;
|
|
37529
|
+
})(Environments$ ||= {});
|
|
37530
|
+
});
|
|
37531
|
+
|
|
37307
37532
|
// src/models/components/experimentallocationrep.ts
|
|
37308
37533
|
var ExperimentAllocationRep$inboundSchema, ExperimentAllocationRep$outboundSchema, ExperimentAllocationRep$;
|
|
37309
37534
|
var init_experimentallocationrep = __esm(() => {
|
|
@@ -37398,24 +37623,6 @@ var init_filter = __esm(() => {
|
|
|
37398
37623
|
})(Filter$ ||= {});
|
|
37399
37624
|
});
|
|
37400
37625
|
|
|
37401
|
-
// src/models/components/link.ts
|
|
37402
|
-
var Link$inboundSchema, Link$outboundSchema, Link$;
|
|
37403
|
-
var init_link = __esm(() => {
|
|
37404
|
-
init_esm();
|
|
37405
|
-
Link$inboundSchema = objectType({
|
|
37406
|
-
href: stringType().optional(),
|
|
37407
|
-
type: stringType().optional()
|
|
37408
|
-
});
|
|
37409
|
-
Link$outboundSchema = objectType({
|
|
37410
|
-
href: stringType().optional(),
|
|
37411
|
-
type: stringType().optional()
|
|
37412
|
-
});
|
|
37413
|
-
((Link$) => {
|
|
37414
|
-
Link$.inboundSchema = Link$inboundSchema;
|
|
37415
|
-
Link$.outboundSchema = Link$outboundSchema;
|
|
37416
|
-
})(Link$ ||= {});
|
|
37417
|
-
});
|
|
37418
|
-
|
|
37419
37626
|
// src/models/components/membersummary.ts
|
|
37420
37627
|
var MemberSummary$inboundSchema, MemberSummary$outboundSchema, MemberSummary$;
|
|
37421
37628
|
var init_membersummary = __esm(() => {
|
|
@@ -38311,6 +38518,69 @@ var init_featureflags = __esm(() => {
|
|
|
38311
38518
|
})(FeatureFlags$ ||= {});
|
|
38312
38519
|
});
|
|
38313
38520
|
|
|
38521
|
+
// src/models/components/featureflagstatus.ts
|
|
38522
|
+
var Name, Name$inboundSchema, Name$outboundSchema, Name$, FeatureFlagStatus$inboundSchema, FeatureFlagStatus$outboundSchema, FeatureFlagStatus$;
|
|
38523
|
+
var init_featureflagstatus = __esm(() => {
|
|
38524
|
+
init_esm();
|
|
38525
|
+
Name = {
|
|
38526
|
+
New: "new",
|
|
38527
|
+
Inactive: "inactive",
|
|
38528
|
+
Active: "active",
|
|
38529
|
+
Launched: "launched"
|
|
38530
|
+
};
|
|
38531
|
+
Name$inboundSchema = nativeEnumType(Name);
|
|
38532
|
+
Name$outboundSchema = Name$inboundSchema;
|
|
38533
|
+
((Name$) => {
|
|
38534
|
+
Name$.inboundSchema = Name$inboundSchema;
|
|
38535
|
+
Name$.outboundSchema = Name$outboundSchema;
|
|
38536
|
+
})(Name$ ||= {});
|
|
38537
|
+
FeatureFlagStatus$inboundSchema = objectType({
|
|
38538
|
+
name: Name$inboundSchema,
|
|
38539
|
+
lastRequested: nullableType(stringType().datetime({ offset: true }).transform((v2) => new Date(v2))).optional(),
|
|
38540
|
+
default: anyType().optional()
|
|
38541
|
+
});
|
|
38542
|
+
FeatureFlagStatus$outboundSchema = objectType({
|
|
38543
|
+
name: Name$outboundSchema,
|
|
38544
|
+
lastRequested: nullableType(dateType().transform((v2) => v2.toISOString())).optional(),
|
|
38545
|
+
default: anyType().optional()
|
|
38546
|
+
});
|
|
38547
|
+
((FeatureFlagStatus$) => {
|
|
38548
|
+
FeatureFlagStatus$.inboundSchema = FeatureFlagStatus$inboundSchema;
|
|
38549
|
+
FeatureFlagStatus$.outboundSchema = FeatureFlagStatus$outboundSchema;
|
|
38550
|
+
})(FeatureFlagStatus$ ||= {});
|
|
38551
|
+
});
|
|
38552
|
+
|
|
38553
|
+
// src/models/components/featureflagstatusacrossenvironments.ts
|
|
38554
|
+
var FeatureFlagStatusAcrossEnvironments$inboundSchema, FeatureFlagStatusAcrossEnvironments$outboundSchema, FeatureFlagStatusAcrossEnvironments$;
|
|
38555
|
+
var init_featureflagstatusacrossenvironments = __esm(() => {
|
|
38556
|
+
init_esm();
|
|
38557
|
+
init_primitives();
|
|
38558
|
+
init_featureflagstatus();
|
|
38559
|
+
init_link();
|
|
38560
|
+
FeatureFlagStatusAcrossEnvironments$inboundSchema = objectType({
|
|
38561
|
+
environments: recordType(FeatureFlagStatus$inboundSchema),
|
|
38562
|
+
key: stringType(),
|
|
38563
|
+
_links: recordType(Link$inboundSchema)
|
|
38564
|
+
}).transform((v2) => {
|
|
38565
|
+
return remap(v2, {
|
|
38566
|
+
_links: "links"
|
|
38567
|
+
});
|
|
38568
|
+
});
|
|
38569
|
+
FeatureFlagStatusAcrossEnvironments$outboundSchema = objectType({
|
|
38570
|
+
environments: recordType(FeatureFlagStatus$outboundSchema),
|
|
38571
|
+
key: stringType(),
|
|
38572
|
+
links: recordType(Link$outboundSchema)
|
|
38573
|
+
}).transform((v2) => {
|
|
38574
|
+
return remap(v2, {
|
|
38575
|
+
links: "_links"
|
|
38576
|
+
});
|
|
38577
|
+
});
|
|
38578
|
+
((FeatureFlagStatusAcrossEnvironments$) => {
|
|
38579
|
+
FeatureFlagStatusAcrossEnvironments$.inboundSchema = FeatureFlagStatusAcrossEnvironments$inboundSchema;
|
|
38580
|
+
FeatureFlagStatusAcrossEnvironments$.outboundSchema = FeatureFlagStatusAcrossEnvironments$outboundSchema;
|
|
38581
|
+
})(FeatureFlagStatusAcrossEnvironments$ ||= {});
|
|
38582
|
+
});
|
|
38583
|
+
|
|
38314
38584
|
// src/models/components/patchoperation.ts
|
|
38315
38585
|
var PatchOperation$inboundSchema, PatchOperation$outboundSchema, PatchOperation$;
|
|
38316
38586
|
var init_patchoperation = __esm(() => {
|
|
@@ -38350,6 +38620,96 @@ var init_patchwithcomment = __esm(() => {
|
|
|
38350
38620
|
})(PatchWithComment$ ||= {});
|
|
38351
38621
|
});
|
|
38352
38622
|
|
|
38623
|
+
// src/models/components/repositoryrep.ts
|
|
38624
|
+
var RepositoryRepType, RepositoryRepType$inboundSchema, RepositoryRepType$outboundSchema, RepositoryRepType$, RepositoryRep$inboundSchema, RepositoryRep$outboundSchema, RepositoryRep$;
|
|
38625
|
+
var init_repositoryrep = __esm(() => {
|
|
38626
|
+
init_esm();
|
|
38627
|
+
init_primitives();
|
|
38628
|
+
init_access();
|
|
38629
|
+
init_branchrep();
|
|
38630
|
+
RepositoryRepType = {
|
|
38631
|
+
Bitbucket: "bitbucket",
|
|
38632
|
+
Custom: "custom",
|
|
38633
|
+
Github: "github",
|
|
38634
|
+
Gitlab: "gitlab"
|
|
38635
|
+
};
|
|
38636
|
+
RepositoryRepType$inboundSchema = nativeEnumType(RepositoryRepType);
|
|
38637
|
+
RepositoryRepType$outboundSchema = RepositoryRepType$inboundSchema;
|
|
38638
|
+
((RepositoryRepType$) => {
|
|
38639
|
+
RepositoryRepType$.inboundSchema = RepositoryRepType$inboundSchema;
|
|
38640
|
+
RepositoryRepType$.outboundSchema = RepositoryRepType$outboundSchema;
|
|
38641
|
+
})(RepositoryRepType$ ||= {});
|
|
38642
|
+
RepositoryRep$inboundSchema = objectType({
|
|
38643
|
+
name: stringType(),
|
|
38644
|
+
sourceLink: stringType().optional(),
|
|
38645
|
+
commitUrlTemplate: stringType().optional(),
|
|
38646
|
+
hunkUrlTemplate: stringType().optional(),
|
|
38647
|
+
type: RepositoryRepType$inboundSchema,
|
|
38648
|
+
defaultBranch: stringType(),
|
|
38649
|
+
enabled: booleanType(),
|
|
38650
|
+
version: numberType().int(),
|
|
38651
|
+
branches: arrayType(BranchRep$inboundSchema).optional(),
|
|
38652
|
+
_links: recordType(anyType()),
|
|
38653
|
+
_access: Access$inboundSchema.optional()
|
|
38654
|
+
}).transform((v2) => {
|
|
38655
|
+
return remap(v2, {
|
|
38656
|
+
_links: "links",
|
|
38657
|
+
_access: "access"
|
|
38658
|
+
});
|
|
38659
|
+
});
|
|
38660
|
+
RepositoryRep$outboundSchema = objectType({
|
|
38661
|
+
name: stringType(),
|
|
38662
|
+
sourceLink: stringType().optional(),
|
|
38663
|
+
commitUrlTemplate: stringType().optional(),
|
|
38664
|
+
hunkUrlTemplate: stringType().optional(),
|
|
38665
|
+
type: RepositoryRepType$outboundSchema,
|
|
38666
|
+
defaultBranch: stringType(),
|
|
38667
|
+
enabled: booleanType(),
|
|
38668
|
+
version: numberType().int(),
|
|
38669
|
+
branches: arrayType(BranchRep$outboundSchema).optional(),
|
|
38670
|
+
links: recordType(anyType()),
|
|
38671
|
+
access: Access$outboundSchema.optional()
|
|
38672
|
+
}).transform((v2) => {
|
|
38673
|
+
return remap(v2, {
|
|
38674
|
+
links: "_links",
|
|
38675
|
+
access: "_access"
|
|
38676
|
+
});
|
|
38677
|
+
});
|
|
38678
|
+
((RepositoryRep$) => {
|
|
38679
|
+
RepositoryRep$.inboundSchema = RepositoryRep$inboundSchema;
|
|
38680
|
+
RepositoryRep$.outboundSchema = RepositoryRep$outboundSchema;
|
|
38681
|
+
})(RepositoryRep$ ||= {});
|
|
38682
|
+
});
|
|
38683
|
+
|
|
38684
|
+
// src/models/components/repositorycollectionrep.ts
|
|
38685
|
+
var RepositoryCollectionRep$inboundSchema, RepositoryCollectionRep$outboundSchema, RepositoryCollectionRep$;
|
|
38686
|
+
var init_repositorycollectionrep = __esm(() => {
|
|
38687
|
+
init_esm();
|
|
38688
|
+
init_primitives();
|
|
38689
|
+
init_link();
|
|
38690
|
+
init_repositoryrep();
|
|
38691
|
+
RepositoryCollectionRep$inboundSchema = objectType({
|
|
38692
|
+
_links: recordType(Link$inboundSchema),
|
|
38693
|
+
items: arrayType(RepositoryRep$inboundSchema)
|
|
38694
|
+
}).transform((v2) => {
|
|
38695
|
+
return remap(v2, {
|
|
38696
|
+
_links: "links"
|
|
38697
|
+
});
|
|
38698
|
+
});
|
|
38699
|
+
RepositoryCollectionRep$outboundSchema = objectType({
|
|
38700
|
+
links: recordType(Link$outboundSchema),
|
|
38701
|
+
items: arrayType(RepositoryRep$outboundSchema)
|
|
38702
|
+
}).transform((v2) => {
|
|
38703
|
+
return remap(v2, {
|
|
38704
|
+
links: "_links"
|
|
38705
|
+
});
|
|
38706
|
+
});
|
|
38707
|
+
((RepositoryCollectionRep$) => {
|
|
38708
|
+
RepositoryCollectionRep$.inboundSchema = RepositoryCollectionRep$inboundSchema;
|
|
38709
|
+
RepositoryCollectionRep$.outboundSchema = RepositoryCollectionRep$outboundSchema;
|
|
38710
|
+
})(RepositoryCollectionRep$ ||= {});
|
|
38711
|
+
});
|
|
38712
|
+
|
|
38353
38713
|
// src/models/components/security.ts
|
|
38354
38714
|
var Security$inboundSchema, Security$outboundSchema, Security$;
|
|
38355
38715
|
var init_security2 = __esm(() => {
|
|
@@ -38420,12 +38780,16 @@ var init_components = __esm(() => {
|
|
|
38420
38780
|
init_aiconfigvariationpatch();
|
|
38421
38781
|
init_aiconfigvariationpost();
|
|
38422
38782
|
init_aiconfigvariationsresponse();
|
|
38783
|
+
init_approvalsettings();
|
|
38784
|
+
init_branchrep();
|
|
38423
38785
|
init_clause();
|
|
38424
38786
|
init_clientsideavailability();
|
|
38425
38787
|
init_clientsideavailabilitypost();
|
|
38426
38788
|
init_corelink();
|
|
38427
38789
|
init_customproperty();
|
|
38428
38790
|
init_defaults();
|
|
38791
|
+
init_environment();
|
|
38792
|
+
init_environments();
|
|
38429
38793
|
init_experimentallocationrep();
|
|
38430
38794
|
init_experimentenabledperiodrep();
|
|
38431
38795
|
init_experimentenvironmentsettingrep();
|
|
@@ -38434,12 +38798,15 @@ var init_components = __esm(() => {
|
|
|
38434
38798
|
init_featureflagbody();
|
|
38435
38799
|
init_featureflagconfig();
|
|
38436
38800
|
init_featureflags();
|
|
38801
|
+
init_featureflagstatus();
|
|
38802
|
+
init_featureflagstatusacrossenvironments();
|
|
38437
38803
|
init_filter();
|
|
38438
38804
|
init_flagconfigevaluation();
|
|
38439
38805
|
init_flagconfigmigrationsettingsrep();
|
|
38440
38806
|
init_flagmigrationsettingsrep();
|
|
38441
38807
|
init_flagprerequisitepost();
|
|
38442
38808
|
init_flagsummary();
|
|
38809
|
+
init_hunkrep();
|
|
38443
38810
|
init_legacyexperimentrep();
|
|
38444
38811
|
init_link();
|
|
38445
38812
|
init_maintainerteam();
|
|
@@ -38455,6 +38822,9 @@ var init_components = __esm(() => {
|
|
|
38455
38822
|
init_patchoperation();
|
|
38456
38823
|
init_patchwithcomment();
|
|
38457
38824
|
init_prerequisite();
|
|
38825
|
+
init_referencerep();
|
|
38826
|
+
init_repositorycollectionrep();
|
|
38827
|
+
init_repositoryrep();
|
|
38458
38828
|
init_rollout();
|
|
38459
38829
|
init_rule();
|
|
38460
38830
|
init_security2();
|
|
@@ -39049,6 +39419,30 @@ var init_getaiconfigvariation = __esm(() => {
|
|
|
39049
39419
|
})(GetAIConfigVariationRequest$ ||= {});
|
|
39050
39420
|
});
|
|
39051
39421
|
|
|
39422
|
+
// src/models/operations/getenvironmentsbyproject.ts
|
|
39423
|
+
var GetEnvironmentsByProjectRequest$inboundSchema, GetEnvironmentsByProjectRequest$outboundSchema, GetEnvironmentsByProjectRequest$;
|
|
39424
|
+
var init_getenvironmentsbyproject = __esm(() => {
|
|
39425
|
+
init_esm();
|
|
39426
|
+
GetEnvironmentsByProjectRequest$inboundSchema = objectType({
|
|
39427
|
+
projectKey: stringType(),
|
|
39428
|
+
limit: numberType().int().optional(),
|
|
39429
|
+
offset: numberType().int().optional(),
|
|
39430
|
+
filter: stringType().optional(),
|
|
39431
|
+
sort: stringType().optional()
|
|
39432
|
+
});
|
|
39433
|
+
GetEnvironmentsByProjectRequest$outboundSchema = objectType({
|
|
39434
|
+
projectKey: stringType(),
|
|
39435
|
+
limit: numberType().int().optional(),
|
|
39436
|
+
offset: numberType().int().optional(),
|
|
39437
|
+
filter: stringType().optional(),
|
|
39438
|
+
sort: stringType().optional()
|
|
39439
|
+
});
|
|
39440
|
+
((GetEnvironmentsByProjectRequest$) => {
|
|
39441
|
+
GetEnvironmentsByProjectRequest$.inboundSchema = GetEnvironmentsByProjectRequest$inboundSchema;
|
|
39442
|
+
GetEnvironmentsByProjectRequest$.outboundSchema = GetEnvironmentsByProjectRequest$outboundSchema;
|
|
39443
|
+
})(GetEnvironmentsByProjectRequest$ ||= {});
|
|
39444
|
+
});
|
|
39445
|
+
|
|
39052
39446
|
// src/models/operations/getfeatureflag.ts
|
|
39053
39447
|
var GetFeatureFlagRequest$inboundSchema, GetFeatureFlagRequest$outboundSchema, GetFeatureFlagRequest$;
|
|
39054
39448
|
var init_getfeatureflag = __esm(() => {
|
|
@@ -39107,6 +39501,48 @@ var init_getfeatureflags = __esm(() => {
|
|
|
39107
39501
|
})(GetFeatureFlagsRequest$ ||= {});
|
|
39108
39502
|
});
|
|
39109
39503
|
|
|
39504
|
+
// src/models/operations/getfeatureflagstatusacrossenvironments.ts
|
|
39505
|
+
var GetFeatureFlagStatusAcrossEnvironmentsRequest$inboundSchema, GetFeatureFlagStatusAcrossEnvironmentsRequest$outboundSchema, GetFeatureFlagStatusAcrossEnvironmentsRequest$;
|
|
39506
|
+
var init_getfeatureflagstatusacrossenvironments = __esm(() => {
|
|
39507
|
+
init_esm();
|
|
39508
|
+
GetFeatureFlagStatusAcrossEnvironmentsRequest$inboundSchema = objectType({
|
|
39509
|
+
projectKey: stringType(),
|
|
39510
|
+
featureFlagKey: stringType(),
|
|
39511
|
+
env: stringType().optional()
|
|
39512
|
+
});
|
|
39513
|
+
GetFeatureFlagStatusAcrossEnvironmentsRequest$outboundSchema = objectType({
|
|
39514
|
+
projectKey: stringType(),
|
|
39515
|
+
featureFlagKey: stringType(),
|
|
39516
|
+
env: stringType().optional()
|
|
39517
|
+
});
|
|
39518
|
+
((GetFeatureFlagStatusAcrossEnvironmentsRequest$) => {
|
|
39519
|
+
GetFeatureFlagStatusAcrossEnvironmentsRequest$.inboundSchema = GetFeatureFlagStatusAcrossEnvironmentsRequest$inboundSchema;
|
|
39520
|
+
GetFeatureFlagStatusAcrossEnvironmentsRequest$.outboundSchema = GetFeatureFlagStatusAcrossEnvironmentsRequest$outboundSchema;
|
|
39521
|
+
})(GetFeatureFlagStatusAcrossEnvironmentsRequest$ ||= {});
|
|
39522
|
+
});
|
|
39523
|
+
|
|
39524
|
+
// src/models/operations/getrepositories.ts
|
|
39525
|
+
var GetRepositoriesRequest$inboundSchema, GetRepositoriesRequest$outboundSchema, GetRepositoriesRequest$;
|
|
39526
|
+
var init_getrepositories = __esm(() => {
|
|
39527
|
+
init_esm();
|
|
39528
|
+
GetRepositoriesRequest$inboundSchema = objectType({
|
|
39529
|
+
withBranches: stringType().optional(),
|
|
39530
|
+
withReferencesForDefaultBranch: stringType().optional(),
|
|
39531
|
+
projKey: stringType().optional(),
|
|
39532
|
+
flagKey: stringType().optional()
|
|
39533
|
+
});
|
|
39534
|
+
GetRepositoriesRequest$outboundSchema = objectType({
|
|
39535
|
+
withBranches: stringType().optional(),
|
|
39536
|
+
withReferencesForDefaultBranch: stringType().optional(),
|
|
39537
|
+
projKey: stringType().optional(),
|
|
39538
|
+
flagKey: stringType().optional()
|
|
39539
|
+
});
|
|
39540
|
+
((GetRepositoriesRequest$) => {
|
|
39541
|
+
GetRepositoriesRequest$.inboundSchema = GetRepositoriesRequest$inboundSchema;
|
|
39542
|
+
GetRepositoriesRequest$.outboundSchema = GetRepositoriesRequest$outboundSchema;
|
|
39543
|
+
})(GetRepositoriesRequest$ ||= {});
|
|
39544
|
+
});
|
|
39545
|
+
|
|
39110
39546
|
// src/models/operations/patchaiconfig.ts
|
|
39111
39547
|
var PatchAIConfigLDAPIVersion, PatchAIConfigLDAPIVersion$inboundSchema, PatchAIConfigLDAPIVersion$outboundSchema, PatchAIConfigLDAPIVersion$, PatchAIConfigRequest$inboundSchema, PatchAIConfigRequest$outboundSchema, PatchAIConfigRequest$;
|
|
39112
39548
|
var init_patchaiconfig = __esm(() => {
|
|
@@ -39393,8 +39829,11 @@ var init_operations = __esm(() => {
|
|
|
39393
39829
|
init_getaiconfigs();
|
|
39394
39830
|
init_getaiconfigtargeting();
|
|
39395
39831
|
init_getaiconfigvariation();
|
|
39832
|
+
init_getenvironmentsbyproject();
|
|
39396
39833
|
init_getfeatureflag();
|
|
39397
39834
|
init_getfeatureflags();
|
|
39835
|
+
init_getfeatureflagstatusacrossenvironments();
|
|
39836
|
+
init_getrepositories();
|
|
39398
39837
|
init_patchaiconfig();
|
|
39399
39838
|
init_patchaiconfigtargeting();
|
|
39400
39839
|
init_patchaiconfigvariation();
|
|
@@ -40698,11 +41137,237 @@ var init_aiConfigsUpdateVariation2 = __esm(() => {
|
|
|
40698
41137
|
};
|
|
40699
41138
|
});
|
|
40700
41139
|
|
|
40701
|
-
// src/funcs/
|
|
40702
|
-
function
|
|
41140
|
+
// src/funcs/codeReferencesListRepositories.ts
|
|
41141
|
+
function codeReferencesListRepositories(client, request, options) {
|
|
40703
41142
|
return new APIPromise($do12(client, request, options));
|
|
40704
41143
|
}
|
|
40705
41144
|
async function $do12(client, request, options) {
|
|
41145
|
+
const parsed = safeParse(request, (value) => GetRepositoriesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
41146
|
+
if (!parsed.ok) {
|
|
41147
|
+
return [parsed, { status: "invalid" }];
|
|
41148
|
+
}
|
|
41149
|
+
const payload = parsed.value;
|
|
41150
|
+
const body = null;
|
|
41151
|
+
const path = pathToFunc("/api/v2/code-refs/repositories")();
|
|
41152
|
+
const query = encodeFormQuery({
|
|
41153
|
+
flagKey: payload.flagKey,
|
|
41154
|
+
projKey: payload.projKey,
|
|
41155
|
+
withBranches: payload.withBranches,
|
|
41156
|
+
withReferencesForDefaultBranch: payload.withReferencesForDefaultBranch
|
|
41157
|
+
});
|
|
41158
|
+
const headers = new Headers(compactMap({
|
|
41159
|
+
Accept: "application/json"
|
|
41160
|
+
}));
|
|
41161
|
+
const secConfig = await extractSecurity(client._options.apiKey);
|
|
41162
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
41163
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
41164
|
+
const context = {
|
|
41165
|
+
options: client._options,
|
|
41166
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
41167
|
+
operationID: "getRepositories",
|
|
41168
|
+
oAuth2Scopes: [],
|
|
41169
|
+
resolvedSecurity: requestSecurity,
|
|
41170
|
+
securitySource: client._options.apiKey,
|
|
41171
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
41172
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
41173
|
+
};
|
|
41174
|
+
const requestRes = client._createRequest(context, {
|
|
41175
|
+
security: requestSecurity,
|
|
41176
|
+
method: "GET",
|
|
41177
|
+
baseURL: options?.serverURL,
|
|
41178
|
+
path,
|
|
41179
|
+
headers,
|
|
41180
|
+
query,
|
|
41181
|
+
body,
|
|
41182
|
+
userAgent: client._options.userAgent,
|
|
41183
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
41184
|
+
}, options);
|
|
41185
|
+
if (!requestRes.ok) {
|
|
41186
|
+
return [requestRes, { status: "invalid" }];
|
|
41187
|
+
}
|
|
41188
|
+
const req = requestRes.value;
|
|
41189
|
+
const doResult = await client._do(req, {
|
|
41190
|
+
context,
|
|
41191
|
+
errorCodes: ["401", "403", "429", "4XX", "5XX"],
|
|
41192
|
+
retryConfig: context.retryConfig,
|
|
41193
|
+
retryCodes: context.retryCodes
|
|
41194
|
+
});
|
|
41195
|
+
if (!doResult.ok) {
|
|
41196
|
+
return [doResult, { status: "request-error", request: req }];
|
|
41197
|
+
}
|
|
41198
|
+
const response = doResult.value;
|
|
41199
|
+
const responseFields = {
|
|
41200
|
+
HttpMeta: { Response: response, Request: req }
|
|
41201
|
+
};
|
|
41202
|
+
const [result] = await match(json(200, RepositoryCollectionRep$inboundSchema), jsonErr(401, UnauthorizedErrorRep$inboundSchema), jsonErr(403, ForbiddenErrorRep$inboundSchema), jsonErr(429, RateLimitedErrorRep$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
41203
|
+
if (!result.ok) {
|
|
41204
|
+
return [result, { status: "complete", request: req, response }];
|
|
41205
|
+
}
|
|
41206
|
+
return [result, { status: "complete", request: req, response }];
|
|
41207
|
+
}
|
|
41208
|
+
var init_codeReferencesListRepositories = __esm(() => {
|
|
41209
|
+
init_encodings();
|
|
41210
|
+
init_matchers();
|
|
41211
|
+
init_primitives();
|
|
41212
|
+
init_schemas();
|
|
41213
|
+
init_security();
|
|
41214
|
+
init_url();
|
|
41215
|
+
init_components();
|
|
41216
|
+
init_errors2();
|
|
41217
|
+
init_operations();
|
|
41218
|
+
init_async();
|
|
41219
|
+
});
|
|
41220
|
+
|
|
41221
|
+
// src/mcp-server/tools/codeReferencesListRepositories.ts
|
|
41222
|
+
var args12, tool$codeReferencesListRepositories;
|
|
41223
|
+
var init_codeReferencesListRepositories2 = __esm(() => {
|
|
41224
|
+
init_codeReferencesListRepositories();
|
|
41225
|
+
init_operations();
|
|
41226
|
+
init_tools();
|
|
41227
|
+
args12 = {
|
|
41228
|
+
request: GetRepositoriesRequest$inboundSchema
|
|
41229
|
+
};
|
|
41230
|
+
tool$codeReferencesListRepositories = {
|
|
41231
|
+
name: "get-code-references",
|
|
41232
|
+
description: `Identifies which repositories have code references to a given flag, helping agents determine if they're operating on the correct repository and understand the scope of cleanup (single vs multi-repo).
|
|
41233
|
+
`,
|
|
41234
|
+
scopes: ["read"],
|
|
41235
|
+
args: args12,
|
|
41236
|
+
tool: async (client, args13, ctx) => {
|
|
41237
|
+
const [result, apiCall] = await codeReferencesListRepositories(client, args13.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
41238
|
+
if (!result.ok) {
|
|
41239
|
+
return {
|
|
41240
|
+
content: [{ type: "text", text: result.error.message }],
|
|
41241
|
+
isError: true
|
|
41242
|
+
};
|
|
41243
|
+
}
|
|
41244
|
+
const value = result.value;
|
|
41245
|
+
return formatResult(value, apiCall);
|
|
41246
|
+
}
|
|
41247
|
+
};
|
|
41248
|
+
});
|
|
41249
|
+
|
|
41250
|
+
// src/funcs/environmentsListByProject.ts
|
|
41251
|
+
function environmentsListByProject(client, request, options) {
|
|
41252
|
+
return new APIPromise($do13(client, request, options));
|
|
41253
|
+
}
|
|
41254
|
+
async function $do13(client, request, options) {
|
|
41255
|
+
const parsed = safeParse(request, (value) => GetEnvironmentsByProjectRequest$outboundSchema.parse(value), "Input validation failed");
|
|
41256
|
+
if (!parsed.ok) {
|
|
41257
|
+
return [parsed, { status: "invalid" }];
|
|
41258
|
+
}
|
|
41259
|
+
const payload = parsed.value;
|
|
41260
|
+
const body = null;
|
|
41261
|
+
const pathParams = {
|
|
41262
|
+
projectKey: encodeSimple("projectKey", payload.projectKey, {
|
|
41263
|
+
explode: false,
|
|
41264
|
+
charEncoding: "percent"
|
|
41265
|
+
})
|
|
41266
|
+
};
|
|
41267
|
+
const path = pathToFunc("/api/v2/projects/{projectKey}/environments")(pathParams);
|
|
41268
|
+
const query = encodeFormQuery({
|
|
41269
|
+
filter: payload.filter,
|
|
41270
|
+
limit: payload.limit,
|
|
41271
|
+
offset: payload.offset,
|
|
41272
|
+
sort: payload.sort
|
|
41273
|
+
});
|
|
41274
|
+
const headers = new Headers(compactMap({
|
|
41275
|
+
Accept: "application/json"
|
|
41276
|
+
}));
|
|
41277
|
+
const secConfig = await extractSecurity(client._options.apiKey);
|
|
41278
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
41279
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
41280
|
+
const context = {
|
|
41281
|
+
options: client._options,
|
|
41282
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
41283
|
+
operationID: "getEnvironmentsByProject",
|
|
41284
|
+
oAuth2Scopes: [],
|
|
41285
|
+
resolvedSecurity: requestSecurity,
|
|
41286
|
+
securitySource: client._options.apiKey,
|
|
41287
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
41288
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
41289
|
+
};
|
|
41290
|
+
const requestRes = client._createRequest(context, {
|
|
41291
|
+
security: requestSecurity,
|
|
41292
|
+
method: "GET",
|
|
41293
|
+
baseURL: options?.serverURL,
|
|
41294
|
+
path,
|
|
41295
|
+
headers,
|
|
41296
|
+
query,
|
|
41297
|
+
body,
|
|
41298
|
+
userAgent: client._options.userAgent,
|
|
41299
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
41300
|
+
}, options);
|
|
41301
|
+
if (!requestRes.ok) {
|
|
41302
|
+
return [requestRes, { status: "invalid" }];
|
|
41303
|
+
}
|
|
41304
|
+
const req = requestRes.value;
|
|
41305
|
+
const doResult = await client._do(req, {
|
|
41306
|
+
context,
|
|
41307
|
+
errorCodes: ["400", "401", "403", "404", "405", "429", "4XX", "5XX"],
|
|
41308
|
+
retryConfig: context.retryConfig,
|
|
41309
|
+
retryCodes: context.retryCodes
|
|
41310
|
+
});
|
|
41311
|
+
if (!doResult.ok) {
|
|
41312
|
+
return [doResult, { status: "request-error", request: req }];
|
|
41313
|
+
}
|
|
41314
|
+
const response = doResult.value;
|
|
41315
|
+
const responseFields = {
|
|
41316
|
+
HttpMeta: { Response: response, Request: req }
|
|
41317
|
+
};
|
|
41318
|
+
const [result] = await match(json(200, Environments$inboundSchema), jsonErr(400, InvalidRequestErrorRep$inboundSchema), jsonErr(401, UnauthorizedErrorRep$inboundSchema), jsonErr(403, ForbiddenErrorRep$inboundSchema), jsonErr(404, NotFoundErrorRep$inboundSchema), jsonErr(405, MethodNotAllowedErrorRep$inboundSchema), jsonErr(429, RateLimitedErrorRep$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
41319
|
+
if (!result.ok) {
|
|
41320
|
+
return [result, { status: "complete", request: req, response }];
|
|
41321
|
+
}
|
|
41322
|
+
return [result, { status: "complete", request: req, response }];
|
|
41323
|
+
}
|
|
41324
|
+
var init_environmentsListByProject = __esm(() => {
|
|
41325
|
+
init_encodings();
|
|
41326
|
+
init_matchers();
|
|
41327
|
+
init_primitives();
|
|
41328
|
+
init_schemas();
|
|
41329
|
+
init_security();
|
|
41330
|
+
init_url();
|
|
41331
|
+
init_components();
|
|
41332
|
+
init_errors2();
|
|
41333
|
+
init_operations();
|
|
41334
|
+
init_async();
|
|
41335
|
+
});
|
|
41336
|
+
|
|
41337
|
+
// src/mcp-server/tools/environmentsListByProject.ts
|
|
41338
|
+
var args13, tool$environmentsListByProject;
|
|
41339
|
+
var init_environmentsListByProject2 = __esm(() => {
|
|
41340
|
+
init_environmentsListByProject();
|
|
41341
|
+
init_operations();
|
|
41342
|
+
init_tools();
|
|
41343
|
+
args13 = {
|
|
41344
|
+
request: GetEnvironmentsByProjectRequest$inboundSchema
|
|
41345
|
+
};
|
|
41346
|
+
tool$environmentsListByProject = {
|
|
41347
|
+
name: "get-environments",
|
|
41348
|
+
description: `Identifies which environments exist in a project and determines which are marked as "critical" (production, staging, etc.). Allows agents to programmatically identify critical environments instead of hardcoding assumptions.
|
|
41349
|
+
`,
|
|
41350
|
+
scopes: ["read"],
|
|
41351
|
+
args: args13,
|
|
41352
|
+
tool: async (client, args14, ctx) => {
|
|
41353
|
+
const [result, apiCall] = await environmentsListByProject(client, args14.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
41354
|
+
if (!result.ok) {
|
|
41355
|
+
return {
|
|
41356
|
+
content: [{ type: "text", text: result.error.message }],
|
|
41357
|
+
isError: true
|
|
41358
|
+
};
|
|
41359
|
+
}
|
|
41360
|
+
const value = result.value;
|
|
41361
|
+
return formatResult(value, apiCall);
|
|
41362
|
+
}
|
|
41363
|
+
};
|
|
41364
|
+
});
|
|
41365
|
+
|
|
41366
|
+
// src/funcs/featureFlagsCreate.ts
|
|
41367
|
+
function featureFlagsCreate(client, request, options) {
|
|
41368
|
+
return new APIPromise($do14(client, request, options));
|
|
41369
|
+
}
|
|
41370
|
+
async function $do14(client, request, options) {
|
|
40706
41371
|
const parsed = safeParse(request, (value) => PostFeatureFlagRequest$outboundSchema.parse(value), "Input validation failed");
|
|
40707
41372
|
if (!parsed.ok) {
|
|
40708
41373
|
return [parsed, { status: "invalid" }];
|
|
@@ -40784,12 +41449,12 @@ var init_featureFlagsCreate = __esm(() => {
|
|
|
40784
41449
|
});
|
|
40785
41450
|
|
|
40786
41451
|
// src/mcp-server/tools/featureFlagsCreate.ts
|
|
40787
|
-
var
|
|
41452
|
+
var args14, tool$featureFlagsCreate;
|
|
40788
41453
|
var init_featureFlagsCreate2 = __esm(() => {
|
|
40789
41454
|
init_featureFlagsCreate();
|
|
40790
41455
|
init_operations();
|
|
40791
41456
|
init_tools();
|
|
40792
|
-
|
|
41457
|
+
args14 = {
|
|
40793
41458
|
request: PostFeatureFlagRequest$inboundSchema
|
|
40794
41459
|
};
|
|
40795
41460
|
tool$featureFlagsCreate = {
|
|
@@ -40797,9 +41462,9 @@ var init_featureFlagsCreate2 = __esm(() => {
|
|
|
40797
41462
|
description: `Creates a new feature flag within a project. AI agents can use this operation to define feature toggles for controlled rollouts, experimentation, or gated features, automating the flag setup process.
|
|
40798
41463
|
`,
|
|
40799
41464
|
scopes: ["write"],
|
|
40800
|
-
args:
|
|
40801
|
-
tool: async (client,
|
|
40802
|
-
const [result, apiCall] = await featureFlagsCreate(client,
|
|
41465
|
+
args: args14,
|
|
41466
|
+
tool: async (client, args15, ctx) => {
|
|
41467
|
+
const [result, apiCall] = await featureFlagsCreate(client, args15.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
40803
41468
|
if (!result.ok) {
|
|
40804
41469
|
return {
|
|
40805
41470
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -40814,9 +41479,9 @@ var init_featureFlagsCreate2 = __esm(() => {
|
|
|
40814
41479
|
|
|
40815
41480
|
// src/funcs/featureFlagsDelete.ts
|
|
40816
41481
|
function featureFlagsDelete(client, request, options) {
|
|
40817
|
-
return new APIPromise($
|
|
41482
|
+
return new APIPromise($do15(client, request, options));
|
|
40818
41483
|
}
|
|
40819
|
-
async function $
|
|
41484
|
+
async function $do15(client, request, options) {
|
|
40820
41485
|
const parsed = safeParse(request, (value) => DeleteFeatureFlagRequest$outboundSchema.parse(value), "Input validation failed");
|
|
40821
41486
|
if (!parsed.ok) {
|
|
40822
41487
|
return [parsed, { status: "invalid" }];
|
|
@@ -40897,12 +41562,12 @@ var init_featureFlagsDelete = __esm(() => {
|
|
|
40897
41562
|
});
|
|
40898
41563
|
|
|
40899
41564
|
// src/mcp-server/tools/featureFlagsDelete.ts
|
|
40900
|
-
var
|
|
41565
|
+
var args15, tool$featureFlagsDelete;
|
|
40901
41566
|
var init_featureFlagsDelete2 = __esm(() => {
|
|
40902
41567
|
init_featureFlagsDelete();
|
|
40903
41568
|
init_operations();
|
|
40904
41569
|
init_tools();
|
|
40905
|
-
|
|
41570
|
+
args15 = {
|
|
40906
41571
|
request: DeleteFeatureFlagRequest$inboundSchema
|
|
40907
41572
|
};
|
|
40908
41573
|
tool$featureFlagsDelete = {
|
|
@@ -40910,9 +41575,9 @@ var init_featureFlagsDelete2 = __esm(() => {
|
|
|
40910
41575
|
description: `Removes a feature flag from the project. Used by AI agents to clean up deprecated toggles that are no longer in use, improving system hygiene and maintainability.
|
|
40911
41576
|
`,
|
|
40912
41577
|
scopes: ["write"],
|
|
40913
|
-
args:
|
|
40914
|
-
tool: async (client,
|
|
40915
|
-
const [result, apiCall] = await featureFlagsDelete(client,
|
|
41578
|
+
args: args15,
|
|
41579
|
+
tool: async (client, args16, ctx) => {
|
|
41580
|
+
const [result, apiCall] = await featureFlagsDelete(client, args16.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
40916
41581
|
if (!result.ok) {
|
|
40917
41582
|
return {
|
|
40918
41583
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -40926,9 +41591,9 @@ var init_featureFlagsDelete2 = __esm(() => {
|
|
|
40926
41591
|
|
|
40927
41592
|
// src/funcs/featureFlagsGet.ts
|
|
40928
41593
|
function featureFlagsGet(client, request, options) {
|
|
40929
|
-
return new APIPromise($
|
|
41594
|
+
return new APIPromise($do16(client, request, options));
|
|
40930
41595
|
}
|
|
40931
|
-
async function $
|
|
41596
|
+
async function $do16(client, request, options) {
|
|
40932
41597
|
const parsed = safeParse(request, (value) => GetFeatureFlagRequest$outboundSchema.parse(value), "Input validation failed");
|
|
40933
41598
|
if (!parsed.ok) {
|
|
40934
41599
|
return [parsed, { status: "invalid" }];
|
|
@@ -41014,12 +41679,12 @@ var init_featureFlagsGet = __esm(() => {
|
|
|
41014
41679
|
});
|
|
41015
41680
|
|
|
41016
41681
|
// src/mcp-server/tools/featureFlagsGet.ts
|
|
41017
|
-
var
|
|
41682
|
+
var args16, tool$featureFlagsGet;
|
|
41018
41683
|
var init_featureFlagsGet2 = __esm(() => {
|
|
41019
41684
|
init_featureFlagsGet();
|
|
41020
41685
|
init_operations();
|
|
41021
41686
|
init_tools();
|
|
41022
|
-
|
|
41687
|
+
args16 = {
|
|
41023
41688
|
request: GetFeatureFlagRequest$inboundSchema
|
|
41024
41689
|
};
|
|
41025
41690
|
tool$featureFlagsGet = {
|
|
@@ -41027,9 +41692,126 @@ var init_featureFlagsGet2 = __esm(() => {
|
|
|
41027
41692
|
description: `Fetches the full configuration for a specific feature flag, including environments, variations, and targeting rules. Useful for agents auditing or managing specific feature toggles in a detailed, contextual manner.
|
|
41028
41693
|
`,
|
|
41029
41694
|
scopes: ["read"],
|
|
41030
|
-
args:
|
|
41031
|
-
tool: async (client,
|
|
41032
|
-
const [result, apiCall] = await featureFlagsGet(client,
|
|
41695
|
+
args: args16,
|
|
41696
|
+
tool: async (client, args17, ctx) => {
|
|
41697
|
+
const [result, apiCall] = await featureFlagsGet(client, args17.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
41698
|
+
if (!result.ok) {
|
|
41699
|
+
return {
|
|
41700
|
+
content: [{ type: "text", text: result.error.message }],
|
|
41701
|
+
isError: true
|
|
41702
|
+
};
|
|
41703
|
+
}
|
|
41704
|
+
const value = result.value;
|
|
41705
|
+
return formatResult(value, apiCall);
|
|
41706
|
+
}
|
|
41707
|
+
};
|
|
41708
|
+
});
|
|
41709
|
+
|
|
41710
|
+
// src/funcs/featureFlagsGetStatus.ts
|
|
41711
|
+
function featureFlagsGetStatus(client, request, options) {
|
|
41712
|
+
return new APIPromise($do17(client, request, options));
|
|
41713
|
+
}
|
|
41714
|
+
async function $do17(client, request, options) {
|
|
41715
|
+
const parsed = safeParse(request, (value) => GetFeatureFlagStatusAcrossEnvironmentsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
41716
|
+
if (!parsed.ok) {
|
|
41717
|
+
return [parsed, { status: "invalid" }];
|
|
41718
|
+
}
|
|
41719
|
+
const payload = parsed.value;
|
|
41720
|
+
const body = null;
|
|
41721
|
+
const pathParams = {
|
|
41722
|
+
featureFlagKey: encodeSimple("featureFlagKey", payload.featureFlagKey, {
|
|
41723
|
+
explode: false,
|
|
41724
|
+
charEncoding: "percent"
|
|
41725
|
+
}),
|
|
41726
|
+
projectKey: encodeSimple("projectKey", payload.projectKey, {
|
|
41727
|
+
explode: false,
|
|
41728
|
+
charEncoding: "percent"
|
|
41729
|
+
})
|
|
41730
|
+
};
|
|
41731
|
+
const path = pathToFunc("/api/v2/flag-status/{projectKey}/{featureFlagKey}")(pathParams);
|
|
41732
|
+
const query = encodeFormQuery({
|
|
41733
|
+
env: payload.env
|
|
41734
|
+
});
|
|
41735
|
+
const headers = new Headers(compactMap({
|
|
41736
|
+
Accept: "application/json"
|
|
41737
|
+
}));
|
|
41738
|
+
const secConfig = await extractSecurity(client._options.apiKey);
|
|
41739
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
41740
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
41741
|
+
const context = {
|
|
41742
|
+
options: client._options,
|
|
41743
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
41744
|
+
operationID: "getFeatureFlagStatusAcrossEnvironments",
|
|
41745
|
+
oAuth2Scopes: [],
|
|
41746
|
+
resolvedSecurity: requestSecurity,
|
|
41747
|
+
securitySource: client._options.apiKey,
|
|
41748
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
41749
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
41750
|
+
};
|
|
41751
|
+
const requestRes = client._createRequest(context, {
|
|
41752
|
+
security: requestSecurity,
|
|
41753
|
+
method: "GET",
|
|
41754
|
+
baseURL: options?.serverURL,
|
|
41755
|
+
path,
|
|
41756
|
+
headers,
|
|
41757
|
+
query,
|
|
41758
|
+
body,
|
|
41759
|
+
userAgent: client._options.userAgent,
|
|
41760
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
41761
|
+
}, options);
|
|
41762
|
+
if (!requestRes.ok) {
|
|
41763
|
+
return [requestRes, { status: "invalid" }];
|
|
41764
|
+
}
|
|
41765
|
+
const req = requestRes.value;
|
|
41766
|
+
const doResult = await client._do(req, {
|
|
41767
|
+
context,
|
|
41768
|
+
errorCodes: ["401", "403", "404", "429", "4XX", "5XX"],
|
|
41769
|
+
retryConfig: context.retryConfig,
|
|
41770
|
+
retryCodes: context.retryCodes
|
|
41771
|
+
});
|
|
41772
|
+
if (!doResult.ok) {
|
|
41773
|
+
return [doResult, { status: "request-error", request: req }];
|
|
41774
|
+
}
|
|
41775
|
+
const response = doResult.value;
|
|
41776
|
+
const responseFields = {
|
|
41777
|
+
HttpMeta: { Response: response, Request: req }
|
|
41778
|
+
};
|
|
41779
|
+
const [result] = await match(json(200, FeatureFlagStatusAcrossEnvironments$inboundSchema), jsonErr(401, UnauthorizedErrorRep$inboundSchema), jsonErr(403, ForbiddenErrorRep$inboundSchema), jsonErr(404, NotFoundErrorRep$inboundSchema), jsonErr(429, RateLimitedErrorRep$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
41780
|
+
if (!result.ok) {
|
|
41781
|
+
return [result, { status: "complete", request: req, response }];
|
|
41782
|
+
}
|
|
41783
|
+
return [result, { status: "complete", request: req, response }];
|
|
41784
|
+
}
|
|
41785
|
+
var init_featureFlagsGetStatus = __esm(() => {
|
|
41786
|
+
init_encodings();
|
|
41787
|
+
init_matchers();
|
|
41788
|
+
init_primitives();
|
|
41789
|
+
init_schemas();
|
|
41790
|
+
init_security();
|
|
41791
|
+
init_url();
|
|
41792
|
+
init_components();
|
|
41793
|
+
init_errors2();
|
|
41794
|
+
init_operations();
|
|
41795
|
+
init_async();
|
|
41796
|
+
});
|
|
41797
|
+
|
|
41798
|
+
// src/mcp-server/tools/featureFlagsGetStatus.ts
|
|
41799
|
+
var args17, tool$featureFlagsGetStatus;
|
|
41800
|
+
var init_featureFlagsGetStatus2 = __esm(() => {
|
|
41801
|
+
init_featureFlagsGetStatus();
|
|
41802
|
+
init_operations();
|
|
41803
|
+
init_tools();
|
|
41804
|
+
args17 = {
|
|
41805
|
+
request: GetFeatureFlagStatusAcrossEnvironmentsRequest$inboundSchema
|
|
41806
|
+
};
|
|
41807
|
+
tool$featureFlagsGetStatus = {
|
|
41808
|
+
name: "get-flag-status-across-environments",
|
|
41809
|
+
description: `Returns lifecycle status (new, active, inactive, launched) based on actual usage patterns, evaluation counts, and configuration stability. This is the key intelligence for removal readiness assessment.
|
|
41810
|
+
`,
|
|
41811
|
+
scopes: ["read"],
|
|
41812
|
+
args: args17,
|
|
41813
|
+
tool: async (client, args18, ctx) => {
|
|
41814
|
+
const [result, apiCall] = await featureFlagsGetStatus(client, args18.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
41033
41815
|
if (!result.ok) {
|
|
41034
41816
|
return {
|
|
41035
41817
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -41044,9 +41826,9 @@ var init_featureFlagsGet2 = __esm(() => {
|
|
|
41044
41826
|
|
|
41045
41827
|
// src/funcs/featureFlagsList.ts
|
|
41046
41828
|
function featureFlagsList(client, request, options) {
|
|
41047
|
-
return new APIPromise($
|
|
41829
|
+
return new APIPromise($do18(client, request, options));
|
|
41048
41830
|
}
|
|
41049
|
-
async function $
|
|
41831
|
+
async function $do18(client, request, options) {
|
|
41050
41832
|
const parsed = safeParse(request, (value) => GetFeatureFlagsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
41051
41833
|
if (!parsed.ok) {
|
|
41052
41834
|
return [parsed, { status: "invalid" }];
|
|
@@ -41136,12 +41918,12 @@ var init_featureFlagsList = __esm(() => {
|
|
|
41136
41918
|
});
|
|
41137
41919
|
|
|
41138
41920
|
// src/mcp-server/tools/featureFlagsList.ts
|
|
41139
|
-
var
|
|
41921
|
+
var args18, tool$featureFlagsList;
|
|
41140
41922
|
var init_featureFlagsList2 = __esm(() => {
|
|
41141
41923
|
init_featureFlagsList();
|
|
41142
41924
|
init_operations();
|
|
41143
41925
|
init_tools();
|
|
41144
|
-
|
|
41926
|
+
args18 = {
|
|
41145
41927
|
request: GetFeatureFlagsRequest$inboundSchema
|
|
41146
41928
|
};
|
|
41147
41929
|
tool$featureFlagsList = {
|
|
@@ -41149,9 +41931,9 @@ var init_featureFlagsList2 = __esm(() => {
|
|
|
41149
41931
|
description: `Retrieves all feature flags within a project, including metadata and targeting rules. Enables AI agents to enumerate existing flags for inspection, configuration analysis, or generating flag usage reports across environments.
|
|
41150
41932
|
`,
|
|
41151
41933
|
scopes: ["read"],
|
|
41152
|
-
args:
|
|
41153
|
-
tool: async (client,
|
|
41154
|
-
const [result, apiCall] = await featureFlagsList(client,
|
|
41934
|
+
args: args18,
|
|
41935
|
+
tool: async (client, args19, ctx) => {
|
|
41936
|
+
const [result, apiCall] = await featureFlagsList(client, args19.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
41155
41937
|
if (!result.ok) {
|
|
41156
41938
|
return {
|
|
41157
41939
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -41166,9 +41948,9 @@ var init_featureFlagsList2 = __esm(() => {
|
|
|
41166
41948
|
|
|
41167
41949
|
// src/funcs/featureFlagsPatch.ts
|
|
41168
41950
|
function featureFlagsPatch(client, request, options) {
|
|
41169
|
-
return new APIPromise($
|
|
41951
|
+
return new APIPromise($do19(client, request, options));
|
|
41170
41952
|
}
|
|
41171
|
-
async function $
|
|
41953
|
+
async function $do19(client, request, options) {
|
|
41172
41954
|
const parsed = safeParse(request, (value) => PatchFeatureFlagRequest$outboundSchema.parse(value), "Input validation failed");
|
|
41173
41955
|
if (!parsed.ok) {
|
|
41174
41956
|
return [parsed, { status: "invalid" }];
|
|
@@ -41254,12 +42036,12 @@ var init_featureFlagsPatch = __esm(() => {
|
|
|
41254
42036
|
});
|
|
41255
42037
|
|
|
41256
42038
|
// src/mcp-server/tools/featureFlagsPatch.ts
|
|
41257
|
-
var
|
|
42039
|
+
var args19, tool$featureFlagsPatch;
|
|
41258
42040
|
var init_featureFlagsPatch2 = __esm(() => {
|
|
41259
42041
|
init_featureFlagsPatch();
|
|
41260
42042
|
init_operations();
|
|
41261
42043
|
init_tools();
|
|
41262
|
-
|
|
42044
|
+
args19 = {
|
|
41263
42045
|
request: PatchFeatureFlagRequest$inboundSchema
|
|
41264
42046
|
};
|
|
41265
42047
|
tool$featureFlagsPatch = {
|
|
@@ -41267,9 +42049,9 @@ var init_featureFlagsPatch2 = __esm(() => {
|
|
|
41267
42049
|
description: `Updates the configuration of an existing feature flag. Enables agents to change targeting rules, modify variations, or adapt rollout strategies dynamically in response to user behavior or experiment results.
|
|
41268
42050
|
`,
|
|
41269
42051
|
scopes: ["write"],
|
|
41270
|
-
args:
|
|
41271
|
-
tool: async (client,
|
|
41272
|
-
const [result, apiCall] = await featureFlagsPatch(client,
|
|
42052
|
+
args: args19,
|
|
42053
|
+
tool: async (client, args20, ctx) => {
|
|
42054
|
+
const [result, apiCall] = await featureFlagsPatch(client, args20.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
41273
42055
|
if (!result.ok) {
|
|
41274
42056
|
return {
|
|
41275
42057
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -41286,7 +42068,7 @@ var init_featureFlagsPatch2 = __esm(() => {
|
|
|
41286
42068
|
function createMCPServer(deps) {
|
|
41287
42069
|
const server = new McpServer({
|
|
41288
42070
|
name: "LaunchDarkly",
|
|
41289
|
-
version: "0.4.
|
|
42071
|
+
version: "0.4.2"
|
|
41290
42072
|
});
|
|
41291
42073
|
const client = new LaunchDarklyCore({
|
|
41292
42074
|
apiKey: deps.apiKey,
|
|
@@ -41300,11 +42082,14 @@ function createMCPServer(deps) {
|
|
|
41300
42082
|
const resourceTemplate = createRegisterResourceTemplate(deps.logger, server, client, scopes);
|
|
41301
42083
|
const prompt = createRegisterPrompt(deps.logger, server, client, scopes);
|
|
41302
42084
|
const register = { tool, resource, resourceTemplate, prompt };
|
|
42085
|
+
tool(tool$codeReferencesListRepositories);
|
|
42086
|
+
tool(tool$featureFlagsGetStatus);
|
|
41303
42087
|
tool(tool$featureFlagsList);
|
|
41304
42088
|
tool(tool$featureFlagsCreate);
|
|
41305
42089
|
tool(tool$featureFlagsGet);
|
|
41306
42090
|
tool(tool$featureFlagsPatch);
|
|
41307
42091
|
tool(tool$featureFlagsDelete);
|
|
42092
|
+
tool(tool$environmentsListByProject);
|
|
41308
42093
|
tool(tool$aiConfigsGetTargeting);
|
|
41309
42094
|
tool(tool$aiConfigsUpdateTargeting);
|
|
41310
42095
|
tool(tool$aiConfigsList);
|
|
@@ -41334,9 +42119,12 @@ var init_server2 = __esm(() => {
|
|
|
41334
42119
|
init_aiConfigsUpdate2();
|
|
41335
42120
|
init_aiConfigsUpdateTargeting2();
|
|
41336
42121
|
init_aiConfigsUpdateVariation2();
|
|
42122
|
+
init_codeReferencesListRepositories2();
|
|
42123
|
+
init_environmentsListByProject2();
|
|
41337
42124
|
init_featureFlagsCreate2();
|
|
41338
42125
|
init_featureFlagsDelete2();
|
|
41339
42126
|
init_featureFlagsGet2();
|
|
42127
|
+
init_featureFlagsGetStatus2();
|
|
41340
42128
|
init_featureFlagsList2();
|
|
41341
42129
|
init_featureFlagsPatch2();
|
|
41342
42130
|
});
|
|
@@ -42530,7 +43318,7 @@ var routes = an({
|
|
|
42530
43318
|
var app = He(routes, {
|
|
42531
43319
|
name: "mcp",
|
|
42532
43320
|
versionInfo: {
|
|
42533
|
-
currentVersion: "0.4.
|
|
43321
|
+
currentVersion: "0.4.2"
|
|
42534
43322
|
}
|
|
42535
43323
|
});
|
|
42536
43324
|
zt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -42538,5 +43326,5 @@ export {
|
|
|
42538
43326
|
app
|
|
42539
43327
|
};
|
|
42540
43328
|
|
|
42541
|
-
//# debugId=
|
|
43329
|
+
//# debugId=B9F134BD449EA7F964756E2164756E21
|
|
42542
43330
|
//# sourceMappingURL=mcp-server.js.map
|