@inworld/cli 1.0.0-rc.1 → 1.0.0-rc.2
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 +15 -15
- package/package.json +1 -1
- package/dist/package.json +0 -53
- package/dist/proto/generated/portal/ai/inworld/language_codes/language_codes.pb.d.ts +0 -10
- package/dist/proto/generated/portal/ai/inworld/language_codes/language_codes.pb.d.ts.map +0 -1
- package/dist/proto/generated/portal/ai/inworld/language_codes/language_codes.pb.js +0 -15
- package/dist/proto/generated/portal/ai/inworld/language_codes/language_codes.pb.js.map +0 -1
- package/dist/proto/generated/portal/ai/inworld/studio/v1/errors.pb.d.ts +0 -13
- package/dist/proto/generated/portal/ai/inworld/studio/v1/errors.pb.d.ts.map +0 -1
- package/dist/proto/generated/portal/ai/inworld/studio/v1/errors.pb.js +0 -2
- package/dist/proto/generated/portal/ai/inworld/studio/v1/errors.pb.js.map +0 -1
- package/dist/proto/generated/portal/ai/inworld/studio/v1/operations.pb.d.ts +0 -7
- package/dist/proto/generated/portal/ai/inworld/studio/v1/operations.pb.d.ts.map +0 -1
- package/dist/proto/generated/portal/ai/inworld/studio/v1/operations.pb.js +0 -14
- package/dist/proto/generated/portal/ai/inworld/studio/v1/operations.pb.js.map +0 -1
- package/dist/proto/generated/portal/ai/inworld/studio/v1/remote/configuration/graph_configuration.pb.d.ts +0 -14
- package/dist/proto/generated/portal/ai/inworld/studio/v1/remote/configuration/graph_configuration.pb.d.ts.map +0 -1
- package/dist/proto/generated/portal/ai/inworld/studio/v1/remote/configuration/graph_configuration.pb.js +0 -6
- package/dist/proto/generated/portal/ai/inworld/studio/v1/remote/configuration/graph_configuration.pb.js.map +0 -1
- package/dist/proto/generated/portal/ai/inworld/studio/v1/remote/configuration/graphs.pb.d.ts +0 -116
- package/dist/proto/generated/portal/ai/inworld/studio/v1/remote/configuration/graphs.pb.d.ts.map +0 -1
- package/dist/proto/generated/portal/ai/inworld/studio/v1/remote/configuration/graphs.pb.js +0 -71
- package/dist/proto/generated/portal/ai/inworld/studio/v1/remote/configuration/graphs.pb.js.map +0 -1
- package/dist/proto/generated/portal/ai/inworld/studio/v1/remote/configuration/targeting.pb.d.ts +0 -14
- package/dist/proto/generated/portal/ai/inworld/studio/v1/remote/configuration/targeting.pb.d.ts.map +0 -1
- package/dist/proto/generated/portal/ai/inworld/studio/v1/remote/configuration/targeting.pb.js +0 -6
- package/dist/proto/generated/portal/ai/inworld/studio/v1/remote/configuration/targeting.pb.js.map +0 -1
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/apikeys.pb.d.ts +0 -78
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/apikeys.pb.d.ts.map +0 -1
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/apikeys.pb.js +0 -39
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/apikeys.pb.js.map +0 -1
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/impression_event_data.pb.d.ts +0 -10
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/impression_event_data.pb.d.ts.map +0 -1
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/impression_event_data.pb.js +0 -6
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/impression_event_data.pb.js.map +0 -1
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/language_code.pb.d.ts +0 -7
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/language_code.pb.d.ts.map +0 -1
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/language_code.pb.js +0 -12
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/language_code.pb.js.map +0 -1
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/users.pb.d.ts +0 -115
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/users.pb.d.ts.map +0 -1
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/users.pb.js +0 -85
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/users.pb.js.map +0 -1
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/workspaces.pb.d.ts +0 -255
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/workspaces.pb.d.ts.map +0 -1
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/workspaces.pb.js +0 -87
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/workspaces.pb.js.map +0 -1
- package/dist/proto/generated/portal/fetch.pb.d.ts +0 -26
- package/dist/proto/generated/portal/fetch.pb.d.ts.map +0 -1
- package/dist/proto/generated/portal/fetch.pb.js +0 -274
- package/dist/proto/generated/portal/fetch.pb.js.map +0 -1
- package/dist/src/auth/callback_server.d.ts +0 -41
- package/dist/src/auth/callback_server.d.ts.map +0 -1
- package/dist/src/auth/callback_server.js +0 -136
- package/dist/src/auth/callback_server.js.map +0 -1
- package/dist/src/auth/manager.d.ts +0 -97
- package/dist/src/auth/manager.d.ts.map +0 -1
- package/dist/src/auth/manager.js +0 -338
- package/dist/src/auth/manager.js.map +0 -1
- package/dist/src/auth/utils.d.ts +0 -45
- package/dist/src/auth/utils.d.ts.map +0 -1
- package/dist/src/auth/utils.js +0 -183
- package/dist/src/auth/utils.js.map +0 -1
- package/dist/src/commands/auth/disable_telemetry_command.d.ts +0 -3
- package/dist/src/commands/auth/disable_telemetry_command.d.ts.map +0 -1
- package/dist/src/commands/auth/disable_telemetry_command.js +0 -21
- package/dist/src/commands/auth/disable_telemetry_command.js.map +0 -1
- package/dist/src/commands/auth/enable_telemetry_command.d.ts +0 -3
- package/dist/src/commands/auth/enable_telemetry_command.d.ts.map +0 -1
- package/dist/src/commands/auth/enable_telemetry_command.js +0 -22
- package/dist/src/commands/auth/enable_telemetry_command.js.map +0 -1
- package/dist/src/commands/auth/login_ci_command.d.ts +0 -3
- package/dist/src/commands/auth/login_ci_command.d.ts.map +0 -1
- package/dist/src/commands/auth/login_ci_command.js +0 -41
- package/dist/src/commands/auth/login_ci_command.js.map +0 -1
- package/dist/src/commands/auth/login_command.d.ts +0 -4
- package/dist/src/commands/auth/login_command.d.ts.map +0 -1
- package/dist/src/commands/auth/login_command.js +0 -134
- package/dist/src/commands/auth/login_command.js.map +0 -1
- package/dist/src/commands/auth/logout_command.d.ts +0 -4
- package/dist/src/commands/auth/logout_command.d.ts.map +0 -1
- package/dist/src/commands/auth/logout_command.js +0 -54
- package/dist/src/commands/auth/logout_command.js.map +0 -1
- package/dist/src/commands/auth/print_access_token_command.d.ts +0 -3
- package/dist/src/commands/auth/print_access_token_command.d.ts.map +0 -1
- package/dist/src/commands/auth/print_access_token_command.js +0 -21
- package/dist/src/commands/auth/print_access_token_command.js.map +0 -1
- package/dist/src/commands/auth/print_api_key_command.d.ts +0 -3
- package/dist/src/commands/auth/print_api_key_command.d.ts.map +0 -1
- package/dist/src/commands/auth/print_api_key_command.js +0 -26
- package/dist/src/commands/auth/print_api_key_command.js.map +0 -1
- package/dist/src/commands/auth/status_command.d.ts +0 -4
- package/dist/src/commands/auth/status_command.d.ts.map +0 -1
- package/dist/src/commands/auth/status_command.js +0 -84
- package/dist/src/commands/auth/status_command.js.map +0 -1
- package/dist/src/commands/auth_command.d.ts +0 -3
- package/dist/src/commands/auth_command.d.ts.map +0 -1
- package/dist/src/commands/auth_command.js +0 -24
- package/dist/src/commands/auth_command.js.map +0 -1
- package/dist/src/commands/graph/graph_deploy_command.d.ts +0 -24
- package/dist/src/commands/graph/graph_deploy_command.d.ts.map +0 -1
- package/dist/src/commands/graph/graph_deploy_command.js +0 -204
- package/dist/src/commands/graph/graph_deploy_command.js.map +0 -1
- package/dist/src/commands/graph/graph_init_command.d.ts +0 -4
- package/dist/src/commands/graph/graph_init_command.d.ts.map +0 -1
- package/dist/src/commands/graph/graph_init_command.js +0 -335
- package/dist/src/commands/graph/graph_init_command.js.map +0 -1
- package/dist/src/commands/graph/graph_run_command.d.ts +0 -24
- package/dist/src/commands/graph/graph_run_command.d.ts.map +0 -1
- package/dist/src/commands/graph/graph_run_command.js +0 -50
- package/dist/src/commands/graph/graph_run_command.js.map +0 -1
- package/dist/src/commands/graph/graph_serve_command.d.ts +0 -4
- package/dist/src/commands/graph/graph_serve_command.d.ts.map +0 -1
- package/dist/src/commands/graph/graph_serve_command.js +0 -40
- package/dist/src/commands/graph/graph_serve_command.js.map +0 -1
- package/dist/src/commands/graph/graph_variant_command.d.ts +0 -3
- package/dist/src/commands/graph/graph_variant_command.d.ts.map +0 -1
- package/dist/src/commands/graph/graph_variant_command.js +0 -13
- package/dist/src/commands/graph/graph_variant_command.js.map +0 -1
- package/dist/src/commands/graph/graph_visualize_command.d.ts +0 -7
- package/dist/src/commands/graph/graph_visualize_command.d.ts.map +0 -1
- package/dist/src/commands/graph/graph_visualize_command.js +0 -35
- package/dist/src/commands/graph/graph_visualize_command.js.map +0 -1
- package/dist/src/commands/graph/variant/graph_variant_list_command.d.ts +0 -3
- package/dist/src/commands/graph/variant/graph_variant_list_command.d.ts.map +0 -1
- package/dist/src/commands/graph/variant/graph_variant_list_command.js +0 -26
- package/dist/src/commands/graph/variant/graph_variant_list_command.js.map +0 -1
- package/dist/src/commands/graph/variant/graph_variant_print_command.d.ts +0 -7
- package/dist/src/commands/graph/variant/graph_variant_print_command.d.ts.map +0 -1
- package/dist/src/commands/graph/variant/graph_variant_print_command.js +0 -46
- package/dist/src/commands/graph/variant/graph_variant_print_command.js.map +0 -1
- package/dist/src/commands/graph/variant/graph_variant_register_command.d.ts +0 -3
- package/dist/src/commands/graph/variant/graph_variant_register_command.d.ts.map +0 -1
- package/dist/src/commands/graph/variant/graph_variant_register_command.js +0 -46
- package/dist/src/commands/graph/variant/graph_variant_register_command.js.map +0 -1
- package/dist/src/commands/graph_command.d.ts +0 -3
- package/dist/src/commands/graph_command.d.ts.map +0 -1
- package/dist/src/commands/graph_command.js +0 -20
- package/dist/src/commands/graph_command.js.map +0 -1
- package/dist/src/commands/tts/tts_clone_command.d.ts +0 -6
- package/dist/src/commands/tts/tts_clone_command.d.ts.map +0 -1
- package/dist/src/commands/tts/tts_clone_command.js +0 -80
- package/dist/src/commands/tts/tts_clone_command.js.map +0 -1
- package/dist/src/commands/tts/tts_design_command.d.ts +0 -6
- package/dist/src/commands/tts/tts_design_command.d.ts.map +0 -1
- package/dist/src/commands/tts/tts_design_command.js +0 -216
- package/dist/src/commands/tts/tts_design_command.js.map +0 -1
- package/dist/src/commands/tts/tts_list_voices_command.d.ts +0 -6
- package/dist/src/commands/tts/tts_list_voices_command.d.ts.map +0 -1
- package/dist/src/commands/tts/tts_list_voices_command.js +0 -108
- package/dist/src/commands/tts/tts_list_voices_command.js.map +0 -1
- package/dist/src/commands/tts/tts_synthesize_command.d.ts +0 -6
- package/dist/src/commands/tts/tts_synthesize_command.d.ts.map +0 -1
- package/dist/src/commands/tts/tts_synthesize_command.js +0 -351
- package/dist/src/commands/tts/tts_synthesize_command.js.map +0 -1
- package/dist/src/commands/tts/tts_utils.d.ts +0 -14
- package/dist/src/commands/tts/tts_utils.d.ts.map +0 -1
- package/dist/src/commands/tts/tts_utils.js +0 -84
- package/dist/src/commands/tts/tts_utils.js.map +0 -1
- package/dist/src/commands/tts_commands.d.ts +0 -6
- package/dist/src/commands/tts_commands.d.ts.map +0 -1
- package/dist/src/commands/tts_commands.js +0 -18
- package/dist/src/commands/tts_commands.js.map +0 -1
- package/dist/src/commands/workspace_command.d.ts +0 -22
- package/dist/src/commands/workspace_command.d.ts.map +0 -1
- package/dist/src/commands/workspace_command.js +0 -72
- package/dist/src/commands/workspace_command.js.map +0 -1
- package/dist/src/constants.d.ts +0 -11
- package/dist/src/constants.d.ts.map +0 -1
- package/dist/src/constants.js +0 -48
- package/dist/src/constants.js.map +0 -1
- package/dist/src/grpc/core/InworldError.d.ts +0 -30
- package/dist/src/grpc/core/InworldError.d.ts.map +0 -1
- package/dist/src/grpc/core/InworldError.js +0 -46
- package/dist/src/grpc/core/InworldError.js.map +0 -1
- package/dist/src/grpc/core/statusCodes.d.ts +0 -122
- package/dist/src/grpc/core/statusCodes.d.ts.map +0 -1
- package/dist/src/grpc/core/statusCodes.js +0 -133
- package/dist/src/grpc/core/statusCodes.js.map +0 -1
- package/dist/src/index.d.ts +0 -2
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/index.js +0 -139
- package/dist/src/index.js.map +0 -1
- package/dist/src/services/analytics.d.ts +0 -45
- package/dist/src/services/analytics.d.ts.map +0 -1
- package/dist/src/services/analytics.js +0 -139
- package/dist/src/services/analytics.js.map +0 -1
- package/dist/src/services/deploy_service.d.ts +0 -4
- package/dist/src/services/deploy_service.d.ts.map +0 -1
- package/dist/src/services/deploy_service.js +0 -128
- package/dist/src/services/deploy_service.js.map +0 -1
- package/dist/src/services/graph_loader.d.ts +0 -7
- package/dist/src/services/graph_loader.d.ts.map +0 -1
- package/dist/src/services/graph_loader.js +0 -103
- package/dist/src/services/graph_loader.js.map +0 -1
- package/dist/src/services/graph_variant_service.d.ts +0 -12
- package/dist/src/services/graph_variant_service.d.ts.map +0 -1
- package/dist/src/services/graph_variant_service.js +0 -66
- package/dist/src/services/graph_variant_service.js.map +0 -1
- package/dist/src/services/template_service.d.ts +0 -79
- package/dist/src/services/template_service.d.ts.map +0 -1
- package/dist/src/services/template_service.js +0 -299
- package/dist/src/services/template_service.js.map +0 -1
- package/dist/src/services/tts_service.d.ts +0 -340
- package/dist/src/services/tts_service.d.ts.map +0 -1
- package/dist/src/services/tts_service.js +0 -320
- package/dist/src/services/tts_service.js.map +0 -1
- package/dist/src/services/update_checker.d.ts +0 -37
- package/dist/src/services/update_checker.d.ts.map +0 -1
- package/dist/src/services/update_checker.js +0 -134
- package/dist/src/services/update_checker.js.map +0 -1
- package/dist/src/services/workspace_service.d.ts +0 -53
- package/dist/src/services/workspace_service.d.ts.map +0 -1
- package/dist/src/services/workspace_service.js +0 -324
- package/dist/src/services/workspace_service.js.map +0 -1
- package/dist/src/utils/array.d.ts +0 -2
- package/dist/src/utils/array.d.ts.map +0 -1
- package/dist/src/utils/array.js +0 -4
- package/dist/src/utils/array.js.map +0 -1
- package/dist/src/utils/audio_player.d.ts +0 -10
- package/dist/src/utils/audio_player.d.ts.map +0 -1
- package/dist/src/utils/audio_player.js +0 -34
- package/dist/src/utils/audio_player.js.map +0 -1
- package/dist/src/utils/confirm.d.ts +0 -62
- package/dist/src/utils/confirm.d.ts.map +0 -1
- package/dist/src/utils/confirm.js +0 -90
- package/dist/src/utils/confirm.js.map +0 -1
- package/dist/src/utils/long_running_operations.d.ts +0 -38
- package/dist/src/utils/long_running_operations.d.ts.map +0 -1
- package/dist/src/utils/long_running_operations.js +0 -62
- package/dist/src/utils/long_running_operations.js.map +0 -1
- package/dist/src/utils/resource_name_helper.d.ts +0 -17
- package/dist/src/utils/resource_name_helper.d.ts.map +0 -1
- package/dist/src/utils/resource_name_helper.js +0 -38
- package/dist/src/utils/resource_name_helper.js.map +0 -1
- package/dist/src/utils/selector.d.ts +0 -62
- package/dist/src/utils/selector.d.ts.map +0 -1
- package/dist/src/utils/selector.js +0 -76
- package/dist/src/utils/selector.js.map +0 -1
- package/dist/src/utils/spinner.d.ts +0 -75
- package/dist/src/utils/spinner.d.ts.map +0 -1
- package/dist/src/utils/spinner.js +0 -178
- package/dist/src/utils/spinner.js.map +0 -1
- package/dist/src/utils/ui.d.ts +0 -27
- package/dist/src/utils/ui.d.ts.map +0 -1
- package/dist/src/utils/ui.js +0 -89
- package/dist/src/utils/ui.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1377,7 +1377,7 @@ var WorkspaceService = class {
|
|
|
1377
1377
|
items: workspaces,
|
|
1378
1378
|
getDisplayName: (ws) => ws.displayName || ws.name?.split("/").pop() || "unknown",
|
|
1379
1379
|
getIdentifier: (ws) => ws.name?.split("/").pop() || "unknown",
|
|
1380
|
-
prompt: "Enter the number
|
|
1380
|
+
prompt: "Enter the number of the workspace to activate:",
|
|
1381
1381
|
title: "Available workspaces:",
|
|
1382
1382
|
forceFirst,
|
|
1383
1383
|
noItemsMessage: "No workspaces found.",
|
|
@@ -1638,10 +1638,8 @@ Selecting API key: ${chalk2.whiteBright(trimBase64Key(base64Key))}`
|
|
|
1638
1638
|
generateApiKeyResponse.key,
|
|
1639
1639
|
generateApiKeyResponse.secret
|
|
1640
1640
|
);
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
base64Key
|
|
1644
|
-
);
|
|
1641
|
+
const workspaceId = credentials.workspace.replace(/^workspaces\//, "");
|
|
1642
|
+
await authManager.updateWorkspaceAndApiKey(workspaceId, base64Key);
|
|
1645
1643
|
const permissions = formatApiKeyScopes(generateApiKeyResponse.scopes);
|
|
1646
1644
|
success("\nAPI key created and activated.");
|
|
1647
1645
|
console.log();
|
|
@@ -3374,12 +3372,13 @@ var runAction = async (file, request) => {
|
|
|
3374
3372
|
console.error("Error parsing request:", error);
|
|
3375
3373
|
process.exit(1);
|
|
3376
3374
|
}
|
|
3377
|
-
const
|
|
3375
|
+
const { processGraphRequest } = await import("@inworld/graph-server");
|
|
3376
|
+
const results = await processGraphRequest(requestJson, graph);
|
|
3378
3377
|
for await (const result of results) {
|
|
3379
3378
|
console.log(result);
|
|
3380
3379
|
}
|
|
3381
3380
|
} catch (error) {
|
|
3382
|
-
console.error("Error
|
|
3381
|
+
console.error("Error running graph:", error);
|
|
3383
3382
|
}
|
|
3384
3383
|
};
|
|
3385
3384
|
var makeRunCommand = (description) => {
|
|
@@ -3421,12 +3420,12 @@ var serveAction = async (file, options) => {
|
|
|
3421
3420
|
printError('Transport must be either "http" or "grpc"');
|
|
3422
3421
|
process.exit(1);
|
|
3423
3422
|
}
|
|
3424
|
-
await graph
|
|
3425
|
-
|
|
3426
|
-
port,
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
}
|
|
3423
|
+
const { startHttpServer, startGrpcServer } = await import("@inworld/graph-server");
|
|
3424
|
+
if (options.transport === "grpc") {
|
|
3425
|
+
await startGrpcServer(host, port, graph);
|
|
3426
|
+
} else {
|
|
3427
|
+
await startHttpServer(host, port, graph, options.swagger);
|
|
3428
|
+
}
|
|
3430
3429
|
} catch (error) {
|
|
3431
3430
|
printError("Error starting server:");
|
|
3432
3431
|
console.error(error);
|
|
@@ -4473,8 +4472,9 @@ var synthesizeCommand = new Command23("synthesize").description(
|
|
|
4473
4472
|
const defaultFormat = options.stream ? "LINEAR16" : "MP3";
|
|
4474
4473
|
const format = resolveFormat(options.format, defaultFormat);
|
|
4475
4474
|
const fileExtension = getFileExtension(format);
|
|
4475
|
+
const safeVoice = options.voice.replace(/[^a-zA-Z0-9_-]/g, "_");
|
|
4476
4476
|
const outputPath = resolve2(
|
|
4477
|
-
options.output || `${
|
|
4477
|
+
options.output || `${safeVoice}_${Date.now()}${fileExtension}`
|
|
4478
4478
|
);
|
|
4479
4479
|
const request = {
|
|
4480
4480
|
text,
|
|
@@ -4538,7 +4538,7 @@ var synthesizeCommand = new Command23("synthesize").description(
|
|
|
4538
4538
|
} else {
|
|
4539
4539
|
if (chunk.audioContent) {
|
|
4540
4540
|
const chunkBuffer = Buffer.from(chunk.audioContent, "base64");
|
|
4541
|
-
if (format === "LINEAR16") {
|
|
4541
|
+
if (format === "LINEAR16" || format === "WAV") {
|
|
4542
4542
|
if (!isFirstChunk) {
|
|
4543
4543
|
const headerSize = 44;
|
|
4544
4544
|
if (chunkBuffer.length > headerSize) {
|
package/package.json
CHANGED
package/dist/package.json
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@inworld/cli",
|
|
3
|
-
"version": "1.0.0-rc.1",
|
|
4
|
-
"type": "module",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"bin": {
|
|
7
|
-
"inworld": "dist/index.js"
|
|
8
|
-
},
|
|
9
|
-
"scripts": {
|
|
10
|
-
"postversion": "npm install && git add ../../package-lock.json",
|
|
11
|
-
"copy:release-it-config": "node ../../scripts/copy-release-it-config.js",
|
|
12
|
-
"build": "node esbuild.config.js && npm run copy:release-it-config",
|
|
13
|
-
"build:tsc": "tsc --project tsconfig.json",
|
|
14
|
-
"build:types": "tsc --emitDeclarationOnly",
|
|
15
|
-
"build:all": "npm run build && npm run build:types",
|
|
16
|
-
"start": "node dist/index.js",
|
|
17
|
-
"dev": "tsx src/index.ts"
|
|
18
|
-
},
|
|
19
|
-
"engines": {
|
|
20
|
-
"node": ">=20.0.0"
|
|
21
|
-
},
|
|
22
|
-
"files": [
|
|
23
|
-
"dist/**/*"
|
|
24
|
-
],
|
|
25
|
-
"author": "Inworld AI",
|
|
26
|
-
"license": "MIT",
|
|
27
|
-
"description": "Inworld CLI",
|
|
28
|
-
"devDependencies": {
|
|
29
|
-
"@tsconfig/node-lts": "^22.0.2",
|
|
30
|
-
"@types/archiver": "^6.0.3",
|
|
31
|
-
"@types/express": "^5.0.3",
|
|
32
|
-
"@types/keytar": "^4.4.0",
|
|
33
|
-
"@types/node": "^24.1.0",
|
|
34
|
-
"@types/ora": "^3.1.0",
|
|
35
|
-
"@types/semver": "^7.5.8"
|
|
36
|
-
},
|
|
37
|
-
"dependencies": {
|
|
38
|
-
"@zowe/secrets-for-zowe-sdk": "^8.27.0",
|
|
39
|
-
"adm-zip": "^0.5.16",
|
|
40
|
-
"archiver": "^7.0.1",
|
|
41
|
-
"chalk": "^5.3.0",
|
|
42
|
-
"commander": "^12.0.0",
|
|
43
|
-
"conf": "^14.0.0",
|
|
44
|
-
"esbuild": "^0.25.10",
|
|
45
|
-
"jwt-decode": "^4.0.0",
|
|
46
|
-
"mixpanel": "^0.18.1",
|
|
47
|
-
"ora": "^8.2.0",
|
|
48
|
-
"play-sound": "^1.1.6",
|
|
49
|
-
"semver": "^7.6.3",
|
|
50
|
-
"tsx": "^4.20.5",
|
|
51
|
-
"typescript": "^5.8.3"
|
|
52
|
-
}
|
|
53
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"language_codes.pb.d.ts","sourceRoot":"","sources":["../../../../../../../proto/generated/portal/ai/inworld/language_codes/language_codes.pb.ts"],"names":[],"mappings":"AAKA,oBAAY,YAAY;IACtB,yBAAyB,8BAA8B;IACvD,KAAK,UAAU;IACf,KAAK,UAAU;IACf,KAAK,UAAU;IACf,KAAK,UAAU;IACf,KAAK,UAAU;IACf,IAAI,SAAS;CACd"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
/*
|
|
3
|
-
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
4
|
-
*/
|
|
5
|
-
export var LanguageCode;
|
|
6
|
-
(function (LanguageCode) {
|
|
7
|
-
LanguageCode["LANGUAGE_CODE_UNSPECIFIED"] = "LANGUAGE_CODE_UNSPECIFIED";
|
|
8
|
-
LanguageCode["EN_US"] = "EN_US";
|
|
9
|
-
LanguageCode["ZH_CN"] = "ZH_CN";
|
|
10
|
-
LanguageCode["KO_KR"] = "KO_KR";
|
|
11
|
-
LanguageCode["JA_JP"] = "JA_JP";
|
|
12
|
-
LanguageCode["RU_RU"] = "RU_RU";
|
|
13
|
-
LanguageCode["AUTO"] = "AUTO";
|
|
14
|
-
})(LanguageCode || (LanguageCode = {}));
|
|
15
|
-
//# sourceMappingURL=language_codes.pb.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"language_codes.pb.js","sourceRoot":"","sources":["../../../../../../../proto/generated/portal/ai/inworld/language_codes/language_codes.pb.ts"],"names":[],"mappings":"AAAA,cAAc;AACd;;GAEG;AAEH,MAAM,CAAN,IAAY,YAQX;AARD,WAAY,YAAY;IACtB,uEAAuD,CAAA;IACvD,+BAAe,CAAA;IACf,+BAAe,CAAA;IACf,+BAAe,CAAA;IACf,+BAAe,CAAA;IACf,+BAAe,CAAA;IACf,6BAAa,CAAA;AACf,CAAC,EARW,YAAY,KAAZ,YAAY,QAQvB"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export type BadRequestFieldViolation = {
|
|
2
|
-
field?: string;
|
|
3
|
-
description?: string;
|
|
4
|
-
metadata?: {
|
|
5
|
-
[key: string]: string;
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
export type BadRequest = {
|
|
9
|
-
fieldViolations?: BadRequestFieldViolation[];
|
|
10
|
-
requestIndex?: string;
|
|
11
|
-
message?: string;
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=errors.pb.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errors.pb.d.ts","sourceRoot":"","sources":["../../../../../../../../proto/generated/portal/ai/inworld/studio/v1/errors.pb.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,wBAAwB,GAAG;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,eAAe,CAAC,EAAE,wBAAwB,EAAE,CAAC;IAC7C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errors.pb.js","sourceRoot":"","sources":["../../../../../../../../proto/generated/portal/ai/inworld/studio/v1/errors.pb.ts"],"names":[],"mappings":""}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as fm from '../../../../fetch.pb';
|
|
2
|
-
import * as GoogleLongrunningOperations from '../../../../google/longrunning/operations.pb';
|
|
3
|
-
export declare class Operations {
|
|
4
|
-
static ListOperations(req: GoogleLongrunningOperations.ListOperationsRequest, initReq?: fm.InitReq): Promise<GoogleLongrunningOperations.ListOperationsResponse>;
|
|
5
|
-
static GetOperation(req: GoogleLongrunningOperations.GetOperationRequest, initReq?: fm.InitReq): Promise<GoogleLongrunningOperations.Operation>;
|
|
6
|
-
}
|
|
7
|
-
//# sourceMappingURL=operations.pb.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"operations.pb.d.ts","sourceRoot":"","sources":["../../../../../../../../proto/generated/portal/ai/inworld/studio/v1/operations.pb.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,KAAK,2BAA2B,MAAM,8CAA8C,CAAC;AAC5F,qBAAa,UAAU;IACrB,MAAM,CAAC,cAAc,CACnB,GAAG,EAAE,2BAA2B,CAAC,qBAAqB,EACtD,OAAO,CAAC,EAAE,EAAE,CAAC,OAAO,GACnB,OAAO,CAAC,2BAA2B,CAAC,sBAAsB,CAAC;IAS9D,MAAM,CAAC,YAAY,CACjB,GAAG,EAAE,2BAA2B,CAAC,mBAAmB,EACpD,OAAO,CAAC,EAAE,EAAE,CAAC,OAAO,GACnB,OAAO,CAAC,2BAA2B,CAAC,SAAS,CAAC;CASlD"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
/*
|
|
3
|
-
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
4
|
-
*/
|
|
5
|
-
import * as fm from '../../../../fetch.pb';
|
|
6
|
-
export class Operations {
|
|
7
|
-
static ListOperations(req, initReq) {
|
|
8
|
-
return fm.fetchReq(`/studio/v1/${req['name']}/operations?${fm.renderURLSearchParams(req, ['nameworkspaces'])}`, { ...initReq, method: 'GET' });
|
|
9
|
-
}
|
|
10
|
-
static GetOperation(req, initReq) {
|
|
11
|
-
return fm.fetchReq(`/studio/v1/${req['nameworkspacescharactersoperations']}?${fm.renderURLSearchParams(req, ['nameworkspacescharactersoperations'])}`, { ...initReq, method: 'GET' });
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=operations.pb.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"operations.pb.js","sourceRoot":"","sources":["../../../../../../../../proto/generated/portal/ai/inworld/studio/v1/operations.pb.ts"],"names":[],"mappings":"AAAA,cAAc;AACd;;GAEG;AAEH,OAAO,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAE3C,MAAM,OAAO,UAAU;IACrB,MAAM,CAAC,cAAc,CACnB,GAAsD,EACtD,OAAoB;QAEpB,OAAO,EAAE,CAAC,QAAQ,CAIhB,cAAc,GAAG,CAAC,MAAM,CAAC,eAAe,EAAE,CAAC,qBAAqB,CAAC,GAAG,EAAE,CAAC,gBAAgB,CAAC,CAAC,EAAE,EAC3F,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,CAC9B,CAAC;IACJ,CAAC;IACD,MAAM,CAAC,YAAY,CACjB,GAAoD,EACpD,OAAoB;QAEpB,OAAO,EAAE,CAAC,QAAQ,CAIhB,cAAc,GAAG,CAAC,oCAAoC,CAAC,IAAI,EAAE,CAAC,qBAAqB,CAAC,GAAG,EAAE,CAAC,oCAAoC,CAAC,CAAC,EAAE,EAClI,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,CAC9B,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
type Absent<T, K extends keyof T> = {
|
|
2
|
-
[k in Exclude<keyof T, K>]?: undefined;
|
|
3
|
-
};
|
|
4
|
-
type OneOf<T> = {
|
|
5
|
-
[k in keyof T]?: undefined;
|
|
6
|
-
} | (keyof T extends infer K ? K extends string & keyof T ? {
|
|
7
|
-
[k in K]: T[K];
|
|
8
|
-
} & Absent<T, K> : never : never);
|
|
9
|
-
type BaseGraphConfig = {};
|
|
10
|
-
export type GraphConfig = BaseGraphConfig & OneOf<{
|
|
11
|
-
rawContent: string;
|
|
12
|
-
}>;
|
|
13
|
-
export {};
|
|
14
|
-
//# sourceMappingURL=graph_configuration.pb.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"graph_configuration.pb.d.ts","sourceRoot":"","sources":["../../../../../../../../../../proto/generated/portal/ai/inworld/studio/v1/remote/configuration/graph_configuration.pb.ts"],"names":[],"mappings":"AAKA,KAAK,MAAM,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI;KAAG,CAAC,IAAI,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,SAAS;CAAE,CAAC;AAC/E,KAAK,KAAK,CAAC,CAAC,IACR;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,SAAS;CAAE,GAC9B,CAAC,MAAM,CAAC,SAAS,MAAM,CAAC,GACpB,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,GACxB;KAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAE,GAAG,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,GACjC,KAAK,GACP,KAAK,CAAC,CAAC;AAEf,KAAK,eAAe,GAAG,EAAE,CAAC;AAE1B,MAAM,MAAM,WAAW,GAAG,eAAe,GAAG,KAAK,CAAC;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"graph_configuration.pb.js","sourceRoot":"","sources":["../../../../../../../../../../proto/generated/portal/ai/inworld/studio/v1/remote/configuration/graph_configuration.pb.ts"],"names":[],"mappings":"AAAA,cAAc;AACd;;GAEG"}
|
package/dist/proto/generated/portal/ai/inworld/studio/v1/remote/configuration/graphs.pb.d.ts
DELETED
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import * as fm from '../../../../../../fetch.pb';
|
|
2
|
-
import * as GoogleLongrunningOperations from '../../../../../../google/longrunning/operations.pb';
|
|
3
|
-
import * as GoogleProtobufEmpty from '../../../../../../google/protobuf/empty.pb';
|
|
4
|
-
import * as GoogleProtobufField_mask from '../../../../../../google/protobuf/field_mask.pb';
|
|
5
|
-
import * as GoogleProtobufTimestamp from '../../../../../../google/protobuf/timestamp.pb';
|
|
6
|
-
import * as AiInworldStudioV1RemoteConfigurationGraph_configuration from './graph_configuration.pb';
|
|
7
|
-
import * as AiInworldStudioV1RemoteConfigurationTargeting from './targeting.pb';
|
|
8
|
-
export declare enum DeployState {
|
|
9
|
-
DEPLOY_STATE_UNSPECIFIED = "DEPLOY_STATE_UNSPECIFIED",
|
|
10
|
-
DEPLOY_STATE_IN_PROGRESS = "DEPLOY_STATE_IN_PROGRESS",
|
|
11
|
-
DEPLOY_STATE_SUCCESSFUL = "DEPLOY_STATE_SUCCESSFUL",
|
|
12
|
-
DEPLOY_STATE_FAILED = "DEPLOY_STATE_FAILED"
|
|
13
|
-
}
|
|
14
|
-
export type Graph = {
|
|
15
|
-
name?: string;
|
|
16
|
-
displayName?: string;
|
|
17
|
-
targeting?: AiInworldStudioV1RemoteConfigurationTargeting.Targeting;
|
|
18
|
-
createTime?: GoogleProtobufTimestamp.Timestamp;
|
|
19
|
-
updateTime?: GoogleProtobufTimestamp.Timestamp;
|
|
20
|
-
};
|
|
21
|
-
export type GetGraphRequest = {
|
|
22
|
-
name?: string;
|
|
23
|
-
};
|
|
24
|
-
export type ListGraphsRequest = {
|
|
25
|
-
parent?: string;
|
|
26
|
-
pageSize?: number;
|
|
27
|
-
pageToken?: string;
|
|
28
|
-
};
|
|
29
|
-
export type ListGraphsResponse = {
|
|
30
|
-
graphs?: Graph[];
|
|
31
|
-
nextPageToken?: string;
|
|
32
|
-
};
|
|
33
|
-
export type CreateGraphRequest = {
|
|
34
|
-
parent?: string;
|
|
35
|
-
graph?: Graph;
|
|
36
|
-
};
|
|
37
|
-
export type UpdateGraphRequest = {
|
|
38
|
-
graph?: Graph;
|
|
39
|
-
updateMask?: GoogleProtobufField_mask.FieldMask;
|
|
40
|
-
};
|
|
41
|
-
export type DeleteGraphRequest = {
|
|
42
|
-
name?: string;
|
|
43
|
-
};
|
|
44
|
-
export type CreateGraphMetadata = {};
|
|
45
|
-
export type UpdateGraphMetadata = {};
|
|
46
|
-
export type GetGraphVariantRequest = {
|
|
47
|
-
name?: string;
|
|
48
|
-
};
|
|
49
|
-
export type ListGraphVariantsRequest = {
|
|
50
|
-
parent?: string;
|
|
51
|
-
pageSize?: number;
|
|
52
|
-
pageToken?: string;
|
|
53
|
-
};
|
|
54
|
-
export type ListGraphVariantsResponse = {
|
|
55
|
-
graphVariants?: GraphVariant[];
|
|
56
|
-
nextPageToken?: string;
|
|
57
|
-
};
|
|
58
|
-
export type CreateGraphVariantRequest = {
|
|
59
|
-
parent?: string;
|
|
60
|
-
graphVariant?: GraphVariant;
|
|
61
|
-
};
|
|
62
|
-
export type UpdateGraphVariantRequest = {
|
|
63
|
-
graphVariant?: GraphVariant;
|
|
64
|
-
updateMask?: GoogleProtobufField_mask.FieldMask;
|
|
65
|
-
};
|
|
66
|
-
export type DeleteGraphVariantRequest = {
|
|
67
|
-
name?: string;
|
|
68
|
-
};
|
|
69
|
-
export type CreateGraphVariantMetadata = {};
|
|
70
|
-
export type UpdateGraphVariantMetadata = {};
|
|
71
|
-
export type GraphVariant = {
|
|
72
|
-
name?: string;
|
|
73
|
-
displayName?: string;
|
|
74
|
-
graph?: string;
|
|
75
|
-
config?: AiInworldStudioV1RemoteConfigurationGraph_configuration.GraphConfig;
|
|
76
|
-
createTime?: GoogleProtobufTimestamp.Timestamp;
|
|
77
|
-
updateTime?: GoogleProtobufTimestamp.Timestamp;
|
|
78
|
-
};
|
|
79
|
-
export type DeployGraphRequest = {
|
|
80
|
-
parent?: string;
|
|
81
|
-
graph?: DeployGraphInfo;
|
|
82
|
-
};
|
|
83
|
-
export type DeployGraphInfo = {
|
|
84
|
-
archive?: Uint8Array;
|
|
85
|
-
archiveType?: string;
|
|
86
|
-
};
|
|
87
|
-
export type DeployGraphResponse = {
|
|
88
|
-
graphVariant?: string;
|
|
89
|
-
};
|
|
90
|
-
export type GetGraphDeploymentRequest = {
|
|
91
|
-
name?: string;
|
|
92
|
-
};
|
|
93
|
-
export type GraphDeployment = {
|
|
94
|
-
name?: string;
|
|
95
|
-
createTime?: GoogleProtobufTimestamp.Timestamp;
|
|
96
|
-
updateTime?: GoogleProtobufTimestamp.Timestamp;
|
|
97
|
-
cloudRunFunction?: string;
|
|
98
|
-
invokeUri?: string;
|
|
99
|
-
deployStatus?: DeployState;
|
|
100
|
-
};
|
|
101
|
-
export type DeployGraphMetadata = {};
|
|
102
|
-
export declare class GraphsService {
|
|
103
|
-
static CreateGraph(req: CreateGraphRequest, initReq?: fm.InitReq): Promise<GoogleLongrunningOperations.Operation>;
|
|
104
|
-
static DeployGraph(req: DeployGraphRequest, initReq?: fm.InitReq): Promise<GoogleLongrunningOperations.Operation>;
|
|
105
|
-
static GetGraphDeployment(req: GetGraphDeploymentRequest, initReq?: fm.InitReq): Promise<GraphDeployment>;
|
|
106
|
-
static GetGraph(req: GetGraphRequest, initReq?: fm.InitReq): Promise<Graph>;
|
|
107
|
-
static ListGraphs(req: ListGraphsRequest, initReq?: fm.InitReq): Promise<ListGraphsResponse>;
|
|
108
|
-
static UpdateGraph(req: UpdateGraphRequest, initReq?: fm.InitReq): Promise<GoogleLongrunningOperations.Operation>;
|
|
109
|
-
static DeleteGraph(req: DeleteGraphRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty>;
|
|
110
|
-
static CreateGraphVariant(req: CreateGraphVariantRequest, initReq?: fm.InitReq): Promise<GoogleLongrunningOperations.Operation>;
|
|
111
|
-
static GetGraphVariant(req: GetGraphVariantRequest, initReq?: fm.InitReq): Promise<GraphVariant>;
|
|
112
|
-
static ListGraphVariants(req: ListGraphVariantsRequest, initReq?: fm.InitReq): Promise<ListGraphVariantsResponse>;
|
|
113
|
-
static UpdateGraphVariant(req: UpdateGraphVariantRequest, initReq?: fm.InitReq): Promise<GoogleLongrunningOperations.Operation>;
|
|
114
|
-
static DeleteGraphVariant(req: DeleteGraphVariantRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty>;
|
|
115
|
-
}
|
|
116
|
-
//# sourceMappingURL=graphs.pb.d.ts.map
|
package/dist/proto/generated/portal/ai/inworld/studio/v1/remote/configuration/graphs.pb.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"graphs.pb.d.ts","sourceRoot":"","sources":["../../../../../../../../../../proto/generated/portal/ai/inworld/studio/v1/remote/configuration/graphs.pb.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,MAAM,4BAA4B,CAAC;AACjD,OAAO,KAAK,2BAA2B,MAAM,oDAAoD,CAAC;AAClG,OAAO,KAAK,mBAAmB,MAAM,4CAA4C,CAAC;AAClF,OAAO,KAAK,wBAAwB,MAAM,iDAAiD,CAAC;AAC5F,OAAO,KAAK,uBAAuB,MAAM,gDAAgD,CAAC;AAC1F,OAAO,KAAK,uDAAuD,MAAM,0BAA0B,CAAC;AACpG,OAAO,KAAK,6CAA6C,MAAM,gBAAgB,CAAC;AAEhF,oBAAY,WAAW;IACrB,wBAAwB,6BAA6B;IACrD,wBAAwB,6BAA6B;IACrD,uBAAuB,4BAA4B;IACnD,mBAAmB,wBAAwB;CAC5C;AAED,MAAM,MAAM,KAAK,GAAG;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,6CAA6C,CAAC,SAAS,CAAC;IACpE,UAAU,CAAC,EAAE,uBAAuB,CAAC,SAAS,CAAC;IAC/C,UAAU,CAAC,EAAE,uBAAuB,CAAC,SAAS,CAAC;CAChD,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC;IACjB,aAAa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,CAAC,OAAO,GACnB,OAAO,CAAC,2BAA2B,CAAC,SAAS,CAAC;IAUjD,MAAM,CAAC,kBAAkB,CACvB,GAAG,EAAE,yBAAyB,EAC9B,OAAO,CAAC,EAAE,EAAE,CAAC,OAAO,GACnB,OAAO,CAAC,mBAAmB,CAAC,KAAK,CAAC;CAMtC"}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
/*
|
|
3
|
-
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
4
|
-
*/
|
|
5
|
-
import * as fm from '../../../../../../fetch.pb';
|
|
6
|
-
export var DeployState;
|
|
7
|
-
(function (DeployState) {
|
|
8
|
-
DeployState["DEPLOY_STATE_UNSPECIFIED"] = "DEPLOY_STATE_UNSPECIFIED";
|
|
9
|
-
DeployState["DEPLOY_STATE_IN_PROGRESS"] = "DEPLOY_STATE_IN_PROGRESS";
|
|
10
|
-
DeployState["DEPLOY_STATE_SUCCESSFUL"] = "DEPLOY_STATE_SUCCESSFUL";
|
|
11
|
-
DeployState["DEPLOY_STATE_FAILED"] = "DEPLOY_STATE_FAILED";
|
|
12
|
-
})(DeployState || (DeployState = {}));
|
|
13
|
-
export class GraphsService {
|
|
14
|
-
static CreateGraph(req, initReq) {
|
|
15
|
-
return fm.fetchReq(`/studio/v1/${req['parent']}/graphs`, {
|
|
16
|
-
...initReq,
|
|
17
|
-
method: 'POST',
|
|
18
|
-
body: JSON.stringify(req['graph'], fm.replacer),
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
static DeployGraph(req, initReq) {
|
|
22
|
-
return fm.fetchReq(`/studio/v1/${req['parent']}:deploy`, {
|
|
23
|
-
...initReq,
|
|
24
|
-
method: 'POST',
|
|
25
|
-
body: JSON.stringify(req, fm.replacer),
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
static GetGraphDeployment(req, initReq) {
|
|
29
|
-
return fm.fetchReq(`/studio/v1/${req['name']}?${fm.renderURLSearchParams(req, ['name'])}`, { ...initReq, method: 'GET' });
|
|
30
|
-
}
|
|
31
|
-
static GetGraph(req, initReq) {
|
|
32
|
-
return fm.fetchReq(`/studio/v1/${req['name']}?${fm.renderURLSearchParams(req, ['name'])}`, { ...initReq, method: 'GET' });
|
|
33
|
-
}
|
|
34
|
-
static ListGraphs(req, initReq) {
|
|
35
|
-
return fm.fetchReq(`/studio/v1/${req['parent']}/graphs?${fm.renderURLSearchParams(req, ['parent'])}`, { ...initReq, method: 'GET' });
|
|
36
|
-
}
|
|
37
|
-
static UpdateGraph(req, initReq) {
|
|
38
|
-
return fm.fetchReq(`/studio/v1/${req['graph']['name']}`, {
|
|
39
|
-
...initReq,
|
|
40
|
-
method: 'PATCH',
|
|
41
|
-
body: JSON.stringify(req['graph'], fm.replacer),
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
static DeleteGraph(req, initReq) {
|
|
45
|
-
return fm.fetchReq(`/studio/v1/${req['name']}`, { ...initReq, method: 'DELETE' });
|
|
46
|
-
}
|
|
47
|
-
static CreateGraphVariant(req, initReq) {
|
|
48
|
-
return fm.fetchReq(`/studio/v1/${req['parent']}/variants`, {
|
|
49
|
-
...initReq,
|
|
50
|
-
method: 'POST',
|
|
51
|
-
body: JSON.stringify(req['graphVariant'], fm.replacer),
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
static GetGraphVariant(req, initReq) {
|
|
55
|
-
return fm.fetchReq(`/studio/v1/${req['name']}?${fm.renderURLSearchParams(req, ['name'])}`, { ...initReq, method: 'GET' });
|
|
56
|
-
}
|
|
57
|
-
static ListGraphVariants(req, initReq) {
|
|
58
|
-
return fm.fetchReq(`/studio/v1/${req['parent']}/variants?${fm.renderURLSearchParams(req, ['parent'])}`, { ...initReq, method: 'GET' });
|
|
59
|
-
}
|
|
60
|
-
static UpdateGraphVariant(req, initReq) {
|
|
61
|
-
return fm.fetchReq(`/studio/v1/${req['graphVariant']['name']}`, {
|
|
62
|
-
...initReq,
|
|
63
|
-
method: 'PATCH',
|
|
64
|
-
body: JSON.stringify(req['graphVariant'], fm.replacer),
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
static DeleteGraphVariant(req, initReq) {
|
|
68
|
-
return fm.fetchReq(`/studio/v1/${req['name']}`, { ...initReq, method: 'DELETE' });
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
//# sourceMappingURL=graphs.pb.js.map
|
package/dist/proto/generated/portal/ai/inworld/studio/v1/remote/configuration/graphs.pb.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"graphs.pb.js","sourceRoot":"","sources":["../../../../../../../../../../proto/generated/portal/ai/inworld/studio/v1/remote/configuration/graphs.pb.ts"],"names":[],"mappings":"AAAA,cAAc;AACd;;GAEG;AAEH,OAAO,KAAK,EAAE,MAAM,4BAA4B,CAAC;AAQjD,MAAM,CAAN,IAAY,WAKX;AALD,WAAY,WAAW;IACrB,oEAAqD,CAAA;IACrD,oEAAqD,CAAA;IACrD,kEAAmD,CAAA;IACnD,0DAA2C,CAAA;AAC7C,CAAC,EALW,WAAW,KAAX,WAAW,QAKtB;AAkHD,MAAM,OAAO,aAAa;IACxB,MAAM,CAAC,WAAW,CAChB,GAAuB,EACvB,OAAoB;QAEpB,OAAO,EAAE,CAAC,QAAQ,CAGhB,cAAc,GAAG,CAAC,QAAQ,CAAC,SAAS,EAAE;YACtC,GAAG,OAAO;YACV,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC;SAChD,CAAC,CAAC;IACL,CAAC;IACD,MAAM,CAAC,WAAW,CAChB,GAAuB,EACvB,OAAoB;QAEpB,OAAO,EAAE,CAAC,QAAQ,CAGhB,cAAc,GAAG,CAAC,QAAQ,CAAC,SAAS,EAAE;YACtC,GAAG,OAAO;YACV,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IA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EAAE,OAAO;YACf,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,cAAc,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC;SACvD,CAAC,CAAC;IACL,CAAC;IACD,MAAM,CAAC,kBAAkB,CACvB,GAA8B,EAC9B,OAAoB;QAEpB,OAAO,EAAE,CAAC,QAAQ,CAChB,cAAc,GAAG,CAAC,MAAM,CAAC,EAAE,EAC3B,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,CACjC,CAAC;IACJ,CAAC;CACF"}
|
package/dist/proto/generated/portal/ai/inworld/studio/v1/remote/configuration/targeting.pb.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
type Absent<T, K extends keyof T> = {
|
|
2
|
-
[k in Exclude<keyof T, K>]?: undefined;
|
|
3
|
-
};
|
|
4
|
-
type OneOf<T> = {
|
|
5
|
-
[k in keyof T]?: undefined;
|
|
6
|
-
} | (keyof T extends infer K ? K extends string & keyof T ? {
|
|
7
|
-
[k in K]: T[K];
|
|
8
|
-
} & Absent<T, K> : never : never);
|
|
9
|
-
type BaseTargeting = {};
|
|
10
|
-
export type Targeting = BaseTargeting & OneOf<{
|
|
11
|
-
rawContent: string;
|
|
12
|
-
}>;
|
|
13
|
-
export {};
|
|
14
|
-
//# sourceMappingURL=targeting.pb.d.ts.map
|
package/dist/proto/generated/portal/ai/inworld/studio/v1/remote/configuration/targeting.pb.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"targeting.pb.d.ts","sourceRoot":"","sources":["../../../../../../../../../../proto/generated/portal/ai/inworld/studio/v1/remote/configuration/targeting.pb.ts"],"names":[],"mappings":"AAKA,KAAK,MAAM,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI;KAAG,CAAC,IAAI,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,SAAS;CAAE,CAAC;AAC/E,KAAK,KAAK,CAAC,CAAC,IACR;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,SAAS;CAAE,GAC9B,CAAC,MAAM,CAAC,SAAS,MAAM,CAAC,GACpB,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,GACxB;KAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAE,GAAG,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,GACjC,KAAK,GACP,KAAK,CAAC,CAAC;AAEf,KAAK,aAAa,GAAG,EAAE,CAAC;AAExB,MAAM,MAAM,SAAS,GAAG,aAAa,GAAG,KAAK,CAAC;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC"}
|
package/dist/proto/generated/portal/ai/inworld/studio/v1/remote/configuration/targeting.pb.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"targeting.pb.js","sourceRoot":"","sources":["../../../../../../../../../../proto/generated/portal/ai/inworld/studio/v1/remote/configuration/targeting.pb.ts"],"names":[],"mappings":"AAAA,cAAc;AACd;;GAEG"}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import * as fm from '../../../../fetch.pb';
|
|
2
|
-
import * as GoogleProtobufEmpty from '../../../../google/protobuf/empty.pb';
|
|
3
|
-
import * as GoogleProtobufTimestamp from '../../../../google/protobuf/timestamp.pb';
|
|
4
|
-
export declare enum ApiKeyAuthorizationType {
|
|
5
|
-
API_KEY_AUTHORIZATION_TYPE_UNSPECIFIED = "API_KEY_AUTHORIZATION_TYPE_UNSPECIFIED",
|
|
6
|
-
API_KEY_AUTHORIZATION_TYPE_BASIC = "API_KEY_AUTHORIZATION_TYPE_BASIC",
|
|
7
|
-
API_KEY_AUTHORIZATION_TYPE_JWT = "API_KEY_AUTHORIZATION_TYPE_JWT"
|
|
8
|
-
}
|
|
9
|
-
export declare enum ApiKeyState {
|
|
10
|
-
STATE_UNSPECIFIED = "STATE_UNSPECIFIED",
|
|
11
|
-
ACTIVE = "ACTIVE",
|
|
12
|
-
SUSPENDED = "SUSPENDED",
|
|
13
|
-
DELETED = "DELETED"
|
|
14
|
-
}
|
|
15
|
-
export type AuthScope = {
|
|
16
|
-
name?: string;
|
|
17
|
-
displayName?: string;
|
|
18
|
-
};
|
|
19
|
-
export type ListAuthScopesRequest = {
|
|
20
|
-
parent?: string;
|
|
21
|
-
pageSize?: number;
|
|
22
|
-
pageToken?: string;
|
|
23
|
-
};
|
|
24
|
-
export type ListAuthScopesResponse = {
|
|
25
|
-
authScopes?: AuthScope[];
|
|
26
|
-
nextPageToken?: string;
|
|
27
|
-
};
|
|
28
|
-
export type ApiKeyUsageLimits = {
|
|
29
|
-
maxConcurrentSessions?: number;
|
|
30
|
-
dailyLimitSecondsAmount?: string;
|
|
31
|
-
totalLimitSecondsAmount?: string;
|
|
32
|
-
expirationTime?: GoogleProtobufTimestamp.Timestamp;
|
|
33
|
-
};
|
|
34
|
-
export type ApiKey = {
|
|
35
|
-
name?: string;
|
|
36
|
-
displayName?: string;
|
|
37
|
-
key?: string;
|
|
38
|
-
secret?: string;
|
|
39
|
-
state?: ApiKeyState;
|
|
40
|
-
usageLimits?: ApiKeyUsageLimits;
|
|
41
|
-
createTime?: GoogleProtobufTimestamp.Timestamp;
|
|
42
|
-
scopes?: string[];
|
|
43
|
-
authTypes?: ApiKeyAuthorizationType[];
|
|
44
|
-
};
|
|
45
|
-
export type GenerateApiKeyRequest = {
|
|
46
|
-
parent?: string;
|
|
47
|
-
scopes?: string[];
|
|
48
|
-
authTypes?: ApiKeyAuthorizationType[];
|
|
49
|
-
displayName?: string;
|
|
50
|
-
};
|
|
51
|
-
export type ListApiKeysRequest = {
|
|
52
|
-
parent?: string;
|
|
53
|
-
pageSize?: number;
|
|
54
|
-
pageToken?: string;
|
|
55
|
-
};
|
|
56
|
-
export type SuspendApiKeyRequest = {
|
|
57
|
-
name?: string;
|
|
58
|
-
};
|
|
59
|
-
export type ActivateApiKeyRequest = {
|
|
60
|
-
name?: string;
|
|
61
|
-
};
|
|
62
|
-
export type DeleteApiKeyRequest = {
|
|
63
|
-
name?: string;
|
|
64
|
-
};
|
|
65
|
-
export type ListApiKeysResponse = {
|
|
66
|
-
apiKeys?: ApiKey[];
|
|
67
|
-
nextPageToken?: string;
|
|
68
|
-
collectionApiKeys?: ApiKey[];
|
|
69
|
-
};
|
|
70
|
-
export declare class ApiKeys {
|
|
71
|
-
static ListApiKeys(req: ListApiKeysRequest, initReq?: fm.InitReq): Promise<ListApiKeysResponse>;
|
|
72
|
-
static SuspendApiKey(req: SuspendApiKeyRequest, initReq?: fm.InitReq): Promise<ApiKey>;
|
|
73
|
-
static ActivateApiKey(req: ActivateApiKeyRequest, initReq?: fm.InitReq): Promise<ApiKey>;
|
|
74
|
-
static DeleteApiKey(req: DeleteApiKeyRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty>;
|
|
75
|
-
static GenerateApiKey(req: GenerateApiKeyRequest, initReq?: fm.InitReq): Promise<ApiKey>;
|
|
76
|
-
static ListAuthScopes(req: ListAuthScopesRequest, initReq?: fm.InitReq): Promise<ListAuthScopesResponse>;
|
|
77
|
-
}
|
|
78
|
-
//# sourceMappingURL=apikeys.pb.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"apikeys.pb.d.ts","sourceRoot":"","sources":["../../../../../../../../proto/generated/portal/ai/inworld/studio/v1alpha/apikeys.pb.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,KAAK,mBAAmB,MAAM,sCAAsC,CAAC;AAC5E,OAAO,KAAK,uBAAuB,MAAM,0CAA0C,CAAC;AAEpF,oBAAY,uBAAuB;IACjC,sCAAsC,2CAA2C;IACjF,gCAAgC,qCAAqC;IACrE,8BAA8B,mCAAmC;CAClE;AAED,oBAAY,WAAW;IACrB,iBAAiB,sBAAsB;IACvC,MAAM,WAAW;IACjB,SAAS,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CAAC,cAAc,CACnB,GAAG,EAAE,qBAAqB,EAC1B,OAAO,CAAC,EAAE,EAAE,CAAC,OAAO,GACnB,OAAO,CAAC,sBAAsB,CAAC;CAMnC"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
/*
|
|
3
|
-
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
4
|
-
*/
|
|
5
|
-
import * as fm from '../../../../fetch.pb';
|
|
6
|
-
export var ApiKeyAuthorizationType;
|
|
7
|
-
(function (ApiKeyAuthorizationType) {
|
|
8
|
-
ApiKeyAuthorizationType["API_KEY_AUTHORIZATION_TYPE_UNSPECIFIED"] = "API_KEY_AUTHORIZATION_TYPE_UNSPECIFIED";
|
|
9
|
-
ApiKeyAuthorizationType["API_KEY_AUTHORIZATION_TYPE_BASIC"] = "API_KEY_AUTHORIZATION_TYPE_BASIC";
|
|
10
|
-
ApiKeyAuthorizationType["API_KEY_AUTHORIZATION_TYPE_JWT"] = "API_KEY_AUTHORIZATION_TYPE_JWT";
|
|
11
|
-
})(ApiKeyAuthorizationType || (ApiKeyAuthorizationType = {}));
|
|
12
|
-
export var ApiKeyState;
|
|
13
|
-
(function (ApiKeyState) {
|
|
14
|
-
ApiKeyState["STATE_UNSPECIFIED"] = "STATE_UNSPECIFIED";
|
|
15
|
-
ApiKeyState["ACTIVE"] = "ACTIVE";
|
|
16
|
-
ApiKeyState["SUSPENDED"] = "SUSPENDED";
|
|
17
|
-
ApiKeyState["DELETED"] = "DELETED";
|
|
18
|
-
})(ApiKeyState || (ApiKeyState = {}));
|
|
19
|
-
export class ApiKeys {
|
|
20
|
-
static ListApiKeys(req, initReq) {
|
|
21
|
-
return fm.fetchReq(`/v1alpha/${req['parent']}/apikeys?${fm.renderURLSearchParams(req, ['parent'])}`, { ...initReq, method: 'GET' });
|
|
22
|
-
}
|
|
23
|
-
static SuspendApiKey(req, initReq) {
|
|
24
|
-
return fm.fetchReq(`/v1alpha/${req['name']}:suspend`, { ...initReq, method: 'POST', body: JSON.stringify(req, fm.replacer) });
|
|
25
|
-
}
|
|
26
|
-
static ActivateApiKey(req, initReq) {
|
|
27
|
-
return fm.fetchReq(`/v1alpha/${req['name']}:activate`, { ...initReq, method: 'POST', body: JSON.stringify(req, fm.replacer) });
|
|
28
|
-
}
|
|
29
|
-
static DeleteApiKey(req, initReq) {
|
|
30
|
-
return fm.fetchReq(`/v1alpha/${req['name']}`, { ...initReq, method: 'DELETE' });
|
|
31
|
-
}
|
|
32
|
-
static GenerateApiKey(req, initReq) {
|
|
33
|
-
return fm.fetchReq(`/v1alpha/${req['parent']}/apikey:generate`, { ...initReq, method: 'POST', body: JSON.stringify(req, fm.replacer) });
|
|
34
|
-
}
|
|
35
|
-
static ListAuthScopes(req, initReq) {
|
|
36
|
-
return fm.fetchReq(`/v1alpha/${req['parent']}/auth-scopes?${fm.renderURLSearchParams(req, ['parent'])}`, { ...initReq, method: 'GET' });
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
//# sourceMappingURL=apikeys.pb.js.map
|