@iblai/iblai-js 2.71.1 → 2.73.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/data-layer/playwright/billing-tab-helpers.d.ts +61 -48
- package/dist/data-layer/playwright/credit-balance-helpers.d.ts +40 -18
- package/dist/data-layer/playwright/index.d.ts +3 -2
- package/dist/data-layer/playwright/plan-picker-helpers.d.ts +26 -0
- package/dist/data-layer/playwright/spend-limits-helpers.d.ts +5 -4
- package/dist/playwright/index.cjs +306 -193
- package/dist/playwright/index.cjs.map +1 -1
- package/dist/playwright/index.d.ts +133 -71
- package/dist/playwright/index.esm.js +293 -194
- package/dist/playwright/index.esm.js.map +1 -1
- package/dist/playwright/playwright/billing-tab-helpers.d.ts +61 -48
- package/dist/playwright/playwright/credit-balance-helpers.d.ts +40 -18
- package/dist/playwright/playwright/index.d.ts +3 -2
- package/dist/playwright/playwright/plan-picker-helpers.d.ts +26 -0
- package/dist/playwright/playwright/spend-limits-helpers.d.ts +5 -4
- package/dist/security/playwright/billing-tab-helpers.d.ts +61 -48
- package/dist/security/playwright/credit-balance-helpers.d.ts +40 -18
- package/dist/security/playwright/index.d.ts +3 -2
- package/dist/security/playwright/plan-picker-helpers.d.ts +26 -0
- package/dist/security/playwright/spend-limits-helpers.d.ts +5 -4
- package/dist/web-containers/playwright/billing-tab-helpers.d.ts +61 -48
- package/dist/web-containers/playwright/credit-balance-helpers.d.ts +40 -18
- package/dist/web-containers/playwright/index.d.ts +3 -2
- package/dist/web-containers/playwright/plan-picker-helpers.d.ts +26 -0
- package/dist/web-containers/playwright/spend-limits-helpers.d.ts +5 -4
- package/dist/web-containers/source/add-credits-modal.js +170 -24
- package/dist/web-containers/source/add-credits-modal.js.map +1 -1
- package/dist/web-containers/source/auto-recharge-modal.js +1 -1
- package/dist/web-containers/source/auto-recharge-modal.js.map +1 -1
- package/dist/web-containers/source/billing-credits.js +4 -4
- package/dist/web-containers/source/billing-credits.js.map +1 -1
- package/dist/web-containers/source/billing.js +60 -101
- package/dist/web-containers/source/billing.js.map +1 -1
- package/dist/web-containers/source/components/credit-balance.js +44 -72
- package/dist/web-containers/source/components/credit-balance.js.map +1 -1
- package/dist/web-containers/source/components/modals/contact-admin-modal.js +32 -0
- package/dist/web-containers/source/components/modals/contact-admin-modal.js.map +1 -0
- package/dist/web-containers/source/components/modals/upgrade-package-modal.js +281 -20
- package/dist/web-containers/source/components/modals/upgrade-package-modal.js.map +1 -1
- package/dist/web-containers/source/components/profile/add-credits-modal.js +170 -24
- package/dist/web-containers/source/components/profile/add-credits-modal.js.map +1 -1
- package/dist/web-containers/source/components/profile/auto-recharge-modal.js +1 -1
- package/dist/web-containers/source/components/profile/auto-recharge-modal.js.map +1 -1
- package/dist/web-containers/source/components/profile/billing-credits.js +4 -4
- package/dist/web-containers/source/components/profile/billing-credits.js.map +1 -1
- package/dist/web-containers/source/components/profile/billing.js +60 -101
- package/dist/web-containers/source/components/profile/billing.js.map +1 -1
- package/dist/web-containers/source/components/profile/pending-credit-top-up.js +202 -0
- package/dist/web-containers/source/components/profile/pending-credit-top-up.js.map +1 -0
- package/dist/web-containers/source/components/profile/use-complete-pending-credit-top-up.js +68 -0
- package/dist/web-containers/source/components/profile/use-complete-pending-credit-top-up.js.map +1 -0
- package/dist/web-containers/source/components/subscription-top-banner.js +119 -0
- package/dist/web-containers/source/components/subscription-top-banner.js.map +1 -0
- package/dist/web-containers/source/components/welcome-chat/welcome-message.js +23 -3
- package/dist/web-containers/source/components/welcome-chat/welcome-message.js.map +1 -1
- package/dist/web-containers/source/contact-admin-modal.js +32 -0
- package/dist/web-containers/source/contact-admin-modal.js.map +1 -0
- package/dist/web-containers/source/credit-balance.js +44 -72
- package/dist/web-containers/source/credit-balance.js.map +1 -1
- package/dist/web-containers/source/en.json.js +125 -21
- package/dist/web-containers/source/en.json.js.map +1 -1
- package/dist/web-containers/source/es.json.js +127 -23
- package/dist/web-containers/source/es.json.js.map +1 -1
- package/dist/web-containers/source/fr.json.js +125 -21
- package/dist/web-containers/source/fr.json.js.map +1 -1
- package/dist/web-containers/source/i18n/messages/en.json.js +125 -21
- package/dist/web-containers/source/i18n/messages/en.json.js.map +1 -1
- package/dist/web-containers/source/i18n/messages/es.json.js +127 -23
- package/dist/web-containers/source/i18n/messages/es.json.js.map +1 -1
- package/dist/web-containers/source/i18n/messages/fr.json.js +125 -21
- package/dist/web-containers/source/i18n/messages/fr.json.js.map +1 -1
- package/dist/web-containers/source/i18n/messages/zh.json.js +126 -22
- package/dist/web-containers/source/i18n/messages/zh.json.js.map +1 -1
- package/dist/web-containers/source/messages/en.json.js +125 -21
- package/dist/web-containers/source/messages/en.json.js.map +1 -1
- package/dist/web-containers/source/messages/es.json.js +127 -23
- package/dist/web-containers/source/messages/es.json.js.map +1 -1
- package/dist/web-containers/source/messages/fr.json.js +125 -21
- package/dist/web-containers/source/messages/fr.json.js.map +1 -1
- package/dist/web-containers/source/messages/zh.json.js +126 -22
- package/dist/web-containers/source/messages/zh.json.js.map +1 -1
- package/dist/web-containers/source/modals/contact-admin-modal.js +32 -0
- package/dist/web-containers/source/modals/contact-admin-modal.js.map +1 -0
- package/dist/web-containers/source/modals/upgrade-package-modal.js +281 -20
- package/dist/web-containers/source/modals/upgrade-package-modal.js.map +1 -1
- package/dist/web-containers/source/pending-credit-top-up.js +202 -0
- package/dist/web-containers/source/pending-credit-top-up.js.map +1 -0
- package/dist/web-containers/source/profile/add-credits-modal.js +170 -24
- package/dist/web-containers/source/profile/add-credits-modal.js.map +1 -1
- package/dist/web-containers/source/profile/auto-recharge-modal.js +1 -1
- package/dist/web-containers/source/profile/auto-recharge-modal.js.map +1 -1
- package/dist/web-containers/source/profile/billing-credits.js +4 -4
- package/dist/web-containers/source/profile/billing-credits.js.map +1 -1
- package/dist/web-containers/source/profile/billing.js +60 -101
- package/dist/web-containers/source/profile/billing.js.map +1 -1
- package/dist/web-containers/source/profile/pending-credit-top-up.js +202 -0
- package/dist/web-containers/source/profile/pending-credit-top-up.js.map +1 -0
- package/dist/web-containers/source/profile/use-complete-pending-credit-top-up.js +68 -0
- package/dist/web-containers/source/profile/use-complete-pending-credit-top-up.js.map +1 -0
- package/dist/web-containers/source/subscription-top-banner.js +119 -0
- package/dist/web-containers/source/subscription-top-banner.js.map +1 -0
- package/dist/web-containers/source/tsconfig.build.tsbuildinfo +1 -1
- package/dist/web-containers/source/upgrade-package-modal.js +281 -20
- package/dist/web-containers/source/upgrade-package-modal.js.map +1 -1
- package/dist/web-containers/source/use-complete-pending-credit-top-up.js +68 -0
- package/dist/web-containers/source/use-complete-pending-credit-top-up.js.map +1 -0
- package/dist/web-containers/source/web-containers/tsconfig.build.tsbuildinfo +1 -1
- package/dist/web-containers/source/welcome-chat/welcome-message.js +23 -3
- package/dist/web-containers/source/welcome-chat/welcome-message.js.map +1 -1
- package/dist/web-containers/source/welcome-message.js +23 -3
- package/dist/web-containers/source/welcome-message.js.map +1 -1
- package/dist/web-containers/source/zh.json.js +126 -22
- package/dist/web-containers/source/zh.json.js.map +1 -1
- package/dist/web-utils/playwright/billing-tab-helpers.d.ts +61 -48
- package/dist/web-utils/playwright/credit-balance-helpers.d.ts +40 -18
- package/dist/web-utils/playwright/index.d.ts +3 -2
- package/dist/web-utils/playwright/plan-picker-helpers.d.ts +26 -0
- package/dist/web-utils/playwright/spend-limits-helpers.d.ts +5 -4
- package/package.json +5 -5
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { Locator, Page } from '@playwright/test';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* The two billing states the helpers tell apart: the free trial (main tenant,
|
|
4
|
+
* no workspace of your own yet) and an account on a plan, where credits are
|
|
5
|
+
* bought as needed. Every plan (Free, Pro, Max, ...) reads as `'Free'` here;
|
|
6
|
+
* the badge itself shows the plan's name.
|
|
7
|
+
*/
|
|
8
|
+
export type CreditBalancePlan = 'Free' | 'Trial';
|
|
3
9
|
/**
|
|
4
10
|
* Reads `current_tenant` from localStorage and returns its `show_paywall` flag.
|
|
5
11
|
* Returns false if the entry is missing, malformed, or the flag is unset.
|
|
@@ -9,7 +15,7 @@ export declare function getCurrentTenantShowPaywall(page: Page): Promise<boolean
|
|
|
9
15
|
export declare function creditBalanceTrigger(page: Page): Locator;
|
|
10
16
|
/** Locator for the credit-balance dropdown panel (rendered in a Radix portal). */
|
|
11
17
|
export declare function creditBalancePanel(page: Page): Locator;
|
|
12
|
-
/** Locator for the plan badge (Free
|
|
18
|
+
/** Locator for the plan badge (Trial, Free or the plan's name) inside the open panel. */
|
|
13
19
|
export declare function creditBalancePlanBadge(page: Page): Locator;
|
|
14
20
|
/**
|
|
15
21
|
* Asserts the credit-balance trigger is visible iff the current tenant has
|
|
@@ -35,39 +41,55 @@ export declare function waitForCreditBalanceLoaded(page: Page): Promise<void>;
|
|
|
35
41
|
/** Closes the credit-balance dropdown via Escape and waits for it to detach. */
|
|
36
42
|
export declare function closeCreditBalanceDropdown(page: Page): Promise<void>;
|
|
37
43
|
/**
|
|
38
|
-
* Reads the
|
|
39
|
-
*
|
|
44
|
+
* Reads the billing state from the open panel's badge: `'Trial'` on the free
|
|
45
|
+
* trial, `'Free'` for an account on any plan (the badge then shows "Free" or
|
|
46
|
+
* the plan's name). Returns null if the badge is not rendered (e.g. billing
|
|
47
|
+
* data still loading or errored).
|
|
40
48
|
*/
|
|
41
49
|
export declare function getCreditBalancePlanLabel(page: Page): Promise<CreditBalancePlan | null>;
|
|
42
50
|
/**
|
|
43
51
|
* Reads the "Remaining" credits value from the open panel ("X,XXX Credits").
|
|
44
|
-
* Returns null when the row is not rendered or unparseable.
|
|
52
|
+
* Returns null when the row is not rendered or unparseable. The panel shows
|
|
53
|
+
* cached data while it refetches, so after a top-up read it through
|
|
54
|
+
* `expect.poll(() => getCreditBalanceRemaining(page))`.
|
|
45
55
|
*/
|
|
46
56
|
export declare function getCreditBalanceRemaining(page: Page): Promise<number | null>;
|
|
47
57
|
/**
|
|
48
|
-
*
|
|
58
|
+
* UI for an account on a plan: never an "Upgrade" button; "Add Credits" always.
|
|
59
|
+
* - With a payment method: Manage Usage + Add Credits and the Auto Recharge section.
|
|
60
|
+
* - Without one: Add Credits alone (the dialog collects a card on Stripe first),
|
|
61
|
+
* no Manage Usage, no Auto Recharge section.
|
|
62
|
+
* - `hasPaymentMethod` omitted: only the badge, Add Credits and the absence of
|
|
63
|
+
* Upgrade are checked.
|
|
64
|
+
* - `planName`: the exact badge text ("Free", "Max"); omitted, any plan but
|
|
65
|
+
* the trial passes.
|
|
49
66
|
*/
|
|
50
|
-
export declare function
|
|
67
|
+
export declare function expectCreditBalancePanelForStandardPlan(page: Page, options?: {
|
|
68
|
+
hasPaymentMethod?: boolean;
|
|
69
|
+
planName?: string;
|
|
70
|
+
}): Promise<void>;
|
|
51
71
|
/**
|
|
52
|
-
* Trial
|
|
72
|
+
* Trial UI: "Upgrade" only (it opens the plan picker). No Manage Usage /
|
|
73
|
+
* Add Credits, and no Auto Recharge section.
|
|
53
74
|
*/
|
|
54
75
|
export declare function expectCreditBalancePanelForTrialPlan(page: Page): Promise<void>;
|
|
55
|
-
/**
|
|
56
|
-
* Premium plan UI: Upgrade Plan must NOT appear.
|
|
57
|
-
* - With payment method: Manage Usage + Add Credits both visible; Manage Billing hidden.
|
|
58
|
-
* - Without payment method: Manage Billing visible; Manage Usage + Add Credits hidden.
|
|
59
|
-
*/
|
|
60
|
-
export declare function expectCreditBalancePanelForPremiumPlan(page: Page, options: {
|
|
61
|
-
hasPaymentMethod: boolean;
|
|
62
|
-
}): Promise<void>;
|
|
63
76
|
/**
|
|
64
77
|
* Convenience: opens the dropdown, detects the active plan from the badge,
|
|
65
78
|
* and runs the matching state assertions on the already-open panel. Returns
|
|
66
79
|
* the detected plan label.
|
|
67
80
|
*
|
|
68
|
-
*
|
|
69
|
-
* sub-state; if omitted
|
|
81
|
+
* On the Free plan you may pass `hasPaymentMethod` to assert the specific
|
|
82
|
+
* sub-state; if omitted, only the absence of "Upgrade" is checked.
|
|
70
83
|
*/
|
|
71
84
|
export declare function expectCreditBalanceForCurrentPlan(page: Page, options?: {
|
|
72
85
|
hasPaymentMethod?: boolean;
|
|
73
86
|
}): Promise<CreditBalancePlan>;
|
|
87
|
+
/**
|
|
88
|
+
* Clicks "Upgrade" in the credit balance dropdown (free trial only) and waits
|
|
89
|
+
* for the plan picker to show its plans.
|
|
90
|
+
*/
|
|
91
|
+
export declare function openPlanPickerFromCreditBalance(page: Page): Promise<Locator>;
|
|
92
|
+
/** @deprecated The Free plan is now the free trial; use `expectCreditBalancePanelForTrialPlan`. */
|
|
93
|
+
export declare const expectCreditBalancePanelForFreePlan: typeof expectCreditBalancePanelForTrialPlan;
|
|
94
|
+
/** @deprecated The Premium plan is now the Free plan; use `expectCreditBalancePanelForStandardPlan`. */
|
|
95
|
+
export declare const expectCreditBalancePanelForPremiumPlan: typeof expectCreditBalancePanelForStandardPlan;
|
|
@@ -23,7 +23,7 @@ export type { AgentPromptField, SandboxKind } from './claw-sandbox-helpers';
|
|
|
23
23
|
export { switchToSkillsTab, verifySkillsTabVisible, switchToAgentSkillsSubTab, switchToAvailableSkillsSubTab, goToSkillsListPage, verifySkillsEmptyState, verifyAgentSkillsEmptyState, getSkillRowCount, verifySkillVisible, addSkillToAgent, verifySkillAdded, removeSkillFromAgent, isSkillEnabled, enableSkill, disableSkill, toggleSkill, setCatalogSkillEnabled, openNewSkillDialog, createSkill, openSkillActionsMenu, openEditSkillDialog, editSkill, deleteSkill, cancelDeleteSkill, switchToSkillResourcesSubTab, addTextResource, uploadAssetResource, editTextResource, deleteResource, openSlashSkillPicker, selectSlashSkill, } from './agent-skills-helpers';
|
|
24
24
|
export type { SkillFormValues, TextResourceValues } from './agent-skills-helpers';
|
|
25
25
|
export { navigateToAuditLog, verifyAuditLogTableVisible, getAuditLogRowCount, verifyAuditLogEntryStructure, verifyAuditLogEmptyState, verifyAuditLogPermissionError, verifyAuditLogGenericError, verifyAuditLogLoading, waitForAuditLogDataLoaded, filterByAction, filterByActor, getAvailableActors, filterByDateRange, clearDateRangeFilter, getPaginationInfo, goToNextPage, goToPreviousPage, goToFirstPage, goToLastPage, goToPage, verifyCurrentPage, isOnLastPage, isOnFirstPage, navigateToAuditLogAndWaitForData, filterByActionAndVerify, filterByActorAndVerify, } from './audit-log-helpers';
|
|
26
|
-
export { getCurrentTenantShowPaywall, creditBalanceTrigger, creditBalancePanel, creditBalancePlanBadge, expectCreditBalanceVisibilityForTenant, openCreditBalanceDropdown, waitForCreditBalanceLoaded, closeCreditBalanceDropdown, getCreditBalancePlanLabel, getCreditBalanceRemaining,
|
|
26
|
+
export { getCurrentTenantShowPaywall, creditBalanceTrigger, creditBalancePanel, creditBalancePlanBadge, expectCreditBalanceVisibilityForTenant, openCreditBalanceDropdown, waitForCreditBalanceLoaded, closeCreditBalanceDropdown, getCreditBalancePlanLabel, getCreditBalanceRemaining, expectCreditBalancePanelForStandardPlan, expectCreditBalancePanelForTrialPlan, expectCreditBalanceForCurrentPlan, openPlanPickerFromCreditBalance, expectCreditBalancePanelForFreePlan, expectCreditBalancePanelForPremiumPlan, } from './credit-balance-helpers';
|
|
27
27
|
export type { CreditBalancePlan } from './credit-balance-helpers';
|
|
28
28
|
export { PRIVACY_LABELS, isPrivacyTabVisible, switchToPrivacyTab, expectPrivacyFieldsHidden, expectPrivacyFieldsVisible, selectPrivacyAction, setBlockMessage, getEntityChip, setEntitySelected, expectEntitySelected, getOutputFilterSwitch, setOutputFilterEnabled, expectOutputFilterEnabled, } from './privacy-tab-helpers';
|
|
29
29
|
export type { PrivacyAction, PrivacyEntity } from './privacy-tab-helpers';
|
|
@@ -35,7 +35,8 @@ export { SCREENSHARE_LABELS, isScreenShareTabVisible, switchToScreenShareTab, op
|
|
|
35
35
|
export type { ScreenSharePromptField } from './screenshare-tab-helpers';
|
|
36
36
|
export { graderTabBody, isGraderTabVisible, switchToGraderTab, switchToGraderSubTab, isGradingEnabled, setGradingEnabled, saveGraderConfig, addGraderCriterion, editGraderCriterion, deleteGraderCriterion, expectLastCriterionDeleteDisabled, expectGraderMisconfiguredWarning, expectGraderTotalPoints, filterGradeResultsByEmail, expectGradeResultRow, overrideGradeResult, clearGradeResultOverride, GRADER_LABELS, } from './grader-tab-helpers';
|
|
37
37
|
export type { GraderCriterionInput, GraderGradingMode, GraderFeedbackMode, GraderSubTab, } from './grader-tab-helpers';
|
|
38
|
-
export {
|
|
38
|
+
export { billingCreditsSection, billingAutoRechargeSection, getBillingPlanLabel, getBillingAutoRechargeStatus, waitForBillingTabReady, expectBillingCreditsSection, expectBillingAutoRechargeSection, expectBillingTabForStandardPlan, expectBillingTabForTrialPlan, expectBillingTabForCurrentPlan, clickBillingUpgrade, openPlanPickerFromBilling, clickBillingAddCredits, addCreditsDialog, submitAddCreditsAmount, clickBillingManageUsage, billingPlanSection, expectBillingPlanSection, expectBillingTabForFreePlan, expectBillingTabForPremiumPlan, clickBillingUpgradeToStandard, clickBillingManageBilling, } from './billing-tab-helpers';
|
|
39
|
+
export { planPickerDialog, planCard, waitForPlanPicker, getPlanPickerKeys, expectPlanPicker, choosePlan, closePlanPicker, } from './plan-picker-helpers';
|
|
39
40
|
export type { BillingAutoRechargeStatus } from './billing-tab-helpers';
|
|
40
41
|
export { SPEND_LIMITS_LABELS, spendLimitsTabBody, userSpendLimitRow, isSpendLimitsTabVisible, switchToSpendLimitsTab, switchToSpendLimitsSubTab, setAgentSpendLimit, deleteAgentSpendLimit, addUserSpendLimit, editUserSpendLimit, setUserSpendLimitEnabled, deleteUserSpendLimit, workspaceSpendLimitSection, switchToWorkspaceSpendLimits, switchToPlanAndCredits, setWorkspaceSpendLimit, deleteWorkspaceSpendLimit, expectWorkspaceSpendStats, expectWorkspaceActualSpendStats, agentLimitsSection, agentLimitsRow, switchToAgentLimits, filterAgentLimits, clearAgentLimitsFilter, openAgentLimitsManage, clickSetSpendLimitForFilteredAgent, closeAgentLimitsPopup, setAgentLimitsRowEnabled, expectAgentLimitsRowContent, createAgentSpendLimitViaFilter, setAgentSpendLimitFromTenantBilling, deleteAgentSpendLimitFromTenantBilling, addUserSpendLimitFromTenantBilling, userLimitsSection, userLimitsRow, newUserDefaultSection, switchToUserLimits, filterUserLimits, clearUserLimitsFilter, clickSetSpendLimitForFilteredUser, addTenantUserSpendLimit, editTenantUserSpendLimit, setUserLimitsRowEnabled, deleteTenantUserSpendLimit, expectUserLimitsRowContent, setNewUserSpendLimitDefault, expectNewUserSpendLimitDefault, } from './spend-limits-helpers';
|
|
41
42
|
export type { SpendLimitSubTab, SpendLimitInterval, SpendLimitEnforcement, SpendLimitInput, UserSpendLimitInput, } from './spend-limits-helpers';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Locator, Page } from '@playwright/test';
|
|
2
|
+
/** The plan picker dialog a free-trial user gets from "Upgrade" (title "Choose Your Plan"). */
|
|
3
|
+
export declare function planPickerDialog(page: Page): Locator;
|
|
4
|
+
/** One plan card in the picker, by plan key (`free`, `premium`, `max`, `ultra`, ...). */
|
|
5
|
+
export declare function planCard(page: Page, planKey: string): Locator;
|
|
6
|
+
/**
|
|
7
|
+
* Waits until the picker is open and shows its plans. Fails here, not later,
|
|
8
|
+
* when the plans could not load ("Try again") or there are none.
|
|
9
|
+
*/
|
|
10
|
+
export declare function waitForPlanPicker(page: Page): Promise<Locator>;
|
|
11
|
+
/** The plan keys the picker currently shows, in order. */
|
|
12
|
+
export declare function getPlanPickerKeys(page: Page): Promise<string[]>;
|
|
13
|
+
/**
|
|
14
|
+
* Asserts the picker shows the given plans (by key, in order) and that each
|
|
15
|
+
* card offers a "Choose <name>" button. `names` maps a key to the heading it
|
|
16
|
+
* must carry (Free, Pro, Max, Ultra by default for the known keys).
|
|
17
|
+
*/
|
|
18
|
+
export declare function expectPlanPicker(page: Page, planKeys: string[], names?: Record<string, string>): Promise<void>;
|
|
19
|
+
/**
|
|
20
|
+
* Clicks the "Choose <name>" button of a plan and returns once the browser has
|
|
21
|
+
* left for Stripe (the URL no longer belongs to the app's origin). Pass the
|
|
22
|
+
* plan's key ("premium") or its heading ("Pro").
|
|
23
|
+
*/
|
|
24
|
+
export declare function choosePlan(page: Page, planKeyOrName: string): Promise<string>;
|
|
25
|
+
/** Closes the plan picker with its Close button. */
|
|
26
|
+
export declare function closePlanPicker(page: Page): Promise<void>;
|
|
@@ -7,7 +7,7 @@ import { Locator, Page } from '@playwright/test';
|
|
|
7
7
|
* "This Agent" / "Per User" sub-tabs, the per-user table with a
|
|
8
8
|
* three-dots row menu, and the add/edit user-limit modal (email-based
|
|
9
9
|
* user picker), and
|
|
10
|
-
* - the **tenant settings Billing tab** with its "
|
|
10
|
+
* - the **tenant settings Billing tab** with its "Credits" /
|
|
11
11
|
* "Spend Limits" / "Agent Limits" / "User Limits" tabs: the workspace-wide
|
|
12
12
|
* limit section (`SpendLimitsSection`), the agent caps table
|
|
13
13
|
* (`AgentLimitsSection`), and the per-user caps across all agents plus the
|
|
@@ -42,7 +42,7 @@ export declare const SPEND_LIMITS_LABELS: {
|
|
|
42
42
|
readonly users: "Per User";
|
|
43
43
|
};
|
|
44
44
|
readonly tenantTabs: {
|
|
45
|
-
readonly planAndCredits: "
|
|
45
|
+
readonly planAndCredits: "Credits";
|
|
46
46
|
readonly spendLimits: "Spend Limits";
|
|
47
47
|
readonly agentLimits: "Agent Limits";
|
|
48
48
|
readonly userLimits: "User Limits";
|
|
@@ -169,8 +169,9 @@ export declare function workspaceSpendLimitSection(page: Page): Locator;
|
|
|
169
169
|
*/
|
|
170
170
|
export declare function switchToWorkspaceSpendLimits(page: Page): Promise<void>;
|
|
171
171
|
/**
|
|
172
|
-
* Switch the tenant Billing tab back to "
|
|
173
|
-
* gated on the
|
|
172
|
+
* Switch the tenant Billing tab back to "Credits" (the first sub-tab, which
|
|
173
|
+
* used to be "Plan & Credits"). Completion is gated on the Credits section
|
|
174
|
+
* rendering.
|
|
174
175
|
*/
|
|
175
176
|
export declare function switchToPlanAndCredits(page: Page): Promise<void>;
|
|
176
177
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iblai/iblai-js",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.73.0",
|
|
4
4
|
"description": "Unified JavaScript SDK for IBL.ai — re-exports data-layer, web-containers, and web-utils under a single package",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -76,10 +76,10 @@
|
|
|
76
76
|
"axios": "1.13.6",
|
|
77
77
|
"dotenv": "16.6.1",
|
|
78
78
|
"winston": "3.19.0",
|
|
79
|
-
"@iblai/data-layer": "1.
|
|
80
|
-
"@iblai/mcp": "1.
|
|
81
|
-
"@iblai/web-containers": "1.
|
|
82
|
-
"@iblai/web-utils": "2.
|
|
79
|
+
"@iblai/data-layer": "1.44.0",
|
|
80
|
+
"@iblai/mcp": "1.45.0",
|
|
81
|
+
"@iblai/web-containers": "1.73.0",
|
|
82
|
+
"@iblai/web-utils": "2.24.0"
|
|
83
83
|
},
|
|
84
84
|
"peerDependencies": {
|
|
85
85
|
"@iblai/iblai-api": "4.166.0-ai",
|