@ingram-cloud/pulumi 2.2.0 → 3.0.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/README.md +2 -2
- package/dist/resources.d.ts +7 -5
- package/dist/resources.js +11 -12
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ pass. A typical split:
|
|
|
20
20
|
app stack IcAgent, IcWebPage, IcSkill — instructions come from the app's
|
|
21
21
|
own source.
|
|
22
22
|
|
|
23
|
-
infra stack IcMcpServer, IcOauthProvider, IcTelegramBot,
|
|
23
|
+
infra stack IcMcpServer, IcOauthProvider, IcTelegramBot, IcWhatsAppNumber,
|
|
24
24
|
IcEmail, IcWebhook, IcModelKey — tenant integration config. It can
|
|
25
25
|
read the app stack's outputs (agent ids, webhook secret) through
|
|
26
26
|
pulumi.StackReference and write them to the app's env.
|
|
@@ -162,7 +162,7 @@ const biller = new ic.IcAgent("biller", {
|
|
|
162
162
|
});
|
|
163
163
|
```
|
|
164
164
|
|
|
165
|
-
### IcMcpServer, IcOauthProvider, IcTelegramBot,
|
|
165
|
+
### IcMcpServer, IcOauthProvider, IcTelegramBot, IcWhatsAppNumber, IcEmail, IcWebhook, IcModelKey (infra stack)
|
|
166
166
|
|
|
167
167
|
```ts
|
|
168
168
|
// Your own server (raw URL).
|
package/dist/resources.d.ts
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* so declare these in the APP repo's Pulumi program, sourced from the app's
|
|
15
15
|
* own spec module. Never copy prompts into the infra repo.
|
|
16
16
|
* - **Integrations / tenant config** (`IcMcpServer`, `IcOauthProvider`,
|
|
17
|
-
* `IcTelegramBot`, `
|
|
17
|
+
* `IcTelegramBot`, `IcWhatsAppNumber`, `IcWebhook`, `IcModelKey`) —
|
|
18
18
|
* tenant-level wiring; declare in the infra repo alongside DNS/DB/Vercel.
|
|
19
19
|
*
|
|
20
20
|
* Not modelled here, on purpose:
|
|
@@ -248,7 +248,7 @@ export interface IcOauthProviderArgs {
|
|
|
248
248
|
export declare class IcOauthProvider extends pulumi.dynamic.Resource {
|
|
249
249
|
constructor(name: string, args: IcOauthProviderArgs, opts?: pulumi.CustomResourceOptions);
|
|
250
250
|
}
|
|
251
|
-
export interface
|
|
251
|
+
export interface IcWhatsAppNumberArgs {
|
|
252
252
|
baseUrl: pulumi.Input<string>;
|
|
253
253
|
token: pulumi.Input<string>;
|
|
254
254
|
phoneNumberId: pulumi.Input<string>;
|
|
@@ -256,10 +256,12 @@ export interface IcWhatsAppConfigArgs {
|
|
|
256
256
|
/** The WhatsApp Business Account id — IC subscribes its app to it so inbound flows. */
|
|
257
257
|
wabaId: pulumi.Input<string>;
|
|
258
258
|
}
|
|
259
|
-
|
|
260
|
-
|
|
259
|
+
/** One of the tenant's WhatsApp numbers. A tenant may register several; bind one to
|
|
260
|
+
* an agent with a `whatsapp` deployment whose `address` is its `phoneNumberId`. */
|
|
261
|
+
export declare class IcWhatsAppNumber extends pulumi.dynamic.Resource {
|
|
262
|
+
readonly displayPhoneNumber: pulumi.Output<string | null>;
|
|
261
263
|
readonly webhookUrl: pulumi.Output<string>;
|
|
262
|
-
constructor(name: string, args:
|
|
264
|
+
constructor(name: string, args: IcWhatsAppNumberArgs, opts?: pulumi.CustomResourceOptions);
|
|
263
265
|
}
|
|
264
266
|
export interface IcEmailArgs {
|
|
265
267
|
baseUrl: pulumi.Input<string>;
|
package/dist/resources.js
CHANGED
|
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.IcWebPage = exports.IcProjectToken = exports.IcProject = exports.IcModelKey = exports.IcWebhook = exports.IcEmail = exports.
|
|
36
|
+
exports.IcWebPage = exports.IcProjectToken = exports.IcProject = exports.IcModelKey = exports.IcWebhook = exports.IcEmail = exports.IcWhatsAppNumber = exports.IcOauthProvider = exports.IcTelegramBot = exports.IcMcpServer = exports.IcVectorStore = exports.IcSkill = exports.IcAgent = exports.IC_API_VERSION = void 0;
|
|
37
37
|
/**
|
|
38
38
|
* Ingram Cloud /v1 tenant configuration as Pulumi dynamic resources.
|
|
39
39
|
*
|
|
@@ -50,7 +50,7 @@ exports.IcWebPage = exports.IcProjectToken = exports.IcProject = exports.IcModel
|
|
|
50
50
|
* so declare these in the APP repo's Pulumi program, sourced from the app's
|
|
51
51
|
* own spec module. Never copy prompts into the infra repo.
|
|
52
52
|
* - **Integrations / tenant config** (`IcMcpServer`, `IcOauthProvider`,
|
|
53
|
-
* `IcTelegramBot`, `
|
|
53
|
+
* `IcTelegramBot`, `IcWhatsAppNumber`, `IcWebhook`, `IcModelKey`) —
|
|
54
54
|
* tenant-level wiring; declare in the infra repo alongside DNS/DB/Vercel.
|
|
55
55
|
*
|
|
56
56
|
* Not modelled here, on purpose:
|
|
@@ -947,22 +947,21 @@ class IcOauthProvider extends pulumi.dynamic.Resource {
|
|
|
947
947
|
}
|
|
948
948
|
exports.IcOauthProvider = IcOauthProvider;
|
|
949
949
|
const whatsappProvider = makePutResource({
|
|
950
|
-
path: () =>
|
|
951
|
-
id: () =>
|
|
952
|
-
body: (i) => ({
|
|
953
|
-
phone_number_id: i.phoneNumberId,
|
|
954
|
-
access_token: i.accessToken,
|
|
955
|
-
waba_id: i.wabaId,
|
|
956
|
-
}),
|
|
950
|
+
path: (i) => `/v1/tenant/whatsapp/${encodeURIComponent(i.phoneNumberId)}`,
|
|
951
|
+
id: (i) => i.phoneNumberId,
|
|
952
|
+
body: (i) => ({ access_token: i.accessToken, waba_id: i.wabaId }),
|
|
957
953
|
outs: (_i, res) => ({
|
|
958
954
|
displayPhoneNumber: res.display_phone_number,
|
|
959
955
|
webhookUrl: res.webhook_url,
|
|
960
956
|
}),
|
|
961
957
|
diff: {
|
|
962
|
-
|
|
958
|
+
replaceKeys: ["phoneNumberId"],
|
|
959
|
+
scalarKeys: ["accessToken", "wabaId", "token", "baseUrl"],
|
|
963
960
|
},
|
|
964
961
|
});
|
|
965
|
-
|
|
962
|
+
/** One of the tenant's WhatsApp numbers. A tenant may register several; bind one to
|
|
963
|
+
* an agent with a `whatsapp` deployment whose `address` is its `phoneNumberId`. */
|
|
964
|
+
class IcWhatsAppNumber extends pulumi.dynamic.Resource {
|
|
966
965
|
constructor(name, args, opts) {
|
|
967
966
|
super(whatsappProvider, name, {
|
|
968
967
|
displayPhoneNumber: undefined,
|
|
@@ -974,7 +973,7 @@ class IcWhatsAppConfig extends pulumi.dynamic.Resource {
|
|
|
974
973
|
});
|
|
975
974
|
}
|
|
976
975
|
}
|
|
977
|
-
exports.
|
|
976
|
+
exports.IcWhatsAppNumber = IcWhatsAppNumber;
|
|
978
977
|
const emailProvider = makePutResource({
|
|
979
978
|
path: () => "/v1/tenant/email",
|
|
980
979
|
id: () => "email",
|
package/package.json
CHANGED