@sl-testing/ac-pulumi 0.1.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.
Files changed (111) hide show
  1. package/README.md +6 -0
  2. package/dist/agent.d.ts +53 -0
  3. package/dist/agent.js +87 -0
  4. package/dist/agent.js.map +1 -0
  5. package/dist/app.d.ts +39 -0
  6. package/dist/app.js +66 -0
  7. package/dist/app.js.map +1 -0
  8. package/dist/appDeployments.d.ts +18 -0
  9. package/dist/appDeployments.js +26 -0
  10. package/dist/appDeployments.js.map +1 -0
  11. package/dist/config/index.d.ts +1 -0
  12. package/dist/config/index.js +21 -0
  13. package/dist/config/index.js.map +1 -0
  14. package/dist/config/vars.d.ts +2 -0
  15. package/dist/config/vars.js +19 -0
  16. package/dist/config/vars.js.map +1 -0
  17. package/dist/database.d.ts +38 -0
  18. package/dist/database.js +66 -0
  19. package/dist/database.js.map +1 -0
  20. package/dist/eventDeliveries.d.ts +22 -0
  21. package/dist/eventDeliveries.js +32 -0
  22. package/dist/eventDeliveries.js.map +1 -0
  23. package/dist/eventRoute.d.ts +50 -0
  24. package/dist/eventRoute.js +81 -0
  25. package/dist/eventRoute.js.map +1 -0
  26. package/dist/eventSource.d.ts +42 -0
  27. package/dist/eventSource.js +67 -0
  28. package/dist/eventSource.js.map +1 -0
  29. package/dist/events.d.ts +20 -0
  30. package/dist/events.js +30 -0
  31. package/dist/events.js.map +1 -0
  32. package/dist/function.d.ts +49 -0
  33. package/dist/function.js +76 -0
  34. package/dist/function.js.map +1 -0
  35. package/dist/functionRuns.d.ts +18 -0
  36. package/dist/functionRuns.js +28 -0
  37. package/dist/functionRuns.js.map +1 -0
  38. package/dist/image.d.ts +41 -0
  39. package/dist/image.js +69 -0
  40. package/dist/image.js.map +1 -0
  41. package/dist/imageVersions.d.ts +13 -0
  42. package/dist/imageVersions.js +22 -0
  43. package/dist/imageVersions.js.map +1 -0
  44. package/dist/index.d.ts +87 -0
  45. package/dist/index.js +128 -0
  46. package/dist/index.js.map +1 -0
  47. package/dist/logs.d.ts +21 -0
  48. package/dist/logs.js +30 -0
  49. package/dist/logs.js.map +1 -0
  50. package/dist/machine.d.ts +45 -0
  51. package/dist/machine.js +75 -0
  52. package/dist/machine.js.map +1 -0
  53. package/dist/messages.d.ts +18 -0
  54. package/dist/messages.js +26 -0
  55. package/dist/messages.js.map +1 -0
  56. package/dist/metricsQuery.d.ts +17 -0
  57. package/dist/metricsQuery.js +24 -0
  58. package/dist/metricsQuery.js.map +1 -0
  59. package/dist/metricsQueryRange.d.ts +23 -0
  60. package/dist/metricsQueryRange.js +28 -0
  61. package/dist/metricsQueryRange.js.map +1 -0
  62. package/dist/observabilityHealthcheck.d.ts +13 -0
  63. package/dist/observabilityHealthcheck.js +19 -0
  64. package/dist/observabilityHealthcheck.js.map +1 -0
  65. package/dist/package.json +21 -0
  66. package/dist/permissionRole.d.ts +35 -0
  67. package/dist/permissionRole.js +60 -0
  68. package/dist/permissionRole.js.map +1 -0
  69. package/dist/permissionRoleBinding.d.ts +38 -0
  70. package/dist/permissionRoleBinding.js +70 -0
  71. package/dist/permissionRoleBinding.js.map +1 -0
  72. package/dist/permissionRoleRule.d.ts +43 -0
  73. package/dist/permissionRoleRule.js +73 -0
  74. package/dist/permissionRoleRule.js.map +1 -0
  75. package/dist/provider/darwin-arm64/pulumi-resource-agentcloud +0 -0
  76. package/dist/provider/linux-x64/pulumi-resource-agentcloud +0 -0
  77. package/dist/provider.d.ts +25 -0
  78. package/dist/provider.js +43 -0
  79. package/dist/provider.js.map +1 -0
  80. package/dist/scripts/postinstall.js +68 -0
  81. package/dist/secret.d.ts +34 -0
  82. package/dist/secret.js +63 -0
  83. package/dist/secret.js.map +1 -0
  84. package/dist/threads.d.ts +18 -0
  85. package/dist/threads.js +28 -0
  86. package/dist/threads.js.map +1 -0
  87. package/dist/traceDetail.d.ts +19 -0
  88. package/dist/traceDetail.js +26 -0
  89. package/dist/traceDetail.js.map +1 -0
  90. package/dist/tracesSearch.d.ts +15 -0
  91. package/dist/tracesSearch.js +24 -0
  92. package/dist/tracesSearch.js.map +1 -0
  93. package/dist/types/index.d.ts +3 -0
  94. package/dist/types/index.js +11 -0
  95. package/dist/types/index.js.map +1 -0
  96. package/dist/types/input.d.ts +1 -0
  97. package/dist/types/input.js +5 -0
  98. package/dist/types/input.js.map +1 -0
  99. package/dist/types/output.d.ts +60 -0
  100. package/dist/types/output.js +5 -0
  101. package/dist/types/output.js.map +1 -0
  102. package/dist/users.d.ts +16 -0
  103. package/dist/users.js +26 -0
  104. package/dist/users.js.map +1 -0
  105. package/dist/utilities.d.ts +8 -0
  106. package/dist/utilities.js +101 -0
  107. package/dist/utilities.js.map +1 -0
  108. package/dist/workspaceMembership.d.ts +36 -0
  109. package/dist/workspaceMembership.js +65 -0
  110. package/dist/workspaceMembership.js.map +1 -0
  111. package/package.json +26 -0
@@ -0,0 +1,35 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ export declare class PermissionRole extends pulumi.CustomResource {
3
+ /**
4
+ * Get an existing PermissionRole 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): PermissionRole;
12
+ /**
13
+ * Returns true if the given object is an instance of PermissionRole. 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 PermissionRole;
17
+ readonly description: pulumi.Output<string | undefined>;
18
+ readonly name: pulumi.Output<string>;
19
+ readonly roleId: pulumi.Output<string>;
20
+ /**
21
+ * Create a PermissionRole resource with the given unique name, arguments, and options.
22
+ *
23
+ * @param name The _unique_ name of the resource.
24
+ * @param args The arguments to use to populate this resource's properties.
25
+ * @param opts A bag of options that control this resource's behavior.
26
+ */
27
+ constructor(name: string, args: PermissionRoleArgs, opts?: pulumi.CustomResourceOptions);
28
+ }
29
+ /**
30
+ * The set of arguments for constructing a PermissionRole resource.
31
+ */
32
+ export interface PermissionRoleArgs {
33
+ description?: pulumi.Input<string>;
34
+ name: pulumi.Input<string>;
35
+ }
@@ -0,0 +1,60 @@
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.PermissionRole = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ class PermissionRole extends pulumi.CustomResource {
9
+ /**
10
+ * Get an existing PermissionRole 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 PermissionRole(name, undefined, Object.assign(Object.assign({}, opts), { id: id }));
19
+ }
20
+ /**
21
+ * Returns true if the given object is an instance of PermissionRole. 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'] === PermissionRole.__pulumiType;
29
+ }
30
+ /**
31
+ * Create a PermissionRole 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 || args.name === undefined) && !opts.urn) {
42
+ throw new Error("Missing required property 'name'");
43
+ }
44
+ resourceInputs["description"] = args ? args.description : undefined;
45
+ resourceInputs["name"] = args ? args.name : undefined;
46
+ resourceInputs["roleId"] = undefined /*out*/;
47
+ }
48
+ else {
49
+ resourceInputs["description"] = undefined /*out*/;
50
+ resourceInputs["name"] = undefined /*out*/;
51
+ resourceInputs["roleId"] = undefined /*out*/;
52
+ }
53
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
54
+ super(PermissionRole.__pulumiType, name, resourceInputs, opts);
55
+ }
56
+ }
57
+ exports.PermissionRole = PermissionRole;
58
+ /** @internal */
59
+ PermissionRole.__pulumiType = 'agentcloud:index:PermissionRole';
60
+ //# sourceMappingURL=permissionRole.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"permissionRole.js","sourceRoot":"","sources":["../permissionRole.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,cAAc,CAAC,IAAI,EAAE,SAAgB,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC3E,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,cAAc,CAAC,YAAY,CAAC;IAC/D,CAAC;IAMD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAwB,EAAE,IAAmC;QACnF,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE;YACV,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACjD,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;aACvD;YACD,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAChD;aAAM;YACH,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAClD,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC3C,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAChD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;;AAvDL,wCAwDC;AA3CG,gBAAgB;AACO,2BAAY,GAAG,iCAAiC,CAAC"}
@@ -0,0 +1,38 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ export declare class PermissionRoleBinding extends pulumi.CustomResource {
3
+ /**
4
+ * Get an existing PermissionRoleBinding 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): PermissionRoleBinding;
12
+ /**
13
+ * Returns true if the given object is an instance of PermissionRoleBinding. 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 PermissionRoleBinding;
17
+ readonly bindingId: pulumi.Output<string>;
18
+ readonly roleId: pulumi.Output<string>;
19
+ readonly roleName: pulumi.Output<string>;
20
+ readonly subjectId: pulumi.Output<string>;
21
+ readonly subjectType: pulumi.Output<string>;
22
+ /**
23
+ * Create a PermissionRoleBinding resource with the given unique name, arguments, and options.
24
+ *
25
+ * @param name The _unique_ name of the resource.
26
+ * @param args The arguments to use to populate this resource's properties.
27
+ * @param opts A bag of options that control this resource's behavior.
28
+ */
29
+ constructor(name: string, args: PermissionRoleBindingArgs, opts?: pulumi.CustomResourceOptions);
30
+ }
31
+ /**
32
+ * The set of arguments for constructing a PermissionRoleBinding resource.
33
+ */
34
+ export interface PermissionRoleBindingArgs {
35
+ roleName: pulumi.Input<string>;
36
+ subjectId: pulumi.Input<string>;
37
+ subjectType: pulumi.Input<string>;
38
+ }
@@ -0,0 +1,70 @@
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.PermissionRoleBinding = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ class PermissionRoleBinding extends pulumi.CustomResource {
9
+ /**
10
+ * Get an existing PermissionRoleBinding 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 PermissionRoleBinding(name, undefined, Object.assign(Object.assign({}, opts), { id: id }));
19
+ }
20
+ /**
21
+ * Returns true if the given object is an instance of PermissionRoleBinding. 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'] === PermissionRoleBinding.__pulumiType;
29
+ }
30
+ /**
31
+ * Create a PermissionRoleBinding 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 || args.roleName === undefined) && !opts.urn) {
42
+ throw new Error("Missing required property 'roleName'");
43
+ }
44
+ if ((!args || args.subjectId === undefined) && !opts.urn) {
45
+ throw new Error("Missing required property 'subjectId'");
46
+ }
47
+ if ((!args || args.subjectType === undefined) && !opts.urn) {
48
+ throw new Error("Missing required property 'subjectType'");
49
+ }
50
+ resourceInputs["roleName"] = args ? args.roleName : undefined;
51
+ resourceInputs["subjectId"] = args ? args.subjectId : undefined;
52
+ resourceInputs["subjectType"] = args ? args.subjectType : undefined;
53
+ resourceInputs["bindingId"] = undefined /*out*/;
54
+ resourceInputs["roleId"] = undefined /*out*/;
55
+ }
56
+ else {
57
+ resourceInputs["bindingId"] = undefined /*out*/;
58
+ resourceInputs["roleId"] = undefined /*out*/;
59
+ resourceInputs["roleName"] = undefined /*out*/;
60
+ resourceInputs["subjectId"] = undefined /*out*/;
61
+ resourceInputs["subjectType"] = undefined /*out*/;
62
+ }
63
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
64
+ super(PermissionRoleBinding.__pulumiType, name, resourceInputs, opts);
65
+ }
66
+ }
67
+ exports.PermissionRoleBinding = PermissionRoleBinding;
68
+ /** @internal */
69
+ PermissionRoleBinding.__pulumiType = 'agentcloud:index:PermissionRoleBinding';
70
+ //# sourceMappingURL=permissionRoleBinding.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"permissionRoleBinding.js","sourceRoot":"","sources":["../permissionRoleBinding.ts"],"names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AAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAChD;aAAM;YACH,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC7C,cAAc,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC/C,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACrD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,qBAAqB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC1E,CAAC;;AAnEL,sDAoEC;AAvDG,gBAAgB;AACO,kCAAY,GAAG,wCAAwC,CAAC"}
@@ -0,0 +1,43 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ export declare class PermissionRoleRule extends pulumi.CustomResource {
3
+ /**
4
+ * Get an existing PermissionRoleRule 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): PermissionRoleRule;
12
+ /**
13
+ * Returns true if the given object is an instance of PermissionRoleRule. 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 PermissionRoleRule;
17
+ readonly permission: pulumi.Output<string>;
18
+ readonly resolvedScopeType: pulumi.Output<string>;
19
+ readonly resourceId: pulumi.Output<string | undefined>;
20
+ readonly resourceType: pulumi.Output<string | undefined>;
21
+ readonly roleId: pulumi.Output<string>;
22
+ readonly roleName: pulumi.Output<string>;
23
+ readonly ruleId: pulumi.Output<string>;
24
+ readonly scopeType: pulumi.Output<string | undefined>;
25
+ /**
26
+ * Create a PermissionRoleRule resource with the given unique name, arguments, and options.
27
+ *
28
+ * @param name The _unique_ name of the resource.
29
+ * @param args The arguments to use to populate this resource's properties.
30
+ * @param opts A bag of options that control this resource's behavior.
31
+ */
32
+ constructor(name: string, args: PermissionRoleRuleArgs, opts?: pulumi.CustomResourceOptions);
33
+ }
34
+ /**
35
+ * The set of arguments for constructing a PermissionRoleRule resource.
36
+ */
37
+ export interface PermissionRoleRuleArgs {
38
+ permission: pulumi.Input<string>;
39
+ resourceId?: pulumi.Input<string>;
40
+ resourceType?: pulumi.Input<string>;
41
+ roleName: pulumi.Input<string>;
42
+ scopeType?: pulumi.Input<string>;
43
+ }
@@ -0,0 +1,73 @@
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.PermissionRoleRule = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ class PermissionRoleRule extends pulumi.CustomResource {
9
+ /**
10
+ * Get an existing PermissionRoleRule 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 PermissionRoleRule(name, undefined, Object.assign(Object.assign({}, opts), { id: id }));
19
+ }
20
+ /**
21
+ * Returns true if the given object is an instance of PermissionRoleRule. 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'] === PermissionRoleRule.__pulumiType;
29
+ }
30
+ /**
31
+ * Create a PermissionRoleRule 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 || args.permission === undefined) && !opts.urn) {
42
+ throw new Error("Missing required property 'permission'");
43
+ }
44
+ if ((!args || args.roleName === undefined) && !opts.urn) {
45
+ throw new Error("Missing required property 'roleName'");
46
+ }
47
+ resourceInputs["permission"] = args ? args.permission : undefined;
48
+ resourceInputs["resourceId"] = args ? args.resourceId : undefined;
49
+ resourceInputs["resourceType"] = args ? args.resourceType : undefined;
50
+ resourceInputs["roleName"] = args ? args.roleName : undefined;
51
+ resourceInputs["scopeType"] = args ? args.scopeType : undefined;
52
+ resourceInputs["resolvedScopeType"] = undefined /*out*/;
53
+ resourceInputs["roleId"] = undefined /*out*/;
54
+ resourceInputs["ruleId"] = undefined /*out*/;
55
+ }
56
+ else {
57
+ resourceInputs["permission"] = undefined /*out*/;
58
+ resourceInputs["resolvedScopeType"] = undefined /*out*/;
59
+ resourceInputs["resourceId"] = undefined /*out*/;
60
+ resourceInputs["resourceType"] = undefined /*out*/;
61
+ resourceInputs["roleId"] = undefined /*out*/;
62
+ resourceInputs["roleName"] = undefined /*out*/;
63
+ resourceInputs["ruleId"] = undefined /*out*/;
64
+ resourceInputs["scopeType"] = undefined /*out*/;
65
+ }
66
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
67
+ super(PermissionRoleRule.__pulumiType, name, resourceInputs, opts);
68
+ }
69
+ }
70
+ exports.PermissionRoleRule = PermissionRoleRule;
71
+ /** @internal */
72
+ PermissionRoleRule.__pulumiType = 'agentcloud:index:PermissionRoleRule';
73
+ //# sourceMappingURL=permissionRoleRule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"permissionRoleRule.js","sourceRoot":"","sources":["../permissionRoleRule.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IACzD;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,kBAAkB,CAAC,IAAI,EAAE,SAAgB,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC/E,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,kBAAkB,CAAC,YAAY,CAAC;IACnE,CAAC;IAWD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAA4B,EAAE,IAAmC;QACvF,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE;YACV,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,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,GAAG,SAAS,CAAC,OAAO,CAAC;YACnD,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC7C,cAAc,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC/C,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC7C,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,kBAAkB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACvE,CAAC;;AAzEL,gDA0EC;AA7DG,gBAAgB;AACO,+BAAY,GAAG,qCAAqC,CAAC"}
@@ -0,0 +1,25 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ export declare class Provider extends pulumi.ProviderResource {
3
+ /**
4
+ * Returns true if the given object is an instance of Provider. This is designed to work even
5
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
6
+ */
7
+ static isInstance(obj: any): obj is Provider;
8
+ readonly apiUrl: pulumi.Output<string | undefined>;
9
+ readonly workspaceSlug: pulumi.Output<string>;
10
+ /**
11
+ * Create a Provider resource with the given unique name, arguments, and options.
12
+ *
13
+ * @param name The _unique_ name of the resource.
14
+ * @param args The arguments to use to populate this resource's properties.
15
+ * @param opts A bag of options that control this resource's behavior.
16
+ */
17
+ constructor(name: string, args: ProviderArgs, opts?: pulumi.ResourceOptions);
18
+ }
19
+ /**
20
+ * The set of arguments for constructing a Provider resource.
21
+ */
22
+ export interface ProviderArgs {
23
+ apiUrl?: pulumi.Input<string>;
24
+ workspaceSlug: pulumi.Input<string>;
25
+ }
@@ -0,0 +1,43 @@
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.Provider = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ class Provider extends pulumi.ProviderResource {
9
+ /**
10
+ * Returns true if the given object is an instance of Provider. This is designed to work even
11
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
12
+ */
13
+ static isInstance(obj) {
14
+ if (obj === undefined || obj === null) {
15
+ return false;
16
+ }
17
+ return obj['__pulumiType'] === "pulumi:providers:" + Provider.__pulumiType;
18
+ }
19
+ /**
20
+ * Create a Provider resource with the given unique name, arguments, and options.
21
+ *
22
+ * @param name The _unique_ name of the resource.
23
+ * @param args The arguments to use to populate this resource's properties.
24
+ * @param opts A bag of options that control this resource's behavior.
25
+ */
26
+ constructor(name, args, opts) {
27
+ let resourceInputs = {};
28
+ opts = opts || {};
29
+ {
30
+ if ((!args || args.workspaceSlug === undefined) && !opts.urn) {
31
+ throw new Error("Missing required property 'workspaceSlug'");
32
+ }
33
+ resourceInputs["apiUrl"] = args ? args.apiUrl : undefined;
34
+ resourceInputs["workspaceSlug"] = args ? args.workspaceSlug : undefined;
35
+ }
36
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
37
+ super(Provider.__pulumiType, name, resourceInputs, opts);
38
+ }
39
+ }
40
+ exports.Provider = Provider;
41
+ /** @internal */
42
+ Provider.__pulumiType = 'agentcloud';
43
+ //# sourceMappingURL=provider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IAIjD;;;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,mBAAmB,GAAG,QAAQ,CAAC,YAAY,CAAC;IAC/E,CAAC;IAKD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAkB,EAAE,IAA6B;QACvE,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB;YACI,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,aAAa,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC1D,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC;aAChE;YACD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;SAC3E;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AArCL,4BAsCC;AArCG,gBAAgB;AACO,qBAAY,GAAG,YAAY,CAAC"}
@@ -0,0 +1,68 @@
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 ? path.join(distRoot, "provider", target, "pulumi-resource-agentcloud") : "";
29
+
30
+ if (!fs.existsSync(pkgPath)) {
31
+ warn("agentcloud-sdk postinstall: missing package.json (unexpected)");
32
+ return;
33
+ }
34
+ const pkg = JSON.parse(fs.readFileSync(pkgPath, "utf8"));
35
+ const version = String(pkg?.version || "").trim();
36
+ if (!version) {
37
+ warn("agentcloud-sdk postinstall: missing version (unexpected)");
38
+ return;
39
+ }
40
+
41
+ // Keep installs resilient: if pulumi is not installed, skip plugin install.
42
+ // Our runbooks/scripts ensure pulumi exists before running `agentcloud infra`.
43
+ try {
44
+ cp.execSync("pulumi version", { stdio: "ignore" });
45
+ } catch {
46
+ log("agentcloud-sdk postinstall: pulumi not found; skipping provider plugin install");
47
+ return;
48
+ }
49
+
50
+ if (!providerBin || !fs.existsSync(providerBin)) {
51
+ warn(`agentcloud-sdk postinstall: missing provider binary for ${key}; skipping plugin install`);
52
+ return;
53
+ }
54
+
55
+ // Install (or reinstall) the provider plugin so Pulumi programs can run without
56
+ // any manual plugin setup.
57
+ const cmd = `pulumi plugin install resource agentcloud ${version} --file ${JSON.stringify(providerBin)} --reinstall`;
58
+ try {
59
+ cp.execSync(cmd, { stdio: "inherit" });
60
+ } catch (err) {
61
+ // Don't hard-fail npm installs for transient Pulumi/plugin issues; the next
62
+ // `agentcloud infra` invocation will surface a precise error.
63
+ warn(`agentcloud-sdk postinstall: failed to install provider plugin (version=${version})`);
64
+ warn(String(err?.message || err));
65
+ }
66
+ }
67
+
68
+ main();
@@ -0,0 +1,34 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ export declare class Secret extends pulumi.CustomResource {
3
+ /**
4
+ * Get an existing Secret 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): Secret;
12
+ /**
13
+ * Returns true if the given object is an instance of Secret. 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 Secret;
17
+ readonly key: pulumi.Output<string>;
18
+ readonly value: pulumi.Output<string>;
19
+ /**
20
+ * Create a Secret resource with the given unique name, arguments, and options.
21
+ *
22
+ * @param name The _unique_ name of the resource.
23
+ * @param args The arguments to use to populate this resource's properties.
24
+ * @param opts A bag of options that control this resource's behavior.
25
+ */
26
+ constructor(name: string, args: SecretArgs, opts?: pulumi.CustomResourceOptions);
27
+ }
28
+ /**
29
+ * The set of arguments for constructing a Secret resource.
30
+ */
31
+ export interface SecretArgs {
32
+ key: pulumi.Input<string>;
33
+ value: pulumi.Input<string>;
34
+ }
package/dist/secret.js ADDED
@@ -0,0 +1,63 @@
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.Secret = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ class Secret extends pulumi.CustomResource {
9
+ /**
10
+ * Get an existing Secret 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 Secret(name, undefined, Object.assign(Object.assign({}, opts), { id: id }));
19
+ }
20
+ /**
21
+ * Returns true if the given object is an instance of Secret. 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'] === Secret.__pulumiType;
29
+ }
30
+ /**
31
+ * Create a Secret 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 || args.key === undefined) && !opts.urn) {
42
+ throw new Error("Missing required property 'key'");
43
+ }
44
+ if ((!args || args.value === undefined) && !opts.urn) {
45
+ throw new Error("Missing required property 'value'");
46
+ }
47
+ resourceInputs["key"] = args ? args.key : undefined;
48
+ resourceInputs["value"] = (args === null || args === void 0 ? void 0 : args.value) ? pulumi.secret(args.value) : undefined;
49
+ }
50
+ else {
51
+ resourceInputs["key"] = undefined /*out*/;
52
+ resourceInputs["value"] = undefined /*out*/;
53
+ }
54
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
55
+ const secretOpts = { additionalSecretOutputs: ["value"] };
56
+ opts = pulumi.mergeOptions(opts, secretOpts);
57
+ super(Secret.__pulumiType, name, resourceInputs, opts);
58
+ }
59
+ }
60
+ exports.Secret = Secret;
61
+ /** @internal */
62
+ Secret.__pulumiType = 'agentcloud:index:Secret';
63
+ //# sourceMappingURL=secret.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"secret.js","sourceRoot":"","sources":["../secret.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IAC7C;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,MAAM,CAAC,IAAI,EAAE,SAAgB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AAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;QAC1D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,MAAM,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3D,CAAC;;AAzDL,wBA0DC;AA7CG,gBAAgB;AACO,mBAAY,GAAG,yBAAyB,CAAC"}
@@ -0,0 +1,18 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "./types/output";
3
+ export declare function threads(args?: ThreadsArgs, opts?: pulumi.InvokeOptions): Promise<ThreadsResult>;
4
+ export interface ThreadsArgs {
5
+ agent?: string;
6
+ cursor?: string;
7
+ limit?: number;
8
+ }
9
+ export interface ThreadsResult {
10
+ readonly items: outputs.Thread[];
11
+ readonly nextCursor?: string;
12
+ }
13
+ export declare function threadsOutput(args?: ThreadsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<ThreadsResult>;
14
+ export interface ThreadsOutputArgs {
15
+ agent?: pulumi.Input<string>;
16
+ cursor?: pulumi.Input<string>;
17
+ limit?: pulumi.Input<number>;
18
+ }
@@ -0,0 +1,28 @@
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.threadsOutput = exports.threads = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ function threads(args, opts) {
9
+ args = args || {};
10
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
11
+ return pulumi.runtime.invoke("agentcloud:index:threads", {
12
+ "agent": args.agent,
13
+ "cursor": args.cursor,
14
+ "limit": args.limit,
15
+ }, opts);
16
+ }
17
+ exports.threads = threads;
18
+ function threadsOutput(args, opts) {
19
+ args = args || {};
20
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
21
+ return pulumi.runtime.invokeOutput("agentcloud:index:threads", {
22
+ "agent": args.agent,
23
+ "cursor": args.cursor,
24
+ "limit": args.limit,
25
+ }, opts);
26
+ }
27
+ exports.threadsOutput = threadsOutput;
28
+ //# sourceMappingURL=threads.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"threads.js","sourceRoot":"","sources":["../threads.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,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,OAAO,EAAE,IAAI,CAAC,KAAK;KACtB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,0BAQC;AAYD,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,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,OAAO,EAAE,IAAI,CAAC,KAAK;KACtB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,sCAQC"}