@sl-testing/ac-pulumi 0.1.30 → 0.1.31

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 (55) hide show
  1. package/README.md +82 -0
  2. package/dist/agentConfiguration.d.ts +57 -0
  3. package/dist/agentConfiguration.js +93 -0
  4. package/dist/agentConfiguration.js.map +1 -0
  5. package/dist/agentRuns.d.ts +2 -0
  6. package/dist/agentRuns.js +2 -0
  7. package/dist/agentRuns.js.map +1 -1
  8. package/dist/database.d.ts +36 -0
  9. package/dist/database.js +64 -0
  10. package/dist/database.js.map +1 -0
  11. package/dist/image.d.ts +47 -0
  12. package/dist/image.js +77 -0
  13. package/dist/image.js.map +1 -0
  14. package/dist/imageVersions.d.ts +15 -0
  15. package/dist/imageVersions.js +24 -0
  16. package/dist/imageVersions.js.map +1 -0
  17. package/dist/imageVersionsByImage.d.ts +20 -0
  18. package/dist/imageVersionsByImage.js +28 -0
  19. package/dist/imageVersionsByImage.js.map +1 -0
  20. package/dist/index.d.ts +42 -0
  21. package/dist/index.js +51 -1
  22. package/dist/index.js.map +1 -1
  23. package/dist/job.d.ts +49 -0
  24. package/dist/job.js +78 -0
  25. package/dist/job.js.map +1 -0
  26. package/dist/jobRuns.d.ts +20 -0
  27. package/dist/jobRuns.js +30 -0
  28. package/dist/jobRuns.js.map +1 -0
  29. package/dist/logs.d.ts +23 -0
  30. package/dist/logs.js +32 -0
  31. package/dist/logs.js.map +1 -0
  32. package/dist/package.json +2 -2
  33. package/dist/provider/darwin-arm64/pulumi-resource-agentcloud +0 -0
  34. package/dist/provider/linux-x64/pulumi-resource-agentcloud +0 -0
  35. package/dist/scripts/postinstall.js +76 -0
  36. package/dist/service.d.ts +47 -0
  37. package/dist/service.js +79 -0
  38. package/dist/service.js.map +1 -0
  39. package/dist/serviceDeploymentResource.d.ts +39 -0
  40. package/dist/serviceDeploymentResource.js +71 -0
  41. package/dist/serviceDeploymentResource.js.map +1 -0
  42. package/dist/serviceDeployments.d.ts +20 -0
  43. package/dist/serviceDeployments.js +28 -0
  44. package/dist/serviceDeployments.js.map +1 -0
  45. package/dist/slackActionTypes.d.ts +13 -0
  46. package/dist/slackActionTypes.js +24 -0
  47. package/dist/slackActionTypes.js.map +1 -0
  48. package/dist/slackConnection.d.ts +41 -0
  49. package/dist/slackConnection.js +75 -0
  50. package/dist/slackConnection.js.map +1 -0
  51. package/dist/trigger.d.ts +47 -0
  52. package/dist/trigger.js +78 -0
  53. package/dist/trigger.js.map +1 -0
  54. package/dist/types/output.d.ts +39 -0
  55. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -1,9 +1,33 @@
1
+ export { AgentConfigurationArgs } from "./agentConfiguration";
2
+ export type AgentConfiguration = import("./agentConfiguration").AgentConfiguration;
3
+ export declare const AgentConfiguration: typeof import("./agentConfiguration").AgentConfiguration;
1
4
  export { AgentRunsArgs, AgentRunsResult, AgentRunsOutputArgs } from "./agentRuns";
2
5
  export declare const agentRuns: typeof import("./agentRuns").agentRuns;
3
6
  export declare const agentRunsOutput: typeof import("./agentRuns").agentRunsOutput;
7
+ export { DatabaseArgs } from "./database";
8
+ export type Database = import("./database").Database;
9
+ export declare const Database: typeof import("./database").Database;
4
10
  export { GithubInstallationArgs } from "./githubInstallation";
5
11
  export type GithubInstallation = import("./githubInstallation").GithubInstallation;
6
12
  export declare const GithubInstallation: typeof import("./githubInstallation").GithubInstallation;
13
+ export { ImageArgs } from "./image";
14
+ export type Image = import("./image").Image;
15
+ export declare const Image: typeof import("./image").Image;
16
+ export { ImageVersionsArgs, ImageVersionsResult, ImageVersionsOutputArgs } from "./imageVersions";
17
+ export declare const imageVersions: typeof import("./imageVersions").imageVersions;
18
+ export declare const imageVersionsOutput: typeof import("./imageVersions").imageVersionsOutput;
19
+ export { ImageVersionsByImageArgs, ImageVersionsByImageResult, ImageVersionsByImageOutputArgs } from "./imageVersionsByImage";
20
+ export declare const imageVersionsByImage: typeof import("./imageVersionsByImage").imageVersionsByImage;
21
+ export declare const imageVersionsByImageOutput: typeof import("./imageVersionsByImage").imageVersionsByImageOutput;
22
+ export { JobArgs } from "./job";
23
+ export type Job = import("./job").Job;
24
+ export declare const Job: typeof import("./job").Job;
25
+ export { JobRunsArgs, JobRunsResult, JobRunsOutputArgs } from "./jobRuns";
26
+ export declare const jobRuns: typeof import("./jobRuns").jobRuns;
27
+ export declare const jobRunsOutput: typeof import("./jobRuns").jobRunsOutput;
28
+ export { LogsArgs, LogsResult, LogsOutputArgs } from "./logs";
29
+ export declare const logs: typeof import("./logs").logs;
30
+ export declare const logsOutput: typeof import("./logs").logsOutput;
7
31
  export { MessagesArgs, MessagesResult, MessagesOutputArgs } from "./messages";
8
32
  export declare const messages: typeof import("./messages").messages;
9
33
  export declare const messagesOutput: typeof import("./messages").messagesOutput;
@@ -25,6 +49,24 @@ export declare const Provider: typeof import("./provider").Provider;
25
49
  export { SecretArgs } from "./secret";
26
50
  export type Secret = import("./secret").Secret;
27
51
  export declare const Secret: typeof import("./secret").Secret;
52
+ export { ServiceArgs } from "./service";
53
+ export type Service = import("./service").Service;
54
+ export declare const Service: typeof import("./service").Service;
55
+ export { ServiceDeploymentResourceArgs } from "./serviceDeploymentResource";
56
+ export type ServiceDeploymentResource = import("./serviceDeploymentResource").ServiceDeploymentResource;
57
+ export declare const ServiceDeploymentResource: typeof import("./serviceDeploymentResource").ServiceDeploymentResource;
58
+ export { ServiceDeploymentsArgs, ServiceDeploymentsResult, ServiceDeploymentsOutputArgs } from "./serviceDeployments";
59
+ export declare const serviceDeployments: typeof import("./serviceDeployments").serviceDeployments;
60
+ export declare const serviceDeploymentsOutput: typeof import("./serviceDeployments").serviceDeploymentsOutput;
61
+ export { SlackActionTypesArgs, SlackActionTypesResult, SlackActionTypesOutputArgs } from "./slackActionTypes";
62
+ export declare const slackActionTypes: typeof import("./slackActionTypes").slackActionTypes;
63
+ export declare const slackActionTypesOutput: typeof import("./slackActionTypes").slackActionTypesOutput;
64
+ export { SlackConnectionArgs } from "./slackConnection";
65
+ export type SlackConnection = import("./slackConnection").SlackConnection;
66
+ export declare const SlackConnection: typeof import("./slackConnection").SlackConnection;
67
+ export { TriggerArgs } from "./trigger";
68
+ export type Trigger = import("./trigger").Trigger;
69
+ export declare const Trigger: typeof import("./trigger").Trigger;
28
70
  import * as config from "./config";
29
71
  import * as types from "./types";
30
72
  export { config, types, };
package/dist/index.js CHANGED
@@ -2,14 +2,34 @@
2
2
  // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
3
  // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.types = exports.config = exports.Secret = exports.Provider = exports.ProjectRoleRule = exports.ProjectRoleBinding = exports.ProjectRole = exports.permissionCatalogOutput = exports.permissionCatalog = exports.messagesOutput = exports.messages = exports.GithubInstallation = exports.agentRunsOutput = exports.agentRuns = void 0;
5
+ exports.types = exports.config = exports.Trigger = exports.SlackConnection = exports.slackActionTypesOutput = exports.slackActionTypes = exports.serviceDeploymentsOutput = exports.serviceDeployments = exports.ServiceDeploymentResource = exports.Service = exports.Secret = exports.Provider = exports.ProjectRoleRule = exports.ProjectRoleBinding = exports.ProjectRole = exports.permissionCatalogOutput = exports.permissionCatalog = exports.messagesOutput = exports.messages = exports.logsOutput = exports.logs = exports.jobRunsOutput = exports.jobRuns = exports.Job = exports.imageVersionsByImageOutput = exports.imageVersionsByImage = exports.imageVersionsOutput = exports.imageVersions = exports.Image = exports.GithubInstallation = exports.Database = exports.agentRunsOutput = exports.agentRuns = exports.AgentConfiguration = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
+ exports.AgentConfiguration = null;
9
+ utilities.lazyLoad(exports, ["AgentConfiguration"], () => require("./agentConfiguration"));
8
10
  exports.agentRuns = null;
9
11
  exports.agentRunsOutput = null;
10
12
  utilities.lazyLoad(exports, ["agentRuns", "agentRunsOutput"], () => require("./agentRuns"));
13
+ exports.Database = null;
14
+ utilities.lazyLoad(exports, ["Database"], () => require("./database"));
11
15
  exports.GithubInstallation = null;
12
16
  utilities.lazyLoad(exports, ["GithubInstallation"], () => require("./githubInstallation"));
17
+ exports.Image = null;
18
+ utilities.lazyLoad(exports, ["Image"], () => require("./image"));
19
+ exports.imageVersions = null;
20
+ exports.imageVersionsOutput = null;
21
+ utilities.lazyLoad(exports, ["imageVersions", "imageVersionsOutput"], () => require("./imageVersions"));
22
+ exports.imageVersionsByImage = null;
23
+ exports.imageVersionsByImageOutput = null;
24
+ utilities.lazyLoad(exports, ["imageVersionsByImage", "imageVersionsByImageOutput"], () => require("./imageVersionsByImage"));
25
+ exports.Job = null;
26
+ utilities.lazyLoad(exports, ["Job"], () => require("./job"));
27
+ exports.jobRuns = null;
28
+ exports.jobRunsOutput = null;
29
+ utilities.lazyLoad(exports, ["jobRuns", "jobRunsOutput"], () => require("./jobRuns"));
30
+ exports.logs = null;
31
+ exports.logsOutput = null;
32
+ utilities.lazyLoad(exports, ["logs", "logsOutput"], () => require("./logs"));
13
33
  exports.messages = null;
14
34
  exports.messagesOutput = null;
15
35
  utilities.lazyLoad(exports, ["messages", "messagesOutput"], () => require("./messages"));
@@ -26,6 +46,20 @@ exports.Provider = null;
26
46
  utilities.lazyLoad(exports, ["Provider"], () => require("./provider"));
27
47
  exports.Secret = null;
28
48
  utilities.lazyLoad(exports, ["Secret"], () => require("./secret"));
49
+ exports.Service = null;
50
+ utilities.lazyLoad(exports, ["Service"], () => require("./service"));
51
+ exports.ServiceDeploymentResource = null;
52
+ utilities.lazyLoad(exports, ["ServiceDeploymentResource"], () => require("./serviceDeploymentResource"));
53
+ exports.serviceDeployments = null;
54
+ exports.serviceDeploymentsOutput = null;
55
+ utilities.lazyLoad(exports, ["serviceDeployments", "serviceDeploymentsOutput"], () => require("./serviceDeployments"));
56
+ exports.slackActionTypes = null;
57
+ exports.slackActionTypesOutput = null;
58
+ utilities.lazyLoad(exports, ["slackActionTypes", "slackActionTypesOutput"], () => require("./slackActionTypes"));
59
+ exports.SlackConnection = null;
60
+ utilities.lazyLoad(exports, ["SlackConnection"], () => require("./slackConnection"));
61
+ exports.Trigger = null;
62
+ utilities.lazyLoad(exports, ["Trigger"], () => require("./trigger"));
29
63
  // Export sub-modules:
30
64
  const config = require("./config");
31
65
  exports.config = config;
@@ -35,8 +69,16 @@ const _module = {
35
69
  version: utilities.getVersion(),
36
70
  construct: (name, type, urn) => {
37
71
  switch (type) {
72
+ case "agentcloud:index:AgentConfiguration":
73
+ return new exports.AgentConfiguration(name, undefined, { urn });
74
+ case "agentcloud:index:Database":
75
+ return new exports.Database(name, undefined, { urn });
38
76
  case "agentcloud:index:GithubInstallation":
39
77
  return new exports.GithubInstallation(name, undefined, { urn });
78
+ case "agentcloud:index:Image":
79
+ return new exports.Image(name, undefined, { urn });
80
+ case "agentcloud:index:Job":
81
+ return new exports.Job(name, undefined, { urn });
40
82
  case "agentcloud:index:ProjectRole":
41
83
  return new exports.ProjectRole(name, undefined, { urn });
42
84
  case "agentcloud:index:ProjectRoleBinding":
@@ -45,6 +87,14 @@ const _module = {
45
87
  return new exports.ProjectRoleRule(name, undefined, { urn });
46
88
  case "agentcloud:index:Secret":
47
89
  return new exports.Secret(name, undefined, { urn });
90
+ case "agentcloud:index:Service":
91
+ return new exports.Service(name, undefined, { urn });
92
+ case "agentcloud:index:ServiceDeploymentResource":
93
+ return new exports.ServiceDeploymentResource(name, undefined, { urn });
94
+ case "agentcloud:index:SlackConnection":
95
+ return new exports.SlackConnection(name, undefined, { urn });
96
+ case "agentcloud:index:Trigger":
97
+ return new exports.Trigger(name, undefined, { urn });
48
98
  default:
49
99
  throw new Error(`unknown resource type ${type}`);
50
100
  }
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAI5B,QAAA,SAAS,GAA2C,I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ACrD,KAAK,4CAA4C;gBAC7C,OAAO,IAAI,iCAAyB,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACvE,KAAK,kCAAkC;gBACnC,OAAO,IAAI,uBAAe,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAC7D,KAAK,0BAA0B;gBAC3B,OAAO,IAAI,eAAO,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACrD;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,YAAY,EAAE,OAAO,EAAE,OAAO,CAAC,CAAA;AACrE,MAAM,CAAC,OAAO,CAAC,uBAAuB,CAAC,YAAY,EAAE;IACjD,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,iBAAiB,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAA2B,EAAE;QACpF,IAAI,IAAI,KAAK,6BAA6B,EAAE;YACxC,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACpD;QACD,OAAO,IAAI,gBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;IACvD,CAAC;CACJ,CAAC,CAAC"}
package/dist/job.d.ts ADDED
@@ -0,0 +1,49 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ export declare class Job extends pulumi.CustomResource {
3
+ /**
4
+ * Get an existing Job resource's state with the given name, ID, and optional extra
5
+ * properties used to qualify the lookup.
6
+ *
7
+ * @param name The _unique_ name of the resulting resource.
8
+ * @param id The _unique_ provider ID of the resource to lookup.
9
+ * @param opts Optional settings to control the behavior of the CustomResource.
10
+ */
11
+ static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): Job;
12
+ /**
13
+ * Returns true if the given object is an instance of Job. This is designed to work even
14
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
15
+ */
16
+ static isInstance(obj: any): obj is Job;
17
+ readonly command: pulumi.Output<string>;
18
+ readonly imageVersionId: pulumi.Output<string>;
19
+ readonly inputSchema: pulumi.Output<{
20
+ [key: string]: any;
21
+ } | undefined>;
22
+ readonly jobId: pulumi.Output<string>;
23
+ readonly maxParallelRuns: pulumi.Output<number | undefined>;
24
+ readonly name: pulumi.Output<string>;
25
+ readonly projectId: pulumi.Output<string | undefined>;
26
+ readonly timeoutSeconds: pulumi.Output<number | undefined>;
27
+ /**
28
+ * Create a Job resource with the given unique name, arguments, and options.
29
+ *
30
+ * @param name The _unique_ name of the resource.
31
+ * @param args The arguments to use to populate this resource's properties.
32
+ * @param opts A bag of options that control this resource's behavior.
33
+ */
34
+ constructor(name: string, args: JobArgs, opts?: pulumi.CustomResourceOptions);
35
+ }
36
+ /**
37
+ * The set of arguments for constructing a Job resource.
38
+ */
39
+ export interface JobArgs {
40
+ command: pulumi.Input<string>;
41
+ imageVersionId: pulumi.Input<string>;
42
+ inputSchema?: pulumi.Input<{
43
+ [key: string]: any;
44
+ }>;
45
+ maxParallelRuns?: pulumi.Input<number>;
46
+ name: pulumi.Input<string>;
47
+ projectId?: pulumi.Input<string>;
48
+ timeoutSeconds?: pulumi.Input<number>;
49
+ }
package/dist/job.js ADDED
@@ -0,0 +1,78 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.Job = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ class Job extends pulumi.CustomResource {
9
+ /**
10
+ * Get an existing Job resource's state with the given name, ID, and optional extra
11
+ * properties used to qualify the lookup.
12
+ *
13
+ * @param name The _unique_ name of the resulting resource.
14
+ * @param id The _unique_ provider ID of the resource to lookup.
15
+ * @param opts Optional settings to control the behavior of the CustomResource.
16
+ */
17
+ static get(name, id, opts) {
18
+ return new Job(name, undefined, { ...opts, id: id });
19
+ }
20
+ /**
21
+ * Returns true if the given object is an instance of Job. This is designed to work even
22
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
23
+ */
24
+ static isInstance(obj) {
25
+ if (obj === undefined || obj === null) {
26
+ return false;
27
+ }
28
+ return obj['__pulumiType'] === Job.__pulumiType;
29
+ }
30
+ /**
31
+ * Create a Job resource with the given unique name, arguments, and options.
32
+ *
33
+ * @param name The _unique_ name of the resource.
34
+ * @param args The arguments to use to populate this resource's properties.
35
+ * @param opts A bag of options that control this resource's behavior.
36
+ */
37
+ constructor(name, args, opts) {
38
+ let resourceInputs = {};
39
+ opts = opts || {};
40
+ if (!opts.id) {
41
+ if (args?.command === undefined && !opts.urn) {
42
+ throw new Error("Missing required property 'command'");
43
+ }
44
+ if (args?.imageVersionId === undefined && !opts.urn) {
45
+ throw new Error("Missing required property 'imageVersionId'");
46
+ }
47
+ if (args?.name === undefined && !opts.urn) {
48
+ throw new Error("Missing required property 'name'");
49
+ }
50
+ resourceInputs["command"] = args?.command;
51
+ resourceInputs["imageVersionId"] = args?.imageVersionId;
52
+ resourceInputs["inputSchema"] = args?.inputSchema;
53
+ resourceInputs["maxParallelRuns"] = args?.maxParallelRuns;
54
+ resourceInputs["name"] = args?.name;
55
+ resourceInputs["projectId"] = args?.projectId;
56
+ resourceInputs["timeoutSeconds"] = args?.timeoutSeconds;
57
+ resourceInputs["jobId"] = undefined /*out*/;
58
+ }
59
+ else {
60
+ resourceInputs["command"] = undefined /*out*/;
61
+ resourceInputs["imageVersionId"] = undefined /*out*/;
62
+ resourceInputs["inputSchema"] = undefined /*out*/;
63
+ resourceInputs["jobId"] = undefined /*out*/;
64
+ resourceInputs["maxParallelRuns"] = undefined /*out*/;
65
+ resourceInputs["name"] = undefined /*out*/;
66
+ resourceInputs["projectId"] = undefined /*out*/;
67
+ resourceInputs["timeoutSeconds"] = undefined /*out*/;
68
+ }
69
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
70
+ const replaceOnChanges = { replaceOnChanges: ["projectId"] };
71
+ opts = pulumi.mergeOptions(opts, replaceOnChanges);
72
+ super(Job.__pulumiType, name, resourceInputs, opts);
73
+ }
74
+ }
75
+ exports.Job = Job;
76
+ /** @internal */
77
+ Job.__pulumiType = 'agentcloud:index:Job';
78
+ //# sourceMappingURL=job.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"job.js","sourceRoot":"","sources":["../job.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,GAAI,SAAQ,MAAM,CAAC,cAAc;IAC1C;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,GAAG,CAAC,IAAI,EAAE,SAAgB,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAChE,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,GAAG,CAAC,YAAY,CAAC;IACpD,CAAC;IAWD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAa,EAAE,IAAmC;QACxE,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE;YACV,IAAI,IAAI,EAAE,OAAO,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC1C,MAAM,IAAI,KAAK,CAAC,qCAAqC,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,CAAC,gBAAgB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACxD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,gBAAgB,GAAG,EAAE,gBAAgB,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC;QAC7D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC;QACnD,KAAK,CAAC,GAAG,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxD,CAAC;;AA9EL,kBA+EC;AAlEG,gBAAgB;AACO,gBAAY,GAAG,sBAAsB,CAAC"}
@@ -0,0 +1,20 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "./types/output";
3
+ export declare function jobRuns(args?: JobRunsArgs, opts?: pulumi.InvokeOptions): Promise<JobRunsResult>;
4
+ export interface JobRunsArgs {
5
+ cursor?: string;
6
+ jobId?: string;
7
+ limit?: number;
8
+ projectId?: string;
9
+ }
10
+ export interface JobRunsResult {
11
+ readonly items: outputs.JobRun[];
12
+ readonly nextCursor?: string;
13
+ }
14
+ export declare function jobRunsOutput(args?: JobRunsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<JobRunsResult>;
15
+ export interface JobRunsOutputArgs {
16
+ cursor?: pulumi.Input<string>;
17
+ jobId?: pulumi.Input<string>;
18
+ limit?: pulumi.Input<number>;
19
+ projectId?: pulumi.Input<string>;
20
+ }
@@ -0,0 +1,30 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.jobRunsOutput = exports.jobRuns = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ function jobRuns(args, opts) {
9
+ args = args || {};
10
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
11
+ return pulumi.runtime.invoke("agentcloud:index:jobRuns", {
12
+ "cursor": args.cursor,
13
+ "jobId": args.jobId,
14
+ "limit": args.limit,
15
+ "projectId": args.projectId,
16
+ }, opts);
17
+ }
18
+ exports.jobRuns = jobRuns;
19
+ function jobRunsOutput(args, opts) {
20
+ args = args || {};
21
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
22
+ return pulumi.runtime.invokeOutput("agentcloud:index:jobRuns", {
23
+ "cursor": args.cursor,
24
+ "jobId": args.jobId,
25
+ "limit": args.limit,
26
+ "projectId": args.projectId,
27
+ }, opts);
28
+ }
29
+ exports.jobRunsOutput = jobRunsOutput;
30
+ //# sourceMappingURL=jobRuns.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jobRuns.js","sourceRoot":"","sources":["../jobRuns.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC,SAAgB,OAAO,CAAC,IAAkB,EAAE,IAA2B;IACnE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0BAA0B,EAAE;QACrD,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,0BASC;AAaD,SAAgB,aAAa,CAAC,IAAwB,EAAE,IAAiC;IACrF,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,0BAA0B,EAAE;QAC3D,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,sCASC"}
package/dist/logs.d.ts ADDED
@@ -0,0 +1,23 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "./types/output";
3
+ export declare function logs(args: LogsArgs, opts?: pulumi.InvokeOptions): Promise<LogsResult>;
4
+ export interface LogsArgs {
5
+ contains?: string;
6
+ limit?: number;
7
+ logId: string;
8
+ projectId?: string;
9
+ since?: string;
10
+ until?: string;
11
+ }
12
+ export interface LogsResult {
13
+ readonly events: outputs.LogEvent[];
14
+ }
15
+ export declare function logsOutput(args: LogsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<LogsResult>;
16
+ export interface LogsOutputArgs {
17
+ contains?: pulumi.Input<string>;
18
+ limit?: pulumi.Input<number>;
19
+ logId: pulumi.Input<string>;
20
+ projectId?: pulumi.Input<string>;
21
+ since?: pulumi.Input<string>;
22
+ until?: pulumi.Input<string>;
23
+ }
package/dist/logs.js ADDED
@@ -0,0 +1,32 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.logsOutput = exports.logs = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ function logs(args, opts) {
9
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
10
+ return pulumi.runtime.invoke("agentcloud:index:logs", {
11
+ "contains": args.contains,
12
+ "limit": args.limit,
13
+ "logId": args.logId,
14
+ "projectId": args.projectId,
15
+ "since": args.since,
16
+ "until": args.until,
17
+ }, opts);
18
+ }
19
+ exports.logs = logs;
20
+ function logsOutput(args, opts) {
21
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
22
+ return pulumi.runtime.invokeOutput("agentcloud:index:logs", {
23
+ "contains": args.contains,
24
+ "limit": args.limit,
25
+ "logId": args.logId,
26
+ "projectId": args.projectId,
27
+ "since": args.since,
28
+ "until": args.until,
29
+ }, opts);
30
+ }
31
+ exports.logsOutput = logsOutput;
32
+ //# sourceMappingURL=logs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logs.js","sourceRoot":"","sources":["../logs.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC,SAAgB,IAAI,CAAC,IAAc,EAAE,IAA2B;IAC5D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,uBAAuB,EAAE;QAClD,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,OAAO,EAAE,IAAI,CAAC,KAAK;KACtB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,oBAUC;AAcD,SAAgB,UAAU,CAAC,IAAoB,EAAE,IAAiC;IAC9E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,uBAAuB,EAAE;QACxD,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,OAAO,EAAE,IAAI,CAAC,KAAK;KACtB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,gCAUC"}
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/agentcloud",
3
- "version": "0.1.29",
3
+ "version": "0.1.31",
4
4
  "main": "bin/index.js",
5
5
  "scripts": {
6
6
  "build": "tsc",
@@ -14,6 +14,6 @@
14
14
  "pulumi": {
15
15
  "resource": true,
16
16
  "name": "agentcloud",
17
- "version": "0.1.29"
17
+ "version": "0.1.31"
18
18
  }
19
19
  }
@@ -0,0 +1,76 @@
1
+ /* eslint-disable no-console */
2
+
3
+ const cp = require("node:child_process");
4
+ const fs = require("node:fs");
5
+ const path = require("node:path");
6
+
7
+ function log(msg) {
8
+ process.stdout.write(String(msg) + "\n");
9
+ }
10
+
11
+ function warn(msg) {
12
+ process.stderr.write(String(msg) + "\n");
13
+ }
14
+
15
+ function main() {
16
+ // This file is copied into the published dist/ package as dist/scripts/postinstall.js.
17
+ const distRoot = path.resolve(__dirname, "..");
18
+ const pkgPath = path.join(distRoot, "package.json");
19
+ const platform = process.platform;
20
+ const arch = process.arch;
21
+ const key = `${platform}-${arch}`;
22
+
23
+ const supported = {
24
+ "darwin-arm64": "darwin-arm64",
25
+ "linux-x64": "linux-x64",
26
+ };
27
+ const target = supported[key];
28
+ const providerBin = target
29
+ ? path.join(distRoot, "provider", target, "pulumi-resource-agentcloud")
30
+ : "";
31
+
32
+ if (!fs.existsSync(pkgPath)) {
33
+ warn("agentcloud-sdk postinstall: missing package.json (unexpected)");
34
+ return;
35
+ }
36
+ const pkg = JSON.parse(fs.readFileSync(pkgPath, "utf8"));
37
+ const version = String(pkg?.version || "").trim();
38
+ if (!version) {
39
+ warn("agentcloud-sdk postinstall: missing version (unexpected)");
40
+ return;
41
+ }
42
+
43
+ // Keep installs resilient: if pulumi is not installed, skip plugin install.
44
+ // Our runbooks/scripts ensure pulumi exists before running `agentcloud infra`.
45
+ try {
46
+ cp.execSync("pulumi version", { stdio: "ignore" });
47
+ } catch {
48
+ log(
49
+ "agentcloud-sdk postinstall: pulumi not found; skipping provider plugin install",
50
+ );
51
+ return;
52
+ }
53
+
54
+ if (!providerBin || !fs.existsSync(providerBin)) {
55
+ warn(
56
+ `agentcloud-sdk postinstall: missing provider binary for ${key}; skipping plugin install`,
57
+ );
58
+ return;
59
+ }
60
+
61
+ // Install (or reinstall) the provider plugin so Pulumi programs can run without
62
+ // any manual plugin setup.
63
+ const cmd = `pulumi plugin install resource agentcloud ${version} --file ${JSON.stringify(providerBin)} --reinstall`;
64
+ try {
65
+ cp.execSync(cmd, { stdio: "inherit" });
66
+ } catch (err) {
67
+ // Don't hard-fail npm installs for transient Pulumi/plugin issues; the next
68
+ // `agentcloud infra` invocation will surface a precise error.
69
+ warn(
70
+ `agentcloud-sdk postinstall: failed to install provider plugin (version=${version})`,
71
+ );
72
+ warn(String(err?.message || err));
73
+ }
74
+ }
75
+
76
+ main();
@@ -0,0 +1,47 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ export declare class Service extends pulumi.CustomResource {
3
+ /**
4
+ * Get an existing Service resource's state with the given name, ID, and optional extra
5
+ * properties used to qualify the lookup.
6
+ *
7
+ * @param name The _unique_ name of the resulting resource.
8
+ * @param id The _unique_ provider ID of the resource to lookup.
9
+ * @param opts Optional settings to control the behavior of the CustomResource.
10
+ */
11
+ static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): Service;
12
+ /**
13
+ * Returns true if the given object is an instance of Service. This is designed to work even
14
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
15
+ */
16
+ static isInstance(obj: any): obj is Service;
17
+ readonly cpu: pulumi.Output<number | undefined>;
18
+ readonly healthcheckPath: pulumi.Output<string | undefined>;
19
+ readonly memoryMb: pulumi.Output<number | undefined>;
20
+ readonly name: pulumi.Output<string>;
21
+ readonly port: pulumi.Output<number | undefined>;
22
+ readonly projectId: pulumi.Output<string | undefined>;
23
+ readonly serviceId: pulumi.Output<string>;
24
+ readonly serviceUrl: pulumi.Output<string | undefined>;
25
+ readonly status: pulumi.Output<string>;
26
+ readonly type: pulumi.Output<string>;
27
+ /**
28
+ * Create a Service resource with the given unique name, arguments, and options.
29
+ *
30
+ * @param name The _unique_ name of the resource.
31
+ * @param args The arguments to use to populate this resource's properties.
32
+ * @param opts A bag of options that control this resource's behavior.
33
+ */
34
+ constructor(name: string, args: ServiceArgs, opts?: pulumi.CustomResourceOptions);
35
+ }
36
+ /**
37
+ * The set of arguments for constructing a Service resource.
38
+ */
39
+ export interface ServiceArgs {
40
+ cpu?: pulumi.Input<number>;
41
+ healthcheckPath?: pulumi.Input<string>;
42
+ memoryMb?: pulumi.Input<number>;
43
+ name: pulumi.Input<string>;
44
+ port?: pulumi.Input<number>;
45
+ projectId?: pulumi.Input<string>;
46
+ type: pulumi.Input<string>;
47
+ }
@@ -0,0 +1,79 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.Service = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ class Service extends pulumi.CustomResource {
9
+ /**
10
+ * Get an existing Service resource's state with the given name, ID, and optional extra
11
+ * properties used to qualify the lookup.
12
+ *
13
+ * @param name The _unique_ name of the resulting resource.
14
+ * @param id The _unique_ provider ID of the resource to lookup.
15
+ * @param opts Optional settings to control the behavior of the CustomResource.
16
+ */
17
+ static get(name, id, opts) {
18
+ return new Service(name, undefined, { ...opts, id: id });
19
+ }
20
+ /**
21
+ * Returns true if the given object is an instance of Service. This is designed to work even
22
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
23
+ */
24
+ static isInstance(obj) {
25
+ if (obj === undefined || obj === null) {
26
+ return false;
27
+ }
28
+ return obj['__pulumiType'] === Service.__pulumiType;
29
+ }
30
+ /**
31
+ * Create a Service resource with the given unique name, arguments, and options.
32
+ *
33
+ * @param name The _unique_ name of the resource.
34
+ * @param args The arguments to use to populate this resource's properties.
35
+ * @param opts A bag of options that control this resource's behavior.
36
+ */
37
+ constructor(name, args, opts) {
38
+ let resourceInputs = {};
39
+ opts = opts || {};
40
+ if (!opts.id) {
41
+ if (args?.name === undefined && !opts.urn) {
42
+ throw new Error("Missing required property 'name'");
43
+ }
44
+ if (args?.type === undefined && !opts.urn) {
45
+ throw new Error("Missing required property 'type'");
46
+ }
47
+ resourceInputs["cpu"] = args?.cpu;
48
+ resourceInputs["healthcheckPath"] = args?.healthcheckPath;
49
+ resourceInputs["memoryMb"] = args?.memoryMb;
50
+ resourceInputs["name"] = args?.name;
51
+ resourceInputs["port"] = args?.port;
52
+ resourceInputs["projectId"] = args?.projectId;
53
+ resourceInputs["type"] = args?.type;
54
+ resourceInputs["serviceId"] = undefined /*out*/;
55
+ resourceInputs["serviceUrl"] = undefined /*out*/;
56
+ resourceInputs["status"] = undefined /*out*/;
57
+ }
58
+ else {
59
+ resourceInputs["cpu"] = undefined /*out*/;
60
+ resourceInputs["healthcheckPath"] = undefined /*out*/;
61
+ resourceInputs["memoryMb"] = undefined /*out*/;
62
+ resourceInputs["name"] = undefined /*out*/;
63
+ resourceInputs["port"] = undefined /*out*/;
64
+ resourceInputs["projectId"] = undefined /*out*/;
65
+ resourceInputs["serviceId"] = undefined /*out*/;
66
+ resourceInputs["serviceUrl"] = undefined /*out*/;
67
+ resourceInputs["status"] = undefined /*out*/;
68
+ resourceInputs["type"] = undefined /*out*/;
69
+ }
70
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
71
+ const replaceOnChanges = { replaceOnChanges: ["name", "projectId", "type"] };
72
+ opts = pulumi.mergeOptions(opts, replaceOnChanges);
73
+ super(Service.__pulumiType, name, resourceInputs, opts);
74
+ }
75
+ }
76
+ exports.Service = Service;
77
+ /** @internal */
78
+ Service.__pulumiType = 'agentcloud:index:Service';
79
+ //# sourceMappingURL=service.js.map