@astralform/js 5.0.0 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +5 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -883,6 +883,20 @@ interface ConversationAsset {
|
|
|
883
883
|
* failed or the asset has no stored object.
|
|
884
884
|
*/
|
|
885
885
|
url?: string;
|
|
886
|
+
/**
|
|
887
|
+
* The asset's PERMANENT address. Authorization is resolved per request
|
|
888
|
+
* against the caller's live session, so unlike `url` it never expires — but
|
|
889
|
+
* it needs an `Authorization` header, which a browser will not attach to an
|
|
890
|
+
* `<img src>`. Store and link this one; render from `url`.
|
|
891
|
+
*/
|
|
892
|
+
contentUrl?: string;
|
|
893
|
+
/**
|
|
894
|
+
* A still to show for an asset the browser cannot draw from `url` alone.
|
|
895
|
+
* Present only for video: an `<img src>` pointed at an mp4 renders nothing,
|
|
896
|
+
* so a video row would otherwise have no thumbnail. Signed and expiring
|
|
897
|
+
* exactly like `url` — display, not identity, so never store it.
|
|
898
|
+
*/
|
|
899
|
+
posterUrl?: string;
|
|
886
900
|
createdAt: string;
|
|
887
901
|
}
|
|
888
902
|
|
package/dist/index.d.ts
CHANGED
|
@@ -883,6 +883,20 @@ interface ConversationAsset {
|
|
|
883
883
|
* failed or the asset has no stored object.
|
|
884
884
|
*/
|
|
885
885
|
url?: string;
|
|
886
|
+
/**
|
|
887
|
+
* The asset's PERMANENT address. Authorization is resolved per request
|
|
888
|
+
* against the caller's live session, so unlike `url` it never expires — but
|
|
889
|
+
* it needs an `Authorization` header, which a browser will not attach to an
|
|
890
|
+
* `<img src>`. Store and link this one; render from `url`.
|
|
891
|
+
*/
|
|
892
|
+
contentUrl?: string;
|
|
893
|
+
/**
|
|
894
|
+
* A still to show for an asset the browser cannot draw from `url` alone.
|
|
895
|
+
* Present only for video: an `<img src>` pointed at an mp4 renders nothing,
|
|
896
|
+
* so a video row would otherwise have no thumbnail. Signed and expiring
|
|
897
|
+
* exactly like `url` — display, not identity, so never store it.
|
|
898
|
+
*/
|
|
899
|
+
posterUrl?: string;
|
|
886
900
|
createdAt: string;
|
|
887
901
|
}
|
|
888
902
|
|
package/dist/index.js
CHANGED
|
@@ -676,6 +676,11 @@ var AstralformClient = class {
|
|
|
676
676
|
// undefined so it matches the `url?: string` type and consumers that
|
|
677
677
|
// check `!== undefined` never receive a null.
|
|
678
678
|
url: raw.url ?? void 0,
|
|
679
|
+
// This mapping is an ALLOWLIST — a field the API returns and this
|
|
680
|
+
// function does not name is dropped silently, and no type error says so.
|
|
681
|
+
// `content_url` shipped that way and was invisible to every consumer.
|
|
682
|
+
contentUrl: raw.content_url ?? void 0,
|
|
683
|
+
posterUrl: raw.poster_url ?? void 0,
|
|
679
684
|
createdAt: raw.created_at
|
|
680
685
|
};
|
|
681
686
|
}
|