bamboo-agents 0.1.13 → 0.1.14
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/VERSION +1 -1
- package/dist/index.js +10 -3
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.14
|
package/dist/index.js
CHANGED
|
@@ -3037,7 +3037,7 @@ var VERSION;
|
|
|
3037
3037
|
var init_version = __esm({
|
|
3038
3038
|
"src/version.ts"() {
|
|
3039
3039
|
"use strict";
|
|
3040
|
-
VERSION = "0.1.
|
|
3040
|
+
VERSION = "0.1.14";
|
|
3041
3041
|
}
|
|
3042
3042
|
});
|
|
3043
3043
|
|
|
@@ -14246,6 +14246,7 @@ var init_inbox_management = __esm({
|
|
|
14246
14246
|
}))
|
|
14247
14247
|
});
|
|
14248
14248
|
InboxMembersResponseSchema = external_exports.object({
|
|
14249
|
+
meta: EvalManagementScopeSchema,
|
|
14249
14250
|
scope: external_exports.object({
|
|
14250
14251
|
org_id: external_exports.string().uuid(),
|
|
14251
14252
|
org_name: external_exports.string().min(1),
|
|
@@ -14699,7 +14700,7 @@ var init_inbox_management = __esm({
|
|
|
14699
14700
|
customer_wording: external_exports.object({
|
|
14700
14701
|
title: external_exports.string(),
|
|
14701
14702
|
questions: external_exports.array(external_exports.string())
|
|
14702
|
-
})
|
|
14703
|
+
}).nullable()
|
|
14703
14704
|
}).passthrough();
|
|
14704
14705
|
OpportunityUnknownReceiptSchema = external_exports.object({
|
|
14705
14706
|
state: external_exports.literal("unknown"),
|
|
@@ -15493,11 +15494,16 @@ async function listInboxMembers(session, orgId) {
|
|
|
15493
15494
|
});
|
|
15494
15495
|
if (!res.ok) throw await parseError(res);
|
|
15495
15496
|
const json = await res.json();
|
|
15497
|
+
let result;
|
|
15496
15498
|
try {
|
|
15497
|
-
|
|
15499
|
+
result = InboxMembersResponseSchema.parse(json.data);
|
|
15498
15500
|
} catch {
|
|
15499
15501
|
throw new ApiError("The Inbox member list response was malformed.", 502, "malformed_response");
|
|
15500
15502
|
}
|
|
15503
|
+
if (result.meta.requested_org_id !== orgId || result.meta.effective_org_id !== orgId) {
|
|
15504
|
+
throw new ApiError("The Inbox member list was returned for a different organization.", 502, "organization_scope_mismatch");
|
|
15505
|
+
}
|
|
15506
|
+
return result;
|
|
15501
15507
|
}
|
|
15502
15508
|
async function getCliOrganizationScope(session, orgId) {
|
|
15503
15509
|
const res = await cliApiFetch(`${apiBase()}/api/v1/cli/org-scope`, {
|
|
@@ -20870,6 +20876,7 @@ async function runInboxMembers(options) {
|
|
|
20870
20876
|
for (const member of matches)
|
|
20871
20877
|
human(` ${member.display_name} (${member.email ?? "no email"}) \u2014 ${member.user_id} [${member.membership_role}]`, options);
|
|
20872
20878
|
emitSuccess({
|
|
20879
|
+
meta: result.meta,
|
|
20873
20880
|
scope: result.scope,
|
|
20874
20881
|
members: matches,
|
|
20875
20882
|
count: matches.length,
|