@pulumi/fastly 12.7.0-alpha.1789105950 → 12.7.0
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/aiRuntimeControlProviderConnection.d.ts +146 -0
- package/aiRuntimeControlProviderConnection.d.ts.map +1 -0
- package/aiRuntimeControlProviderConnection.js +132 -0
- package/aiRuntimeControlProviderConnection.js.map +1 -0
- package/aiRuntimeControlVirtualKey.d.ts +177 -0
- package/aiRuntimeControlVirtualKey.d.ts.map +1 -0
- package/aiRuntimeControlVirtualKey.js +135 -0
- package/aiRuntimeControlVirtualKey.js.map +1 -0
- package/getAiRuntimeControlProviderConnections.d.ts +30 -0
- package/getAiRuntimeControlProviderConnections.d.ts.map +1 -0
- package/getAiRuntimeControlProviderConnections.js +49 -0
- package/getAiRuntimeControlProviderConnections.js.map +1 -0
- package/getAiRuntimeControlProviders.d.ts +30 -0
- package/getAiRuntimeControlProviders.d.ts.map +1 -0
- package/getAiRuntimeControlProviders.js +49 -0
- package/getAiRuntimeControlProviders.js.map +1 -0
- package/getAiRuntimeControlVirtualKeys.d.ts +132 -0
- package/getAiRuntimeControlVirtualKeys.d.ts.map +1 -0
- package/getAiRuntimeControlVirtualKeys.js +105 -0
- package/getAiRuntimeControlVirtualKeys.js.map +1 -0
- package/index.d.ts +15 -0
- package/index.d.ts.map +1 -1
- package/index.js +23 -4
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/types/input.d.ts +2 -2
- package/types/output.d.ts +122 -2
- package/types/output.d.ts.map +1 -1
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Provides a Fastly AI Runtime Control provider connection, which stores the
|
|
4
|
+
* authentication details and the set of allowed models for an AI model provider.
|
|
5
|
+
*
|
|
6
|
+
* > **Note:** The API never returns the provider's `apiKey`, so its value cannot
|
|
7
|
+
* be reconciled against the remote state. Terraform will only update it when the
|
|
8
|
+
* configured value changes.
|
|
9
|
+
*
|
|
10
|
+
* ## Example Usage
|
|
11
|
+
*
|
|
12
|
+
* Basic usage:
|
|
13
|
+
*
|
|
14
|
+
* ```typescript
|
|
15
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
+
* import * as fastly from "@pulumi/fastly";
|
|
17
|
+
*
|
|
18
|
+
* const demo = new fastly.AiRuntimeControlProviderConnection("demo", {
|
|
19
|
+
* name: "OpenAI",
|
|
20
|
+
* baseUrl: "https://api.openai.com",
|
|
21
|
+
* apiKey: openaiApiKey,
|
|
22
|
+
* models: [
|
|
23
|
+
* "gpt-4o",
|
|
24
|
+
* "gpt-4o-mini",
|
|
25
|
+
* ],
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* ## Import
|
|
30
|
+
*
|
|
31
|
+
* Fastly AI Runtime Control provider connections can be imported using their ID, e.g.
|
|
32
|
+
*
|
|
33
|
+
* ```sh
|
|
34
|
+
* $ pulumi import fastly:index/aiRuntimeControlProviderConnection:AiRuntimeControlProviderConnection demo xxxxxxxxxxxxxxxxxxxx
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* Note that `apiKey` cannot be imported, since the API does not return it.
|
|
38
|
+
*/
|
|
39
|
+
export declare class AiRuntimeControlProviderConnection extends pulumi.CustomResource {
|
|
40
|
+
/**
|
|
41
|
+
* Get an existing AiRuntimeControlProviderConnection resource's state with the given name, ID, and optional extra
|
|
42
|
+
* properties used to qualify the lookup.
|
|
43
|
+
*
|
|
44
|
+
* @param name The _unique_ name of the resulting resource.
|
|
45
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
46
|
+
* @param state Any extra arguments used during the lookup.
|
|
47
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
48
|
+
*/
|
|
49
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AiRuntimeControlProviderConnectionState, opts?: pulumi.CustomResourceOptions): AiRuntimeControlProviderConnection;
|
|
50
|
+
/**
|
|
51
|
+
* Returns true if the given object is an instance of AiRuntimeControlProviderConnection. This is designed to work even
|
|
52
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
53
|
+
*/
|
|
54
|
+
static isInstance(obj: any): obj is AiRuntimeControlProviderConnection;
|
|
55
|
+
/**
|
|
56
|
+
* The provider's secret key used for authentication. Never returned by the API, so it cannot be reconciled with the remote state.
|
|
57
|
+
*/
|
|
58
|
+
readonly apiKey: pulumi.Output<string>;
|
|
59
|
+
/**
|
|
60
|
+
* The base URL for the provider's API, e.g. `https://api.openai.com`. Must not include a `/v1` suffix, which the API appends automatically. Trailing slashes are stripped.
|
|
61
|
+
*/
|
|
62
|
+
readonly baseUrl: pulumi.Output<string>;
|
|
63
|
+
/**
|
|
64
|
+
* Timestamp (UTC) of when the provider connection was created.
|
|
65
|
+
*/
|
|
66
|
+
readonly createdAt: pulumi.Output<string>;
|
|
67
|
+
/**
|
|
68
|
+
* The set of allowed AI model identifiers, e.g. `["gpt-4o", "gpt-4o-mini"]`.
|
|
69
|
+
*/
|
|
70
|
+
readonly models: pulumi.Output<string[]>;
|
|
71
|
+
/**
|
|
72
|
+
* A human-readable name for the provider. Changing this forces a new provider connection to be created.
|
|
73
|
+
*/
|
|
74
|
+
readonly name: pulumi.Output<string>;
|
|
75
|
+
/**
|
|
76
|
+
* A hash representing the `apiKey` used to create the provider connection.
|
|
77
|
+
*/
|
|
78
|
+
readonly secretId: pulumi.Output<string>;
|
|
79
|
+
/**
|
|
80
|
+
* Timestamp (UTC) of when the provider connection was last updated.
|
|
81
|
+
*/
|
|
82
|
+
readonly updatedAt: pulumi.Output<string>;
|
|
83
|
+
/**
|
|
84
|
+
* Create a AiRuntimeControlProviderConnection resource with the given unique name, arguments, and options.
|
|
85
|
+
*
|
|
86
|
+
* @param name The _unique_ name of the resource.
|
|
87
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
88
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
89
|
+
*/
|
|
90
|
+
constructor(name: string, args: AiRuntimeControlProviderConnectionArgs, opts?: pulumi.CustomResourceOptions);
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Input properties used for looking up and filtering AiRuntimeControlProviderConnection resources.
|
|
94
|
+
*/
|
|
95
|
+
export interface AiRuntimeControlProviderConnectionState {
|
|
96
|
+
/**
|
|
97
|
+
* The provider's secret key used for authentication. Never returned by the API, so it cannot be reconciled with the remote state.
|
|
98
|
+
*/
|
|
99
|
+
apiKey?: pulumi.Input<string | undefined>;
|
|
100
|
+
/**
|
|
101
|
+
* The base URL for the provider's API, e.g. `https://api.openai.com`. Must not include a `/v1` suffix, which the API appends automatically. Trailing slashes are stripped.
|
|
102
|
+
*/
|
|
103
|
+
baseUrl?: pulumi.Input<string | undefined>;
|
|
104
|
+
/**
|
|
105
|
+
* Timestamp (UTC) of when the provider connection was created.
|
|
106
|
+
*/
|
|
107
|
+
createdAt?: pulumi.Input<string | undefined>;
|
|
108
|
+
/**
|
|
109
|
+
* The set of allowed AI model identifiers, e.g. `["gpt-4o", "gpt-4o-mini"]`.
|
|
110
|
+
*/
|
|
111
|
+
models?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
112
|
+
/**
|
|
113
|
+
* A human-readable name for the provider. Changing this forces a new provider connection to be created.
|
|
114
|
+
*/
|
|
115
|
+
name?: pulumi.Input<string | undefined>;
|
|
116
|
+
/**
|
|
117
|
+
* A hash representing the `apiKey` used to create the provider connection.
|
|
118
|
+
*/
|
|
119
|
+
secretId?: pulumi.Input<string | undefined>;
|
|
120
|
+
/**
|
|
121
|
+
* Timestamp (UTC) of when the provider connection was last updated.
|
|
122
|
+
*/
|
|
123
|
+
updatedAt?: pulumi.Input<string | undefined>;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* The set of arguments for constructing a AiRuntimeControlProviderConnection resource.
|
|
127
|
+
*/
|
|
128
|
+
export interface AiRuntimeControlProviderConnectionArgs {
|
|
129
|
+
/**
|
|
130
|
+
* The provider's secret key used for authentication. Never returned by the API, so it cannot be reconciled with the remote state.
|
|
131
|
+
*/
|
|
132
|
+
apiKey: pulumi.Input<string>;
|
|
133
|
+
/**
|
|
134
|
+
* The base URL for the provider's API, e.g. `https://api.openai.com`. Must not include a `/v1` suffix, which the API appends automatically. Trailing slashes are stripped.
|
|
135
|
+
*/
|
|
136
|
+
baseUrl: pulumi.Input<string>;
|
|
137
|
+
/**
|
|
138
|
+
* The set of allowed AI model identifiers, e.g. `["gpt-4o", "gpt-4o-mini"]`.
|
|
139
|
+
*/
|
|
140
|
+
models: pulumi.Input<pulumi.Input<string>[]>;
|
|
141
|
+
/**
|
|
142
|
+
* A human-readable name for the provider. Changing this forces a new provider connection to be created.
|
|
143
|
+
*/
|
|
144
|
+
name?: pulumi.Input<string | undefined>;
|
|
145
|
+
}
|
|
146
|
+
//# sourceMappingURL=aiRuntimeControlProviderConnection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aiRuntimeControlProviderConnection.d.ts","sourceRoot":"","sources":["../aiRuntimeControlProviderConnection.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,qBAAa,kCAAmC,SAAQ,MAAM,CAAC,cAAc;IACzE;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,uCAAuC,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,kCAAkC;IAOtL;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,kCAAkC;IAO7E;;OAEG;IACH,SAAwB,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC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;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAChD;AAED;;GAEG;AACH,MAAM,WAAW,sCAAsC;IACnD;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC7B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC9B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAC7C;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC3C"}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.AiRuntimeControlProviderConnection = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Provides a Fastly AI Runtime Control provider connection, which stores the
|
|
33
|
+
* authentication details and the set of allowed models for an AI model provider.
|
|
34
|
+
*
|
|
35
|
+
* > **Note:** The API never returns the provider's `apiKey`, so its value cannot
|
|
36
|
+
* be reconciled against the remote state. Terraform will only update it when the
|
|
37
|
+
* configured value changes.
|
|
38
|
+
*
|
|
39
|
+
* ## Example Usage
|
|
40
|
+
*
|
|
41
|
+
* Basic usage:
|
|
42
|
+
*
|
|
43
|
+
* ```typescript
|
|
44
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
45
|
+
* import * as fastly from "@pulumi/fastly";
|
|
46
|
+
*
|
|
47
|
+
* const demo = new fastly.AiRuntimeControlProviderConnection("demo", {
|
|
48
|
+
* name: "OpenAI",
|
|
49
|
+
* baseUrl: "https://api.openai.com",
|
|
50
|
+
* apiKey: openaiApiKey,
|
|
51
|
+
* models: [
|
|
52
|
+
* "gpt-4o",
|
|
53
|
+
* "gpt-4o-mini",
|
|
54
|
+
* ],
|
|
55
|
+
* });
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* ## Import
|
|
59
|
+
*
|
|
60
|
+
* Fastly AI Runtime Control provider connections can be imported using their ID, e.g.
|
|
61
|
+
*
|
|
62
|
+
* ```sh
|
|
63
|
+
* $ pulumi import fastly:index/aiRuntimeControlProviderConnection:AiRuntimeControlProviderConnection demo xxxxxxxxxxxxxxxxxxxx
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* Note that `apiKey` cannot be imported, since the API does not return it.
|
|
67
|
+
*/
|
|
68
|
+
class AiRuntimeControlProviderConnection extends pulumi.CustomResource {
|
|
69
|
+
/**
|
|
70
|
+
* Get an existing AiRuntimeControlProviderConnection resource's state with the given name, ID, and optional extra
|
|
71
|
+
* properties used to qualify the lookup.
|
|
72
|
+
*
|
|
73
|
+
* @param name The _unique_ name of the resulting resource.
|
|
74
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
75
|
+
* @param state Any extra arguments used during the lookup.
|
|
76
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
77
|
+
*/
|
|
78
|
+
static get(name, id, state, opts) {
|
|
79
|
+
return new AiRuntimeControlProviderConnection(name, state, { ...opts, id: id });
|
|
80
|
+
}
|
|
81
|
+
/** @internal */
|
|
82
|
+
static __pulumiType = 'fastly:index/aiRuntimeControlProviderConnection:AiRuntimeControlProviderConnection';
|
|
83
|
+
/**
|
|
84
|
+
* Returns true if the given object is an instance of AiRuntimeControlProviderConnection. This is designed to work even
|
|
85
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
86
|
+
*/
|
|
87
|
+
static isInstance(obj) {
|
|
88
|
+
if (obj === undefined || obj === null) {
|
|
89
|
+
return false;
|
|
90
|
+
}
|
|
91
|
+
return obj['__pulumiType'] === AiRuntimeControlProviderConnection.__pulumiType;
|
|
92
|
+
}
|
|
93
|
+
constructor(name, argsOrState, opts) {
|
|
94
|
+
let resourceInputs = {};
|
|
95
|
+
opts = opts || {};
|
|
96
|
+
if (opts.id) {
|
|
97
|
+
const state = argsOrState;
|
|
98
|
+
resourceInputs["apiKey"] = state?.apiKey;
|
|
99
|
+
resourceInputs["baseUrl"] = state?.baseUrl;
|
|
100
|
+
resourceInputs["createdAt"] = state?.createdAt;
|
|
101
|
+
resourceInputs["models"] = state?.models;
|
|
102
|
+
resourceInputs["name"] = state?.name;
|
|
103
|
+
resourceInputs["secretId"] = state?.secretId;
|
|
104
|
+
resourceInputs["updatedAt"] = state?.updatedAt;
|
|
105
|
+
}
|
|
106
|
+
else {
|
|
107
|
+
const args = argsOrState;
|
|
108
|
+
if (args?.apiKey === undefined && !opts.urn) {
|
|
109
|
+
throw new Error("Missing required property 'apiKey'");
|
|
110
|
+
}
|
|
111
|
+
if (args?.baseUrl === undefined && !opts.urn) {
|
|
112
|
+
throw new Error("Missing required property 'baseUrl'");
|
|
113
|
+
}
|
|
114
|
+
if (args?.models === undefined && !opts.urn) {
|
|
115
|
+
throw new Error("Missing required property 'models'");
|
|
116
|
+
}
|
|
117
|
+
resourceInputs["apiKey"] = args?.apiKey ? pulumi.secret(args.apiKey) : undefined;
|
|
118
|
+
resourceInputs["baseUrl"] = args?.baseUrl;
|
|
119
|
+
resourceInputs["models"] = args?.models;
|
|
120
|
+
resourceInputs["name"] = args?.name;
|
|
121
|
+
resourceInputs["createdAt"] = undefined /*out*/;
|
|
122
|
+
resourceInputs["secretId"] = undefined /*out*/;
|
|
123
|
+
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
124
|
+
}
|
|
125
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
126
|
+
const secretOpts = { additionalSecretOutputs: ["apiKey"] };
|
|
127
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
128
|
+
super(AiRuntimeControlProviderConnection.__pulumiType, name, resourceInputs, opts);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
exports.AiRuntimeControlProviderConnection = AiRuntimeControlProviderConnection;
|
|
132
|
+
//# sourceMappingURL=aiRuntimeControlProviderConnection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aiRuntimeControlProviderConnection.js","sourceRoot":"","sources":["../aiRuntimeControlProviderConnection.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;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E,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,kCAAkC,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACvF,CAAC;;AApGL,gFAqGC"}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Provides a Fastly AI Runtime Control virtual key, used to authenticate
|
|
4
|
+
* requests to an AI service and to attribute usage and session logs back to a
|
|
5
|
+
* named key.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* Basic usage:
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as fastly from "@pulumi/fastly";
|
|
14
|
+
*
|
|
15
|
+
* const demo = new fastly.AiRuntimeControlVirtualKey("demo", {
|
|
16
|
+
* name: "prod website chatbot",
|
|
17
|
+
* model: "claude-sonnet-4-20250514",
|
|
18
|
+
* providerName: "Anthropic",
|
|
19
|
+
* userId: "6zhNCY1236787aJIwUgN",
|
|
20
|
+
* expiresAt: "2026-08-05T17:13:36Z",
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* ## Import
|
|
25
|
+
*
|
|
26
|
+
* Fastly AI Runtime Control virtual keys can be imported using their key ID, e.g.
|
|
27
|
+
*
|
|
28
|
+
* ```sh
|
|
29
|
+
* $ pulumi import fastly:index/aiRuntimeControlVirtualKey:AiRuntimeControlVirtualKey demo xxxxxxxxxxxxxxxxxxxx
|
|
30
|
+
* ```
|
|
31
|
+
*
|
|
32
|
+
* > **Note:** Since `accessToken` is only returned by the API at creation time, it will be empty after importing an existing virtual key.
|
|
33
|
+
*/
|
|
34
|
+
export declare class AiRuntimeControlVirtualKey extends pulumi.CustomResource {
|
|
35
|
+
/**
|
|
36
|
+
* Get an existing AiRuntimeControlVirtualKey resource's state with the given name, ID, and optional extra
|
|
37
|
+
* properties used to qualify the lookup.
|
|
38
|
+
*
|
|
39
|
+
* @param name The _unique_ name of the resulting resource.
|
|
40
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
41
|
+
* @param state Any extra arguments used during the lookup.
|
|
42
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
43
|
+
*/
|
|
44
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AiRuntimeControlVirtualKeyState, opts?: pulumi.CustomResourceOptions): AiRuntimeControlVirtualKey;
|
|
45
|
+
/**
|
|
46
|
+
* Returns true if the given object is an instance of AiRuntimeControlVirtualKey. This is designed to work even
|
|
47
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
48
|
+
*/
|
|
49
|
+
static isInstance(obj: any): obj is AiRuntimeControlVirtualKey;
|
|
50
|
+
/**
|
|
51
|
+
* The generated access token used to authenticate as this virtual key. Only returned by the API when the key is created.
|
|
52
|
+
*/
|
|
53
|
+
readonly accessToken: pulumi.Output<string>;
|
|
54
|
+
/**
|
|
55
|
+
* Timestamp (UTC) of when the virtual key was created.
|
|
56
|
+
*/
|
|
57
|
+
readonly createdAt: pulumi.Output<string>;
|
|
58
|
+
/**
|
|
59
|
+
* The display name of the user who created the virtual key.
|
|
60
|
+
*/
|
|
61
|
+
readonly createdBy: pulumi.Output<string>;
|
|
62
|
+
/**
|
|
63
|
+
* The expiration timestamp of the virtual key, in RFC 3339 format. Once set, this value cannot be unset, only changed.
|
|
64
|
+
*/
|
|
65
|
+
readonly expiresAt: pulumi.Output<string | undefined>;
|
|
66
|
+
/**
|
|
67
|
+
* Timestamp (UTC) of when the virtual key was last used.
|
|
68
|
+
*/
|
|
69
|
+
readonly lastUsedAt: pulumi.Output<string>;
|
|
70
|
+
/**
|
|
71
|
+
* The AI model identifier, e.g. `claude-sonnet-4-20250514`.
|
|
72
|
+
*/
|
|
73
|
+
readonly model: pulumi.Output<string>;
|
|
74
|
+
/**
|
|
75
|
+
* A human-readable name for the virtual key.
|
|
76
|
+
*/
|
|
77
|
+
readonly name: pulumi.Output<string>;
|
|
78
|
+
/**
|
|
79
|
+
* The AI model provider name, e.g. `Anthropic`.
|
|
80
|
+
*/
|
|
81
|
+
readonly providerName: pulumi.Output<string>;
|
|
82
|
+
/**
|
|
83
|
+
* The type of the virtual key.
|
|
84
|
+
*/
|
|
85
|
+
readonly type: pulumi.Output<string>;
|
|
86
|
+
/**
|
|
87
|
+
* Timestamp (UTC) of when the virtual key was last updated.
|
|
88
|
+
*/
|
|
89
|
+
readonly updatedAt: pulumi.Output<string>;
|
|
90
|
+
/**
|
|
91
|
+
* The ID of the user creating the virtual key. Changing this forces a new virtual key to be created.
|
|
92
|
+
*/
|
|
93
|
+
readonly userId: pulumi.Output<string>;
|
|
94
|
+
/**
|
|
95
|
+
* Create a AiRuntimeControlVirtualKey resource with the given unique name, arguments, and options.
|
|
96
|
+
*
|
|
97
|
+
* @param name The _unique_ name of the resource.
|
|
98
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
99
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
100
|
+
*/
|
|
101
|
+
constructor(name: string, args: AiRuntimeControlVirtualKeyArgs, opts?: pulumi.CustomResourceOptions);
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Input properties used for looking up and filtering AiRuntimeControlVirtualKey resources.
|
|
105
|
+
*/
|
|
106
|
+
export interface AiRuntimeControlVirtualKeyState {
|
|
107
|
+
/**
|
|
108
|
+
* The generated access token used to authenticate as this virtual key. Only returned by the API when the key is created.
|
|
109
|
+
*/
|
|
110
|
+
accessToken?: pulumi.Input<string | undefined>;
|
|
111
|
+
/**
|
|
112
|
+
* Timestamp (UTC) of when the virtual key was created.
|
|
113
|
+
*/
|
|
114
|
+
createdAt?: pulumi.Input<string | undefined>;
|
|
115
|
+
/**
|
|
116
|
+
* The display name of the user who created the virtual key.
|
|
117
|
+
*/
|
|
118
|
+
createdBy?: pulumi.Input<string | undefined>;
|
|
119
|
+
/**
|
|
120
|
+
* The expiration timestamp of the virtual key, in RFC 3339 format. Once set, this value cannot be unset, only changed.
|
|
121
|
+
*/
|
|
122
|
+
expiresAt?: pulumi.Input<string | undefined>;
|
|
123
|
+
/**
|
|
124
|
+
* Timestamp (UTC) of when the virtual key was last used.
|
|
125
|
+
*/
|
|
126
|
+
lastUsedAt?: pulumi.Input<string | undefined>;
|
|
127
|
+
/**
|
|
128
|
+
* The AI model identifier, e.g. `claude-sonnet-4-20250514`.
|
|
129
|
+
*/
|
|
130
|
+
model?: pulumi.Input<string | undefined>;
|
|
131
|
+
/**
|
|
132
|
+
* A human-readable name for the virtual key.
|
|
133
|
+
*/
|
|
134
|
+
name?: pulumi.Input<string | undefined>;
|
|
135
|
+
/**
|
|
136
|
+
* The AI model provider name, e.g. `Anthropic`.
|
|
137
|
+
*/
|
|
138
|
+
providerName?: pulumi.Input<string | undefined>;
|
|
139
|
+
/**
|
|
140
|
+
* The type of the virtual key.
|
|
141
|
+
*/
|
|
142
|
+
type?: pulumi.Input<string | undefined>;
|
|
143
|
+
/**
|
|
144
|
+
* Timestamp (UTC) of when the virtual key was last updated.
|
|
145
|
+
*/
|
|
146
|
+
updatedAt?: pulumi.Input<string | undefined>;
|
|
147
|
+
/**
|
|
148
|
+
* The ID of the user creating the virtual key. Changing this forces a new virtual key to be created.
|
|
149
|
+
*/
|
|
150
|
+
userId?: pulumi.Input<string | undefined>;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* The set of arguments for constructing a AiRuntimeControlVirtualKey resource.
|
|
154
|
+
*/
|
|
155
|
+
export interface AiRuntimeControlVirtualKeyArgs {
|
|
156
|
+
/**
|
|
157
|
+
* The expiration timestamp of the virtual key, in RFC 3339 format. Once set, this value cannot be unset, only changed.
|
|
158
|
+
*/
|
|
159
|
+
expiresAt?: pulumi.Input<string | undefined>;
|
|
160
|
+
/**
|
|
161
|
+
* The AI model identifier, e.g. `claude-sonnet-4-20250514`.
|
|
162
|
+
*/
|
|
163
|
+
model: pulumi.Input<string>;
|
|
164
|
+
/**
|
|
165
|
+
* A human-readable name for the virtual key.
|
|
166
|
+
*/
|
|
167
|
+
name?: pulumi.Input<string | undefined>;
|
|
168
|
+
/**
|
|
169
|
+
* The AI model provider name, e.g. `Anthropic`.
|
|
170
|
+
*/
|
|
171
|
+
providerName: pulumi.Input<string>;
|
|
172
|
+
/**
|
|
173
|
+
* The ID of the user creating the virtual key. Changing this forces a new virtual key to be created.
|
|
174
|
+
*/
|
|
175
|
+
userId: pulumi.Input<string>;
|
|
176
|
+
}
|
|
177
|
+
//# sourceMappingURL=aiRuntimeControlVirtualKey.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aiRuntimeControlVirtualKey.d.ts","sourceRoot":"","sources":["../aiRuntimeControlVirtualKey.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,qBAAa,0BAA2B,SAAQ,MAAM,CAAC,cAAc;IACjE;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,+BAA+B,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,0BAA0B;IAOtK;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,0BAA0B;IAOrE;;OAEG;IACH,SAAgC,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACnE;;OAEG;IACH,SAAgC,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACjE;;OAEG;IACH,SAAgC,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACjE;;OAEG;IACH,SAAwB,S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C,CAAC;IAC9C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACzC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACxC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAChD;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACxC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC7C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC7C;AAED;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC3C;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC7C;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC5B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACxC;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACnC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CAChC"}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.AiRuntimeControlVirtualKey = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Provides a Fastly AI Runtime Control virtual key, used to authenticate
|
|
33
|
+
* requests to an AI service and to attribute usage and session logs back to a
|
|
34
|
+
* named key.
|
|
35
|
+
*
|
|
36
|
+
* ## Example Usage
|
|
37
|
+
*
|
|
38
|
+
* Basic usage:
|
|
39
|
+
*
|
|
40
|
+
* ```typescript
|
|
41
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
42
|
+
* import * as fastly from "@pulumi/fastly";
|
|
43
|
+
*
|
|
44
|
+
* const demo = new fastly.AiRuntimeControlVirtualKey("demo", {
|
|
45
|
+
* name: "prod website chatbot",
|
|
46
|
+
* model: "claude-sonnet-4-20250514",
|
|
47
|
+
* providerName: "Anthropic",
|
|
48
|
+
* userId: "6zhNCY1236787aJIwUgN",
|
|
49
|
+
* expiresAt: "2026-08-05T17:13:36Z",
|
|
50
|
+
* });
|
|
51
|
+
* ```
|
|
52
|
+
*
|
|
53
|
+
* ## Import
|
|
54
|
+
*
|
|
55
|
+
* Fastly AI Runtime Control virtual keys can be imported using their key ID, e.g.
|
|
56
|
+
*
|
|
57
|
+
* ```sh
|
|
58
|
+
* $ pulumi import fastly:index/aiRuntimeControlVirtualKey:AiRuntimeControlVirtualKey demo xxxxxxxxxxxxxxxxxxxx
|
|
59
|
+
* ```
|
|
60
|
+
*
|
|
61
|
+
* > **Note:** Since `accessToken` is only returned by the API at creation time, it will be empty after importing an existing virtual key.
|
|
62
|
+
*/
|
|
63
|
+
class AiRuntimeControlVirtualKey extends pulumi.CustomResource {
|
|
64
|
+
/**
|
|
65
|
+
* Get an existing AiRuntimeControlVirtualKey resource's state with the given name, ID, and optional extra
|
|
66
|
+
* properties used to qualify the lookup.
|
|
67
|
+
*
|
|
68
|
+
* @param name The _unique_ name of the resulting resource.
|
|
69
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
70
|
+
* @param state Any extra arguments used during the lookup.
|
|
71
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
72
|
+
*/
|
|
73
|
+
static get(name, id, state, opts) {
|
|
74
|
+
return new AiRuntimeControlVirtualKey(name, state, { ...opts, id: id });
|
|
75
|
+
}
|
|
76
|
+
/** @internal */
|
|
77
|
+
static __pulumiType = 'fastly:index/aiRuntimeControlVirtualKey:AiRuntimeControlVirtualKey';
|
|
78
|
+
/**
|
|
79
|
+
* Returns true if the given object is an instance of AiRuntimeControlVirtualKey. This is designed to work even
|
|
80
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
81
|
+
*/
|
|
82
|
+
static isInstance(obj) {
|
|
83
|
+
if (obj === undefined || obj === null) {
|
|
84
|
+
return false;
|
|
85
|
+
}
|
|
86
|
+
return obj['__pulumiType'] === AiRuntimeControlVirtualKey.__pulumiType;
|
|
87
|
+
}
|
|
88
|
+
constructor(name, argsOrState, opts) {
|
|
89
|
+
let resourceInputs = {};
|
|
90
|
+
opts = opts || {};
|
|
91
|
+
if (opts.id) {
|
|
92
|
+
const state = argsOrState;
|
|
93
|
+
resourceInputs["accessToken"] = state?.accessToken;
|
|
94
|
+
resourceInputs["createdAt"] = state?.createdAt;
|
|
95
|
+
resourceInputs["createdBy"] = state?.createdBy;
|
|
96
|
+
resourceInputs["expiresAt"] = state?.expiresAt;
|
|
97
|
+
resourceInputs["lastUsedAt"] = state?.lastUsedAt;
|
|
98
|
+
resourceInputs["model"] = state?.model;
|
|
99
|
+
resourceInputs["name"] = state?.name;
|
|
100
|
+
resourceInputs["providerName"] = state?.providerName;
|
|
101
|
+
resourceInputs["type"] = state?.type;
|
|
102
|
+
resourceInputs["updatedAt"] = state?.updatedAt;
|
|
103
|
+
resourceInputs["userId"] = state?.userId;
|
|
104
|
+
}
|
|
105
|
+
else {
|
|
106
|
+
const args = argsOrState;
|
|
107
|
+
if (args?.model === undefined && !opts.urn) {
|
|
108
|
+
throw new Error("Missing required property 'model'");
|
|
109
|
+
}
|
|
110
|
+
if (args?.providerName === undefined && !opts.urn) {
|
|
111
|
+
throw new Error("Missing required property 'providerName'");
|
|
112
|
+
}
|
|
113
|
+
if (args?.userId === undefined && !opts.urn) {
|
|
114
|
+
throw new Error("Missing required property 'userId'");
|
|
115
|
+
}
|
|
116
|
+
resourceInputs["expiresAt"] = args?.expiresAt;
|
|
117
|
+
resourceInputs["model"] = args?.model;
|
|
118
|
+
resourceInputs["name"] = args?.name;
|
|
119
|
+
resourceInputs["providerName"] = args?.providerName;
|
|
120
|
+
resourceInputs["userId"] = args?.userId;
|
|
121
|
+
resourceInputs["accessToken"] = undefined /*out*/;
|
|
122
|
+
resourceInputs["createdAt"] = undefined /*out*/;
|
|
123
|
+
resourceInputs["createdBy"] = undefined /*out*/;
|
|
124
|
+
resourceInputs["lastUsedAt"] = undefined /*out*/;
|
|
125
|
+
resourceInputs["type"] = undefined /*out*/;
|
|
126
|
+
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
127
|
+
}
|
|
128
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
129
|
+
const secretOpts = { additionalSecretOutputs: ["accessToken"] };
|
|
130
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
131
|
+
super(AiRuntimeControlVirtualKey.__pulumiType, name, resourceInputs, opts);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
exports.AiRuntimeControlVirtualKey = AiRuntimeControlVirtualKey;
|
|
135
|
+
//# sourceMappingURL=aiRuntimeControlVirtualKey.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aiRuntimeControlVirtualKey.js","sourceRoot":"","sources":["../aiRuntimeControlVirtualKey.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAa,0BAA2B,SAAQ,MAAM,CAAC,cAAc;IACjE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuC,EAAE,IAAmC;QACrI,OAAO,IAAI,0BAA0B,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACjF,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,oEAAoE,CAAC;IAE3G;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,E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}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "./types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Use this data source to get the list of provider connections configured for your
|
|
5
|
+
* customer account in [Fastly AI Runtime Control](https://www.fastly.com/documentation/reference/api/ai-runtime-control/).
|
|
6
|
+
*/
|
|
7
|
+
export declare function getAiRuntimeControlProviderConnections(opts?: pulumi.InvokeOptions): Promise<GetAiRuntimeControlProviderConnectionsResult>;
|
|
8
|
+
/**
|
|
9
|
+
* A collection of values returned by getAiRuntimeControlProviderConnections.
|
|
10
|
+
*/
|
|
11
|
+
export interface GetAiRuntimeControlProviderConnectionsResult {
|
|
12
|
+
/**
|
|
13
|
+
* The provider-assigned unique ID for this managed resource.
|
|
14
|
+
*/
|
|
15
|
+
readonly id: string;
|
|
16
|
+
/**
|
|
17
|
+
* The provider connections configured for the customer.
|
|
18
|
+
*/
|
|
19
|
+
readonly providerConnections: outputs.GetAiRuntimeControlProviderConnectionsProviderConnection[];
|
|
20
|
+
/**
|
|
21
|
+
* The total number of provider connections returned.
|
|
22
|
+
*/
|
|
23
|
+
readonly total: number;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Use this data source to get the list of provider connections configured for your
|
|
27
|
+
* customer account in [Fastly AI Runtime Control](https://www.fastly.com/documentation/reference/api/ai-runtime-control/).
|
|
28
|
+
*/
|
|
29
|
+
export declare function getAiRuntimeControlProviderConnectionsOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetAiRuntimeControlProviderConnectionsResult>;
|
|
30
|
+
//# sourceMappingURL=getAiRuntimeControlProviderConnections.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAiRuntimeControlProviderConnections.d.ts","sourceRoot":"","sources":["../getAiRuntimeControlProviderConnections.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAEzC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C;;;GAGG;AACH,wBAAgB,sCAAsC,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,4CAA4C,CAAC,CAIzI;AAED;;GAEG;AACH,MAAM,WAAW,4CAA4C;IACzD;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,mBAAmB,EAAE,OAAO,CAAC,wDAAwD,EAAE,CAAC;IACjG;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CAC1B;AACD;;;GAGG;AACH,wBAAgB,4CAA4C,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,4CAA4C,CAAC,CAI3J"}
|