@quantcdn/pulumi-quant 5.7.0 → 5.8.1

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/aiCustomTool.d.ts CHANGED
@@ -26,7 +26,11 @@ export declare class AiCustomTool extends pulumi.CustomResource {
26
26
  */
27
27
  readonly description: pulumi.Output<string>;
28
28
  /**
29
- * HTTPS URL of the edge function
29
+ * JavaScript source code for the edge function
30
+ */
31
+ readonly edgeFunctionCode: pulumi.Output<string>;
32
+ /**
33
+ * Computed edge function URL (read-only)
30
34
  */
31
35
  readonly edgeFunctionUrl: pulumi.Output<string>;
32
36
  /**
@@ -37,6 +41,10 @@ export declare class AiCustomTool extends pulumi.CustomResource {
37
41
  * Whether this tool runs asynchronously (>5 seconds)
38
42
  */
39
43
  readonly isAsync: pulumi.Output<boolean>;
44
+ /**
45
+ * Whether this was an update to an existing tool
46
+ */
47
+ readonly isUpdate: pulumi.Output<boolean>;
40
48
  readonly message: pulumi.Output<string>;
41
49
  /**
42
50
  * Unique tool name (alphanumeric and underscores only)
@@ -90,7 +98,11 @@ export interface AiCustomToolState {
90
98
  */
91
99
  description?: pulumi.Input<string>;
92
100
  /**
93
- * HTTPS URL of the edge function
101
+ * JavaScript source code for the edge function
102
+ */
103
+ edgeFunctionCode?: pulumi.Input<string>;
104
+ /**
105
+ * Computed edge function URL (read-only)
94
106
  */
95
107
  edgeFunctionUrl?: pulumi.Input<string>;
96
108
  /**
@@ -101,6 +113,10 @@ export interface AiCustomToolState {
101
113
  * Whether this tool runs asynchronously (>5 seconds)
102
114
  */
103
115
  isAsync?: pulumi.Input<boolean>;
116
+ /**
117
+ * Whether this was an update to an existing tool
118
+ */
119
+ isUpdate?: pulumi.Input<boolean>;
104
120
  message?: pulumi.Input<string>;
105
121
  /**
106
122
  * Unique tool name (alphanumeric and underscores only)
@@ -146,9 +162,9 @@ export interface AiCustomToolArgs {
146
162
  */
147
163
  description: pulumi.Input<string>;
148
164
  /**
149
- * HTTPS URL of the edge function
165
+ * JavaScript source code for the edge function
150
166
  */
151
- edgeFunctionUrl: pulumi.Input<string>;
167
+ edgeFunctionCode: pulumi.Input<string>;
152
168
  /**
153
169
  * JSON Schema defining the tool's input parameters
154
170
  */
package/aiCustomTool.js CHANGED
@@ -35,9 +35,11 @@ class AiCustomTool extends pulumi.CustomResource {
35
35
  const state = argsOrState;
36
36
  resourceInputs["category"] = state?.category;
37
37
  resourceInputs["description"] = state?.description;
38
+ resourceInputs["edgeFunctionCode"] = state?.edgeFunctionCode;
38
39
  resourceInputs["edgeFunctionUrl"] = state?.edgeFunctionUrl;
39
40
  resourceInputs["inputSchema"] = state?.inputSchema;
40
41
  resourceInputs["isAsync"] = state?.isAsync;
42
+ resourceInputs["isUpdate"] = state?.isUpdate;
41
43
  resourceInputs["message"] = state?.message;
42
44
  resourceInputs["name"] = state?.name;
43
45
  resourceInputs["organisation"] = state?.organisation;
@@ -54,15 +56,15 @@ class AiCustomTool extends pulumi.CustomResource {
54
56
  if (args?.description === undefined && !opts.urn) {
55
57
  throw new Error("Missing required property 'description'");
56
58
  }
57
- if (args?.edgeFunctionUrl === undefined && !opts.urn) {
58
- throw new Error("Missing required property 'edgeFunctionUrl'");
59
+ if (args?.edgeFunctionCode === undefined && !opts.urn) {
60
+ throw new Error("Missing required property 'edgeFunctionCode'");
59
61
  }
60
62
  if (args?.inputSchema === undefined && !opts.urn) {
61
63
  throw new Error("Missing required property 'inputSchema'");
62
64
  }
63
65
  resourceInputs["category"] = args?.category;
64
66
  resourceInputs["description"] = args?.description;
65
- resourceInputs["edgeFunctionUrl"] = args?.edgeFunctionUrl;
67
+ resourceInputs["edgeFunctionCode"] = args?.edgeFunctionCode;
66
68
  resourceInputs["inputSchema"] = args?.inputSchema;
67
69
  resourceInputs["isAsync"] = args?.isAsync;
68
70
  resourceInputs["name"] = args?.name;
@@ -72,6 +74,8 @@ class AiCustomTool extends pulumi.CustomResource {
72
74
  resourceInputs["responseMode"] = args?.responseMode;
73
75
  resourceInputs["timeoutSeconds"] = args?.timeoutSeconds;
74
76
  resourceInputs["toolName"] = args?.toolName;
77
+ resourceInputs["edgeFunctionUrl"] = undefined /*out*/;
78
+ resourceInputs["isUpdate"] = undefined /*out*/;
75
79
  resourceInputs["message"] = undefined /*out*/;
76
80
  resourceInputs["success"] = undefined /*out*/;
77
81
  resourceInputs["tool"] = undefined /*out*/;
@@ -1 +1 @@
1
- {"version":3,"file":"aiCustomTool.js","sourceRoot":"","sources":["../aiCustomTool.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IACnD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyB,EAAE,IAAmC;QACvH,OAAO,IAAI,YAAY,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACnE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,YAAY,CAAC,YAAY,CAAC;IAC7D,CAAC;IA8DD,YAAY,IAAY,EAAE,WAAkD,EAAE,IAAmC;QAC7G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA4C,CAAC;YAC3D,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,EAAE,QAAQ,CAAC;YAC7C,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,EAAE,WAAW,CAAC;YACnD,cAAc,CAAC,iBAAiB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",
4
4
  "description": "A Pulumi package for managing QuantCDN resources.",
5
5
  "keywords": [
6
6
  "pulumi",
@@ -25,7 +25,7 @@
25
25
  "pulumi": {
26
26
  "resource": true,
27
27
  "name": "quant",
28
- "version": "5.7.0",
28
+ "version": "5.8.1",
29
29
  "server": "github://api.github.com/quantcdn/terraform-provider-quant"
30
30
  },
31
31
  "main": "index.js",
package/types/input.d.ts CHANGED
@@ -40,6 +40,10 @@ export interface AiCustomToolTool {
40
40
  category?: pulumi.Input<string>;
41
41
  createdAt?: pulumi.Input<string>;
42
42
  description?: pulumi.Input<string>;
43
+ /**
44
+ * The deployed edge function source code
45
+ */
46
+ edgeFunctionCode?: pulumi.Input<string>;
43
47
  edgeFunctionUrl?: pulumi.Input<string>;
44
48
  inputSchema?: pulumi.Input<inputs.AiCustomToolToolInputSchema>;
45
49
  isAsync?: pulumi.Input<boolean>;
package/types/output.d.ts CHANGED
@@ -39,6 +39,10 @@ export interface AiCustomToolTool {
39
39
  category: string;
40
40
  createdAt: string;
41
41
  description: string;
42
+ /**
43
+ * The deployed edge function source code
44
+ */
45
+ edgeFunctionCode: string;
42
46
  edgeFunctionUrl: string;
43
47
  inputSchema: outputs.AiCustomToolToolInputSchema;
44
48
  isAsync: boolean;