@wtfalch/files 0.8.0 → 0.9.1

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 CHANGED
@@ -4,6 +4,10 @@ Public client SDK and API types for the Files service. Requires Node 22+ or a
4
4
  browser with Fetch and AbortSignal.timeout support. The client has no runtime
5
5
  package dependencies.
6
6
 
7
+ ## Status
8
+
9
+ Published: yes, v0.9.1, 2026-09-28.
10
+
7
11
  ```sh
8
12
  npm install @wtfalch/files
9
13
  ```
@@ -344,6 +348,10 @@ for, so a reader falls back to the id.
344
348
  host; use `updateOrganisationCeiling()` to change them. Byte and money totals
345
349
  remain decimal strings, including values above JavaScript's safe integer range.
346
350
 
351
+ Pass `name` and `owner` (a subject id) to onboard Agora for a new organisation.
352
+ The 201 result then carries `agoraKey: { id, secret }` once. Store the secret at
353
+ once: a repeat call returns 200 without it.
354
+
347
355
  For the operator application's existing transport, compose the SDK on the server:
348
356
 
349
357
  ```ts
package/dist/types.d.ts CHANGED
@@ -206,7 +206,8 @@ export interface OrganisationShare {
206
206
  expiresAt: string | null;
207
207
  createdAt: string;
208
208
  }
209
- /** Operator management contracts (ADR 0021 signed requests only). A GB-day
209
+ /** Operator management contracts (app-template ADR 0021 signed requests
210
+ * only). A GB-day
210
211
  * rate is a small price and travels as a JSON number; ceilings, usage and
211
212
  * spend are cumulative totals and travel as bigint-safe strings, `null`
212
213
  * meaning uncapped. */
@@ -254,10 +255,19 @@ export interface ProvisionOrganisationInput {
254
255
  ceilingMicros: string | null;
255
256
  /** Omitted or `null`: provisioned with no share domain. */
256
257
  shareHost?: string | null;
258
+ /** With `owner`: onboards Agora for the new organisation. */
259
+ name?: string;
260
+ /** Subject id of the organisation's first, permanent owner. */
261
+ owner?: string;
257
262
  }
258
263
  export interface ProvisionOrganisationResult extends OrganisationSummary {
259
264
  /** False when already provisioned: existing ceilings and share host were retained. */
260
265
  created: boolean;
266
+ /** Agora's service key, returned once on a 201 that passed `name` and `owner`. */
267
+ agoraKey?: {
268
+ id: string;
269
+ secret: string;
270
+ };
261
271
  }
262
272
  export interface UpdateOrganisationCeilingInput {
263
273
  ceilingBytes?: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wtfalch/files",
3
- "version": "0.8.0",
3
+ "version": "0.9.1",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "Public client SDK and API types for the Files service.",