@wtfalch/files 0.8.0 → 0.9.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/README.md CHANGED
@@ -344,6 +344,10 @@ for, so a reader falls back to the id.
344
344
  host; use `updateOrganisationCeiling()` to change them. Byte and money totals
345
345
  remain decimal strings, including values above JavaScript's safe integer range.
346
346
 
347
+ Pass `name` and `owner` (a subject id) to onboard Agora for a new organisation.
348
+ The 201 result then carries `agoraKey: { id, secret }` once. Store the secret at
349
+ once: a repeat call returns 200 without it.
350
+
347
351
  For the operator application's existing transport, compose the SDK on the server:
348
352
 
349
353
  ```ts
package/dist/types.d.ts CHANGED
@@ -254,10 +254,19 @@ export interface ProvisionOrganisationInput {
254
254
  ceilingMicros: string | null;
255
255
  /** Omitted or `null`: provisioned with no share domain. */
256
256
  shareHost?: string | null;
257
+ /** With `owner`: onboards Agora for the new organisation. */
258
+ name?: string;
259
+ /** Subject id of the organisation's first, permanent owner. */
260
+ owner?: string;
257
261
  }
258
262
  export interface ProvisionOrganisationResult extends OrganisationSummary {
259
263
  /** False when already provisioned: existing ceilings and share host were retained. */
260
264
  created: boolean;
265
+ /** Agora's service key, returned once on a 201 that passed `name` and `owner`. */
266
+ agoraKey?: {
267
+ id: string;
268
+ secret: string;
269
+ };
261
270
  }
262
271
  export interface UpdateOrganisationCeilingInput {
263
272
  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.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "Public client SDK and API types for the Files service.",