@bitbitpress/client 2.0.0-beta.6 → 2.0.0-beta.8
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 +54 -5
- package/dist/data/assets.d.ts +6 -0
- package/dist/data/assets.d.ts.map +1 -1
- package/dist/data/assets.js.map +1 -1
- package/dist/generated/openapi.d.ts +123 -4
- package/dist/user/images.d.ts +18 -0
- package/dist/user/images.d.ts.map +1 -0
- package/dist/user/images.js +31 -0
- package/dist/user/images.js.map +1 -0
- package/dist/user/index.d.ts +11 -0
- package/dist/user/index.d.ts.map +1 -1
- package/dist/user/index.js +2 -0
- package/dist/user/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -45,6 +45,7 @@ More details can also be found in your control room's API docs @ https://your-co
|
|
|
45
45
|
- [token](#token)
|
|
46
46
|
- [profile](#profile)
|
|
47
47
|
- [updateProfile](#updateprofile)
|
|
48
|
+
- [createImageUpload](#createimageupload)
|
|
48
49
|
- [recommendations](#recommendations)
|
|
49
50
|
- [report](#report)
|
|
50
51
|
- [submit](#submit)
|
|
@@ -236,6 +237,43 @@ await client.user.updateProfile({
|
|
|
236
237
|
|
|
237
238
|
---
|
|
238
239
|
|
|
240
|
+
#### createImageUpload
|
|
241
|
+
|
|
242
|
+
Create an image upload, such as the value of an image custom-attribute. Returns both a presigned `uploadUrl` to send the bytes to and the stable `publicUrl` the image resolves to once uploaded. Your app uploads the bytes directly to `uploadUrl`, then stores `publicUrl` in the relevant `customAttributes` field via `updateProfile`.
|
|
243
|
+
|
|
244
|
+
```typescript
|
|
245
|
+
client.user.createImageUpload(contentType: string): Promise<{ uploadUrl: string; publicUrl: string }>
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
##### Parameters
|
|
249
|
+
|
|
250
|
+
- `contentType` (required): MIME type of the image, e.g. `image/png` or `image/jpeg`
|
|
251
|
+
|
|
252
|
+
##### Returns
|
|
253
|
+
|
|
254
|
+
- `Promise<{ uploadUrl, publicUrl }>`: `uploadUrl` is a short-lived presigned `PUT` URL for the bytes; `publicUrl` is where the image is served once uploaded
|
|
255
|
+
|
|
256
|
+
##### Example
|
|
257
|
+
|
|
258
|
+
```typescript
|
|
259
|
+
const file = /* a File or Blob from an input */;
|
|
260
|
+
const { uploadUrl, publicUrl } = await client.user.createImageUpload(file.type);
|
|
261
|
+
|
|
262
|
+
// Upload the bytes yourself so it works on your platform (browser, Node, Expo).
|
|
263
|
+
await fetch(uploadUrl, {
|
|
264
|
+
method: 'PUT',
|
|
265
|
+
headers: { 'Content-Type': file.type },
|
|
266
|
+
body: file,
|
|
267
|
+
});
|
|
268
|
+
|
|
269
|
+
// Persist the public URL on the profile.
|
|
270
|
+
await client.user.updateProfile({ customAttributes: { avatar: publicUrl } });
|
|
271
|
+
```
|
|
272
|
+
|
|
273
|
+
The upload itself is left to the caller, so the SDK stays free of any platform-specific `Blob`/`fetch` handling.
|
|
274
|
+
|
|
275
|
+
---
|
|
276
|
+
|
|
239
277
|
#### recommendations
|
|
240
278
|
|
|
241
279
|
Get recommended articles for the authenticated user.
|
|
@@ -764,7 +802,7 @@ Data methods require authentication. Call `client.user.authenticate()` before us
|
|
|
764
802
|
|
|
765
803
|
#### assets
|
|
766
804
|
|
|
767
|
-
Fetch assets by internal IDs
|
|
805
|
+
Fetch assets by internal IDs, external IDs, or source URLs, and return requested fields.
|
|
768
806
|
|
|
769
807
|
```typescript
|
|
770
808
|
client.data.assets(options: AssetsRequest): Promise<AssetsResponse>
|
|
@@ -772,8 +810,11 @@ client.data.assets(options: AssetsRequest): Promise<AssetsResponse>
|
|
|
772
810
|
|
|
773
811
|
##### Parameters
|
|
774
812
|
|
|
775
|
-
|
|
776
|
-
|
|
813
|
+
Provide exactly one of `assetIds`, `externalIds`, or `sourceUrls`.
|
|
814
|
+
|
|
815
|
+
- `options.assetIds`: List of BitBitPress asset IDs to fetch
|
|
816
|
+
- `options.externalIds`: List of source-system external IDs to fetch
|
|
817
|
+
- `options.sourceUrls`: List of canonical source URLs (article permalinks) to resolve to assets
|
|
777
818
|
- `options.assetFields` (required): Asset fields to return (dot or bracket notation, e.g. `tags[0]`, `images[1].src`). Allowed: `assetId`, `title`, `tags`, `images`, `videos`, `audios`, `publishedAt`, `externalId`, `externalData`, `assetType`, `sourceUrl`, `dataSource.name`, and subfields. Empty array returns objects with only `assetId`.
|
|
778
819
|
|
|
779
820
|
##### Returns
|
|
@@ -791,6 +832,12 @@ const { assets } = await client.data.assets({
|
|
|
791
832
|
});
|
|
792
833
|
|
|
793
834
|
console.log('Assets:', assets);
|
|
835
|
+
|
|
836
|
+
// Resolve assets by their public URL (e.g. a link in article content)
|
|
837
|
+
const { assets: linked } = await client.data.assets({
|
|
838
|
+
sourceUrls: ['https://example.com/some-article/'],
|
|
839
|
+
assetFields: ['assetId', 'title'],
|
|
840
|
+
});
|
|
794
841
|
```
|
|
795
842
|
|
|
796
843
|
---
|
|
@@ -995,10 +1042,12 @@ Request body for POST `/v1/data/assets`.
|
|
|
995
1042
|
type AssetsRequest = {
|
|
996
1043
|
assetIds?: string[];
|
|
997
1044
|
externalIds?: string[];
|
|
1045
|
+
sourceUrls?: string[];
|
|
998
1046
|
assetFields: string[];
|
|
999
1047
|
} & (
|
|
1000
|
-
| { assetIds: string[]; externalIds?: string[] }
|
|
1001
|
-
| { assetIds?: string[]; externalIds: string[] }
|
|
1048
|
+
| { assetIds: string[]; externalIds?: string[]; sourceUrls?: string[] }
|
|
1049
|
+
| { assetIds?: string[]; externalIds: string[]; sourceUrls?: string[] }
|
|
1050
|
+
| { assetIds?: string[]; externalIds?: string[]; sourceUrls: string[] }
|
|
1002
1051
|
);
|
|
1003
1052
|
```
|
|
1004
1053
|
|
package/dist/data/assets.d.ts
CHANGED
|
@@ -4,9 +4,15 @@ type OpenApiAssetsRequest = paths['/v1/data/assets']['post']['requestBody']['con
|
|
|
4
4
|
export type AssetsRequest = OpenApiAssetsRequest & ({
|
|
5
5
|
assetIds: string[];
|
|
6
6
|
externalIds?: string[];
|
|
7
|
+
sourceUrls?: string[];
|
|
7
8
|
} | {
|
|
8
9
|
assetIds?: string[];
|
|
9
10
|
externalIds: string[];
|
|
11
|
+
sourceUrls?: string[];
|
|
12
|
+
} | {
|
|
13
|
+
assetIds?: string[];
|
|
14
|
+
externalIds?: string[];
|
|
15
|
+
sourceUrls: string[];
|
|
10
16
|
});
|
|
11
17
|
export type AssetsResponse = paths['/v1/data/assets']['post']['responses'][200]['content']['application/json']['data'];
|
|
12
18
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../../src/data/assets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAGnD,KAAK,oBAAoB,GACvB,KAAK,CAAC,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAEjF,MAAM,MAAM,aAAa,GAAG,oBAAoB,GAC9C,
|
|
1
|
+
{"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../../src/data/assets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAGnD,KAAK,oBAAoB,GACvB,KAAK,CAAC,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAEjF,MAAM,MAAM,aAAa,GAAG,oBAAoB,GAC9C,CACI;IAAE,QAAQ,EAAE,MAAM,EAAE,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;CAAE,GACrE;IAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IAAC,WAAW,EAAE,MAAM,EAAE,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;CAAE,GACrE;IAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IAAC,UAAU,EAAE,MAAM,EAAE,CAAA;CAAE,CACxE,CAAC;AAEJ,MAAM,MAAM,cAAc,GACxB,KAAK,CAAC,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5F;;;;;;GAMG;AACH,wBAAsB,MAAM,CAC1B,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,cAAc,CAAC,CAYzB"}
|
package/dist/data/assets.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assets.js","sourceRoot":"","sources":["../../src/data/assets.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"assets.js","sourceRoot":"","sources":["../../src/data/assets.ts"],"names":[],"mappings":";;AAwBA,wBAeC;AArCD,8CAA4C;AAe5C;;;;;;GAMG;AACI,KAAK,UAAU,MAAM,CAC1B,MAAqB,EACrB,OAAsB;IAEtB,MAAM,QAAQ,GAAG,MAAM,IAAA,wBAAW,EAAiB,MAAM,EAAE;QACzD,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,iBAAiB;QACvB,IAAI,EAAE,OAAO;KACd,CAAC,CAAC;IAEH,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,MAAM,IAAI,KAAK,CAAC,6CAA6C,CAAC,CAAC;IACjE,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
|
@@ -436,6 +436,120 @@ export interface paths {
|
|
|
436
436
|
patch?: never;
|
|
437
437
|
trace?: never;
|
|
438
438
|
};
|
|
439
|
+
"/v1/user/images/upload-url": {
|
|
440
|
+
parameters: {
|
|
441
|
+
query?: never;
|
|
442
|
+
header?: never;
|
|
443
|
+
path?: never;
|
|
444
|
+
cookie?: never;
|
|
445
|
+
};
|
|
446
|
+
get?: never;
|
|
447
|
+
put?: never;
|
|
448
|
+
/**
|
|
449
|
+
* Images - Create Upload URL
|
|
450
|
+
* @description **POST** `/v1/user/images/upload-url` Returns a presigned URL for the authenticated app user to upload an image (e.g. the value of an image custom-attribute). Upload the bytes with `PUT <uploadUrl>` and `Content-Type` set, then store the returned `publicUrl` in the relevant `customAttributes` field via `PUT /v1/user/profile`.
|
|
451
|
+
*/
|
|
452
|
+
post: {
|
|
453
|
+
parameters: {
|
|
454
|
+
query?: never;
|
|
455
|
+
header: {
|
|
456
|
+
/** @description Bearer token for authentication */
|
|
457
|
+
authorization: string;
|
|
458
|
+
};
|
|
459
|
+
path?: never;
|
|
460
|
+
cookie?: never;
|
|
461
|
+
};
|
|
462
|
+
requestBody: {
|
|
463
|
+
content: {
|
|
464
|
+
"application/json": {
|
|
465
|
+
/** @description MIME type of the image being uploaded, e.g. `image/png`, `image/jpeg`. */
|
|
466
|
+
contentType: string;
|
|
467
|
+
};
|
|
468
|
+
};
|
|
469
|
+
};
|
|
470
|
+
responses: {
|
|
471
|
+
/** @description Successful response */
|
|
472
|
+
200: {
|
|
473
|
+
headers: {
|
|
474
|
+
[name: string]: unknown;
|
|
475
|
+
};
|
|
476
|
+
content: {
|
|
477
|
+
"application/json": {
|
|
478
|
+
/** @example true */
|
|
479
|
+
success: boolean;
|
|
480
|
+
data: {
|
|
481
|
+
/** @description Presigned S3 PUT URL. Expires in 1 hour. */
|
|
482
|
+
uploadUrl: string;
|
|
483
|
+
/** @description Stable public URL the image resolves to once the PUT succeeds. */
|
|
484
|
+
publicUrl: string;
|
|
485
|
+
};
|
|
486
|
+
};
|
|
487
|
+
};
|
|
488
|
+
};
|
|
489
|
+
/** @description Bad request - missing or invalid parameters */
|
|
490
|
+
400: {
|
|
491
|
+
headers: {
|
|
492
|
+
[name: string]: unknown;
|
|
493
|
+
};
|
|
494
|
+
content: {
|
|
495
|
+
"application/json": {
|
|
496
|
+
/** @example Bad request */
|
|
497
|
+
error?: string;
|
|
498
|
+
};
|
|
499
|
+
};
|
|
500
|
+
};
|
|
501
|
+
/** @description Unauthorized errors */
|
|
502
|
+
401: {
|
|
503
|
+
headers: {
|
|
504
|
+
[name: string]: unknown;
|
|
505
|
+
};
|
|
506
|
+
content: {
|
|
507
|
+
"application/json": {
|
|
508
|
+
/**
|
|
509
|
+
* @example Unauthorized: No authentication token provided
|
|
510
|
+
* @enum {string}
|
|
511
|
+
*/
|
|
512
|
+
error?: "Unauthorized: No authentication token provided" | "Unauthorized: Token has expired" | "Unauthorized: Invalid token" | "Unauthorized: Authentication failed";
|
|
513
|
+
};
|
|
514
|
+
};
|
|
515
|
+
};
|
|
516
|
+
/** @description Forbidden errors */
|
|
517
|
+
403: {
|
|
518
|
+
headers: {
|
|
519
|
+
[name: string]: unknown;
|
|
520
|
+
};
|
|
521
|
+
content: {
|
|
522
|
+
"application/json": {
|
|
523
|
+
/**
|
|
524
|
+
* @example Forbidden: Subscription required
|
|
525
|
+
* @enum {string}
|
|
526
|
+
*/
|
|
527
|
+
error: "Forbidden: Subscription required";
|
|
528
|
+
};
|
|
529
|
+
};
|
|
530
|
+
};
|
|
531
|
+
/** @description Internal server error */
|
|
532
|
+
500: {
|
|
533
|
+
headers: {
|
|
534
|
+
[name: string]: unknown;
|
|
535
|
+
};
|
|
536
|
+
content: {
|
|
537
|
+
"application/json": {
|
|
538
|
+
/** @example false */
|
|
539
|
+
success?: boolean;
|
|
540
|
+
/** @example Internal server error: An unknown error occurred */
|
|
541
|
+
error?: string;
|
|
542
|
+
};
|
|
543
|
+
};
|
|
544
|
+
};
|
|
545
|
+
};
|
|
546
|
+
};
|
|
547
|
+
delete?: never;
|
|
548
|
+
options?: never;
|
|
549
|
+
head?: never;
|
|
550
|
+
patch?: never;
|
|
551
|
+
trace?: never;
|
|
552
|
+
};
|
|
439
553
|
"/v1/user/recommendations": {
|
|
440
554
|
parameters: {
|
|
441
555
|
query?: never;
|
|
@@ -2366,14 +2480,17 @@ export interface paths {
|
|
|
2366
2480
|
put?: never;
|
|
2367
2481
|
/**
|
|
2368
2482
|
* Data - Get Assets
|
|
2369
|
-
* @description **POST** `/v1/data/assets` Fetches assets by internal
|
|
2483
|
+
* @description **POST** `/v1/data/assets` Fetches assets by internal ID, external ID, or source URL and returns requested fields.
|
|
2484
|
+
*
|
|
2485
|
+
* Provide exactly one of `assetIds`, `externalIds`, or `sourceUrls`.
|
|
2370
2486
|
*
|
|
2371
2487
|
* #### Request body
|
|
2372
2488
|
*
|
|
2373
2489
|
* | Field | Type | Required | Description |
|
|
2374
2490
|
* |-------|------|----------|-------------|
|
|
2375
|
-
* | `assetIds` | string[] |
|
|
2376
|
-
* | `externalIds` | string[] |
|
|
2491
|
+
* | `assetIds` | string[] | one of the three | List of internal asset IDs to fetch |
|
|
2492
|
+
* | `externalIds` | string[] | one of the three | List of external IDs to fetch |
|
|
2493
|
+
* | `sourceUrls` | string[] | one of the three | List of source URLs (article permalinks) to resolve to assets |
|
|
2377
2494
|
* | `assetFields` | string[] | yes | Fields to return (dot or bracket notation, e.g. tags[0], images[1].src). Allowed: assetId, title, tags, images, videos, publishedAt, externalId, externalData, sourceUrl, dataSource.name, and subfields. Empty array returns objects with only `assetId`. `externalData`'s subfields are unique to your source data. |
|
|
2378
2495
|
*/
|
|
2379
2496
|
post: {
|
|
@@ -2393,9 +2510,11 @@ export interface paths {
|
|
|
2393
2510
|
assetIds?: string[];
|
|
2394
2511
|
/** @description List of external IDs to fetch */
|
|
2395
2512
|
externalIds?: string[];
|
|
2513
|
+
/** @description List of source URLs (article permalinks) to resolve to assets */
|
|
2514
|
+
sourceUrls?: string[];
|
|
2396
2515
|
/** @description Asset fields to return (dot or bracket notation). Allowed: assetId, title, tags, images, videos, publishedAt, externalId, externalData, assetType, sourceUrl, dataSource.name, and subfields. Empty array returns objects with only assetId. */
|
|
2397
2516
|
assetFields: string[];
|
|
2398
|
-
} & (unknown | unknown);
|
|
2517
|
+
} & (unknown | unknown | unknown);
|
|
2399
2518
|
};
|
|
2400
2519
|
};
|
|
2401
2520
|
responses: {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { paths } from '../generated/openapi.js';
|
|
2
|
+
import type { RequestConfig } from '../request.js';
|
|
3
|
+
export type ImageUploadRequest = paths['/v1/user/images/upload-url']['post']['requestBody']['content']['application/json'];
|
|
4
|
+
export type ImageUploadResponse = paths['/v1/user/images/upload-url']['post']['responses'][200]['content']['application/json']['data'];
|
|
5
|
+
/**
|
|
6
|
+
* Create an image upload: returns both the presigned `uploadUrl` to PUT the bytes to and the stable
|
|
7
|
+
* `publicUrl` the image resolves to once uploaded (e.g. the value of an image custom-attribute).
|
|
8
|
+
*
|
|
9
|
+
* The host app then uploads the bytes with `PUT <uploadUrl>` (setting `Content-Type`) — the upload
|
|
10
|
+
* is left to the caller so it can use its platform's own fetch/Blob handling (browser, Node, Expo) —
|
|
11
|
+
* and stores the returned `publicUrl` in the relevant `customAttributes` field via `updateProfile`.
|
|
12
|
+
*
|
|
13
|
+
* @param config - Request configuration with base URL, timeout, fetch, and optional token
|
|
14
|
+
* @param contentType - MIME type of the image, e.g. `image/png`
|
|
15
|
+
* @returns Promise resolving with `{ uploadUrl, publicUrl }`
|
|
16
|
+
*/
|
|
17
|
+
export declare function createImageUpload(config: RequestConfig, contentType: string): Promise<NonNullable<ImageUploadResponse>>;
|
|
18
|
+
//# sourceMappingURL=images.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"images.d.ts","sourceRoot":"","sources":["../../src/user/images.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAGnD,MAAM,MAAM,kBAAkB,GAC5B,KAAK,CAAC,4BAA4B,CAAC,CAAC,MAAM,CAAC,CAAC,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAE5F,MAAM,MAAM,mBAAmB,GAC7B,KAAK,CAAC,4BAA4B,CAAC,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEvG;;;;;;;;;;;GAWG;AACH,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,aAAa,EACrB,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,WAAW,CAAC,mBAAmB,CAAC,CAAC,CAa3C"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createImageUpload = createImageUpload;
|
|
4
|
+
const request_js_1 = require("../request.js");
|
|
5
|
+
/**
|
|
6
|
+
* Create an image upload: returns both the presigned `uploadUrl` to PUT the bytes to and the stable
|
|
7
|
+
* `publicUrl` the image resolves to once uploaded (e.g. the value of an image custom-attribute).
|
|
8
|
+
*
|
|
9
|
+
* The host app then uploads the bytes with `PUT <uploadUrl>` (setting `Content-Type`) — the upload
|
|
10
|
+
* is left to the caller so it can use its platform's own fetch/Blob handling (browser, Node, Expo) —
|
|
11
|
+
* and stores the returned `publicUrl` in the relevant `customAttributes` field via `updateProfile`.
|
|
12
|
+
*
|
|
13
|
+
* @param config - Request configuration with base URL, timeout, fetch, and optional token
|
|
14
|
+
* @param contentType - MIME type of the image, e.g. `image/png`
|
|
15
|
+
* @returns Promise resolving with `{ uploadUrl, publicUrl }`
|
|
16
|
+
*/
|
|
17
|
+
async function createImageUpload(config, contentType) {
|
|
18
|
+
const type = contentType.trim();
|
|
19
|
+
if (!type)
|
|
20
|
+
throw new Error('createImageUpload: a content type is required');
|
|
21
|
+
const response = await (0, request_js_1.makeRequest)(config, {
|
|
22
|
+
method: 'POST',
|
|
23
|
+
path: '/v1/user/images/upload-url',
|
|
24
|
+
body: { contentType: type },
|
|
25
|
+
});
|
|
26
|
+
if (!response) {
|
|
27
|
+
throw new Error('Failed to create image upload URL: no data in response');
|
|
28
|
+
}
|
|
29
|
+
return response;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=images.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"images.js","sourceRoot":"","sources":["../../src/user/images.ts"],"names":[],"mappings":";;AAsBA,8CAgBC;AApCD,8CAA4C;AAQ5C;;;;;;;;;;;GAWG;AACI,KAAK,UAAU,iBAAiB,CACrC,MAAqB,EACrB,WAAmB;IAEnB,MAAM,IAAI,GAAG,WAAW,CAAC,IAAI,EAAE,CAAC;IAChC,IAAI,CAAC,IAAI;QAAE,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAC;IAE5E,MAAM,QAAQ,GAAG,MAAM,IAAA,wBAAW,EAAsB,MAAM,EAAE;QAC9D,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,4BAA4B;QAClC,IAAI,EAAE,EAAE,WAAW,EAAE,IAAI,EAA+B;KACzD,CAAC,CAAC;IACH,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,MAAM,IAAI,KAAK,CAAC,wDAAwD,CAAC,CAAC;IAC5E,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
package/dist/user/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { AuthStore } from '../auth.js';
|
|
2
2
|
import type { RequestConfig } from '../request.js';
|
|
3
3
|
import { type AssetEngagementRequest, type AssetEngagementResponse } from './assetEngagement.js';
|
|
4
|
+
import { type ImageUploadResponse } from './images.js';
|
|
4
5
|
import { type InteractionResponseRequest, type InteractionResponseResponse, type InteractionsRequest, type InteractionsResponse } from './interaction.js';
|
|
5
6
|
import { type ProfileResponse, type ProfileUpdateRequest } from './profile.js';
|
|
6
7
|
import { type RecommendationsRequest, type RecommendationsResponse } from './recommendations.js';
|
|
@@ -48,6 +49,16 @@ export interface UserMethods {
|
|
|
48
49
|
* @returns Promise that resolves with updated profile data
|
|
49
50
|
*/
|
|
50
51
|
updateProfile(options: ProfileUpdateRequest): Promise<NonNullable<ProfileResponse>>;
|
|
52
|
+
/**
|
|
53
|
+
* Create an image upload: returns both the presigned `uploadUrl` to PUT the bytes to and the stable
|
|
54
|
+
* `publicUrl` the image resolves to once uploaded (e.g. the value of an image custom-attribute).
|
|
55
|
+
* Upload the bytes with `PUT <uploadUrl>`, then store the returned `publicUrl` in the relevant
|
|
56
|
+
* `customAttributes` field via {@link updateProfile}.
|
|
57
|
+
*
|
|
58
|
+
* @param contentType - MIME type of the image, e.g. `image/png`
|
|
59
|
+
* @returns Promise resolving with `{ uploadUrl, publicUrl }`
|
|
60
|
+
*/
|
|
61
|
+
createImageUpload(contentType: string): Promise<NonNullable<ImageUploadResponse>>;
|
|
51
62
|
/**
|
|
52
63
|
* Retrieve recommended articles for the authenticated user based on their interests.
|
|
53
64
|
*
|
package/dist/user/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/user/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EACL,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAE7B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAEL,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAChC,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EAE1B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAEL,KAAK,eAAe,EACpB,KAAK,oBAAoB,EAE1B,MAAM,cAAc,C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CAAC,MAAM,CAAC,CAAC;IACnF;;;;;;;OAOG;IACH,qBAAqB,CAAC,iBAAiB,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,qBAAqB,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CAChG;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,aAAa,EACrB,sBAAsB,GAAE,MAAY,EACpC,kBAAkB,GAAE,MAAY,GAC/B,WAAW,CA6Fb"}
|
package/dist/user/index.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createUserMethods = createUserMethods;
|
|
4
4
|
const assetEngagement_js_1 = require("./assetEngagement.js");
|
|
5
|
+
const images_js_1 = require("./images.js");
|
|
5
6
|
const interaction_js_1 = require("./interaction.js");
|
|
6
7
|
const profile_js_1 = require("./profile.js");
|
|
7
8
|
const recommendations_js_1 = require("./recommendations.js");
|
|
@@ -31,6 +32,7 @@ function createUserMethods(authStore, config, synthesizeBatchTimeout = 250, sign
|
|
|
31
32
|
token: (ssoToken) => (0, token_js_1.exchangeToken)(config, ssoToken),
|
|
32
33
|
profile: () => getConfigWithToken().then(profile_js_1.getProfile),
|
|
33
34
|
updateProfile: (options) => getConfigWithToken().then((cfg) => (0, profile_js_1.putProfile)(cfg, options)),
|
|
35
|
+
createImageUpload: (contentType) => getConfigWithToken().then((cfg) => (0, images_js_1.createImageUpload)(cfg, contentType)),
|
|
34
36
|
recommendations: (options) => getConfigWithToken().then((cfg) => (0, recommendations_js_1.getRecommendations)(cfg, options)),
|
|
35
37
|
assetEngagement: (options) => getConfigWithToken().then((cfg) => (0, assetEngagement_js_1.getAssetEngagement)(cfg, options)),
|
|
36
38
|
report: (options) => getConfigWithToken().then((cfg) => (0, report_js_1.reportBit)(cfg, options)),
|
package/dist/user/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/user/index.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/user/index.ts"],"names":[],"mappings":";;AA0TA,8CAkGC;AA1ZD,6DAI8B;AAC9B,2CAA0E;AAC1E,qDAO0B;AAC1B,6CAKsB;AACtB,6DAI8B;AAC9B,2CAAiF;AACjF,2CAAiG;AACjG,uEAA+D;AAC/D,qDAQ0B;AAC1B,mEAA4F;AAC5F,2DAK6B;AAC7B,mDAAgG;AAChG,+EAGuC;AACvC,uDAO2B;AAC3B,yCAAkF;AAClF,yCAMoB;AACpB,qEAA6D;AAoP7D;;GAEG;AACH,SAAgB,iBAAiB,CAC/B,SAAoB,EACpB,MAAqB,EACrB,yBAAiC,GAAG,EACpC,qBAA6B,GAAG;IAEhC,MAAM,kBAAkB,GAAG,SAAS,CAAC,kBAAkB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IAExE,MAAM,sBAAsB,GAAG,IAAI,oDAAsB,CACvD,kBAAkB,EAClB,sBAAsB,CACvB,CAAC;IACF,MAAM,kBAAkB,GAAG,IAAI,4CAAkB,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAAC;IAC1F,MAAM,iBAAiB,GAAG,IAAI,0CAAiB,CAC7C,kBAAkB,EAClB,kBAAkB,EAClB,uBAAY,CACb,CAAC;IACF,MAAM,sBAAsB,GAAG,IAAI,0CAAiB,CAClD,kBAAkB,EAClB,kBAAkB,EAClB,4BAAiB,CAClB,CAAC;IAEF,OAAO;QACL,YAAY,EAAE,SAAS,CAAC,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC;QAEpD,KAAK,EAAE,CAAC,QAAkC,EAAE,EAAE,CAAC,IAAA,wBAAa,EAAC,MAAM,EAAE,QAAQ,CAAC;QAE9E,OAAO,EAAE,GAAG,EAAE,CAAC,kBAAkB,EAAE,CAAC,IAAI,CAAC,uBAAU,CAAC;QAEpD,aAAa,EAAE,CAAC,OAA6B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