@amityco/ts-sdk 7.27.2-9bed893.0 → 7.27.2-fb0fef3d.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/dist/@types/core/errors.d.ts +1 -2
- package/dist/@types/core/errors.d.ts.map +1 -1
- package/dist/@types/core/transport.d.ts +0 -1
- package/dist/@types/core/transport.d.ts.map +1 -1
- package/dist/@types/domains/client.d.ts +0 -86
- package/dist/@types/domains/client.d.ts.map +1 -1
- package/dist/client/api/createClient.d.ts.map +1 -1
- package/dist/client/api/index.d.ts +0 -1
- package/dist/client/api/index.d.ts.map +1 -1
- package/dist/client/index.d.ts +0 -1
- package/dist/client/index.d.ts.map +1 -1
- package/dist/core/errors.d.ts +0 -20
- package/dist/core/errors.d.ts.map +1 -1
- package/dist/core/transports/utils.d.ts.map +1 -1
- package/dist/index.cjs.js +1 -228
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +2 -227
- package/dist/index.umd.js +2 -2
- package/package.json +1 -1
- package/dist/client/api/getModuleSettings.d.ts +0 -25
- package/dist/client/api/getModuleSettings.d.ts.map +0 -1
- package/dist/client/api/tests/integration/moduleSettings.integration.test.d.ts +0 -2
- package/dist/client/api/tests/integration/moduleSettings.integration.test.d.ts.map +0 -1
- package/dist/client/utils/parseModuleSettings.d.ts +0 -9
- package/dist/client/utils/parseModuleSettings.d.ts.map +0 -1
- package/dist/client/utils/resolveModuleAvailability.d.ts +0 -39
- package/dist/client/utils/resolveModuleAvailability.d.ts.map +0 -1
- package/dist/client/utils/tests/resolveModuleAvailability.test.d.ts +0 -2
- package/dist/client/utils/tests/resolveModuleAvailability.test.d.ts.map +0 -1
- package/dist/core/transports/tests/moduleNotEntitled.test.d.ts +0 -2
- package/dist/core/transports/tests/moduleNotEntitled.test.d.ts.map +0 -1
|
@@ -25,8 +25,7 @@ declare global {
|
|
|
25
25
|
BOT_PERMISSION_DENIED = 403998,
|
|
26
26
|
VISITOR_USAGE_LIMIT_EXCEEDED = 400323,
|
|
27
27
|
FEED_SNAPSHOT_EXPIRED = 400322,
|
|
28
|
-
MAX_BLOCKED_USERS_REACHED = 400324
|
|
29
|
-
MODULE_NOT_ENTITLED = 400325
|
|
28
|
+
MAX_BLOCKED_USERS_REACHED = 400324
|
|
30
29
|
}
|
|
31
30
|
const enum ClientError {
|
|
32
31
|
UNKNOWN_ERROR = 800000,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/@types/core/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC;AAEV,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK,CAAC;QACd,WAAW,UAAU;YACnB,KAAK,UAAU;YACf,KAAK,UAAU;SAChB;QAED,WAAW,WAAW;YACpB,WAAW,SAAS;YACpB,YAAY,SAAS;YACrB,iBAAiB,SAAS;YAC1B,cAAc,SAAS;YACvB,QAAQ,SAAS;YACjB,SAAS,SAAS;YAClB,aAAa,SAAS;YACtB,gBAAgB,SAAS;YACzB,WAAW,SAAS;YACpB,UAAU,SAAS;YACnB,0BAA0B,SAAS;YACnC,uBAAuB,SAAS;YAChC,cAAc,SAAS;YACvB,gBAAgB,SAAS;YACzB,cAAc,SAAS;YACvB,yBAAyB,SAAS;YAClC,qBAAqB,SAAS;YAC9B,4BAA4B,SAAS;YACrC,qBAAqB,SAAS;YAC9B,yBAAyB,SAAS;
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/@types/core/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC;AAEV,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK,CAAC;QACd,WAAW,UAAU;YACnB,KAAK,UAAU;YACf,KAAK,UAAU;SAChB;QAED,WAAW,WAAW;YACpB,WAAW,SAAS;YACpB,YAAY,SAAS;YACrB,iBAAiB,SAAS;YAC1B,cAAc,SAAS;YACvB,QAAQ,SAAS;YACjB,SAAS,SAAS;YAClB,aAAa,SAAS;YACtB,gBAAgB,SAAS;YACzB,WAAW,SAAS;YACpB,UAAU,SAAS;YACnB,0BAA0B,SAAS;YACnC,uBAAuB,SAAS;YAChC,cAAc,SAAS;YACvB,gBAAgB,SAAS;YACzB,cAAc,SAAS;YACvB,yBAAyB,SAAS;YAClC,qBAAqB,SAAS;YAC9B,4BAA4B,SAAS;YACrC,qBAAqB,SAAS;YAC9B,yBAAyB,SAAS;SACnC;QAED,WAAW,WAAW;YACpB,aAAa,SAAS;YACtB,kBAAkB,SAAS;YAC3B,iBAAiB,SAAS;YAC1B,gBAAgB,SAAS;YACzB,YAAY,SAAS;YACrB,aAAa,SAAS;YACtB,wBAAwB,SAAS;SAClC;QAED,KAAK,SAAS,GAAG,WAAW,GAAG,WAAW,CAAC;KAC5C;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../../../src/@types/core/transport.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,OAAO,EAAE,CAAC;AAEV,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK,CAAC;QACd,KAAK,eAAe,CAAC,CAAC,IAAI;YACxB,MAAM,EAAE,SAAS,CAAC;YAClB,IAAI,EAAE,CAAC,CAAC;SACT,CAAC;QAEF,KAAK,YAAY,GAAG;YAClB,MAAM,EAAE,MAAM,CAAC;YACf,IAAI,EAAE,KAAK,CAAC,WAAW,CAAC;SACzB,CAAC;QAEF,KAAK,aAAa,GAAG;YACnB,MAAM,EAAE,OAAO,CAAC;YAChB,OAAO,EAAE,MAAM,CAAC;YAChB,IAAI,EAAE,KAAK,CAAC,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../../../src/@types/core/transport.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,M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OAAO,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,IAAI,KAC5C,IAAI,CAAC;YACV,IAAI,EAAE,CAAC,CAAC,SAAS,MAAM,KAAK,CAAC,UAAU,EACrC,KAAK,EAAE,CAAC,EACR,OAAO,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,IAAI,KAC5C,IAAI,CAAC;YACV,GAAG,EAAE,CAAC,CAAC,SAAS,MAAM,KAAK,CAAC,UAAU,EACpC,KAAK,EAAE,CAAC,EACR,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,IAAI,KAC7C,IAAI,CAAC;YACV,kBAAkB,EAAE,MAAM,IAAI,CAAC;YAC/B,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,QAAQ,GAAG,IAAI,CAAC,KAAK,KAAK,CAAC,YAAY,CAAC;YAC7F,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;SACtC,CAAC;KACH;CACF"}
|
|
@@ -70,7 +70,6 @@ declare global {
|
|
|
70
70
|
getVisitorDeviceId: () => Promise<string>;
|
|
71
71
|
getProductCatalogueSetting: () => Promise<Amity.ProductCatalogueSetting>;
|
|
72
72
|
getForYouFeedSetting: () => Promise<Amity.ForYouFeedSetting>;
|
|
73
|
-
getModuleSettings: () => Promise<Amity.ModuleSettings>;
|
|
74
73
|
loginType?: 'accessToken' | 'userId';
|
|
75
74
|
isGloballyBanned?: boolean;
|
|
76
75
|
};
|
|
@@ -182,91 +181,6 @@ declare global {
|
|
|
182
181
|
enabled: boolean;
|
|
183
182
|
};
|
|
184
183
|
};
|
|
185
|
-
/**
|
|
186
|
-
* How strictly core enforces the network's module grants.
|
|
187
|
-
*
|
|
188
|
-
* `off` and `shadow` both leave every module working — under `shadow` core
|
|
189
|
-
* logs what it would have blocked and serves the request anyway. Only
|
|
190
|
-
* `enforce` withholds anything. The wire field is `mode`; it is decoded as
|
|
191
|
-
* `enforcement` because `mode: 'off'` reads as "modules off" as readily as
|
|
192
|
-
* "enforcement off", and those are opposites.
|
|
193
|
-
*/
|
|
194
|
-
type ModuleEnforcementMode = 'off' | 'shadow' | 'enforce';
|
|
195
|
-
/**
|
|
196
|
-
* `api` modules gate endpoints. `setting` modules are Console/Dashboard
|
|
197
|
-
* capabilities with no client endpoint, so a client never resolves them.
|
|
198
|
-
*/
|
|
199
|
-
type ModuleKind = 'api' | 'setting';
|
|
200
|
-
/**
|
|
201
|
-
* The `api` module keys this build knows, in the wire's camelCase.
|
|
202
|
-
*
|
|
203
|
-
* `clip` is deliberately absent: it is a UIKit feature riding `post`, and
|
|
204
|
-
* the network is never asked to grant it.
|
|
205
|
-
*/
|
|
206
|
-
type Module = 'community' | 'chat' | 'live' | 'poll' | 'userRelationship' | 'pushNotification' | 'post' | 'story' | 'events' | 'feed' | 'comment' | 'reaction' | 'product' | 'ads' | 'discovery';
|
|
207
|
-
/**
|
|
208
|
-
* A module key as it appears on the wire: one of {@link Amity.Module}, or a
|
|
209
|
-
* key this build has never heard of.
|
|
210
|
-
*
|
|
211
|
-
* The `string & {}` arm is what keeps the set **open** — an editor still
|
|
212
|
-
* completes and type-checks the 15 known keys, and a catalog entry the
|
|
213
|
-
* backend adds after this build shipped survives parsing rather than
|
|
214
|
-
* failing to type (`getModuleSettings` REQ-011). A closed
|
|
215
|
-
* `Amity.Module` key would drop it; a bare `string` would give no
|
|
216
|
-
* completion at all.
|
|
217
|
-
*/
|
|
218
|
-
type ModuleKey = Amity.Module | (string & {});
|
|
219
|
-
type ModuleDefinition = {
|
|
220
|
-
label: string;
|
|
221
|
-
kind: Amity.ModuleKind;
|
|
222
|
-
/** Prerequisite module keys. **Any one entry** satisfies the requirement. */
|
|
223
|
-
requires: Amity.ModuleKey[];
|
|
224
|
-
};
|
|
225
|
-
type ModuleSettings = {
|
|
226
|
-
/** Wire field: `mode`. */
|
|
227
|
-
enforcement: Amity.ModuleEnforcementMode;
|
|
228
|
-
/** The grants. **Partial** — a key absent from the map was not granted. */
|
|
229
|
-
modules: Partial<Record<Amity.ModuleKey, boolean>>;
|
|
230
|
-
/** Every module, granted or not, keyed by the server's module key. */
|
|
231
|
-
catalog: Partial<Record<Amity.ModuleKey, Amity.ModuleDefinition>>;
|
|
232
|
-
};
|
|
233
|
-
/**
|
|
234
|
-
* The answer resolution gives for one module key. `isGranted` is reported
|
|
235
|
-
* independently of `isAvailable`: under `off` a module can be ungranted and
|
|
236
|
-
* available at once.
|
|
237
|
-
*/
|
|
238
|
-
type ModuleAvailability = {
|
|
239
|
-
moduleKey: Amity.ModuleKey;
|
|
240
|
-
isAvailable: true;
|
|
241
|
-
isGranted: boolean;
|
|
242
|
-
} | {
|
|
243
|
-
moduleKey: Amity.ModuleKey;
|
|
244
|
-
isAvailable: false;
|
|
245
|
-
isGranted: boolean;
|
|
246
|
-
reason: 'notGranted';
|
|
247
|
-
} | {
|
|
248
|
-
moduleKey: Amity.ModuleKey;
|
|
249
|
-
isAvailable: false;
|
|
250
|
-
isGranted: boolean;
|
|
251
|
-
reason: 'prerequisiteUnavailable';
|
|
252
|
-
/**
|
|
253
|
-
* The whole `requires` list, because any one entry would have
|
|
254
|
-
* satisfied it — naming a single module would misdirect.
|
|
255
|
-
*/
|
|
256
|
-
unsatisfied: Amity.ModuleKey[];
|
|
257
|
-
};
|
|
258
|
-
/** `GET /api/v3/network-settings/modules` as it arrives on the wire. */
|
|
259
|
-
type RawModuleSettings = {
|
|
260
|
-
mode?: string;
|
|
261
|
-
/** Accepted as an alias of `mode`, should the field be renamed server-side. */
|
|
262
|
-
enforcement?: string;
|
|
263
|
-
modules?: Partial<Record<Amity.ModuleKey, unknown>>;
|
|
264
|
-
catalog?: Partial<Record<Amity.ModuleKey, {
|
|
265
|
-
label?: unknown;
|
|
266
|
-
kind?: unknown;
|
|
267
|
-
requires?: unknown;
|
|
268
|
-
}>>;
|
|
269
|
-
};
|
|
270
184
|
type ConnectClientParams = {
|
|
271
185
|
userId: Amity.InternalUser['userId'];
|
|
272
186
|
displayName?: Amity.InternalUser['displayName'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/@types/domains/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAEjE,0BAAkB,4BAA4B;IAC5C,SAAS,cAAc;IACvB,UAAU,eAAe;CAC1B;AAED,oBAAY,qBAAqB;IAC/B,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,KAAK,UAAU;CAChB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK,CAAC;QACd,KAAK,MAAM,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;QAEtD,KAAK,wBAAwB,GAAG,4BAA4B,CAAC;QAE7D,KAAK,gBAAgB,GAAG,qBAAqB,CAAC;QAE9C,KAAK,qBAAqB,GAAG;YAC3B,OAAO,EAAE,KAAK,CAAC,gBAAgB,CAAC;YAChC,QAAQ,EAAE,OAAO,CAAC;YAClB,QAAQ,EAAE,OAAO,CAAC;YAClB,UAAU,EAAE,MAAM,CAAC;SACpB,CAAC;QAEF,WAAW,sBAAsB;YAC/B,UAAU,cAAc;YACxB,YAAY,gBAAgB;YAC5B,YAAY,iBAAiB;SAC9B;QAED,WAAW,aAAa;YACtB,aAAa,gBAAgB;YAE7B,YAAY,iBAAiB;YAC7B,WAAW,gBAAgB;YAE3B,aAAa,iBAAiB;YAW9B,UAAU,eAAe;SAC1B;QAED,KAAK,MAAM,GAA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QAEF,KAAK,4BAA4B,GAAG;YAClC,aAAa,CAAC,EAAE,MAAM,CAAC;YACvB,sBAAsB,CAAC,EAAE,MAAM,CAAC;SACjC,CAAC;QAEF,KAAK,mBAAmB,GAAG;YACzB,UAAU,EAAE,OAAO,CAAC;SACrB,CAAC;QAEF,KAAK,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,aAAa,CAAC,CAAC;QAEtF,KAAK,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG;YACxD,WAAW,EAAE,OAAO,CAAC;SACtB,CAAC;KACH;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createClient.d.ts","sourceRoot":"","sources":["../../../src/client/api/createClient.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAc,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"createClient.d.ts","sourceRoot":"","sources":["../../../src/client/api/createClient.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAc,MAAM,0BAA0B,CAAC;AAwBnE;;;;;;;;;;;;;;;KAeK;AACL,eAAO,MAAM,YAAY,WACf,MAAM,cACH,CAAA,kBAAkB,EAAC,MAAM,kBAAkB,CAAC;;;;;;;;;;;;;MAoBtD,MAAM,MAuGR,CAAC"}
|
|
@@ -18,7 +18,6 @@ export * from './getSocialSettings';
|
|
|
18
18
|
export * from './getShareableLinkConfiguration';
|
|
19
19
|
export * from './getProductCatalogueSetting';
|
|
20
20
|
export * from './getForYouFeedSetting';
|
|
21
|
-
export * from './getModuleSettings';
|
|
22
21
|
export * from './loginAsVisitor';
|
|
23
22
|
export * from './loginAsBot';
|
|
24
23
|
export * from './getCurrentUser';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/api/index.ts"],"names":[],"mappings":"AA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ACjC,cAAc,cAAc,CAAC;AAE7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AAErC,cAAc,yBAAyB,CAAC;AAExC,cAAc,mBAAmB,CAAC;AAElC,cAAc,4BAA4B,CAAC;AAE3C,cAAc,uBAAuB,CAAC;AAEtC,cAAc,iBAAiB,CAAC;AAEhC,cAAc,oBAAoB,CAAC"}
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,0BAA0B,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,0BAA0B,CAAC"}
|
package/dist/core/errors.d.ts
CHANGED
|
@@ -47,26 +47,6 @@ export declare class ASCConnectionError extends ASCError {
|
|
|
47
47
|
*/
|
|
48
48
|
constructor(event: string, message?: string);
|
|
49
49
|
}
|
|
50
|
-
/**
|
|
51
|
-
* Thrown when the network does not own a module the call needs. Raised from
|
|
52
|
-
* any module endpoint under `enforce` enforcement, mapped from app code
|
|
53
|
-
* `400325` — never from HTTP 403 alone, which already covers a role problem
|
|
54
|
-
* (`400300` / `400301`), a visitor (`403999`) and a bot (`403998`).
|
|
55
|
-
*
|
|
56
|
-
* `modules` carries **every** key the refusal named, as raw strings, so a
|
|
57
|
-
* caller can say which entitlement is absent without a second request.
|
|
58
|
-
*
|
|
59
|
-
* @category Errors
|
|
60
|
-
*/
|
|
61
|
-
export declare class AmityModuleNotEntitledError extends ASCApiError {
|
|
62
|
-
readonly modules: string[];
|
|
63
|
-
readonly type = "AmityModuleNotEntitledError";
|
|
64
|
-
/**
|
|
65
|
-
* @param message The server's message, e.g. `Module not entitled: chat, live`
|
|
66
|
-
* @param modules Every module key from the rejection's `data.modules`
|
|
67
|
-
*/
|
|
68
|
-
constructor(message: string, modules?: string[]);
|
|
69
|
-
}
|
|
70
50
|
/**
|
|
71
51
|
* Input sanitization related error
|
|
72
52
|
* @category Errors
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/core/errors.ts"],"names":[],"mappings":"AACA;;;GAGG;AACH,qBAAa,QAAS,SAAQ,KAAK;aAYf,IAAI,EAAE,KAAK,CAAC,SAAS;aACrB,KAAK,EAAE,KAAK,CAAC,UAAU;IAZzC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAS;IAE9B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAc;IAExC;;;;OAIG;gBAED,OAAO,EAAE,MAAM,EACC,IAAI,EAAE,KAAK,CAAC,SAAS,EACrB,KAAK,EAAE,KAAK,CAAC,UAAU;CAM1C;AAED;;;GAGG;AACH,qBAAa,WAAY,SAAQ,QAAQ;IACvC;;;OAGG;gBAES,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,SAAS,EAAE,KAAK,EAAE,KAAK,CAAC,UAAU;CAG5E;AAED;;;GAGG;AACH,qBAAa,eAAgB,SAAQ,QAAQ;IAC3C;;;OAGG;gBAED,IAAI,GAAE,KAAK,CAAC,SAA2C,EACvD,KAAK,GAAE,KAAK,CAAC,UAAmC;CAInD;AAED;;;GAGG;AACH,qBAAa,kBAAmB,SAAQ,QAAQ;aAIlB,KAAK,EAAE,MAAM;IAHzC;;OAEG;gBACyB,KAAK,EAAE,MAAM,EAAE,OAAO,SAA2C;CAS9F;AAED
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/core/errors.ts"],"names":[],"mappings":"AACA;;;GAGG;AACH,qBAAa,QAAS,SAAQ,KAAK;aAYf,IAAI,EAAE,KAAK,CAAC,SAAS;aACrB,KAAK,EAAE,KAAK,CAAC,UAAU;IAZzC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAS;IAE9B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAc;IAExC;;;;OAIG;gBAED,OAAO,EAAE,MAAM,EACC,IAAI,EAAE,KAAK,CAAC,SAAS,EACrB,KAAK,EAAE,KAAK,CAAC,UAAU;CAM1C;AAED;;;GAGG;AACH,qBAAa,WAAY,SAAQ,QAAQ;IACvC;;;OAGG;gBAES,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,SAAS,EAAE,KAAK,EAAE,KAAK,CAAC,UAAU;CAG5E;AAED;;;GAGG;AACH,qBAAa,eAAgB,SAAQ,QAAQ;IAC3C;;;OAGG;gBAED,IAAI,GAAE,KAAK,CAAC,SAA2C,EACvD,KAAK,GAAE,KAAK,CAAC,UAAmC;CAInD;AAED;;;GAGG;AACH,qBAAa,kBAAmB,SAAQ,QAAQ;aAIlB,KAAK,EAAE,MAAM;IAHzC;;OAEG;gBACyB,KAAK,EAAE,MAAM,EAAE,OAAO,SAA2C;CAS9F;AAED;;;GAGG;AACH,qBAAa,wBAAyB,SAAQ,QAAQ;IACpD;;OAEG;gBACS,OAAO,EAAE,MAAM;CAG5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/core/transports/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/core/transports/utils.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,aAAa,uCAYzB,CAAC;AAYF;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,QAAO,MAAkD,CAAC"}
|
package/dist/index.cjs.js
CHANGED
|
@@ -812,28 +812,6 @@ class ASCConnectionError extends ASCError {
|
|
|
812
812
|
this.event = event;
|
|
813
813
|
}
|
|
814
814
|
}
|
|
815
|
-
/**
|
|
816
|
-
* Thrown when the network does not own a module the call needs. Raised from
|
|
817
|
-
* any module endpoint under `enforce` enforcement, mapped from app code
|
|
818
|
-
* `400325` — never from HTTP 403 alone, which already covers a role problem
|
|
819
|
-
* (`400300` / `400301`), a visitor (`403999`) and a bot (`403998`).
|
|
820
|
-
*
|
|
821
|
-
* `modules` carries **every** key the refusal named, as raw strings, so a
|
|
822
|
-
* caller can say which entitlement is absent without a second request.
|
|
823
|
-
*
|
|
824
|
-
* @category Errors
|
|
825
|
-
*/
|
|
826
|
-
class AmityModuleNotEntitledError extends ASCApiError {
|
|
827
|
-
/**
|
|
828
|
-
* @param message The server's message, e.g. `Module not entitled: chat, live`
|
|
829
|
-
* @param modules Every module key from the rejection's `data.modules`
|
|
830
|
-
*/
|
|
831
|
-
constructor(message, modules = []) {
|
|
832
|
-
super(message, 400325 /* Amity.ServerError.MODULE_NOT_ENTITLED */, "error" /* Amity.ErrorLevel.ERROR */);
|
|
833
|
-
this.modules = modules;
|
|
834
|
-
this.type = 'AmityModuleNotEntitledError';
|
|
835
|
-
}
|
|
836
|
-
}
|
|
837
815
|
|
|
838
816
|
let activeClient = null;
|
|
839
817
|
/**
|
|
@@ -1983,22 +1961,6 @@ function computeUrl(type, region) {
|
|
|
1983
1961
|
|
|
1984
1962
|
const uuid = () => uuid__default["default"].v4().toString();
|
|
1985
1963
|
|
|
1986
|
-
/**
|
|
1987
|
-
* Reads the module keys a `MODULE_NOT_ENTITLED` rejection named.
|
|
1988
|
-
*
|
|
1989
|
-
* Every entry is kept, as a raw string: one call can need more than one
|
|
1990
|
-
* module, and a key this build predates is still the only part of the
|
|
1991
|
-
* payload a customer can act on.
|
|
1992
|
-
*
|
|
1993
|
-
* @category Transport
|
|
1994
|
-
* @hidden
|
|
1995
|
-
*/
|
|
1996
|
-
const extractNotEntitledModules = (data) => {
|
|
1997
|
-
const { modules } = data !== null && data !== void 0 ? data : {};
|
|
1998
|
-
if (!Array.isArray(modules))
|
|
1999
|
-
return [];
|
|
2000
|
-
return modules.filter((module) => typeof module === 'string');
|
|
2001
|
-
};
|
|
2002
1964
|
/**
|
|
2003
1965
|
* Unwraps v3 server payload (for error handling and type extraction)
|
|
2004
1966
|
*
|
|
@@ -2018,15 +1980,6 @@ const unwrapPayload = (response) => {
|
|
|
2018
1980
|
throw new ASCUnknownError(response.code);
|
|
2019
1981
|
}
|
|
2020
1982
|
else if (response.status === 'error') {
|
|
2021
|
-
/*
|
|
2022
|
-
* An entitlement refusal must not arrive as a generic failure: a customer
|
|
2023
|
-
* cannot then tell a module they have not bought from an outage. Keyed on
|
|
2024
|
-
* the app code, never on the HTTP status, so a role or membership problem
|
|
2025
|
-
* still maps to the generic error.
|
|
2026
|
-
*/
|
|
2027
|
-
if (response.code === 400325 /* Amity.ServerError.MODULE_NOT_ENTITLED */) {
|
|
2028
|
-
throw new AmityModuleNotEntitledError(response.message, extractNotEntitledModules(response.data));
|
|
2029
|
-
}
|
|
2030
1983
|
throw new ASCApiError(response.message, response.code, "error" /* Amity.ErrorLevel.ERROR */);
|
|
2031
1984
|
}
|
|
2032
1985
|
// unjust, but helps force uncast "T | undefined" to allow deconstruction without warnings
|
|
@@ -5523,95 +5476,6 @@ const getForYouFeedSetting = async () => {
|
|
|
5523
5476
|
};
|
|
5524
5477
|
/* end_public_function */
|
|
5525
5478
|
|
|
5526
|
-
const ENFORCEMENT_MODES = ['off', 'shadow', 'enforce'];
|
|
5527
|
-
/**
|
|
5528
|
-
* An unrecognised mode decodes to `off`, and so does an absent one. A mode
|
|
5529
|
-
* this build does not know must not withhold anything — defaulting to
|
|
5530
|
-
* `enforce` would let a server-side rename black out a customer's app.
|
|
5531
|
-
*
|
|
5532
|
-
* @category private
|
|
5533
|
-
*/
|
|
5534
|
-
const parseEnforcement = (mode) => {
|
|
5535
|
-
const match = ENFORCEMENT_MODES.find(value => value === mode);
|
|
5536
|
-
return match !== null && match !== void 0 ? match : 'off';
|
|
5537
|
-
};
|
|
5538
|
-
const parseGrants = (modules) => {
|
|
5539
|
-
const grants = {};
|
|
5540
|
-
Object.entries(modules !== null && modules !== void 0 ? modules : {}).forEach(([key, granted]) => {
|
|
5541
|
-
grants[key] = granted === true;
|
|
5542
|
-
});
|
|
5543
|
-
return grants;
|
|
5544
|
-
};
|
|
5545
|
-
/**
|
|
5546
|
-
* Every catalog entry survives, including one whose key this build has never
|
|
5547
|
-
* heard of, so a module added server-side is still listable.
|
|
5548
|
-
*
|
|
5549
|
-
* @category private
|
|
5550
|
-
*/
|
|
5551
|
-
const parseCatalog = (catalog) => {
|
|
5552
|
-
const parsed = {};
|
|
5553
|
-
Object.entries(catalog !== null && catalog !== void 0 ? catalog : {}).forEach(([key, definition]) => {
|
|
5554
|
-
const rawRequires = definition === null || definition === void 0 ? void 0 : definition.requires;
|
|
5555
|
-
const requires = Array.isArray(rawRequires)
|
|
5556
|
-
? rawRequires.filter((entry) => typeof entry === 'string')
|
|
5557
|
-
: [];
|
|
5558
|
-
parsed[key] = {
|
|
5559
|
-
label: typeof (definition === null || definition === void 0 ? void 0 : definition.label) === 'string' ? definition.label : key,
|
|
5560
|
-
kind: (definition === null || definition === void 0 ? void 0 : definition.kind) === 'setting' ? 'setting' : 'api',
|
|
5561
|
-
requires,
|
|
5562
|
-
};
|
|
5563
|
-
});
|
|
5564
|
-
return parsed;
|
|
5565
|
-
};
|
|
5566
|
-
/**
|
|
5567
|
-
* Decodes `GET /api/v3/network-settings/modules`. Nothing is trimmed: the
|
|
5568
|
-
* catalog is the dependency table callers resolve against, and a client that
|
|
5569
|
-
* cannot see it has to hardcode one.
|
|
5570
|
-
*
|
|
5571
|
-
* @category private
|
|
5572
|
-
*/
|
|
5573
|
-
const parseModuleSettings = (raw) => {
|
|
5574
|
-
var _a;
|
|
5575
|
-
return ({
|
|
5576
|
-
enforcement: parseEnforcement((_a = raw === null || raw === void 0 ? void 0 : raw.enforcement) !== null && _a !== void 0 ? _a : raw === null || raw === void 0 ? void 0 : raw.mode),
|
|
5577
|
-
modules: parseGrants(raw === null || raw === void 0 ? void 0 : raw.modules),
|
|
5578
|
-
catalog: parseCatalog(raw === null || raw === void 0 ? void 0 : raw.catalog),
|
|
5579
|
-
});
|
|
5580
|
-
};
|
|
5581
|
-
|
|
5582
|
-
/* begin_public_function
|
|
5583
|
-
id: client.getModuleSettings
|
|
5584
|
-
*/
|
|
5585
|
-
/**
|
|
5586
|
-
* ```js
|
|
5587
|
-
* import { Client } from '@amityco/ts-sdk'
|
|
5588
|
-
* const moduleSettings = await Client.getModuleSettings()
|
|
5589
|
-
* ```
|
|
5590
|
-
*
|
|
5591
|
-
* Fetches the network's module entitlements: which modules the network was
|
|
5592
|
-
* granted, whether core is enforcing those grants, and the catalog of all
|
|
5593
|
-
* modules with their dependency chains.
|
|
5594
|
-
*
|
|
5595
|
-
* The payload is returned whole — `catalog` is the dependency table
|
|
5596
|
-
* {@link resolveModuleAvailability} reads, and a client that cannot see it has
|
|
5597
|
-
* to hardcode one.
|
|
5598
|
-
*
|
|
5599
|
-
* The read is **advisory**. It tells a host what to offer; under `enforce` the
|
|
5600
|
-
* backend refuses a call to an unowned module regardless of what was resolved
|
|
5601
|
-
* here, and that refusal arrives as `AmityModuleNotEntitledError`.
|
|
5602
|
-
*
|
|
5603
|
-
* @returns A Promise of {@link Amity.ModuleSettings} object
|
|
5604
|
-
*
|
|
5605
|
-
* @category Client API
|
|
5606
|
-
* @async
|
|
5607
|
-
*/
|
|
5608
|
-
const getModuleSettings = async () => {
|
|
5609
|
-
const client = getActiveClient();
|
|
5610
|
-
const { data } = await client.http.get(`/api/v3/network-settings/modules`);
|
|
5611
|
-
return parseModuleSettings(data);
|
|
5612
|
-
};
|
|
5613
|
-
/* end_public_function */
|
|
5614
|
-
|
|
5615
5479
|
const checkUserPermission = (userId, permission) => {
|
|
5616
5480
|
var _a;
|
|
5617
5481
|
const user = (_a = pullFromCache(['user', 'get', userId])) === null || _a === void 0 ? void 0 : _a.data;
|
|
@@ -9336,7 +9200,6 @@ const createClient = (apiKey, apiRegion = API_REGIONS.SG, { debugSession = DEFAU
|
|
|
9336
9200
|
getMarkerSyncConsistentMode,
|
|
9337
9201
|
getProductCatalogueSetting,
|
|
9338
9202
|
getForYouFeedSetting,
|
|
9339
|
-
getModuleSettings,
|
|
9340
9203
|
/**
|
|
9341
9204
|
* Prefix for the deviceId key in the local storage or async storage.
|
|
9342
9205
|
* This is allow user to have multiple SDK client and Mqtt client within the same app.
|
|
@@ -10382,92 +10245,6 @@ const getUserUnread = (callback) => {
|
|
|
10382
10245
|
};
|
|
10383
10246
|
};
|
|
10384
10247
|
|
|
10385
|
-
/**
|
|
10386
|
-
* ```js
|
|
10387
|
-
* import { Client, resolveModuleAvailability } from '@amityco/ts-sdk'
|
|
10388
|
-
*
|
|
10389
|
-
* const moduleSettings = await Client.getModuleSettings()
|
|
10390
|
-
*
|
|
10391
|
-
* if (resolveModuleAvailability(moduleSettings, 'live').isAvailable) {
|
|
10392
|
-
* // offer the Live entry point
|
|
10393
|
-
* }
|
|
10394
|
-
* ```
|
|
10395
|
-
*
|
|
10396
|
-
* Resolves whether one module is usable on this network.
|
|
10397
|
-
*
|
|
10398
|
-
* Availability is a function of all three fields of
|
|
10399
|
-
* {@link Amity.ModuleSettings} — the enforcement mode, the module's own grant,
|
|
10400
|
-
* and its prerequisite chain — combined in that order. Reading `modules`
|
|
10401
|
-
* directly contradicts the mode: staging answers `mode: 'off'` with
|
|
10402
|
-
* `modules: {}`, and every module still works.
|
|
10403
|
-
*
|
|
10404
|
-
* The dependency table comes from the payload's `catalog`, never from a
|
|
10405
|
-
* hardcoded copy, so a chain the backend changes takes effect without an SDK
|
|
10406
|
-
* release.
|
|
10407
|
-
*
|
|
10408
|
-
* The SDK does not hold the settings — the caller keeps what it fetched and
|
|
10409
|
-
* resolves against it. With no settings at all (a fetch that never succeeded)
|
|
10410
|
-
* the caller reads that as every module available: under `enforce` the backend
|
|
10411
|
-
* refuses the calls anyway, so the exposure is a screen that offers too much,
|
|
10412
|
-
* not one that withholds what a customer paid for.
|
|
10413
|
-
*
|
|
10414
|
-
* @param moduleSettings The network's module settings
|
|
10415
|
-
* @param moduleKey The module to resolve — an {@link Amity.ModuleKey}, so the
|
|
10416
|
-
* 15 keys this build knows complete and type-check while a catalog entry it
|
|
10417
|
-
* does not know still resolves.
|
|
10418
|
-
* @returns An {@link Amity.ModuleAvailability} answer
|
|
10419
|
-
*
|
|
10420
|
-
* @category Client API
|
|
10421
|
-
*/
|
|
10422
|
-
const resolveModuleAvailability = (moduleSettings, moduleKey, seen = new Set()) => {
|
|
10423
|
-
var _a, _b, _c, _d, _e;
|
|
10424
|
-
const isGranted = (_a = moduleSettings.modules[moduleKey]) !== null && _a !== void 0 ? _a : false;
|
|
10425
|
-
/*
|
|
10426
|
-
* Not enforcing: nothing is withheld, and no graph walk is needed. This has
|
|
10427
|
-
* to come first — `off` and `shadow` resolve available whatever the grant
|
|
10428
|
-
* says, and a cycle would otherwise return unavailable under `off` too.
|
|
10429
|
-
*/
|
|
10430
|
-
if (moduleSettings.enforcement !== 'enforce') {
|
|
10431
|
-
return { moduleKey, isAvailable: true, isGranted };
|
|
10432
|
-
}
|
|
10433
|
-
// A cycle in `requires` resolves unavailable rather than recursing.
|
|
10434
|
-
if (seen.has(moduleKey)) {
|
|
10435
|
-
return {
|
|
10436
|
-
moduleKey,
|
|
10437
|
-
isAvailable: false,
|
|
10438
|
-
isGranted,
|
|
10439
|
-
reason: 'prerequisiteUnavailable',
|
|
10440
|
-
unsatisfied: (_c = (_b = moduleSettings.catalog[moduleKey]) === null || _b === void 0 ? void 0 : _b.requires) !== null && _c !== void 0 ? _c : [],
|
|
10441
|
-
};
|
|
10442
|
-
}
|
|
10443
|
-
// The module's own grant is evaluated before its prerequisites, so
|
|
10444
|
-
// `notGranted` is reported in preference when both hold.
|
|
10445
|
-
if (!isGranted) {
|
|
10446
|
-
return { moduleKey, isAvailable: false, isGranted, reason: 'notGranted' };
|
|
10447
|
-
}
|
|
10448
|
-
const requires = (_e = (_d = moduleSettings.catalog[moduleKey]) === null || _d === void 0 ? void 0 : _d.requires) !== null && _e !== void 0 ? _e : [];
|
|
10449
|
-
if (requires.length === 0)
|
|
10450
|
-
return { moduleKey, isAvailable: true, isGranted };
|
|
10451
|
-
// `requires` is satisfied by any one entry, transitively.
|
|
10452
|
-
const isSatisfied = requires.some(dependency => resolveModuleAvailability(moduleSettings, dependency, new Set([...seen, moduleKey]))
|
|
10453
|
-
.isAvailable);
|
|
10454
|
-
if (isSatisfied)
|
|
10455
|
-
return { moduleKey, isAvailable: true, isGranted };
|
|
10456
|
-
/*
|
|
10457
|
-
* `unsatisfied` carries the whole `requires` list rather than one entry. Any
|
|
10458
|
-
* one of them would have satisfied the requirement, so naming a single
|
|
10459
|
-
* module misdirects: telling a Community-only customer "Comment needs post"
|
|
10460
|
-
* hides that Story would also have done.
|
|
10461
|
-
*/
|
|
10462
|
-
return {
|
|
10463
|
-
moduleKey,
|
|
10464
|
-
isAvailable: false,
|
|
10465
|
-
isGranted,
|
|
10466
|
-
reason: 'prerequisiteUnavailable',
|
|
10467
|
-
unsatisfied: requires,
|
|
10468
|
-
};
|
|
10469
|
-
};
|
|
10470
|
-
|
|
10471
10248
|
var index$t = /*#__PURE__*/Object.freeze({
|
|
10472
10249
|
__proto__: null,
|
|
10473
10250
|
getActiveClient: getActiveClient,
|
|
@@ -10491,7 +10268,6 @@ var index$t = /*#__PURE__*/Object.freeze({
|
|
|
10491
10268
|
getShareableLinkConfiguration: getShareableLinkConfiguration,
|
|
10492
10269
|
getProductCatalogueSetting: getProductCatalogueSetting,
|
|
10493
10270
|
getForYouFeedSetting: getForYouFeedSetting,
|
|
10494
|
-
getModuleSettings: getModuleSettings,
|
|
10495
10271
|
loginAsVisitor: loginAsVisitor,
|
|
10496
10272
|
loginAsBot: loginAsBot,
|
|
10497
10273
|
getCurrentUser: getCurrentUser,
|
|
@@ -10519,8 +10295,7 @@ var index$t = /*#__PURE__*/Object.freeze({
|
|
|
10519
10295
|
startMarkerSync: startMarkerSync,
|
|
10520
10296
|
startUnreadSync: startUnreadSync,
|
|
10521
10297
|
stopUnreadSync: stopUnreadSync,
|
|
10522
|
-
getMarkerSyncConsistentMode: getMarkerSyncConsistentMode
|
|
10523
|
-
resolveModuleAvailability: resolveModuleAvailability
|
|
10298
|
+
getMarkerSyncConsistentMode: getMarkerSyncConsistentMode
|
|
10524
10299
|
});
|
|
10525
10300
|
|
|
10526
10301
|
/* begin_public_function
|
|
@@ -37138,7 +36913,6 @@ class AmityAttachmentProductTags {
|
|
|
37138
36913
|
exports.API_REGIONS = API_REGIONS;
|
|
37139
36914
|
exports.AdRepository = index$6;
|
|
37140
36915
|
exports.AmityAttachmentProductTags = AmityAttachmentProductTags;
|
|
37141
|
-
exports.AmityModuleNotEntitledError = AmityModuleNotEntitledError;
|
|
37142
36916
|
exports.CategoryRepository = index$g;
|
|
37143
36917
|
exports.ChannelRepository = index$k;
|
|
37144
36918
|
exports.Client = index$t;
|
|
@@ -37247,7 +37021,6 @@ exports.pushToCache = pushToCache;
|
|
|
37247
37021
|
exports.queryCache = queryCache;
|
|
37248
37022
|
exports.queryOptions = queryOptions;
|
|
37249
37023
|
exports.queryRoles = queryRoles;
|
|
37250
|
-
exports.resolveModuleAvailability = resolveModuleAvailability;
|
|
37251
37024
|
exports.restoreCache = restoreCache;
|
|
37252
37025
|
exports.runQuery = runQuery;
|
|
37253
37026
|
exports.sortByChannelSegment = sortByChannelSegment;
|
package/dist/index.d.ts
CHANGED
|
@@ -35,6 +35,4 @@ export * as EventRepository from './eventRepository';
|
|
|
35
35
|
export * as ProductRepository from './productRepository';
|
|
36
36
|
export * as CuratedContentRepository from './curatedContentRepository';
|
|
37
37
|
export { AmityAttachmentProductTags } from './productRepository/helpers';
|
|
38
|
-
export { AmityModuleNotEntitledError } from './core/errors';
|
|
39
|
-
export { resolveModuleAvailability } from './client/utils/resolveModuleAvailability';
|
|
40
38
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map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