@barndoor-ai/sdk 2.23.0-dev.g0fb14cd → 2.23.0-dev.g3d310ff

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/dist/apis/RegistryApi.d.ts +61 -0
  2. package/dist/apis/RegistryApi.js +173 -0
  3. package/dist/esm/apis/RegistryApi.d.ts +61 -0
  4. package/dist/esm/apis/RegistryApi.js +173 -0
  5. package/dist/esm/models/EmbeddedRuntime.d.ts +45 -0
  6. package/dist/esm/models/EmbeddedRuntime.js +55 -0
  7. package/dist/esm/models/InstallationCreate.d.ts +60 -0
  8. package/dist/esm/models/InstallationCreate.js +64 -0
  9. package/dist/esm/models/InstallationRead.d.ts +75 -0
  10. package/dist/esm/models/InstallationRead.js +83 -0
  11. package/dist/esm/models/InstallationUpdate.d.ts +48 -0
  12. package/dist/esm/models/InstallationUpdate.js +56 -0
  13. package/dist/esm/models/LocalCliRuntime.d.ts +50 -0
  14. package/dist/esm/models/LocalCliRuntime.js +60 -0
  15. package/dist/esm/models/ManagedMcpRuntime.d.ts +50 -0
  16. package/dist/esm/models/ManagedMcpRuntime.js +60 -0
  17. package/dist/esm/models/RemoteRuntime.d.ts +37 -0
  18. package/dist/esm/models/RemoteRuntime.js +47 -0
  19. package/dist/esm/models/Runtime.d.ts +33 -0
  20. package/dist/esm/models/Runtime.js +57 -0
  21. package/dist/esm/models/SignedArtifact.d.ts +45 -0
  22. package/dist/esm/models/SignedArtifact.js +51 -0
  23. package/dist/esm/models/index.d.ts +9 -0
  24. package/dist/esm/models/index.js +9 -0
  25. package/dist/models/EmbeddedRuntime.d.ts +45 -0
  26. package/dist/models/EmbeddedRuntime.js +63 -0
  27. package/dist/models/InstallationCreate.d.ts +60 -0
  28. package/dist/models/InstallationCreate.js +72 -0
  29. package/dist/models/InstallationRead.d.ts +75 -0
  30. package/dist/models/InstallationRead.js +91 -0
  31. package/dist/models/InstallationUpdate.d.ts +48 -0
  32. package/dist/models/InstallationUpdate.js +64 -0
  33. package/dist/models/LocalCliRuntime.d.ts +50 -0
  34. package/dist/models/LocalCliRuntime.js +68 -0
  35. package/dist/models/ManagedMcpRuntime.d.ts +50 -0
  36. package/dist/models/ManagedMcpRuntime.js +68 -0
  37. package/dist/models/RemoteRuntime.d.ts +37 -0
  38. package/dist/models/RemoteRuntime.js +55 -0
  39. package/dist/models/Runtime.d.ts +33 -0
  40. package/dist/models/Runtime.js +63 -0
  41. package/dist/models/SignedArtifact.d.ts +45 -0
  42. package/dist/models/SignedArtifact.js +58 -0
  43. package/dist/models/index.d.ts +9 -0
  44. package/dist/models/index.js +9 -0
  45. package/package.json +1 -1
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Barndoor.ai Public API
3
+ * Unified public API specification for Barndoor.ai platform
4
+ *
5
+ * The version of the OpenAPI document: 2.23.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface RemoteRuntime
16
+ */
17
+ export interface RemoteRuntime {
18
+ /**
19
+ *
20
+ */
21
+ kind?: RemoteRuntimeKindEnum;
22
+ }
23
+ /**
24
+ * @export
25
+ */
26
+ export declare const RemoteRuntimeKindEnum: {
27
+ readonly Remote: "remote";
28
+ };
29
+ export type RemoteRuntimeKindEnum = typeof RemoteRuntimeKindEnum[keyof typeof RemoteRuntimeKindEnum];
30
+ /**
31
+ * Check if a given object implements the RemoteRuntime interface.
32
+ */
33
+ export declare function instanceOfRemoteRuntime(value: object): value is RemoteRuntime;
34
+ export declare function RemoteRuntimeFromJSON(json: any): RemoteRuntime;
35
+ export declare function RemoteRuntimeFromJSONTyped(json: any, ignoreDiscriminator: boolean): RemoteRuntime;
36
+ export declare function RemoteRuntimeToJSON(json: any): RemoteRuntime;
37
+ export declare function RemoteRuntimeToJSONTyped(value?: RemoteRuntime | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,47 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Barndoor.ai Public API
5
+ * Unified public API specification for Barndoor.ai platform
6
+ *
7
+ * The version of the OpenAPI document: 2.23.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * @export
16
+ */
17
+ export const RemoteRuntimeKindEnum = {
18
+ Remote: 'remote',
19
+ };
20
+ /**
21
+ * Check if a given object implements the RemoteRuntime interface.
22
+ */
23
+ export function instanceOfRemoteRuntime(value) {
24
+ return true;
25
+ }
26
+ export function RemoteRuntimeFromJSON(json) {
27
+ return RemoteRuntimeFromJSONTyped(json, false);
28
+ }
29
+ export function RemoteRuntimeFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'kind': json['kind'] == null ? undefined : json['kind'],
35
+ };
36
+ }
37
+ export function RemoteRuntimeToJSON(json) {
38
+ return RemoteRuntimeToJSONTyped(json, false);
39
+ }
40
+ export function RemoteRuntimeToJSONTyped(value, ignoreDiscriminator = false) {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ return {
45
+ 'kind': value['kind'],
46
+ };
47
+ }
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Barndoor.ai Public API
3
+ * Unified public API specification for Barndoor.ai platform
4
+ *
5
+ * The version of the OpenAPI document: 2.23.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { EmbeddedRuntime } from './EmbeddedRuntime.js';
13
+ import type { LocalCliRuntime } from './LocalCliRuntime.js';
14
+ import type { ManagedMcpRuntime } from './ManagedMcpRuntime.js';
15
+ import type { RemoteRuntime } from './RemoteRuntime.js';
16
+ /**
17
+ * @type Runtime
18
+ *
19
+ * @export
20
+ */
21
+ export type Runtime = {
22
+ kind: 'embedded';
23
+ } & EmbeddedRuntime | {
24
+ kind: 'local_cli';
25
+ } & LocalCliRuntime | {
26
+ kind: 'managed_local_mcp';
27
+ } & ManagedMcpRuntime | {
28
+ kind: 'remote';
29
+ } & RemoteRuntime;
30
+ export declare function RuntimeFromJSON(json: any): Runtime;
31
+ export declare function RuntimeFromJSONTyped(json: any, ignoreDiscriminator: boolean): Runtime;
32
+ export declare function RuntimeToJSON(json: any): any;
33
+ export declare function RuntimeToJSONTyped(value?: Runtime | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,57 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Barndoor.ai Public API
5
+ * Unified public API specification for Barndoor.ai platform
6
+ *
7
+ * The version of the OpenAPI document: 2.23.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { EmbeddedRuntimeFromJSONTyped, EmbeddedRuntimeToJSON, } from './EmbeddedRuntime.js';
15
+ import { LocalCliRuntimeFromJSONTyped, LocalCliRuntimeToJSON, } from './LocalCliRuntime.js';
16
+ import { ManagedMcpRuntimeFromJSONTyped, ManagedMcpRuntimeToJSON, } from './ManagedMcpRuntime.js';
17
+ import { RemoteRuntimeFromJSONTyped, RemoteRuntimeToJSON, } from './RemoteRuntime.js';
18
+ export function RuntimeFromJSON(json) {
19
+ return RuntimeFromJSONTyped(json, false);
20
+ }
21
+ export function RuntimeFromJSONTyped(json, ignoreDiscriminator) {
22
+ if (json == null) {
23
+ return json;
24
+ }
25
+ switch (json['kind']) {
26
+ case 'embedded':
27
+ return Object.assign({}, EmbeddedRuntimeFromJSONTyped(json, true), { kind: 'embedded' });
28
+ case 'local_cli':
29
+ return Object.assign({}, LocalCliRuntimeFromJSONTyped(json, true), { kind: 'local_cli' });
30
+ case 'managed_local_mcp':
31
+ return Object.assign({}, ManagedMcpRuntimeFromJSONTyped(json, true), { kind: 'managed_local_mcp' });
32
+ case 'remote':
33
+ return Object.assign({}, RemoteRuntimeFromJSONTyped(json, true), { kind: 'remote' });
34
+ default:
35
+ return json;
36
+ }
37
+ }
38
+ export function RuntimeToJSON(json) {
39
+ return RuntimeToJSONTyped(json, false);
40
+ }
41
+ export function RuntimeToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ switch (value['kind']) {
46
+ case 'embedded':
47
+ return Object.assign({}, EmbeddedRuntimeToJSON(value), { 'kind': 'embedded' });
48
+ case 'local_cli':
49
+ return Object.assign({}, LocalCliRuntimeToJSON(value), { 'kind': 'local_cli' });
50
+ case 'managed_local_mcp':
51
+ return Object.assign({}, ManagedMcpRuntimeToJSON(value), { 'kind': 'managed_local_mcp' });
52
+ case 'remote':
53
+ return Object.assign({}, RemoteRuntimeToJSON(value), { 'kind': 'remote' });
54
+ default:
55
+ return value;
56
+ }
57
+ }
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Barndoor.ai Public API
3
+ * Unified public API specification for Barndoor.ai platform
4
+ *
5
+ * The version of the OpenAPI document: 2.23.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Publisher-signed manifest envelope.
14
+ *
15
+ * The registry validates manifest *shape* only (schema, ref, allowed host,
16
+ * digest format, version pattern) — it has no publisher private key and
17
+ * cannot verify the Ed25519 signature itself. The CLI (internal/artifact)
18
+ * verifies `signature` over the exact `manifest` bytes against its pinned
19
+ * per-`key_id` trusted-publisher map before ever launching the artifact,
20
+ * and fails closed on an unknown key_id or a tampered manifest.
21
+ * @export
22
+ * @interface SignedArtifact
23
+ */
24
+ export interface SignedArtifact {
25
+ /**
26
+ *
27
+ */
28
+ keyId: string;
29
+ /**
30
+ *
31
+ */
32
+ manifest: string;
33
+ /**
34
+ *
35
+ */
36
+ signature: string;
37
+ }
38
+ /**
39
+ * Check if a given object implements the SignedArtifact interface.
40
+ */
41
+ export declare function instanceOfSignedArtifact(value: object): value is SignedArtifact;
42
+ export declare function SignedArtifactFromJSON(json: any): SignedArtifact;
43
+ export declare function SignedArtifactFromJSONTyped(json: any, ignoreDiscriminator: boolean): SignedArtifact;
44
+ export declare function SignedArtifactToJSON(json: any): SignedArtifact;
45
+ export declare function SignedArtifactToJSONTyped(value?: SignedArtifact | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Barndoor.ai Public API
5
+ * Unified public API specification for Barndoor.ai platform
6
+ *
7
+ * The version of the OpenAPI document: 2.23.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the SignedArtifact interface.
16
+ */
17
+ export function instanceOfSignedArtifact(value) {
18
+ if ((!('keyId' in value) && !('key_id' in value)) || (value['keyId'] === undefined && value['key_id'] === undefined))
19
+ return false;
20
+ if (!('manifest' in value) || value['manifest'] === undefined)
21
+ return false;
22
+ if (!('signature' in value) || value['signature'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function SignedArtifactFromJSON(json) {
27
+ return SignedArtifactFromJSONTyped(json, false);
28
+ }
29
+ export function SignedArtifactFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'keyId': json['key_id'],
35
+ 'manifest': json['manifest'],
36
+ 'signature': json['signature'],
37
+ };
38
+ }
39
+ export function SignedArtifactToJSON(json) {
40
+ return SignedArtifactToJSONTyped(json, false);
41
+ }
42
+ export function SignedArtifactToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'key_id': value['keyId'],
48
+ 'manifest': value['manifest'],
49
+ 'signature': value['signature'],
50
+ };
51
+ }
@@ -104,6 +104,7 @@ export * from './DirectoryCredentialModes.js';
104
104
  export * from './DlpAwsTrustInfoResponse.js';
105
105
  export * from './DlpErrorResponse.js';
106
106
  export * from './EffectivePricing.js';
107
+ export * from './EmbeddedRuntime.js';
107
108
  export * from './EnforcementPoliciesResponse.js';
108
109
  export * from './EnforcementPolicyMcpTargetRequest.js';
109
110
  export * from './EnforcementPolicyMcpTargetResponse.js';
@@ -136,6 +137,9 @@ export * from './IdpRoleMappingConfig.js';
136
137
  export * from './IdpRoleMappingResponse.js';
137
138
  export * from './IdpSettingsResponse.js';
138
139
  export * from './IdpTestResult.js';
140
+ export * from './InstallationCreate.js';
141
+ export * from './InstallationRead.js';
142
+ export * from './InstallationUpdate.js';
139
143
  export * from './LabeledOption.js';
140
144
  export * from './LifetimeLimitInput.js';
141
145
  export * from './ListClientSettingsResponse.js';
@@ -143,6 +147,7 @@ export * from './ListProfilesResponse.js';
143
147
  export * from './ListRoutingRulesResponse.js';
144
148
  export * from './LlmGatewayAwsRoleConfigResponse.js';
145
149
  export * from './LlmGatewayAwsTrustInfoResponse.js';
150
+ export * from './LocalCliRuntime.js';
146
151
  export * from './LocationInner.js';
147
152
  export * from './LongContextTier.js';
148
153
  export * from './LongContextTierEntry.js';
@@ -151,6 +156,7 @@ export * from './MCPServerCategory.js';
151
156
  export * from './MCPServerDirectoryBase.js';
152
157
  export * from './MCPServerDirectoryRead.js';
153
158
  export * from './MCPServerDirectoryReadWithServers.js';
159
+ export * from './ManagedMcpRuntime.js';
154
160
  export * from './MappingKind.js';
155
161
  export * from './MaskFormat.js';
156
162
  export * from './MaskKeep.js';
@@ -226,6 +232,7 @@ export * from './ProviderConnectionResponseOneOf4.js';
226
232
  export * from './ProviderConnectionResponseOneOf5.js';
227
233
  export * from './PublishBlocker.js';
228
234
  export * from './PutClientSettingsRequest.js';
235
+ export * from './RemoteRuntime.js';
229
236
  export * from './RenameModelRouteRequest.js';
230
237
  export * from './RenameModelRouteResponse.js';
231
238
  export * from './ReorderEntry.js';
@@ -246,6 +253,7 @@ export * from './RoutingRuleDraft.js';
246
253
  export * from './RoutingRuleWriteResponse.js';
247
254
  export * from './RoutingSlot.js';
248
255
  export * from './RuleConflict.js';
256
+ export * from './Runtime.js';
249
257
  export * from './ScopeJson.js';
250
258
  export * from './ScopeType.js';
251
259
  export * from './ServerConnectionResponse.js';
@@ -256,6 +264,7 @@ export * from './ServerSource.js';
256
264
  export * from './SetApiKeyDisabledRequest.js';
257
265
  export * from './SetApiKeyExpiryRequest.js';
258
266
  export * from './SetCatalogUnlistedTableActionRequest.js';
267
+ export * from './SignedArtifact.js';
259
268
  export * from './StaleReason.js';
260
269
  export * from './TestFindingResponse.js';
261
270
  export * from './TestProcessTextRequest.js';
@@ -106,6 +106,7 @@ export * from './DirectoryCredentialModes.js';
106
106
  export * from './DlpAwsTrustInfoResponse.js';
107
107
  export * from './DlpErrorResponse.js';
108
108
  export * from './EffectivePricing.js';
109
+ export * from './EmbeddedRuntime.js';
109
110
  export * from './EnforcementPoliciesResponse.js';
110
111
  export * from './EnforcementPolicyMcpTargetRequest.js';
111
112
  export * from './EnforcementPolicyMcpTargetResponse.js';
@@ -138,6 +139,9 @@ export * from './IdpRoleMappingConfig.js';
138
139
  export * from './IdpRoleMappingResponse.js';
139
140
  export * from './IdpSettingsResponse.js';
140
141
  export * from './IdpTestResult.js';
142
+ export * from './InstallationCreate.js';
143
+ export * from './InstallationRead.js';
144
+ export * from './InstallationUpdate.js';
141
145
  export * from './LabeledOption.js';
142
146
  export * from './LifetimeLimitInput.js';
143
147
  export * from './ListClientSettingsResponse.js';
@@ -145,6 +149,7 @@ export * from './ListProfilesResponse.js';
145
149
  export * from './ListRoutingRulesResponse.js';
146
150
  export * from './LlmGatewayAwsRoleConfigResponse.js';
147
151
  export * from './LlmGatewayAwsTrustInfoResponse.js';
152
+ export * from './LocalCliRuntime.js';
148
153
  export * from './LocationInner.js';
149
154
  export * from './LongContextTier.js';
150
155
  export * from './LongContextTierEntry.js';
@@ -153,6 +158,7 @@ export * from './MCPServerCategory.js';
153
158
  export * from './MCPServerDirectoryBase.js';
154
159
  export * from './MCPServerDirectoryRead.js';
155
160
  export * from './MCPServerDirectoryReadWithServers.js';
161
+ export * from './ManagedMcpRuntime.js';
156
162
  export * from './MappingKind.js';
157
163
  export * from './MaskFormat.js';
158
164
  export * from './MaskKeep.js';
@@ -228,6 +234,7 @@ export * from './ProviderConnectionResponseOneOf4.js';
228
234
  export * from './ProviderConnectionResponseOneOf5.js';
229
235
  export * from './PublishBlocker.js';
230
236
  export * from './PutClientSettingsRequest.js';
237
+ export * from './RemoteRuntime.js';
231
238
  export * from './RenameModelRouteRequest.js';
232
239
  export * from './RenameModelRouteResponse.js';
233
240
  export * from './ReorderEntry.js';
@@ -248,6 +255,7 @@ export * from './RoutingRuleDraft.js';
248
255
  export * from './RoutingRuleWriteResponse.js';
249
256
  export * from './RoutingSlot.js';
250
257
  export * from './RuleConflict.js';
258
+ export * from './Runtime.js';
251
259
  export * from './ScopeJson.js';
252
260
  export * from './ScopeType.js';
253
261
  export * from './ServerConnectionResponse.js';
@@ -258,6 +266,7 @@ export * from './ServerSource.js';
258
266
  export * from './SetApiKeyDisabledRequest.js';
259
267
  export * from './SetApiKeyExpiryRequest.js';
260
268
  export * from './SetCatalogUnlistedTableActionRequest.js';
269
+ export * from './SignedArtifact.js';
261
270
  export * from './StaleReason.js';
262
271
  export * from './TestFindingResponse.js';
263
272
  export * from './TestProcessTextRequest.js';
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Barndoor.ai Public API
3
+ * Unified public API specification for Barndoor.ai platform
4
+ *
5
+ * The version of the OpenAPI document: 2.23.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface EmbeddedRuntime
16
+ */
17
+ export interface EmbeddedRuntime {
18
+ /**
19
+ *
20
+ */
21
+ kind?: EmbeddedRuntimeKindEnum;
22
+ /**
23
+ *
24
+ */
25
+ ref: string;
26
+ /**
27
+ *
28
+ */
29
+ minimumCliVersion: string;
30
+ }
31
+ /**
32
+ * @export
33
+ */
34
+ export declare const EmbeddedRuntimeKindEnum: {
35
+ readonly Embedded: "embedded";
36
+ };
37
+ export type EmbeddedRuntimeKindEnum = typeof EmbeddedRuntimeKindEnum[keyof typeof EmbeddedRuntimeKindEnum];
38
+ /**
39
+ * Check if a given object implements the EmbeddedRuntime interface.
40
+ */
41
+ export declare function instanceOfEmbeddedRuntime(value: object): value is EmbeddedRuntime;
42
+ export declare function EmbeddedRuntimeFromJSON(json: any): EmbeddedRuntime;
43
+ export declare function EmbeddedRuntimeFromJSONTyped(json: any, ignoreDiscriminator: boolean): EmbeddedRuntime;
44
+ export declare function EmbeddedRuntimeToJSON(json: any): EmbeddedRuntime;
45
+ export declare function EmbeddedRuntimeToJSONTyped(value?: EmbeddedRuntime | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Barndoor.ai Public API
6
+ * Unified public API specification for Barndoor.ai platform
7
+ *
8
+ * The version of the OpenAPI document: 2.23.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.EmbeddedRuntimeKindEnum = void 0;
17
+ exports.instanceOfEmbeddedRuntime = instanceOfEmbeddedRuntime;
18
+ exports.EmbeddedRuntimeFromJSON = EmbeddedRuntimeFromJSON;
19
+ exports.EmbeddedRuntimeFromJSONTyped = EmbeddedRuntimeFromJSONTyped;
20
+ exports.EmbeddedRuntimeToJSON = EmbeddedRuntimeToJSON;
21
+ exports.EmbeddedRuntimeToJSONTyped = EmbeddedRuntimeToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.EmbeddedRuntimeKindEnum = {
26
+ Embedded: 'embedded',
27
+ };
28
+ /**
29
+ * Check if a given object implements the EmbeddedRuntime interface.
30
+ */
31
+ function instanceOfEmbeddedRuntime(value) {
32
+ if (!('ref' in value) || value['ref'] === undefined)
33
+ return false;
34
+ if ((!('minimumCliVersion' in value) && !('minimum_cli_version' in value)) || (value['minimumCliVersion'] === undefined && value['minimum_cli_version'] === undefined))
35
+ return false;
36
+ return true;
37
+ }
38
+ function EmbeddedRuntimeFromJSON(json) {
39
+ return EmbeddedRuntimeFromJSONTyped(json, false);
40
+ }
41
+ function EmbeddedRuntimeFromJSONTyped(json, ignoreDiscriminator) {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+ 'kind': json['kind'] == null ? undefined : json['kind'],
47
+ 'ref': json['ref'],
48
+ 'minimumCliVersion': json['minimum_cli_version'],
49
+ };
50
+ }
51
+ function EmbeddedRuntimeToJSON(json) {
52
+ return EmbeddedRuntimeToJSONTyped(json, false);
53
+ }
54
+ function EmbeddedRuntimeToJSONTyped(value, ignoreDiscriminator = false) {
55
+ if (value == null) {
56
+ return value;
57
+ }
58
+ return {
59
+ 'kind': value['kind'],
60
+ 'ref': value['ref'],
61
+ 'minimum_cli_version': value['minimumCliVersion'],
62
+ };
63
+ }
@@ -0,0 +1,60 @@
1
+ /**
2
+ * Barndoor.ai Public API
3
+ * Unified public API specification for Barndoor.ai platform
4
+ *
5
+ * The version of the OpenAPI document: 2.23.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface InstallationCreate
16
+ */
17
+ export interface InstallationCreate {
18
+ /**
19
+ * Id of the local MCP catalog entry to install (its server-directory id).
20
+ */
21
+ catalogId: string;
22
+ /**
23
+ * Installation slug, unique in the organization; users see it in `barndoor list`.
24
+ */
25
+ slug: string;
26
+ /**
27
+ * Display name.
28
+ */
29
+ name: string;
30
+ /**
31
+ *
32
+ */
33
+ enabled?: boolean;
34
+ /**
35
+ * Values for the catalog entry's `configuration_schema`: a flat object of scalar values, every required key present and no undeclared key. Not for secrets.
36
+ */
37
+ _configuration?: {
38
+ [key: string]: any | null;
39
+ };
40
+ /**
41
+ * `opt_in`: only users who connect it get it. `required`: every Barndoor CLI in the organization gets it.
42
+ */
43
+ availability?: InstallationCreateAvailabilityEnum;
44
+ }
45
+ /**
46
+ * @export
47
+ */
48
+ export declare const InstallationCreateAvailabilityEnum: {
49
+ readonly OptIn: "opt_in";
50
+ readonly Required: "required";
51
+ };
52
+ export type InstallationCreateAvailabilityEnum = typeof InstallationCreateAvailabilityEnum[keyof typeof InstallationCreateAvailabilityEnum];
53
+ /**
54
+ * Check if a given object implements the InstallationCreate interface.
55
+ */
56
+ export declare function instanceOfInstallationCreate(value: object): value is InstallationCreate;
57
+ export declare function InstallationCreateFromJSON(json: any): InstallationCreate;
58
+ export declare function InstallationCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): InstallationCreate;
59
+ export declare function InstallationCreateToJSON(json: any): InstallationCreate;
60
+ export declare function InstallationCreateToJSONTyped(value?: InstallationCreate | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Barndoor.ai Public API
6
+ * Unified public API specification for Barndoor.ai platform
7
+ *
8
+ * The version of the OpenAPI document: 2.23.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.InstallationCreateAvailabilityEnum = void 0;
17
+ exports.instanceOfInstallationCreate = instanceOfInstallationCreate;
18
+ exports.InstallationCreateFromJSON = InstallationCreateFromJSON;
19
+ exports.InstallationCreateFromJSONTyped = InstallationCreateFromJSONTyped;
20
+ exports.InstallationCreateToJSON = InstallationCreateToJSON;
21
+ exports.InstallationCreateToJSONTyped = InstallationCreateToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.InstallationCreateAvailabilityEnum = {
26
+ OptIn: 'opt_in',
27
+ Required: 'required',
28
+ };
29
+ /**
30
+ * Check if a given object implements the InstallationCreate interface.
31
+ */
32
+ function instanceOfInstallationCreate(value) {
33
+ if ((!('catalogId' in value) && !('catalog_id' in value)) || (value['catalogId'] === undefined && value['catalog_id'] === undefined))
34
+ return false;
35
+ if (!('slug' in value) || value['slug'] === undefined)
36
+ return false;
37
+ if (!('name' in value) || value['name'] === undefined)
38
+ return false;
39
+ return true;
40
+ }
41
+ function InstallationCreateFromJSON(json) {
42
+ return InstallationCreateFromJSONTyped(json, false);
43
+ }
44
+ function InstallationCreateFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'catalogId': json['catalog_id'],
50
+ 'slug': json['slug'],
51
+ 'name': json['name'],
52
+ 'enabled': json['enabled'] == null ? undefined : json['enabled'],
53
+ '_configuration': json['configuration'] == null ? undefined : json['configuration'],
54
+ 'availability': json['availability'] == null ? undefined : json['availability'],
55
+ };
56
+ }
57
+ function InstallationCreateToJSON(json) {
58
+ return InstallationCreateToJSONTyped(json, false);
59
+ }
60
+ function InstallationCreateToJSONTyped(value, ignoreDiscriminator = false) {
61
+ if (value == null) {
62
+ return value;
63
+ }
64
+ return {
65
+ 'catalog_id': value['catalogId'],
66
+ 'slug': value['slug'],
67
+ 'name': value['name'],
68
+ 'enabled': value['enabled'],
69
+ 'configuration': value['_configuration'],
70
+ 'availability': value['availability'],
71
+ };
72
+ }