@go-labs-sg/gosh 0.1.0 → 0.2.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.js +565 -11
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14950,7 +14950,7 @@ var logoutCliSession = async ({
|
|
|
14950
14950
|
};
|
|
14951
14951
|
// src/api-client.ts
|
|
14952
14952
|
import {
|
|
14953
|
-
|
|
14953
|
+
createTRPCProxyClient,
|
|
14954
14954
|
httpBatchLink,
|
|
14955
14955
|
httpSubscriptionLink,
|
|
14956
14956
|
loggerLink,
|
|
@@ -15069,6 +15069,546 @@ class AuthenticatedEventSource {
|
|
|
15069
15069
|
}
|
|
15070
15070
|
}
|
|
15071
15071
|
|
|
15072
|
+
// src/registry/typed-operations.ts
|
|
15073
|
+
var typedOperations = {
|
|
15074
|
+
"health.status": {
|
|
15075
|
+
kind: "query",
|
|
15076
|
+
invoke: (client, input) => client.health.status.query(input)
|
|
15077
|
+
},
|
|
15078
|
+
"user.getProfile": {
|
|
15079
|
+
kind: "query",
|
|
15080
|
+
invoke: (client, input) => client.user.getProfile.query(input)
|
|
15081
|
+
},
|
|
15082
|
+
"organization.listMine": {
|
|
15083
|
+
kind: "query",
|
|
15084
|
+
invoke: (client, input) => client.organization.listMine.query(input)
|
|
15085
|
+
},
|
|
15086
|
+
"organization.getById": {
|
|
15087
|
+
kind: "query",
|
|
15088
|
+
invoke: (client, input) => client.organization.getById.query(input)
|
|
15089
|
+
},
|
|
15090
|
+
"organization.listMembers": {
|
|
15091
|
+
kind: "query",
|
|
15092
|
+
invoke: (client, input) => client.organization.listMembers.query(input)
|
|
15093
|
+
},
|
|
15094
|
+
"event.list": {
|
|
15095
|
+
kind: "query",
|
|
15096
|
+
invoke: (client, input) => client.event.list.query(input)
|
|
15097
|
+
},
|
|
15098
|
+
"event.getById": {
|
|
15099
|
+
kind: "query",
|
|
15100
|
+
invoke: (client, input) => client.event.getById.query(input)
|
|
15101
|
+
},
|
|
15102
|
+
"event.getAdminSetup": {
|
|
15103
|
+
kind: "query",
|
|
15104
|
+
invoke: (client, input) => client.event.getAdminSetup.query(input)
|
|
15105
|
+
},
|
|
15106
|
+
"event.getAdminParticipants": {
|
|
15107
|
+
kind: "query",
|
|
15108
|
+
invoke: (client, input) => client.event.getAdminParticipants.query(input)
|
|
15109
|
+
},
|
|
15110
|
+
"event.getAdminStationsWorkspace": {
|
|
15111
|
+
kind: "query",
|
|
15112
|
+
invoke: (client, input) => client.event.getAdminStationsWorkspace.query(input)
|
|
15113
|
+
},
|
|
15114
|
+
"event.getAdminTeams": {
|
|
15115
|
+
kind: "query",
|
|
15116
|
+
invoke: (client, input) => client.event.getAdminTeams.query(input)
|
|
15117
|
+
},
|
|
15118
|
+
"event.listSubmissionReviewQueue": {
|
|
15119
|
+
kind: "query",
|
|
15120
|
+
invoke: (client, input) => client.event.listSubmissionReviewQueue.query(input)
|
|
15121
|
+
},
|
|
15122
|
+
"event.requestSubmissionImageExport": {
|
|
15123
|
+
kind: "mutation",
|
|
15124
|
+
invoke: (client, input) => client.event.requestSubmissionImageExport.mutate(input)
|
|
15125
|
+
},
|
|
15126
|
+
"event.listSubmissionImageExports": {
|
|
15127
|
+
kind: "query",
|
|
15128
|
+
invoke: (client, input) => client.event.listSubmissionImageExports.query(input)
|
|
15129
|
+
},
|
|
15130
|
+
"event.getSubmissionImageExportDownload": {
|
|
15131
|
+
kind: "mutation",
|
|
15132
|
+
invoke: (client, input) => client.event.getSubmissionImageExportDownload.mutate(input)
|
|
15133
|
+
},
|
|
15134
|
+
"event.listCompletionAnalytics": {
|
|
15135
|
+
kind: "query",
|
|
15136
|
+
invoke: (client, input) => client.event.listCompletionAnalytics.query(input)
|
|
15137
|
+
},
|
|
15138
|
+
"event.listActivityTimeline": {
|
|
15139
|
+
kind: "query",
|
|
15140
|
+
invoke: (client, input) => client.event.listActivityTimeline.query(input)
|
|
15141
|
+
},
|
|
15142
|
+
"event.listBroadcasts": {
|
|
15143
|
+
kind: "query",
|
|
15144
|
+
invoke: (client, input) => client.event.listBroadcasts.query(input)
|
|
15145
|
+
},
|
|
15146
|
+
"event.listRewards": {
|
|
15147
|
+
kind: "query",
|
|
15148
|
+
invoke: (client, input) => client.event.listRewards.query(input)
|
|
15149
|
+
},
|
|
15150
|
+
"event.listScoreAdjustments": {
|
|
15151
|
+
kind: "query",
|
|
15152
|
+
invoke: (client, input) => client.event.listScoreAdjustments.query(input)
|
|
15153
|
+
},
|
|
15154
|
+
"event.listEventVersions": {
|
|
15155
|
+
kind: "query",
|
|
15156
|
+
invoke: (client, input) => client.event.listEventVersions.query(input)
|
|
15157
|
+
},
|
|
15158
|
+
"event.listResultsExport": {
|
|
15159
|
+
kind: "query",
|
|
15160
|
+
invoke: (client, input) => client.event.listResultsExport.query(input)
|
|
15161
|
+
},
|
|
15162
|
+
"event.create": {
|
|
15163
|
+
kind: "mutation",
|
|
15164
|
+
invoke: (client, input) => client.event.create.mutate(input)
|
|
15165
|
+
},
|
|
15166
|
+
"event.createFromTemplate": {
|
|
15167
|
+
kind: "mutation",
|
|
15168
|
+
invoke: (client, input) => client.event.createFromTemplate.mutate(input)
|
|
15169
|
+
},
|
|
15170
|
+
"event.update": {
|
|
15171
|
+
kind: "mutation",
|
|
15172
|
+
invoke: (client, input) => client.event.update.mutate(input)
|
|
15173
|
+
},
|
|
15174
|
+
"event.updateStatus": {
|
|
15175
|
+
kind: "mutation",
|
|
15176
|
+
invoke: (client, input) => client.event.updateStatus.mutate(input)
|
|
15177
|
+
},
|
|
15178
|
+
"event.addParticipant": {
|
|
15179
|
+
kind: "mutation",
|
|
15180
|
+
invoke: (client, input) => client.event.addParticipant.mutate(input)
|
|
15181
|
+
},
|
|
15182
|
+
"event.addParticipants": {
|
|
15183
|
+
kind: "mutation",
|
|
15184
|
+
invoke: (client, input) => client.event.addParticipants.mutate(input)
|
|
15185
|
+
},
|
|
15186
|
+
"event.deleteParticipants": {
|
|
15187
|
+
kind: "mutation",
|
|
15188
|
+
invoke: (client, input) => client.event.deleteParticipants.mutate(input)
|
|
15189
|
+
},
|
|
15190
|
+
"event.sendParticipantMagicLink": {
|
|
15191
|
+
kind: "mutation",
|
|
15192
|
+
invoke: (client, input) => client.event.sendParticipantMagicLink.mutate(input)
|
|
15193
|
+
},
|
|
15194
|
+
"event.sendParticipantMagicLinks": {
|
|
15195
|
+
kind: "mutation",
|
|
15196
|
+
invoke: (client, input) => client.event.sendParticipantMagicLinks.mutate(input)
|
|
15197
|
+
},
|
|
15198
|
+
"event.upsertCollaborator": {
|
|
15199
|
+
kind: "mutation",
|
|
15200
|
+
invoke: (client, input) => client.event.upsertCollaborator.mutate(input)
|
|
15201
|
+
},
|
|
15202
|
+
"event.removeCollaborator": {
|
|
15203
|
+
kind: "mutation",
|
|
15204
|
+
invoke: (client, input) => client.event.removeCollaborator.mutate(input)
|
|
15205
|
+
},
|
|
15206
|
+
"event.createEventVersion": {
|
|
15207
|
+
kind: "mutation",
|
|
15208
|
+
invoke: (client, input) => client.event.createEventVersion.mutate(input)
|
|
15209
|
+
},
|
|
15210
|
+
"event.rollbackEventVersion": {
|
|
15211
|
+
kind: "mutation",
|
|
15212
|
+
invoke: (client, input) => client.event.rollbackEventVersion.mutate(input)
|
|
15213
|
+
},
|
|
15214
|
+
"event.createStation": {
|
|
15215
|
+
kind: "mutation",
|
|
15216
|
+
invoke: (client, input) => client.event.createStation.mutate(input)
|
|
15217
|
+
},
|
|
15218
|
+
"event.updateStation": {
|
|
15219
|
+
kind: "mutation",
|
|
15220
|
+
invoke: (client, input) => client.event.updateStation.mutate(input)
|
|
15221
|
+
},
|
|
15222
|
+
"event.cloneStation": {
|
|
15223
|
+
kind: "mutation",
|
|
15224
|
+
invoke: (client, input) => client.event.cloneStation.mutate(input)
|
|
15225
|
+
},
|
|
15226
|
+
"event.archiveStation": {
|
|
15227
|
+
kind: "mutation",
|
|
15228
|
+
invoke: (client, input) => client.event.archiveStation.mutate(input)
|
|
15229
|
+
},
|
|
15230
|
+
"event.reorderStations": {
|
|
15231
|
+
kind: "mutation",
|
|
15232
|
+
invoke: (client, input) => client.event.reorderStations.mutate(input)
|
|
15233
|
+
},
|
|
15234
|
+
"event.createMission": {
|
|
15235
|
+
kind: "mutation",
|
|
15236
|
+
invoke: (client, input) => client.event.createMission.mutate(input)
|
|
15237
|
+
},
|
|
15238
|
+
"event.updateMission": {
|
|
15239
|
+
kind: "mutation",
|
|
15240
|
+
invoke: (client, input) => client.event.updateMission.mutate(input)
|
|
15241
|
+
},
|
|
15242
|
+
"event.archiveMission": {
|
|
15243
|
+
kind: "mutation",
|
|
15244
|
+
invoke: (client, input) => client.event.archiveMission.mutate(input)
|
|
15245
|
+
},
|
|
15246
|
+
"event.reorderMissions": {
|
|
15247
|
+
kind: "mutation",
|
|
15248
|
+
invoke: (client, input) => client.event.reorderMissions.mutate(input)
|
|
15249
|
+
},
|
|
15250
|
+
"team.list": {
|
|
15251
|
+
kind: "query",
|
|
15252
|
+
invoke: (client, input) => client.team.list.query(input)
|
|
15253
|
+
},
|
|
15254
|
+
"team.create": {
|
|
15255
|
+
kind: "mutation",
|
|
15256
|
+
invoke: (client, input) => client.team.create.mutate(input)
|
|
15257
|
+
},
|
|
15258
|
+
"team.update": {
|
|
15259
|
+
kind: "mutation",
|
|
15260
|
+
invoke: (client, input) => client.team.update.mutate(input)
|
|
15261
|
+
},
|
|
15262
|
+
"team.assignMember": {
|
|
15263
|
+
kind: "mutation",
|
|
15264
|
+
invoke: (client, input) => client.team.assignMember.mutate(input)
|
|
15265
|
+
},
|
|
15266
|
+
"team.removeMember": {
|
|
15267
|
+
kind: "mutation",
|
|
15268
|
+
invoke: (client, input) => client.team.removeMember.mutate(input)
|
|
15269
|
+
},
|
|
15270
|
+
"team.setPlayMode": {
|
|
15271
|
+
kind: "mutation",
|
|
15272
|
+
invoke: (client, input) => client.team.setPlayMode.mutate(input)
|
|
15273
|
+
},
|
|
15274
|
+
"team.setSubmissionAccess": {
|
|
15275
|
+
kind: "mutation",
|
|
15276
|
+
invoke: (client, input) => client.team.setSubmissionAccess.mutate(input)
|
|
15277
|
+
},
|
|
15278
|
+
"template.list": {
|
|
15279
|
+
kind: "query",
|
|
15280
|
+
invoke: (client, input) => client.template.list.query(input)
|
|
15281
|
+
},
|
|
15282
|
+
"template.getById": {
|
|
15283
|
+
kind: "query",
|
|
15284
|
+
invoke: (client, input) => client.template.getById.query(input)
|
|
15285
|
+
},
|
|
15286
|
+
"template.create": {
|
|
15287
|
+
kind: "mutation",
|
|
15288
|
+
invoke: (client, input) => client.template.create.mutate(input)
|
|
15289
|
+
},
|
|
15290
|
+
"template.update": {
|
|
15291
|
+
kind: "mutation",
|
|
15292
|
+
invoke: (client, input) => client.template.update.mutate(input)
|
|
15293
|
+
},
|
|
15294
|
+
"template.updateMetadata": {
|
|
15295
|
+
kind: "mutation",
|
|
15296
|
+
invoke: (client, input) => client.template.updateMetadata.mutate(input)
|
|
15297
|
+
},
|
|
15298
|
+
"template.delete": {
|
|
15299
|
+
kind: "mutation",
|
|
15300
|
+
invoke: (client, input) => client.template.delete.mutate(input)
|
|
15301
|
+
},
|
|
15302
|
+
"event.createBroadcast": {
|
|
15303
|
+
kind: "mutation",
|
|
15304
|
+
invoke: (client, input) => client.event.createBroadcast.mutate(input)
|
|
15305
|
+
},
|
|
15306
|
+
"event.cancelBroadcast": {
|
|
15307
|
+
kind: "mutation",
|
|
15308
|
+
invoke: (client, input) => client.event.cancelBroadcast.mutate(input)
|
|
15309
|
+
},
|
|
15310
|
+
"event.deleteBroadcast": {
|
|
15311
|
+
kind: "mutation",
|
|
15312
|
+
invoke: (client, input) => client.event.deleteBroadcast.mutate(input)
|
|
15313
|
+
},
|
|
15314
|
+
"event.deliverDueBroadcasts": {
|
|
15315
|
+
kind: "mutation",
|
|
15316
|
+
invoke: (client, input) => client.event.deliverDueBroadcasts.mutate(input)
|
|
15317
|
+
},
|
|
15318
|
+
"event.createReward": {
|
|
15319
|
+
kind: "mutation",
|
|
15320
|
+
invoke: (client, input) => client.event.createReward.mutate(input)
|
|
15321
|
+
},
|
|
15322
|
+
"event.updateReward": {
|
|
15323
|
+
kind: "mutation",
|
|
15324
|
+
invoke: (client, input) => client.event.updateReward.mutate(input)
|
|
15325
|
+
},
|
|
15326
|
+
"event.createScoreAdjustment": {
|
|
15327
|
+
kind: "mutation",
|
|
15328
|
+
invoke: (client, input) => client.event.createScoreAdjustment.mutate(input)
|
|
15329
|
+
},
|
|
15330
|
+
"event.reviewSubmission": {
|
|
15331
|
+
kind: "mutation",
|
|
15332
|
+
invoke: (client, input) => client.event.reviewSubmission.mutate(input)
|
|
15333
|
+
},
|
|
15334
|
+
"event.regenerateResultsPortalShare": {
|
|
15335
|
+
kind: "mutation",
|
|
15336
|
+
invoke: (client, input) => client.event.regenerateResultsPortalShare.mutate(input)
|
|
15337
|
+
},
|
|
15338
|
+
"event.revokeResultsPortalShare": {
|
|
15339
|
+
kind: "mutation",
|
|
15340
|
+
invoke: (client, input) => client.event.revokeResultsPortalShare.mutate(input)
|
|
15341
|
+
},
|
|
15342
|
+
"event.getAdminAnalyticsShell": {
|
|
15343
|
+
kind: "query",
|
|
15344
|
+
invoke: (client, input) => client.event.getAdminAnalyticsShell.query(input)
|
|
15345
|
+
},
|
|
15346
|
+
"event.getAdminCollaborators": {
|
|
15347
|
+
kind: "query",
|
|
15348
|
+
invoke: (client, input) => client.event.getAdminCollaborators.query(input)
|
|
15349
|
+
},
|
|
15350
|
+
"event.getAdminEventHeader": {
|
|
15351
|
+
kind: "query",
|
|
15352
|
+
invoke: (client, input) => client.event.getAdminEventHeader.query(input)
|
|
15353
|
+
},
|
|
15354
|
+
"event.getAdminLaunch": {
|
|
15355
|
+
kind: "query",
|
|
15356
|
+
invoke: (client, input) => client.event.getAdminLaunch.query(input)
|
|
15357
|
+
},
|
|
15358
|
+
"event.getAdminLeaderboard": {
|
|
15359
|
+
kind: "query",
|
|
15360
|
+
invoke: (client, input) => client.event.getAdminLeaderboard.query(input)
|
|
15361
|
+
},
|
|
15362
|
+
"event.getAdminMissionShell": {
|
|
15363
|
+
kind: "query",
|
|
15364
|
+
invoke: (client, input) => client.event.getAdminMissionShell.query(input)
|
|
15365
|
+
},
|
|
15366
|
+
"event.getAdminParticipantImport": {
|
|
15367
|
+
kind: "query",
|
|
15368
|
+
invoke: (client, input) => client.event.getAdminParticipantImport.query(input)
|
|
15369
|
+
},
|
|
15370
|
+
"event.getAdminPreview": {
|
|
15371
|
+
kind: "query",
|
|
15372
|
+
invoke: (client, input) => client.event.getAdminPreview.query(input)
|
|
15373
|
+
},
|
|
15374
|
+
"event.getAdminStationCreate": {
|
|
15375
|
+
kind: "query",
|
|
15376
|
+
invoke: (client, input) => client.event.getAdminStationCreate.query(input)
|
|
15377
|
+
},
|
|
15378
|
+
"event.getAdminStationEditor": {
|
|
15379
|
+
kind: "query",
|
|
15380
|
+
invoke: (client, input) => client.event.getAdminStationEditor.query(input)
|
|
15381
|
+
},
|
|
15382
|
+
"event.getAdminSubmissionFilters": {
|
|
15383
|
+
kind: "query",
|
|
15384
|
+
invoke: (client, input) => client.event.getAdminSubmissionFilters.query(input)
|
|
15385
|
+
},
|
|
15386
|
+
"event.getResultsPortalShare": {
|
|
15387
|
+
kind: "query",
|
|
15388
|
+
invoke: (client, input) => client.event.getResultsPortalShare.query(input)
|
|
15389
|
+
},
|
|
15390
|
+
"event.updateAccess": {
|
|
15391
|
+
kind: "mutation",
|
|
15392
|
+
invoke: (client, input) => client.event.updateAccess.mutate(input)
|
|
15393
|
+
},
|
|
15394
|
+
"event.updateBranding": {
|
|
15395
|
+
kind: "mutation",
|
|
15396
|
+
invoke: (client, input) => client.event.updateBranding.mutate(input)
|
|
15397
|
+
},
|
|
15398
|
+
"event.updateStationAvailability": {
|
|
15399
|
+
kind: "mutation",
|
|
15400
|
+
invoke: (client, input) => client.event.updateStationAvailability.mutate(input)
|
|
15401
|
+
},
|
|
15402
|
+
"event.updateStationImage": {
|
|
15403
|
+
kind: "mutation",
|
|
15404
|
+
invoke: (client, input) => client.event.updateStationImage.mutate(input)
|
|
15405
|
+
},
|
|
15406
|
+
"event.updateStationLocation": {
|
|
15407
|
+
kind: "mutation",
|
|
15408
|
+
invoke: (client, input) => client.event.updateStationLocation.mutate(input)
|
|
15409
|
+
},
|
|
15410
|
+
"event.saveAsTemplate": {
|
|
15411
|
+
kind: "mutation",
|
|
15412
|
+
invoke: (client, input) => client.event.saveAsTemplate.mutate(input)
|
|
15413
|
+
},
|
|
15414
|
+
"event.getJoinDetails": {
|
|
15415
|
+
kind: "query",
|
|
15416
|
+
invoke: (client, input) => client.event.getJoinDetails.query(input)
|
|
15417
|
+
},
|
|
15418
|
+
"event.getPaginatedPlayerLeaderboard": {
|
|
15419
|
+
kind: "query",
|
|
15420
|
+
invoke: (client, input) => client.event.getPaginatedPlayerLeaderboard.query(input)
|
|
15421
|
+
},
|
|
15422
|
+
"event.getPlayerLeaderboard": {
|
|
15423
|
+
kind: "query",
|
|
15424
|
+
invoke: (client, input) => client.event.getPlayerLeaderboard.query(input)
|
|
15425
|
+
},
|
|
15426
|
+
"event.getPlayerMap": {
|
|
15427
|
+
kind: "query",
|
|
15428
|
+
invoke: (client, input) => client.event.getPlayerMap.query(input)
|
|
15429
|
+
},
|
|
15430
|
+
"event.getPlayerShell": {
|
|
15431
|
+
kind: "query",
|
|
15432
|
+
invoke: (client, input) => client.event.getPlayerShell.query(input)
|
|
15433
|
+
},
|
|
15434
|
+
"event.getPlayerStation": {
|
|
15435
|
+
kind: "query",
|
|
15436
|
+
invoke: (client, input) => client.event.getPlayerStation.query(input)
|
|
15437
|
+
},
|
|
15438
|
+
"event.listJoined": {
|
|
15439
|
+
kind: "query",
|
|
15440
|
+
invoke: (client, input) => client.event.listJoined.query(input)
|
|
15441
|
+
},
|
|
15442
|
+
"event.listPlayerBroadcasts": {
|
|
15443
|
+
kind: "query",
|
|
15444
|
+
invoke: (client, input) => client.event.listPlayerBroadcasts.query(input)
|
|
15445
|
+
},
|
|
15446
|
+
"event.getPlayerBroadcast": {
|
|
15447
|
+
kind: "query",
|
|
15448
|
+
invoke: (client, input) => client.event.getPlayerBroadcast.query(input)
|
|
15449
|
+
},
|
|
15450
|
+
"event.listPlayerRewards": {
|
|
15451
|
+
kind: "query",
|
|
15452
|
+
invoke: (client, input) => client.event.listPlayerRewards.query(input)
|
|
15453
|
+
},
|
|
15454
|
+
"event.join": {
|
|
15455
|
+
kind: "mutation",
|
|
15456
|
+
invoke: (client, input) => client.event.join.mutate(input)
|
|
15457
|
+
},
|
|
15458
|
+
"team.join": {
|
|
15459
|
+
kind: "mutation",
|
|
15460
|
+
invoke: (client, input) => client.team.join.mutate(input)
|
|
15461
|
+
},
|
|
15462
|
+
"event.markPlayerBroadcastsRead": {
|
|
15463
|
+
kind: "mutation",
|
|
15464
|
+
invoke: (client, input) => client.event.markPlayerBroadcastsRead.mutate(input)
|
|
15465
|
+
},
|
|
15466
|
+
"event.submitUserReview": {
|
|
15467
|
+
kind: "mutation",
|
|
15468
|
+
invoke: (client, input) => client.event.submitUserReview.mutate(input)
|
|
15469
|
+
},
|
|
15470
|
+
"event.updatePlayerDisplayName": {
|
|
15471
|
+
kind: "mutation",
|
|
15472
|
+
invoke: (client, input) => client.event.updatePlayerDisplayName.mutate(input)
|
|
15473
|
+
},
|
|
15474
|
+
"event.resolveJoinCode": {
|
|
15475
|
+
kind: "mutation",
|
|
15476
|
+
invoke: (client, input) => client.event.resolveJoinCode.mutate(input)
|
|
15477
|
+
},
|
|
15478
|
+
"event.createStationCheckInProof": {
|
|
15479
|
+
kind: "mutation",
|
|
15480
|
+
invoke: (client, input) => client.event.createStationCheckInProof.mutate(input)
|
|
15481
|
+
},
|
|
15482
|
+
"event.submitMission": {
|
|
15483
|
+
kind: "mutation",
|
|
15484
|
+
invoke: (client, input) => client.event.submitMission.mutate(input)
|
|
15485
|
+
},
|
|
15486
|
+
"event.getPublicLoginDetails": {
|
|
15487
|
+
kind: "query",
|
|
15488
|
+
invoke: (client, input) => client.event.getPublicLoginDetails.query(input)
|
|
15489
|
+
},
|
|
15490
|
+
"event.getResultsPortal": {
|
|
15491
|
+
kind: "query",
|
|
15492
|
+
invoke: (client, input) => client.event.getResultsPortal.query(input)
|
|
15493
|
+
},
|
|
15494
|
+
"event.requestLoginEmailOtp": {
|
|
15495
|
+
kind: "mutation",
|
|
15496
|
+
invoke: (client, input) => client.event.requestLoginEmailOtp.mutate(input)
|
|
15497
|
+
},
|
|
15498
|
+
"event.requestBrandingAssetUpload": {
|
|
15499
|
+
kind: "mutation",
|
|
15500
|
+
invoke: (client, input) => client.event.requestBrandingAssetUpload.mutate(input)
|
|
15501
|
+
},
|
|
15502
|
+
"event.requestSetupImageUpload": {
|
|
15503
|
+
kind: "mutation",
|
|
15504
|
+
invoke: (client, input) => client.event.requestSetupImageUpload.mutate(input)
|
|
15505
|
+
},
|
|
15506
|
+
"user.requestProfileImageUpload": {
|
|
15507
|
+
kind: "mutation",
|
|
15508
|
+
invoke: (client, input) => client.user.requestProfileImageUpload.mutate(input)
|
|
15509
|
+
},
|
|
15510
|
+
"event.requestMissionMediaUpload": {
|
|
15511
|
+
kind: "mutation",
|
|
15512
|
+
invoke: (client, input) => client.event.requestMissionMediaUpload.mutate(input)
|
|
15513
|
+
},
|
|
15514
|
+
"event.completeMissionMediaMultipartUpload": {
|
|
15515
|
+
kind: "mutation",
|
|
15516
|
+
invoke: (client, input) => client.event.completeMissionMediaMultipartUpload.mutate(input)
|
|
15517
|
+
},
|
|
15518
|
+
"event.abortMissionMediaMultipartUpload": {
|
|
15519
|
+
kind: "mutation",
|
|
15520
|
+
invoke: (client, input) => client.event.abortMissionMediaMultipartUpload.mutate(input)
|
|
15521
|
+
},
|
|
15522
|
+
"event.onPlayerEventChanged": {
|
|
15523
|
+
kind: "subscription",
|
|
15524
|
+
subscribe: (client, input, observer) => client.event.onPlayerEventChanged.subscribe(input, {
|
|
15525
|
+
onComplete: observer.complete,
|
|
15526
|
+
onData: observer.next,
|
|
15527
|
+
onError: observer.error
|
|
15528
|
+
})
|
|
15529
|
+
},
|
|
15530
|
+
"event.onSubmissionReviewQueueChanged": {
|
|
15531
|
+
kind: "subscription",
|
|
15532
|
+
subscribe: (client, input, observer) => client.event.onSubmissionReviewQueueChanged.subscribe(input, {
|
|
15533
|
+
onComplete: observer.complete,
|
|
15534
|
+
onData: observer.next,
|
|
15535
|
+
onError: observer.error
|
|
15536
|
+
})
|
|
15537
|
+
},
|
|
15538
|
+
"organization.create": {
|
|
15539
|
+
kind: "mutation",
|
|
15540
|
+
invoke: (client, input) => client.organization.create.mutate(input)
|
|
15541
|
+
},
|
|
15542
|
+
"organization.update": {
|
|
15543
|
+
kind: "mutation",
|
|
15544
|
+
invoke: (client, input) => client.organization.update.mutate(input)
|
|
15545
|
+
},
|
|
15546
|
+
"organization.checkSlug": {
|
|
15547
|
+
kind: "mutation",
|
|
15548
|
+
invoke: (client, input) => client.organization.checkSlug.mutate(input)
|
|
15549
|
+
},
|
|
15550
|
+
"organization.checkOrganizationAccess": {
|
|
15551
|
+
kind: "query",
|
|
15552
|
+
invoke: (client, input) => client.organization.checkOrganizationAccess.query(input)
|
|
15553
|
+
},
|
|
15554
|
+
"organization.getOnboardingState": {
|
|
15555
|
+
kind: "query",
|
|
15556
|
+
invoke: (client, input) => client.organization.getOnboardingState.query(input)
|
|
15557
|
+
},
|
|
15558
|
+
"organization.getInvitation": {
|
|
15559
|
+
kind: "query",
|
|
15560
|
+
invoke: (client, input) => client.organization.getInvitation.query(input)
|
|
15561
|
+
},
|
|
15562
|
+
"organization.acceptInvitation": {
|
|
15563
|
+
kind: "mutation",
|
|
15564
|
+
invoke: (client, input) => client.organization.acceptInvitation.mutate(input)
|
|
15565
|
+
},
|
|
15566
|
+
"organization.rejectInvitation": {
|
|
15567
|
+
kind: "mutation",
|
|
15568
|
+
invoke: (client, input) => client.organization.rejectInvitation.mutate(input)
|
|
15569
|
+
},
|
|
15570
|
+
"organization.cancelInvitation": {
|
|
15571
|
+
kind: "mutation",
|
|
15572
|
+
invoke: (client, input) => client.organization.cancelInvitation.mutate(input)
|
|
15573
|
+
},
|
|
15574
|
+
"organization.inviteMember": {
|
|
15575
|
+
kind: "mutation",
|
|
15576
|
+
invoke: (client, input) => client.organization.inviteMember.mutate(input)
|
|
15577
|
+
},
|
|
15578
|
+
"organization.removeMember": {
|
|
15579
|
+
kind: "mutation",
|
|
15580
|
+
invoke: (client, input) => client.organization.removeMember.mutate(input)
|
|
15581
|
+
},
|
|
15582
|
+
"organization.updateMemberRole": {
|
|
15583
|
+
kind: "mutation",
|
|
15584
|
+
invoke: (client, input) => client.organization.updateMemberRole.mutate(input)
|
|
15585
|
+
},
|
|
15586
|
+
"organization.listAllForAdmin": {
|
|
15587
|
+
kind: "query",
|
|
15588
|
+
invoke: (client, input) => client.organization.listAllForAdmin.query(input)
|
|
15589
|
+
},
|
|
15590
|
+
"template.createSystem": {
|
|
15591
|
+
kind: "mutation",
|
|
15592
|
+
invoke: (client, input) => client.template.createSystem.mutate(input)
|
|
15593
|
+
},
|
|
15594
|
+
"user.listAdmin": {
|
|
15595
|
+
kind: "query",
|
|
15596
|
+
invoke: (client, input) => client.user.listAdmin.query(input)
|
|
15597
|
+
},
|
|
15598
|
+
"user.updateGlobalRole": {
|
|
15599
|
+
kind: "mutation",
|
|
15600
|
+
invoke: (client, input) => client.user.updateGlobalRole.mutate(input)
|
|
15601
|
+
},
|
|
15602
|
+
"user.ban": {
|
|
15603
|
+
kind: "mutation",
|
|
15604
|
+
invoke: (client, input) => client.user.ban.mutate(input)
|
|
15605
|
+
},
|
|
15606
|
+
"user.unban": {
|
|
15607
|
+
kind: "mutation",
|
|
15608
|
+
invoke: (client, input) => client.user.unban.mutate(input)
|
|
15609
|
+
}
|
|
15610
|
+
};
|
|
15611
|
+
|
|
15072
15612
|
// src/runtime.ts
|
|
15073
15613
|
import { createInterface } from "readline/promises";
|
|
15074
15614
|
var invocationCodes = new Set([
|
|
@@ -15325,7 +15865,7 @@ var createGoshClient = ({
|
|
|
15325
15865
|
"x-trpc-source": "gosh-cli",
|
|
15326
15866
|
...accessToken ? { Authorization: `Bearer ${accessToken}` } : {}
|
|
15327
15867
|
});
|
|
15328
|
-
const
|
|
15868
|
+
const typedClient = createTRPCProxyClient({
|
|
15329
15869
|
links: [
|
|
15330
15870
|
loggerLink({
|
|
15331
15871
|
enabled: () => debug && !quiet,
|
|
@@ -15352,15 +15892,29 @@ var createGoshClient = ({
|
|
|
15352
15892
|
})
|
|
15353
15893
|
]
|
|
15354
15894
|
});
|
|
15355
|
-
return {
|
|
15356
|
-
mutation: (path2, input) =>
|
|
15357
|
-
|
|
15358
|
-
|
|
15359
|
-
|
|
15360
|
-
|
|
15361
|
-
|
|
15362
|
-
}
|
|
15363
|
-
|
|
15895
|
+
return Object.assign(typedClient, {
|
|
15896
|
+
mutation: (path2, input) => {
|
|
15897
|
+
const operation = typedOperations[path2];
|
|
15898
|
+
if (operation.kind !== "mutation") {
|
|
15899
|
+
throw new Error(`Expected mutation procedure, received ${path2}.`);
|
|
15900
|
+
}
|
|
15901
|
+
return operation.invoke(typedClient, input);
|
|
15902
|
+
},
|
|
15903
|
+
query: (path2, input) => {
|
|
15904
|
+
const operation = typedOperations[path2];
|
|
15905
|
+
if (operation.kind !== "query") {
|
|
15906
|
+
throw new Error(`Expected query procedure, received ${path2}.`);
|
|
15907
|
+
}
|
|
15908
|
+
return operation.invoke(typedClient, input);
|
|
15909
|
+
},
|
|
15910
|
+
subscription: (path2, input, observer) => {
|
|
15911
|
+
const operation = typedOperations[path2];
|
|
15912
|
+
if (operation.kind !== "subscription") {
|
|
15913
|
+
throw new Error(`Expected subscription procedure, received ${path2}.`);
|
|
15914
|
+
}
|
|
15915
|
+
return operation.subscribe(typedClient, input, observer);
|
|
15916
|
+
}
|
|
15917
|
+
});
|
|
15364
15918
|
};
|
|
15365
15919
|
|
|
15366
15920
|
// src/parse-args.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@go-labs-sg/gosh",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.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",
|