@go-labs-sg/gosh 0.7.0 → 0.8.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
@@ -97,6 +97,26 @@ gosh event create-from-template \
97
97
  --allow-state-change
98
98
  ```
99
99
 
100
+ ### Organization provisioning
101
+
102
+ Only global administrators can provision an organization. `gosh organization create`
103
+ requires `name`, `slug`, and `ownerEmail`; it creates the organization with a
104
+ pending first-owner invitation and emails that address. The provisioner does not
105
+ become a member or owner. The invited person must sign in with that email and
106
+ accept the invitation before they can manage the organization.
107
+
108
+ ```bash
109
+ gosh organization create \
110
+ --input '{"name":"Acme Events","slug":"acme-events","ownerEmail":"owner@example.com"}' \
111
+ --target acme-events \
112
+ --allow-state-change \
113
+ --allow-email \
114
+ --allow-external-write
115
+ ```
116
+
117
+ The response includes the pending owner invitation and its delivery status; do
118
+ not treat the provisioner as the customer owner.
119
+
100
120
  ### Shared stations and team routes
101
121
 
102
122
  Create each station once for an event. In a team event, link the same station to
@@ -2443,13 +2443,13 @@
2443
2443
  "summary": "Watch submission review queue changes as newline-delimited JSON."
2444
2444
  },
2445
2445
  {
2446
- "effects": ["state-change"],
2446
+ "effects": ["state-change", "email", "external-write"],
2447
2447
  "input": "json",
2448
2448
  "operation": "mutation",
2449
2449
  "path": ["organization", "create"],
2450
2450
  "procedure": "organization.create",
2451
2451
  "requiresAuth": true,
2452
- "summary": "Create an organization.",
2452
+ "summary": "Provision an organization and email its pending first owner invitation.",
2453
2453
  "targetKeys": ["slug", "name"]
2454
2454
  },
2455
2455
  {
@@ -940,11 +940,11 @@ Watch submission review queue changes as newline-delimited JSON.
940
940
 
941
941
  ## `gosh organization create`
942
942
 
943
- Create an organization.
943
+ Provision an organization and email its pending first owner invitation.
944
944
 
945
945
  - Authentication: browser-authenticated CLI session required
946
946
  - Input: `--input '<json>'` required
947
- - Effects: state-change
947
+ - Effects: state-change, email, external-write
948
948
 
949
949
  ## `gosh organization update`
950
950
 
package/dist/index.js CHANGED
@@ -20666,7 +20666,7 @@ var commands = [
20666
20666
  mutation(["player", "mission", "upload-abort"], "event.abortMissionMediaMultipartUpload", "Abort a low-level multipart mission upload.", ["state-change", "delete", "external-write"]),
20667
20667
  subscription(["player", "watch"], "event.onPlayerEventChanged", "Watch player event changes as newline-delimited JSON."),
20668
20668
  subscription(["submission", "watch"], "event.onSubmissionReviewQueueChanged", "Watch submission review queue changes as newline-delimited JSON."),
20669
- mutation(["organization", "create"], "organization.create", "Create an organization.", ["state-change"]),
20669
+ mutation(["organization", "create"], "organization.create", "Provision an organization and email its pending first owner invitation.", ["state-change", "email", "external-write"]),
20670
20670
  mutation(["organization", "update"], "organization.update", "Update an organization.", ["state-change"]),
20671
20671
  mutation(["organization", "slug-check"], "organization.checkSlug", "Check whether an organization slug is available.", []),
20672
20672
  query(["organization", "access-check"], "organization.checkOrganizationAccess", "Check access to an organization."),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@go-labs-sg/gosh",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "description": "GOSH CLI for organizers and AI agents — manage organizations, events, teams, stations, missions, templates, and live operations through the GOSH API.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",