Skip to content

Commit 856d143

Browse files
committed
replace brainbase with brainbase_labs
1 parent 079d52a commit 856d143

File tree

27 files changed

+229
-293
lines changed

27 files changed

+229
-293
lines changed

components/brainbase_labs/actions/create-flow/create-flow.mjs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import app from "../../brainbase_labs.app.mjs";
22

33
export default {
4-
key: "brainbase-create-flow",
4+
key: "brainbase_labs-create-flow",
55
name: "Create Flow",
6-
description: "Create a new flow for a worker. [See the documentation](https://docs.usebrainbase.com)",
6+
description:
7+
"Create a new flow for a worker. [See the documentation](https://docs.usebrainbase.com)",
78
version: "0.0.1",
89
type: "action",
910
annotations: {
@@ -14,10 +15,7 @@ export default {
1415
props: {
1516
app,
1617
workerId: {
17-
propDefinition: [
18-
app,
19-
"workerId",
20-
],
18+
propDefinition: [app, "workerId"],
2119
},
2220
name: {
2321
type: "string",
@@ -65,4 +63,3 @@ export default {
6563
return response;
6664
},
6765
};
68-

components/brainbase_labs/actions/create-twilio-integration/create-twilio-integration.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import app from "../../brainbase_labs.app.mjs";
22

33
export default {
4-
key: "brainbase-create-twilio-integration",
4+
key: "brainbase_labs-create-twilio-integration",
55
name: "Create Twilio Integration",
6-
description: "Create a new Twilio integration for the authenticated team. [See the documentation](https://docs.usebrainbase.com)",
6+
description:
7+
"Create a new Twilio integration for the authenticated team. [See the documentation](https://docs.usebrainbase.com)",
78
version: "0.0.1",
89
type: "action",
910
annotations: {
@@ -38,4 +39,3 @@ export default {
3839
return response;
3940
},
4041
};
41-

components/brainbase_labs/actions/create-voice-deployment/create-voice-deployment.mjs

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import app from "../../brainbase_labs.app.mjs";
22

33
export default {
4-
key: "brainbase-create-voice-deployment",
4+
key: "brainbase_labs-create-voice-deployment",
55
name: "Create Voice Deployment",
6-
description: "Create a new voice deployment. [See the documentation](https://docs.usebrainbase.com)",
6+
description:
7+
"Create a new voice deployment. [See the documentation](https://docs.usebrainbase.com)",
78
version: "0.0.1",
89
type: "action",
910
annotations: {
@@ -14,10 +15,7 @@ export default {
1415
props: {
1516
app,
1617
workerId: {
17-
propDefinition: [
18-
app,
19-
"workerId",
20-
],
18+
propDefinition: [app, "workerId"],
2119
},
2220
name: {
2321
type: "string",
@@ -47,7 +45,8 @@ export default {
4745
externalConfig: {
4846
type: "object",
4947
label: "External Config",
50-
description: "External configuration object with voice settings, language, voiceId, etc. Example: `{\"voice\": \"alloy\", \"language\": \"en\"}`",
48+
description:
49+
'External configuration object with voice settings, language, voiceId, etc. Example: `{"voice": "alloy", "language": "en"}`',
5150
optional: true,
5251
},
5352
extractions: {
@@ -84,8 +83,10 @@ export default {
8483
},
8584
});
8685

87-
$.export("$summary", `Successfully created voice deployment "${this.name}"`);
86+
$.export(
87+
"$summary",
88+
`Successfully created voice deployment "${this.name}"`
89+
);
8890
return response;
8991
},
9092
};
91-

components/brainbase_labs/actions/create-worker/create-worker.mjs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import app from "../../brainbase_labs.app.mjs";
22

33
export default {
4-
key: "brainbase-create-worker",
4+
key: "brainbase_labs-create-worker",
55
name: "Create Worker",
6-
description: "Create a new worker for the team. [See the documentation](https://docs.usebrainbase.com)",
6+
description:
7+
"Create a new worker for the team. [See the documentation](https://docs.usebrainbase.com)",
78
version: "0.0.1",
89
type: "action",
910
annotations: {
@@ -29,11 +30,7 @@ export default {
2930
label: "Status",
3031
description: "Worker status",
3132
optional: true,
32-
options: [
33-
"active",
34-
"inactive",
35-
"archived",
36-
],
33+
options: ["active", "inactive", "archived"],
3734
},
3835
},
3936
async run({ $ }) {
@@ -50,4 +47,3 @@ export default {
5047
return response;
5148
},
5249
};
53-

components/brainbase_labs/actions/delete-flow/delete-flow.mjs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import app from "../../brainbase_labs.app.mjs";
22

33
export default {
4-
key: "brainbase-delete-flow",
4+
key: "brainbase_labs-delete-flow",
55
name: "Delete Flow",
6-
description: "Delete a flow. [See the documentation](https://docs.usebrainbase.com)",
6+
description:
7+
"Delete a flow. [See the documentation](https://docs.usebrainbase.com)",
78
version: "0.0.1",
89
type: "action",
910
annotations: {
@@ -14,10 +15,7 @@ export default {
1415
props: {
1516
app,
1617
workerId: {
17-
propDefinition: [
18-
app,
19-
"workerId",
20-
],
18+
propDefinition: [app, "workerId"],
2119
},
2220
flowId: {
2321
propDefinition: [
@@ -40,4 +38,3 @@ export default {
4038
return response;
4139
},
4240
};
43-
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import app from "../../brainbase_labs.app.mjs";
22

33
export default {
4-
key: "brainbase-delete-integration",
4+
key: "brainbase_labs-delete-integration",
55
name: "Delete Integration",
6-
description: "Delete an existing Twilio integration. [See the documentation](https://docs.usebrainbase.com)",
6+
description:
7+
"Delete an existing Twilio integration. [See the documentation](https://docs.usebrainbase.com)",
78
version: "0.0.1",
89
type: "action",
910
annotations: {
@@ -14,10 +15,7 @@ export default {
1415
props: {
1516
app,
1617
integrationId: {
17-
propDefinition: [
18-
app,
19-
"integrationId",
20-
],
18+
propDefinition: [app, "integrationId"],
2119
},
2220
},
2321
async run({ $ }) {
@@ -26,8 +24,10 @@ export default {
2624
integrationId: this.integrationId,
2725
});
2826

29-
$.export("$summary", `Successfully deleted integration with ID ${this.integrationId}`);
27+
$.export(
28+
"$summary",
29+
`Successfully deleted integration with ID ${this.integrationId}`
30+
);
3031
return response;
3132
},
3233
};
33-
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import app from "../../brainbase_labs.app.mjs";
22

33
export default {
4-
key: "brainbase-delete-phone-number",
4+
key: "brainbase_labs-delete-phone-number",
55
name: "Delete Phone Number",
6-
description: "Delete a registered phone number for the team. [See the documentation](https://docs.usebrainbase.com)",
6+
description:
7+
"Delete a registered phone number for the team. [See the documentation](https://docs.usebrainbase.com)",
78
version: "0.0.1",
89
type: "action",
910
annotations: {
@@ -14,10 +15,7 @@ export default {
1415
props: {
1516
app,
1617
phoneNumberId: {
17-
propDefinition: [
18-
app,
19-
"phoneNumberId",
20-
],
18+
propDefinition: [app, "phoneNumberId"],
2119
},
2220
},
2321
async run({ $ }) {
@@ -26,8 +24,10 @@ export default {
2624
phoneNumberId: this.phoneNumberId,
2725
});
2826

29-
$.export("$summary", `Successfully deleted phone number with ID ${this.phoneNumberId}`);
27+
$.export(
28+
"$summary",
29+
`Successfully deleted phone number with ID ${this.phoneNumberId}`
30+
);
3031
return response;
3132
},
3233
};
33-

components/brainbase_labs/actions/delete-voice-deployment/delete-voice-deployment.mjs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import app from "../../brainbase_labs.app.mjs";
22

33
export default {
4-
key: "brainbase-delete-voice-deployment",
4+
key: "brainbase_labs-delete-voice-deployment",
55
name: "Delete Voice Deployment",
6-
description: "Delete a voice deployment. [See the documentation](https://docs.usebrainbase.com)",
6+
description:
7+
"Delete a voice deployment. [See the documentation](https://docs.usebrainbase.com)",
78
version: "0.0.1",
89
type: "action",
910
annotations: {
@@ -14,10 +15,7 @@ export default {
1415
props: {
1516
app,
1617
workerId: {
17-
propDefinition: [
18-
app,
19-
"workerId",
20-
],
18+
propDefinition: [app, "workerId"],
2119
},
2220
deploymentId: {
2321
propDefinition: [
@@ -36,8 +34,10 @@ export default {
3634
deploymentId: this.deploymentId,
3735
});
3836

39-
$.export("$summary", `Successfully deleted voice deployment with ID ${this.deploymentId}`);
37+
$.export(
38+
"$summary",
39+
`Successfully deleted voice deployment with ID ${this.deploymentId}`
40+
);
4041
return response;
4142
},
4243
};
43-
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import app from "../../brainbase_labs.app.mjs";
22

33
export default {
4-
key: "brainbase-delete-worker",
4+
key: "brainbase_labs-delete-worker",
55
name: "Delete Worker",
6-
description: "Delete a worker. [See the documentation](https://docs.usebrainbase.com)",
6+
description:
7+
"Delete a worker. [See the documentation](https://docs.usebrainbase.com)",
78
version: "0.0.1",
89
type: "action",
910
annotations: {
@@ -14,10 +15,7 @@ export default {
1415
props: {
1516
app,
1617
workerId: {
17-
propDefinition: [
18-
app,
19-
"workerId",
20-
],
18+
propDefinition: [app, "workerId"],
2119
},
2220
},
2321
async run({ $ }) {
@@ -26,8 +24,10 @@ export default {
2624
workerId: this.workerId,
2725
});
2826

29-
$.export("$summary", `Successfully deleted worker with ID ${this.workerId}`);
27+
$.export(
28+
"$summary",
29+
`Successfully deleted worker with ID ${this.workerId}`
30+
);
3031
return response;
3132
},
3233
};
33-

components/brainbase_labs/actions/get-flow/get-flow.mjs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import app from "../../brainbase_labs.app.mjs";
22

33
export default {
4-
key: "brainbase-get-flow",
4+
key: "brainbase_labs-get-flow",
55
name: "Get Flow",
6-
description: "Get a single flow by ID. [See the documentation](https://docs.usebrainbase.com)",
6+
description:
7+
"Get a single flow by ID. [See the documentation](https://docs.usebrainbase.com)",
78
version: "0.0.1",
89
type: "action",
910
annotations: {
@@ -14,10 +15,7 @@ export default {
1415
props: {
1516
app,
1617
workerId: {
17-
propDefinition: [
18-
app,
19-
"workerId",
20-
],
18+
propDefinition: [app, "workerId"],
2119
},
2220
flowId: {
2321
propDefinition: [
@@ -40,4 +38,3 @@ export default {
4038
return response;
4139
},
4240
};
43-

0 commit comments

Comments
 (0)