@trycourier/courier 6.6.1-alpha0 → 6.7.0-alpha10
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/CHANGELOG.md +124 -0
- package/README.md +11 -11
- package/client.d.mts +48 -20
- package/client.d.mts.map +1 -1
- package/client.d.ts +48 -20
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs +3 -3
- package/client.mjs.map +1 -1
- package/internal/to-file.d.mts +1 -1
- package/internal/to-file.d.ts +1 -1
- package/internal/to-file.js +1 -1
- package/internal/to-file.mjs +1 -1
- package/internal/tslib.js +6 -6
- package/package.json +1 -1
- package/resources/audiences.d.mts +30 -52
- package/resources/audiences.d.mts.map +1 -1
- package/resources/audiences.d.ts +30 -52
- package/resources/audiences.d.ts.map +1 -1
- package/resources/audiences.js.map +1 -1
- package/resources/audiences.mjs.map +1 -1
- package/resources/audit-events.d.mts +5 -9
- package/resources/audit-events.d.mts.map +1 -1
- package/resources/audit-events.d.ts +5 -9
- package/resources/audit-events.d.ts.map +1 -1
- package/resources/auth.d.mts +2 -2
- package/resources/auth.d.mts.map +1 -1
- package/resources/auth.d.ts +2 -2
- package/resources/auth.d.ts.map +1 -1
- package/resources/automations/automations.d.mts +5 -252
- package/resources/automations/automations.d.mts.map +1 -1
- package/resources/automations/automations.d.ts +5 -252
- package/resources/automations/automations.d.ts.map +1 -1
- package/resources/automations/automations.js +0 -42
- package/resources/automations/automations.js.map +1 -1
- package/resources/automations/automations.mjs +1 -43
- package/resources/automations/automations.mjs.map +1 -1
- package/resources/automations/index.d.mts +2 -2
- package/resources/automations/index.d.mts.map +1 -1
- package/resources/automations/index.d.ts +2 -2
- package/resources/automations/index.d.ts.map +1 -1
- package/resources/automations/index.js.map +1 -1
- package/resources/automations/index.mjs +2 -2
- package/resources/automations/index.mjs.map +1 -1
- package/resources/automations/invoke.d.mts +122 -9
- package/resources/automations/invoke.d.mts.map +1 -1
- package/resources/automations/invoke.d.ts +122 -9
- package/resources/automations/invoke.d.ts.map +1 -1
- package/resources/automations/invoke.js +45 -0
- package/resources/automations/invoke.js.map +1 -1
- package/resources/automations/invoke.mjs +45 -0
- package/resources/automations/invoke.mjs.map +1 -1
- package/resources/brands.d.mts +76 -52
- package/resources/brands.d.mts.map +1 -1
- package/resources/brands.d.ts +76 -52
- package/resources/brands.d.ts.map +1 -1
- package/resources/brands.js.map +1 -1
- package/resources/brands.mjs.map +1 -1
- package/resources/bulk.d.mts +36 -127
- package/resources/bulk.d.mts.map +1 -1
- package/resources/bulk.d.ts +36 -127
- package/resources/bulk.d.ts.map +1 -1
- package/resources/bulk.js.map +1 -1
- package/resources/bulk.mjs.map +1 -1
- package/resources/inbound.d.mts +1 -1
- package/resources/inbound.d.ts +1 -1
- package/resources/index.d.mts +11 -10
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +11 -10
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +2 -0
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -2
- package/resources/index.mjs.map +1 -1
- package/resources/lists/index.d.mts +2 -2
- package/resources/lists/index.d.mts.map +1 -1
- package/resources/lists/index.d.ts +2 -2
- package/resources/lists/index.d.ts.map +1 -1
- package/resources/lists/index.js.map +1 -1
- package/resources/lists/index.mjs +1 -1
- package/resources/lists/index.mjs.map +1 -1
- package/resources/lists/lists.d.mts +19 -13
- package/resources/lists/lists.d.mts.map +1 -1
- package/resources/lists/lists.d.ts +19 -13
- package/resources/lists/lists.d.ts.map +1 -1
- package/resources/lists/lists.js +7 -2
- package/resources/lists/lists.js.map +1 -1
- package/resources/lists/lists.mjs +7 -2
- package/resources/lists/lists.mjs.map +1 -1
- package/resources/lists/subscriptions.d.mts +8 -52
- package/resources/lists/subscriptions.d.mts.map +1 -1
- package/resources/lists/subscriptions.d.ts +8 -52
- package/resources/lists/subscriptions.d.ts.map +1 -1
- package/resources/lists/subscriptions.js.map +1 -1
- package/resources/lists/subscriptions.mjs.map +1 -1
- package/resources/messages.d.mts +8 -8
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +8 -8
- package/resources/messages.d.ts.map +1 -1
- package/resources/messages.js +1 -1
- package/resources/messages.js.map +1 -1
- package/resources/messages.mjs +1 -1
- package/resources/messages.mjs.map +1 -1
- package/resources/notifications/checks.d.mts +5 -12
- package/resources/notifications/checks.d.mts.map +1 -1
- package/resources/notifications/checks.d.ts +5 -12
- package/resources/notifications/checks.d.ts.map +1 -1
- package/resources/notifications/checks.js.map +1 -1
- package/resources/notifications/checks.mjs.map +1 -1
- package/resources/notifications/index.d.mts +2 -2
- package/resources/notifications/index.d.mts.map +1 -1
- package/resources/notifications/index.d.ts +2 -2
- package/resources/notifications/index.d.ts.map +1 -1
- package/resources/notifications/index.js.map +1 -1
- package/resources/notifications/index.mjs.map +1 -1
- package/resources/notifications/notifications.d.mts +13 -11
- package/resources/notifications/notifications.d.mts.map +1 -1
- package/resources/notifications/notifications.d.ts +13 -11
- package/resources/notifications/notifications.d.ts.map +1 -1
- package/resources/notifications/notifications.js.map +1 -1
- package/resources/notifications/notifications.mjs.map +1 -1
- package/resources/profiles/index.d.mts +1 -1
- package/resources/profiles/index.d.mts.map +1 -1
- package/resources/profiles/index.d.ts +1 -1
- package/resources/profiles/index.d.ts.map +1 -1
- package/resources/profiles/index.js.map +1 -1
- package/resources/profiles/index.mjs.map +1 -1
- package/resources/profiles/lists.d.mts +5 -11
- package/resources/profiles/lists.d.mts.map +1 -1
- package/resources/profiles/lists.d.ts +5 -11
- package/resources/profiles/lists.d.ts.map +1 -1
- package/resources/profiles/profiles.d.mts +7 -3
- package/resources/profiles/profiles.d.mts.map +1 -1
- package/resources/profiles/profiles.d.ts +7 -3
- package/resources/profiles/profiles.d.ts.map +1 -1
- package/resources/profiles/profiles.js.map +1 -1
- package/resources/profiles/profiles.mjs.map +1 -1
- package/resources/send.d.mts +127 -745
- package/resources/send.d.mts.map +1 -1
- package/resources/send.d.ts +127 -745
- package/resources/send.d.ts.map +1 -1
- package/resources/send.js +12 -1
- package/resources/send.js.map +1 -1
- package/resources/send.mjs +12 -1
- package/resources/send.mjs.map +1 -1
- package/resources/shared.d.mts +245 -0
- package/resources/shared.d.mts.map +1 -0
- package/resources/shared.d.ts +245 -0
- package/resources/shared.d.ts.map +1 -0
- package/resources/shared.js +4 -0
- package/resources/shared.js.map +1 -0
- package/{src/resources/tenants/default-preferences.ts → resources/shared.mjs} +2 -2
- package/resources/shared.mjs.map +1 -0
- package/resources/tenants/index.d.mts +3 -1
- package/resources/tenants/index.d.mts.map +1 -1
- package/resources/tenants/index.d.ts +3 -1
- package/resources/tenants/index.d.ts.map +1 -1
- package/resources/tenants/index.js +5 -1
- package/resources/tenants/index.js.map +1 -1
- package/resources/tenants/index.mjs +2 -0
- package/resources/tenants/index.mjs.map +1 -1
- package/resources/tenants/templates.d.mts +91 -0
- package/resources/tenants/templates.d.mts.map +1 -0
- package/resources/tenants/templates.d.ts +91 -0
- package/resources/tenants/templates.d.ts.map +1 -0
- package/resources/tenants/templates.js +38 -0
- package/resources/tenants/templates.js.map +1 -0
- package/resources/tenants/templates.mjs +34 -0
- package/resources/tenants/templates.mjs.map +1 -0
- package/resources/tenants/tenant-default-preferences/index.d.mts +3 -0
- package/resources/tenants/tenant-default-preferences/index.d.mts.map +1 -0
- package/resources/tenants/tenant-default-preferences/index.d.ts +3 -0
- package/resources/tenants/tenant-default-preferences/index.d.ts.map +1 -0
- package/resources/tenants/tenant-default-preferences/index.js +9 -0
- package/resources/tenants/tenant-default-preferences/index.js.map +1 -0
- package/resources/tenants/tenant-default-preferences/index.mjs +4 -0
- package/resources/tenants/tenant-default-preferences/index.mjs.map +1 -0
- package/resources/tenants/{default-preferences → tenant-default-preferences}/items.d.mts +5 -18
- package/resources/tenants/tenant-default-preferences/items.d.mts.map +1 -0
- package/resources/tenants/{default-preferences → tenant-default-preferences}/items.d.ts +5 -18
- package/resources/tenants/tenant-default-preferences/items.d.ts.map +1 -0
- package/resources/tenants/{default-preferences → tenant-default-preferences}/items.js +2 -2
- package/resources/tenants/tenant-default-preferences/items.js.map +1 -0
- package/resources/tenants/{default-preferences → tenant-default-preferences}/items.mjs +2 -2
- package/resources/tenants/tenant-default-preferences/items.mjs.map +1 -0
- package/resources/tenants/tenant-default-preferences/tenant-default-preferences.d.mts +10 -0
- package/resources/tenants/tenant-default-preferences/tenant-default-preferences.d.mts.map +1 -0
- package/resources/tenants/tenant-default-preferences/tenant-default-preferences.d.ts +10 -0
- package/resources/tenants/tenant-default-preferences/tenant-default-preferences.d.ts.map +1 -0
- package/resources/tenants/{default-preferences/default-preferences.js → tenant-default-preferences/tenant-default-preferences.js} +5 -5
- package/resources/tenants/tenant-default-preferences/tenant-default-preferences.js.map +1 -0
- package/resources/tenants/{default-preferences/default-preferences.mjs → tenant-default-preferences/tenant-default-preferences.mjs} +4 -4
- package/resources/tenants/tenant-default-preferences/tenant-default-preferences.mjs.map +1 -0
- package/resources/tenants/tenant-default-preferences.d.mts +2 -0
- package/resources/tenants/tenant-default-preferences.d.mts.map +1 -0
- package/resources/tenants/tenant-default-preferences.d.ts +2 -0
- package/resources/tenants/tenant-default-preferences.d.ts.map +1 -0
- package/resources/tenants/{default-preferences.js → tenant-default-preferences.js} +2 -2
- package/resources/tenants/tenant-default-preferences.js.map +1 -0
- package/resources/tenants/tenant-default-preferences.mjs +3 -0
- package/resources/tenants/tenant-default-preferences.mjs.map +1 -0
- package/resources/tenants/tenants.d.mts +66 -7
- package/resources/tenants/tenants.d.mts.map +1 -1
- package/resources/tenants/tenants.d.ts +66 -7
- package/resources/tenants/tenants.d.ts.map +1 -1
- package/resources/tenants/tenants.js +8 -2
- package/resources/tenants/tenants.js.map +1 -1
- package/resources/tenants/tenants.mjs +8 -2
- package/resources/tenants/tenants.mjs.map +1 -1
- package/resources/users/index.d.mts +3 -3
- package/resources/users/index.d.mts.map +1 -1
- package/resources/users/index.d.ts +3 -3
- package/resources/users/index.d.ts.map +1 -1
- package/resources/users/index.js.map +1 -1
- package/resources/users/index.mjs.map +1 -1
- package/resources/users/preferences.d.mts +8 -11
- package/resources/users/preferences.d.mts.map +1 -1
- package/resources/users/preferences.d.ts +8 -11
- package/resources/users/preferences.d.ts.map +1 -1
- package/resources/users/preferences.js.map +1 -1
- package/resources/users/preferences.mjs.map +1 -1
- package/resources/users/tenants.d.mts +4 -21
- package/resources/users/tenants.d.mts.map +1 -1
- package/resources/users/tenants.d.ts +4 -21
- package/resources/users/tenants.d.ts.map +1 -1
- package/resources/users/tenants.js.map +1 -1
- package/resources/users/tenants.mjs.map +1 -1
- package/resources/users/tokens.d.mts +22 -23
- package/resources/users/tokens.d.mts.map +1 -1
- package/resources/users/tokens.d.ts +22 -23
- package/resources/users/tokens.d.ts.map +1 -1
- package/resources/users/tokens.js +14 -15
- package/resources/users/tokens.js.map +1 -1
- package/resources/users/tokens.mjs +14 -15
- package/resources/users/tokens.mjs.map +1 -1
- package/resources/users/users.d.mts +6 -6
- package/resources/users/users.d.mts.map +1 -1
- package/resources/users/users.d.ts +6 -6
- package/resources/users/users.d.ts.map +1 -1
- package/resources/users/users.js.map +1 -1
- package/resources/users/users.mjs.map +1 -1
- package/src/client.ts +81 -56
- package/src/internal/to-file.ts +1 -1
- package/src/resources/audiences.ts +45 -90
- package/src/resources/audit-events.ts +7 -13
- package/src/resources/auth.ts +2 -16
- package/src/resources/automations/automations.ts +6 -342
- package/src/resources/automations/index.ts +2 -12
- package/src/resources/automations/invoke.ts +163 -14
- package/src/resources/brands.ts +119 -53
- package/src/resources/bulk.ts +28 -148
- package/src/resources/inbound.ts +1 -1
- package/src/resources/index.ts +24 -30
- package/src/resources/lists/index.ts +9 -3
- package/src/resources/lists/lists.ts +27 -16
- package/src/resources/lists/subscriptions.ts +7 -65
- package/src/resources/messages.ts +10 -7
- package/src/resources/notifications/checks.ts +4 -17
- package/src/resources/notifications/index.ts +2 -4
- package/src/resources/notifications/notifications.ts +13 -14
- package/src/resources/profiles/index.ts +1 -0
- package/src/resources/profiles/lists.ts +5 -13
- package/src/resources/profiles/profiles.ts +9 -2
- package/src/resources/send.ts +122 -928
- package/src/resources/shared.ts +305 -0
- package/src/resources/tenants/index.ts +10 -0
- package/src/resources/tenants/templates.ts +124 -0
- package/src/resources/tenants/tenant-default-preferences/index.ts +4 -0
- package/src/resources/tenants/{default-preferences → tenant-default-preferences}/items.ts +5 -27
- package/src/resources/tenants/{default-preferences/default-preferences.ts → tenant-default-preferences/tenant-default-preferences.ts} +4 -12
- package/src/resources/tenants/tenant-default-preferences.ts +3 -0
- package/src/resources/tenants/tenants.ts +89 -8
- package/src/resources/users/index.ts +2 -4
- package/src/resources/users/preferences.ts +7 -12
- package/src/resources/users/tenants.ts +3 -23
- package/src/resources/users/tokens.ts +33 -34
- package/src/resources/users/users.ts +4 -8
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
- package/resources/tenants/default-preferences/default-preferences.d.mts +0 -10
- package/resources/tenants/default-preferences/default-preferences.d.mts.map +0 -1
- package/resources/tenants/default-preferences/default-preferences.d.ts +0 -10
- package/resources/tenants/default-preferences/default-preferences.d.ts.map +0 -1
- package/resources/tenants/default-preferences/default-preferences.js.map +0 -1
- package/resources/tenants/default-preferences/default-preferences.mjs.map +0 -1
- package/resources/tenants/default-preferences/index.d.mts +0 -3
- package/resources/tenants/default-preferences/index.d.mts.map +0 -1
- package/resources/tenants/default-preferences/index.d.ts +0 -3
- package/resources/tenants/default-preferences/index.d.ts.map +0 -1
- package/resources/tenants/default-preferences/index.js +0 -9
- package/resources/tenants/default-preferences/index.js.map +0 -1
- package/resources/tenants/default-preferences/index.mjs +0 -4
- package/resources/tenants/default-preferences/index.mjs.map +0 -1
- package/resources/tenants/default-preferences/items.d.mts.map +0 -1
- package/resources/tenants/default-preferences/items.d.ts.map +0 -1
- package/resources/tenants/default-preferences/items.js.map +0 -1
- package/resources/tenants/default-preferences/items.mjs.map +0 -1
- package/resources/tenants/default-preferences.d.mts +0 -2
- package/resources/tenants/default-preferences.d.mts.map +0 -1
- package/resources/tenants/default-preferences.d.ts +0 -2
- package/resources/tenants/default-preferences.d.ts.map +0 -1
- package/resources/tenants/default-preferences.js.map +0 -1
- package/resources/tenants/default-preferences.mjs +0 -3
- package/resources/tenants/default-preferences.mjs.map +0 -1
- package/src/resources/tenants/default-preferences/index.ts +0 -10
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Tenants = void 0;
|
|
4
|
+
exports.Tenants = exports.TenantDefaultPreferences = exports.Templates = void 0;
|
|
5
|
+
var templates_1 = require("./templates.js");
|
|
6
|
+
Object.defineProperty(exports, "Templates", { enumerable: true, get: function () { return templates_1.Templates; } });
|
|
7
|
+
var index_1 = require("./tenant-default-preferences/index.js");
|
|
8
|
+
Object.defineProperty(exports, "TenantDefaultPreferences", { enumerable: true, get: function () { return index_1.TenantDefaultPreferences; } });
|
|
5
9
|
var tenants_1 = require("./tenants.js");
|
|
6
10
|
Object.defineProperty(exports, "Tenants", { enumerable: true, get: function () { return tenants_1.Tenants; } });
|
|
7
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/tenants/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/tenants/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4CAKqB;AAJnB,sGAAA,SAAS,OAAA;AAKX,+DAA8E;AAArE,iHAAA,wBAAwB,OAAA;AACjC,wCAYmB;AAXjB,kGAAA,OAAO,OAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
export { Templates, } from "./templates.mjs";
|
|
3
|
+
export { TenantDefaultPreferences } from "./tenant-default-preferences/index.mjs";
|
|
2
4
|
export { Tenants, } from "./tenants.mjs";
|
|
3
5
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/tenants/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,OAAO,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/tenants/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,SAAS,GAIV;OACM,EAAE,wBAAwB,EAAE;OAC5B,EACL,OAAO,GAWR"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as Shared from "../shared.mjs";
|
|
3
|
+
import * as TenantsAPI from "./tenants.mjs";
|
|
4
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
5
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
6
|
+
export declare class Templates extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Get a Template in Tenant
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const baseTemplateTenantAssociation =
|
|
13
|
+
* await client.tenants.templates.retrieve('template_id', {
|
|
14
|
+
* tenant_id: 'tenant_id',
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
retrieve(templateID: string, params: TemplateRetrieveParams, options?: RequestOptions): APIPromise<TenantsAPI.BaseTemplateTenantAssociation>;
|
|
19
|
+
/**
|
|
20
|
+
* List Templates in Tenant
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* const templates = await client.tenants.templates.list(
|
|
25
|
+
* 'tenant_id',
|
|
26
|
+
* );
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
list(tenantID: string, query?: TemplateListParams | null | undefined, options?: RequestOptions): APIPromise<TemplateListResponse>;
|
|
30
|
+
}
|
|
31
|
+
export interface TemplateListResponse {
|
|
32
|
+
/**
|
|
33
|
+
* Set to true when there are more pages that can be retrieved.
|
|
34
|
+
*/
|
|
35
|
+
has_more: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Always set to `list`. Represents the type of this object.
|
|
38
|
+
*/
|
|
39
|
+
type: 'list';
|
|
40
|
+
/**
|
|
41
|
+
* A url that may be used to generate these results.
|
|
42
|
+
*/
|
|
43
|
+
url: string;
|
|
44
|
+
/**
|
|
45
|
+
* A pointer to the next page of results. Defined only when `has_more` is set to
|
|
46
|
+
* true
|
|
47
|
+
*/
|
|
48
|
+
cursor?: string | null;
|
|
49
|
+
items?: Array<TemplateListResponse.Item> | null;
|
|
50
|
+
/**
|
|
51
|
+
* A url that may be used to generate fetch the next set of results. Defined only
|
|
52
|
+
* when `has_more` is set to true
|
|
53
|
+
*/
|
|
54
|
+
next_url?: string | null;
|
|
55
|
+
}
|
|
56
|
+
export declare namespace TemplateListResponse {
|
|
57
|
+
interface Item extends TenantsAPI.BaseTemplateTenantAssociation {
|
|
58
|
+
/**
|
|
59
|
+
* The template's data containing it's routing configs
|
|
60
|
+
*/
|
|
61
|
+
data: Item.Data;
|
|
62
|
+
}
|
|
63
|
+
namespace Item {
|
|
64
|
+
/**
|
|
65
|
+
* The template's data containing it's routing configs
|
|
66
|
+
*/
|
|
67
|
+
interface Data {
|
|
68
|
+
routing: Shared.MessageRouting;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
export interface TemplateRetrieveParams {
|
|
73
|
+
/**
|
|
74
|
+
* Id of the tenant for which to retrieve the template.
|
|
75
|
+
*/
|
|
76
|
+
tenant_id: string;
|
|
77
|
+
}
|
|
78
|
+
export interface TemplateListParams {
|
|
79
|
+
/**
|
|
80
|
+
* Continue the pagination with the next cursor
|
|
81
|
+
*/
|
|
82
|
+
cursor?: string | null;
|
|
83
|
+
/**
|
|
84
|
+
* The number of templates to return (defaults to 20, maximum value of 100)
|
|
85
|
+
*/
|
|
86
|
+
limit?: number | null;
|
|
87
|
+
}
|
|
88
|
+
export declare namespace Templates {
|
|
89
|
+
export { type TemplateListResponse as TemplateListResponse, type TemplateRetrieveParams as TemplateRetrieveParams, type TemplateListParams as TemplateListParams, };
|
|
90
|
+
}
|
|
91
|
+
//# sourceMappingURL=templates.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"templates.d.mts","sourceRoot":"","sources":["../../src/resources/tenants/templates.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,UAAU;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;OAUG;IACH,QAAQ,CACN,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,sBAAsB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,UAAU,CAAC,6BAA6B,CAAC;IAKvD;;;;;;;;;OASG;IACH,IAAI,CACF,QAAQ,EAAE,MAAM,EAChB,KAAK,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;CAGpC;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB,KAAK,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAEhD;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,yBAAiB,oBAAoB,CAAC;IACpC,UAAiB,IAAK,SAAQ,UAAU,CAAC,6BAA6B;QACpE;;WAEG;QACH,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC;KACjB;IAED,UAAiB,IAAI,CAAC;QACpB;;WAEG;QACH,UAAiB,IAAI;YACnB,OAAO,EAAE,MAAM,CAAC,cAAc,CAAC;SAChC;KACF;CACF;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as Shared from "../shared.js";
|
|
3
|
+
import * as TenantsAPI from "./tenants.js";
|
|
4
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
5
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
6
|
+
export declare class Templates extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Get a Template in Tenant
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const baseTemplateTenantAssociation =
|
|
13
|
+
* await client.tenants.templates.retrieve('template_id', {
|
|
14
|
+
* tenant_id: 'tenant_id',
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
retrieve(templateID: string, params: TemplateRetrieveParams, options?: RequestOptions): APIPromise<TenantsAPI.BaseTemplateTenantAssociation>;
|
|
19
|
+
/**
|
|
20
|
+
* List Templates in Tenant
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* const templates = await client.tenants.templates.list(
|
|
25
|
+
* 'tenant_id',
|
|
26
|
+
* );
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
list(tenantID: string, query?: TemplateListParams | null | undefined, options?: RequestOptions): APIPromise<TemplateListResponse>;
|
|
30
|
+
}
|
|
31
|
+
export interface TemplateListResponse {
|
|
32
|
+
/**
|
|
33
|
+
* Set to true when there are more pages that can be retrieved.
|
|
34
|
+
*/
|
|
35
|
+
has_more: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Always set to `list`. Represents the type of this object.
|
|
38
|
+
*/
|
|
39
|
+
type: 'list';
|
|
40
|
+
/**
|
|
41
|
+
* A url that may be used to generate these results.
|
|
42
|
+
*/
|
|
43
|
+
url: string;
|
|
44
|
+
/**
|
|
45
|
+
* A pointer to the next page of results. Defined only when `has_more` is set to
|
|
46
|
+
* true
|
|
47
|
+
*/
|
|
48
|
+
cursor?: string | null;
|
|
49
|
+
items?: Array<TemplateListResponse.Item> | null;
|
|
50
|
+
/**
|
|
51
|
+
* A url that may be used to generate fetch the next set of results. Defined only
|
|
52
|
+
* when `has_more` is set to true
|
|
53
|
+
*/
|
|
54
|
+
next_url?: string | null;
|
|
55
|
+
}
|
|
56
|
+
export declare namespace TemplateListResponse {
|
|
57
|
+
interface Item extends TenantsAPI.BaseTemplateTenantAssociation {
|
|
58
|
+
/**
|
|
59
|
+
* The template's data containing it's routing configs
|
|
60
|
+
*/
|
|
61
|
+
data: Item.Data;
|
|
62
|
+
}
|
|
63
|
+
namespace Item {
|
|
64
|
+
/**
|
|
65
|
+
* The template's data containing it's routing configs
|
|
66
|
+
*/
|
|
67
|
+
interface Data {
|
|
68
|
+
routing: Shared.MessageRouting;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
export interface TemplateRetrieveParams {
|
|
73
|
+
/**
|
|
74
|
+
* Id of the tenant for which to retrieve the template.
|
|
75
|
+
*/
|
|
76
|
+
tenant_id: string;
|
|
77
|
+
}
|
|
78
|
+
export interface TemplateListParams {
|
|
79
|
+
/**
|
|
80
|
+
* Continue the pagination with the next cursor
|
|
81
|
+
*/
|
|
82
|
+
cursor?: string | null;
|
|
83
|
+
/**
|
|
84
|
+
* The number of templates to return (defaults to 20, maximum value of 100)
|
|
85
|
+
*/
|
|
86
|
+
limit?: number | null;
|
|
87
|
+
}
|
|
88
|
+
export declare namespace Templates {
|
|
89
|
+
export { type TemplateListResponse as TemplateListResponse, type TemplateRetrieveParams as TemplateRetrieveParams, type TemplateListParams as TemplateListParams, };
|
|
90
|
+
}
|
|
91
|
+
//# sourceMappingURL=templates.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../src/resources/tenants/templates.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,UAAU;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;OAUG;IACH,QAAQ,CACN,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,sBAAsB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,UAAU,CAAC,6BAA6B,CAAC;IAKvD;;;;;;;;;OASG;IACH,IAAI,CACF,QAAQ,EAAE,MAAM,EAChB,KAAK,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;CAGpC;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB,KAAK,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAEhD;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,yBAAiB,oBAAoB,CAAC;IACpC,UAAiB,IAAK,SAAQ,UAAU,CAAC,6BAA6B;QACpE;;WAEG;QACH,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC;KACjB;IAED,UAAiB,IAAI,CAAC;QACpB;;WAEG;QACH,UAAiB,IAAI;YACnB,OAAO,EAAE,MAAM,CAAC,cAAc,CAAC;SAChC;KACF;CACF;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Templates = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
7
|
+
class Templates extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Get a Template in Tenant
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const baseTemplateTenantAssociation =
|
|
14
|
+
* await client.tenants.templates.retrieve('template_id', {
|
|
15
|
+
* tenant_id: 'tenant_id',
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
retrieve(templateID, params, options) {
|
|
20
|
+
const { tenant_id } = params;
|
|
21
|
+
return this._client.get((0, path_1.path) `/tenants/${tenant_id}/templates/${templateID}`, options);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* List Templates in Tenant
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* const templates = await client.tenants.templates.list(
|
|
29
|
+
* 'tenant_id',
|
|
30
|
+
* );
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
list(tenantID, query = {}, options) {
|
|
34
|
+
return this._client.get((0, path_1.path) `/tenants/${tenantID}/templates`, { query, ...options });
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.Templates = Templates;
|
|
38
|
+
//# sourceMappingURL=templates.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"templates.js","sourceRoot":"","sources":["../../src/resources/tenants/templates.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAKlD,uDAAiD;AAEjD,MAAa,SAAU,SAAQ,sBAAW;IACxC;;;;;;;;;;OAUG;IACH,QAAQ,CACN,UAAkB,EAClB,MAA8B,EAC9B,OAAwB;QAExB,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,SAAS,cAAc,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;;;OASG;IACH,IAAI,CACF,QAAgB,EAChB,QAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,QAAQ,YAAY,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;CACF;AAtCD,8BAsCC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
4
|
+
export class Templates extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get a Template in Tenant
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const baseTemplateTenantAssociation =
|
|
11
|
+
* await client.tenants.templates.retrieve('template_id', {
|
|
12
|
+
* tenant_id: 'tenant_id',
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
retrieve(templateID, params, options) {
|
|
17
|
+
const { tenant_id } = params;
|
|
18
|
+
return this._client.get(path `/tenants/${tenant_id}/templates/${templateID}`, options);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* List Templates in Tenant
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* const templates = await client.tenants.templates.list(
|
|
26
|
+
* 'tenant_id',
|
|
27
|
+
* );
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
list(tenantID, query = {}, options) {
|
|
31
|
+
return this._client.get(path `/tenants/${tenantID}/templates`, { query, ...options });
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=templates.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"templates.mjs","sourceRoot":"","sources":["../../src/resources/tenants/templates.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAKf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;OAUG;IACH,QAAQ,CACN,UAAkB,EAClB,MAA8B,EAC9B,OAAwB;QAExB,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,SAAS,cAAc,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;;;OASG;IACH,IAAI,CACF,QAAgB,EAChB,QAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,QAAQ,YAAY,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/tenants/tenant-default-preferences/index.ts"],"names":[],"mappings":"OAEO,EAAE,KAAK,EAAE,KAAK,gBAAgB,EAAE,KAAK,gBAAgB,EAAE;OACvD,EAAE,wBAAwB,EAAE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/tenants/tenant-default-preferences/index.ts"],"names":[],"mappings":"OAEO,EAAE,KAAK,EAAE,KAAK,gBAAgB,EAAE,KAAK,gBAAgB,EAAE;OACvD,EAAE,wBAAwB,EAAE"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.TenantDefaultPreferences = exports.Items = void 0;
|
|
5
|
+
var items_1 = require("./items.js");
|
|
6
|
+
Object.defineProperty(exports, "Items", { enumerable: true, get: function () { return items_1.Items; } });
|
|
7
|
+
var tenant_default_preferences_1 = require("./tenant-default-preferences.js");
|
|
8
|
+
Object.defineProperty(exports, "TenantDefaultPreferences", { enumerable: true, get: function () { return tenant_default_preferences_1.TenantDefaultPreferences; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/tenants/tenant-default-preferences/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCAA8E;AAArE,8FAAA,KAAK,OAAA;AACd,8EAAwE;AAA/D,sIAAA,wBAAwB,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/tenants/tenant-default-preferences/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,KAAK,EAAgD;OACvD,EAAE,wBAAwB,EAAE"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import * as Shared from "../../shared.mjs";
|
|
2
3
|
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
3
4
|
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
4
5
|
export declare class Items extends APIResource {
|
|
@@ -7,7 +8,7 @@ export declare class Items extends APIResource {
|
|
|
7
8
|
*
|
|
8
9
|
* @example
|
|
9
10
|
* ```ts
|
|
10
|
-
* await client.tenants.
|
|
11
|
+
* await client.tenants.tenantDefaultPreferences.items.update(
|
|
11
12
|
* 'topic_id',
|
|
12
13
|
* {
|
|
13
14
|
* tenant_id: 'tenant_id',
|
|
@@ -24,7 +25,7 @@ export declare class Items extends APIResource {
|
|
|
24
25
|
*
|
|
25
26
|
* @example
|
|
26
27
|
* ```ts
|
|
27
|
-
* await client.tenants.
|
|
28
|
+
* await client.tenants.tenantDefaultPreferences.items.delete(
|
|
28
29
|
* 'topic_id',
|
|
29
30
|
* { tenant_id: 'tenant_id' },
|
|
30
31
|
* );
|
|
@@ -32,20 +33,6 @@ export declare class Items extends APIResource {
|
|
|
32
33
|
*/
|
|
33
34
|
delete(topicID: string, params: ItemDeleteParams, options?: RequestOptions): APIPromise<void>;
|
|
34
35
|
}
|
|
35
|
-
export type ChannelClassification = 'direct_message' | 'email' | 'push' | 'sms' | 'webhook' | 'inbox';
|
|
36
|
-
export interface SubscriptionTopicNew {
|
|
37
|
-
status: 'OPTED_OUT' | 'OPTED_IN' | 'REQUIRED';
|
|
38
|
-
/**
|
|
39
|
-
* The default channels to send to this tenant when has_custom_routing is enabled
|
|
40
|
-
*/
|
|
41
|
-
custom_routing?: Array<ChannelClassification> | null;
|
|
42
|
-
/**
|
|
43
|
-
* Override channel routing with custom preferences. This will override any
|
|
44
|
-
* template prefernces that are set, but a user can still customize their
|
|
45
|
-
* preferences
|
|
46
|
-
*/
|
|
47
|
-
has_custom_routing?: boolean | null;
|
|
48
|
-
}
|
|
49
36
|
export interface ItemUpdateParams {
|
|
50
37
|
/**
|
|
51
38
|
* Path param: Id of the tenant to update the default preferences for.
|
|
@@ -59,7 +46,7 @@ export interface ItemUpdateParams {
|
|
|
59
46
|
* Body param: The default channels to send to this tenant when has_custom_routing
|
|
60
47
|
* is enabled
|
|
61
48
|
*/
|
|
62
|
-
custom_routing?: Array<ChannelClassification> | null;
|
|
49
|
+
custom_routing?: Array<Shared.ChannelClassification> | null;
|
|
63
50
|
/**
|
|
64
51
|
* Body param: Override channel routing with custom preferences. This will override
|
|
65
52
|
* any template prefernces that are set, but a user can still customize their
|
|
@@ -74,6 +61,6 @@ export interface ItemDeleteParams {
|
|
|
74
61
|
tenant_id: string;
|
|
75
62
|
}
|
|
76
63
|
export declare namespace Items {
|
|
77
|
-
export { type
|
|
64
|
+
export { type ItemUpdateParams as ItemUpdateParams, type ItemDeleteParams as ItemDeleteParams };
|
|
78
65
|
}
|
|
79
66
|
//# sourceMappingURL=items.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"items.d.mts","sourceRoot":"","sources":["../../../src/resources/tenants/tenant-default-preferences/items.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAS7F;;;;;;;;;;OAUG;IACH,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAO9F;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,MAAM,EAAE,WAAW,GAAG,UAAU,GAAG,UAAU,CAAC;IAE9C;;;OAGG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,qBAAqB,CAAC,GAAG,IAAI,CAAC;IAE5D;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CACrC;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,CAAC;CACjG"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import * as Shared from "../../shared.js";
|
|
2
3
|
import { APIPromise } from "../../../core/api-promise.js";
|
|
3
4
|
import { RequestOptions } from "../../../internal/request-options.js";
|
|
4
5
|
export declare class Items extends APIResource {
|
|
@@ -7,7 +8,7 @@ export declare class Items extends APIResource {
|
|
|
7
8
|
*
|
|
8
9
|
* @example
|
|
9
10
|
* ```ts
|
|
10
|
-
* await client.tenants.
|
|
11
|
+
* await client.tenants.tenantDefaultPreferences.items.update(
|
|
11
12
|
* 'topic_id',
|
|
12
13
|
* {
|
|
13
14
|
* tenant_id: 'tenant_id',
|
|
@@ -24,7 +25,7 @@ export declare class Items extends APIResource {
|
|
|
24
25
|
*
|
|
25
26
|
* @example
|
|
26
27
|
* ```ts
|
|
27
|
-
* await client.tenants.
|
|
28
|
+
* await client.tenants.tenantDefaultPreferences.items.delete(
|
|
28
29
|
* 'topic_id',
|
|
29
30
|
* { tenant_id: 'tenant_id' },
|
|
30
31
|
* );
|
|
@@ -32,20 +33,6 @@ export declare class Items extends APIResource {
|
|
|
32
33
|
*/
|
|
33
34
|
delete(topicID: string, params: ItemDeleteParams, options?: RequestOptions): APIPromise<void>;
|
|
34
35
|
}
|
|
35
|
-
export type ChannelClassification = 'direct_message' | 'email' | 'push' | 'sms' | 'webhook' | 'inbox';
|
|
36
|
-
export interface SubscriptionTopicNew {
|
|
37
|
-
status: 'OPTED_OUT' | 'OPTED_IN' | 'REQUIRED';
|
|
38
|
-
/**
|
|
39
|
-
* The default channels to send to this tenant when has_custom_routing is enabled
|
|
40
|
-
*/
|
|
41
|
-
custom_routing?: Array<ChannelClassification> | null;
|
|
42
|
-
/**
|
|
43
|
-
* Override channel routing with custom preferences. This will override any
|
|
44
|
-
* template prefernces that are set, but a user can still customize their
|
|
45
|
-
* preferences
|
|
46
|
-
*/
|
|
47
|
-
has_custom_routing?: boolean | null;
|
|
48
|
-
}
|
|
49
36
|
export interface ItemUpdateParams {
|
|
50
37
|
/**
|
|
51
38
|
* Path param: Id of the tenant to update the default preferences for.
|
|
@@ -59,7 +46,7 @@ export interface ItemUpdateParams {
|
|
|
59
46
|
* Body param: The default channels to send to this tenant when has_custom_routing
|
|
60
47
|
* is enabled
|
|
61
48
|
*/
|
|
62
|
-
custom_routing?: Array<ChannelClassification> | null;
|
|
49
|
+
custom_routing?: Array<Shared.ChannelClassification> | null;
|
|
63
50
|
/**
|
|
64
51
|
* Body param: Override channel routing with custom preferences. This will override
|
|
65
52
|
* any template prefernces that are set, but a user can still customize their
|
|
@@ -74,6 +61,6 @@ export interface ItemDeleteParams {
|
|
|
74
61
|
tenant_id: string;
|
|
75
62
|
}
|
|
76
63
|
export declare namespace Items {
|
|
77
|
-
export { type
|
|
64
|
+
export { type ItemUpdateParams as ItemUpdateParams, type ItemDeleteParams as ItemDeleteParams };
|
|
78
65
|
}
|
|
79
66
|
//# sourceMappingURL=items.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"items.d.ts","sourceRoot":"","sources":["../../../src/resources/tenants/tenant-default-preferences/items.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAS7F;;;;;;;;;;OAUG;IACH,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAO9F;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,MAAM,EAAE,WAAW,GAAG,UAAU,GAAG,UAAU,CAAC;IAE9C;;;OAGG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,qBAAqB,CAAC,GAAG,IAAI,CAAC;IAE5D;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CACrC;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,CAAC;CACjG"}
|
|
@@ -11,7 +11,7 @@ class Items extends resource_1.APIResource {
|
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
13
|
* ```ts
|
|
14
|
-
* await client.tenants.
|
|
14
|
+
* await client.tenants.tenantDefaultPreferences.items.update(
|
|
15
15
|
* 'topic_id',
|
|
16
16
|
* {
|
|
17
17
|
* tenant_id: 'tenant_id',
|
|
@@ -35,7 +35,7 @@ class Items extends resource_1.APIResource {
|
|
|
35
35
|
*
|
|
36
36
|
* @example
|
|
37
37
|
* ```ts
|
|
38
|
-
* await client.tenants.
|
|
38
|
+
* await client.tenants.tenantDefaultPreferences.items.delete(
|
|
39
39
|
* 'topic_id',
|
|
40
40
|
* { tenant_id: 'tenant_id' },
|
|
41
41
|
* );
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"items.js","sourceRoot":"","sources":["../../../src/resources/tenants/tenant-default-preferences/items.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAyD;AAEzD,0DAAoD;AAEpD,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,OAAe,EAAE,MAAwB,EAAE,OAAwB;QACxE,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,SAAS,8BAA8B,OAAO,EAAE,EAAE;YACxF,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,OAAe,EAAE,MAAwB,EAAE,OAAwB;QACxE,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,YAAY,SAAS,8BAA8B,OAAO,EAAE,EAAE;YAC3F,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AA5CD,sBA4CC"}
|
|
@@ -8,7 +8,7 @@ export class Items extends APIResource {
|
|
|
8
8
|
*
|
|
9
9
|
* @example
|
|
10
10
|
* ```ts
|
|
11
|
-
* await client.tenants.
|
|
11
|
+
* await client.tenants.tenantDefaultPreferences.items.update(
|
|
12
12
|
* 'topic_id',
|
|
13
13
|
* {
|
|
14
14
|
* tenant_id: 'tenant_id',
|
|
@@ -32,7 +32,7 @@ export class Items extends APIResource {
|
|
|
32
32
|
*
|
|
33
33
|
* @example
|
|
34
34
|
* ```ts
|
|
35
|
-
* await client.tenants.
|
|
35
|
+
* await client.tenants.tenantDefaultPreferences.items.delete(
|
|
36
36
|
* 'topic_id',
|
|
37
37
|
* { tenant_id: 'tenant_id' },
|
|
38
38
|
* );
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"items.mjs","sourceRoot":"","sources":["../../../src/resources/tenants/tenant-default-preferences/items.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,OAAe,EAAE,MAAwB,EAAE,OAAwB;QACxE,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,SAAS,8BAA8B,OAAO,EAAE,EAAE;YACxF,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,OAAe,EAAE,MAAwB,EAAE,OAAwB;QACxE,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,YAAY,SAAS,8BAA8B,OAAO,EAAE,EAAE;YAC3F,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import * as ItemsAPI from "./items.mjs";
|
|
3
|
+
import { ItemDeleteParams, ItemUpdateParams, Items } from "./items.mjs";
|
|
4
|
+
export declare class TenantDefaultPreferences extends APIResource {
|
|
5
|
+
items: ItemsAPI.Items;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace TenantDefaultPreferences {
|
|
8
|
+
export { Items as Items, type ItemUpdateParams as ItemUpdateParams, type ItemDeleteParams as ItemDeleteParams, };
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=tenant-default-preferences.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tenant-default-preferences.d.mts","sourceRoot":"","sources":["../../../src/resources/tenants/tenant-default-preferences/tenant-default-preferences.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,KAAK,EAAE;AAEpD,qBAAa,wBAAyB,SAAQ,WAAW;IACvD,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;CAC1D;AAID,MAAM,CAAC,OAAO,WAAW,wBAAwB,CAAC;IAChD,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import * as ItemsAPI from "./items.js";
|
|
3
|
+
import { ItemDeleteParams, ItemUpdateParams, Items } from "./items.js";
|
|
4
|
+
export declare class TenantDefaultPreferences extends APIResource {
|
|
5
|
+
items: ItemsAPI.Items;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace TenantDefaultPreferences {
|
|
8
|
+
export { Items as Items, type ItemUpdateParams as ItemUpdateParams, type ItemDeleteParams as ItemDeleteParams, };
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=tenant-default-preferences.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tenant-default-preferences.d.ts","sourceRoot":"","sources":["../../../src/resources/tenants/tenant-default-preferences/tenant-default-preferences.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,KAAK,EAAE;AAEpD,qBAAa,wBAAyB,SAAQ,WAAW;IACvD,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;CAC1D;AAID,MAAM,CAAC,OAAO,WAAW,wBAAwB,CAAC;IAChD,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
4
|
+
exports.TenantDefaultPreferences = void 0;
|
|
5
5
|
const tslib_1 = require("../../../internal/tslib.js");
|
|
6
6
|
const resource_1 = require("../../../core/resource.js");
|
|
7
7
|
const ItemsAPI = tslib_1.__importStar(require("./items.js"));
|
|
8
8
|
const items_1 = require("./items.js");
|
|
9
|
-
class
|
|
9
|
+
class TenantDefaultPreferences extends resource_1.APIResource {
|
|
10
10
|
constructor() {
|
|
11
11
|
super(...arguments);
|
|
12
12
|
this.items = new ItemsAPI.Items(this._client);
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
exports.
|
|
16
|
-
|
|
17
|
-
//# sourceMappingURL=default-preferences.js.map
|
|
15
|
+
exports.TenantDefaultPreferences = TenantDefaultPreferences;
|
|
16
|
+
TenantDefaultPreferences.Items = items_1.Items;
|
|
17
|
+
//# sourceMappingURL=tenant-default-preferences.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tenant-default-preferences.js","sourceRoot":"","sources":["../../../src/resources/tenants/tenant-default-preferences/tenant-default-preferences.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,6DAAoC;AACpC,sCAAoE;AAEpE,MAAa,wBAAyB,SAAQ,sBAAW;IAAzD;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC3D,CAAC;CAAA;AAFD,4DAEC;AAED,wBAAwB,CAAC,KAAK,GAAG,aAAK,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../../core/resource.mjs";
|
|
3
3
|
import * as ItemsAPI from "./items.mjs";
|
|
4
|
-
import { Items
|
|
5
|
-
export class
|
|
4
|
+
import { Items } from "./items.mjs";
|
|
5
|
+
export class TenantDefaultPreferences extends APIResource {
|
|
6
6
|
constructor() {
|
|
7
7
|
super(...arguments);
|
|
8
8
|
this.items = new ItemsAPI.Items(this._client);
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
|
|
12
|
-
//# sourceMappingURL=default-preferences.mjs.map
|
|
11
|
+
TenantDefaultPreferences.Items = Items;
|
|
12
|
+
//# sourceMappingURL=tenant-default-preferences.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tenant-default-preferences.mjs","sourceRoot":"","sources":["../../../src/resources/tenants/tenant-default-preferences/tenant-default-preferences.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAsC,KAAK,EAAE;AAEpD,MAAM,OAAO,wBAAyB,SAAQ,WAAW;IAAzD;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC3D,CAAC;CAAA;AAED,wBAAwB,CAAC,KAAK,GAAG,KAAK,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tenant-default-preferences.d.mts","sourceRoot":"","sources":["../../src/resources/tenants/tenant-default-preferences.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tenant-default-preferences.d.ts","sourceRoot":"","sources":["../../src/resources/tenants/tenant-default-preferences.ts"],"names":[],"mappings":""}
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
const tslib_1 = require("../../internal/tslib.js");
|
|
5
|
-
tslib_1.__exportStar(require("./default-preferences/index.js"), exports);
|
|
6
|
-
//# sourceMappingURL=default-preferences.js.map
|
|
5
|
+
tslib_1.__exportStar(require("./tenant-default-preferences/index.js"), exports);
|
|
6
|
+
//# sourceMappingURL=tenant-default-preferences.js.map
|