Skip to content

Commit 7f3b963

Browse files
fix: BROS-332: Add missing license mgmt endpoints (#509)
Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
1 parent ee768e0 commit 7f3b963

29 files changed

+2884
-926
lines changed

.mock/definition/__package__.yml

Lines changed: 215 additions & 108 deletions
Large diffs are not rendered by default.

.mock/definition/billing.yml

Lines changed: 244 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,244 @@
1+
imports:
2+
root: __package__.yml
3+
service:
4+
auth: false
5+
base-path: ''
6+
endpoints:
7+
info:
8+
path: /api/billing/info
9+
method: GET
10+
auth: true
11+
docs: Retrieve billing checks and feature flags for the active organization.
12+
source:
13+
openapi: openapi/openapi.yaml
14+
display-name: Get billing info
15+
response:
16+
docs: Billing information for the active organization
17+
type: root.BillingInfoResponse
18+
examples:
19+
- name: real-sample
20+
response:
21+
body:
22+
billing_checks:
23+
users:
24+
count: 110
25+
limit: 1000
26+
reached: false
27+
total: 221
28+
projects:
29+
count: 2044
30+
limit: 1000000
31+
reached: false
32+
total: 1
33+
results:
34+
count: 42949
35+
limit: 1000000000
36+
reached: false
37+
total: 1
38+
trial_days: 0
39+
organization_is_active: true
40+
license_issued: '2000-01-01'
41+
license_warning: '2030-01-01'
42+
is_license_warning: false
43+
license_expires: '2030-01-02'
44+
is_license_expired: false
45+
prompts_enabled: true
46+
prompts_status: Enabled
47+
prompts_warning: prompts_warning
48+
is_prompts_warning: false
49+
prompts_expire: prompts_expire
50+
is_prompts_expire: false
51+
prompts_api_keys_enabled: true
52+
import_storages:
53+
count: 0
54+
limit: 0
55+
reached: false
56+
total: 1
57+
export_storages:
58+
count: 0
59+
limit: 0
60+
reached: false
61+
total: 1
62+
billing_flags:
63+
activated_at: '2024-01-15T09:30:00Z'
64+
cloud_instance: true
65+
allow_activity_log: true
66+
allow_invite_project_experts: true
67+
allow_sso: true
68+
white_label_id: white_label_id
69+
allow_data_credentials: false
70+
allow_organization_webhooks: false
71+
disable_members_page: false
72+
secure_mode: false
73+
manual_workspace_management: true
74+
manual_role_management: true
75+
hide_storage_settings_for_manager: false
76+
disable_project_imports: false
77+
automax_token_exists: true
78+
automax_enabled: true
79+
storage_persistence: true
80+
allow_ai: true
81+
early_adopter: true
82+
allow_ask_ai: true
83+
allow_invite_people: true
84+
allow_storage_proxy: true
85+
embed_enabled: true
86+
embed_domains:
87+
- domain: http://localhost:3000
88+
- domain: https://purple-zoos-flash.loca.lt
89+
embed_settings:
90+
public_verify_alg:
91+
- RS256
92+
public_verify_key: ....
93+
- name: cloud
94+
response:
95+
body:
96+
billing_checks:
97+
users:
98+
count: 5
99+
limit: 10
100+
reached: false
101+
total: 6
102+
projects:
103+
count: 3
104+
limit: 50
105+
reached: false
106+
total: 1
107+
results:
108+
count: 100
109+
limit: 1000
110+
reached: false
111+
total: 1
112+
trial_days: 14
113+
organization_is_active: true
114+
license_issued: '2023-01-01'
115+
license_warning: '2024-12-01'
116+
is_license_warning: false
117+
license_expires: '2025-01-01'
118+
is_license_expired: false
119+
prompts_enabled: true
120+
prompts_status: Enabled
121+
prompts_warning: prompts_warning
122+
is_prompts_warning: false
123+
prompts_expire: '2024-12-31'
124+
is_prompts_expire: false
125+
prompts_api_keys_enabled: true
126+
import_storages:
127+
count: 0
128+
limit: 0
129+
reached: false
130+
total: 1
131+
export_storages:
132+
count: 0
133+
limit: 0
134+
reached: false
135+
total: 1
136+
billing_flags:
137+
activated_at: '2023-01-01T00:00:00Z'
138+
cloud_instance: true
139+
allow_activity_log: true
140+
allow_invite_project_experts: true
141+
allow_sso: false
142+
white_label_id: white_label_id
143+
allow_data_credentials: true
144+
allow_organization_webhooks: true
145+
disable_members_page: false
146+
secure_mode: false
147+
manual_workspace_management: false
148+
manual_role_management: false
149+
hide_storage_settings_for_manager: false
150+
disable_project_imports: false
151+
automax_token_exists: false
152+
automax_enabled: true
153+
storage_persistence: true
154+
allow_ai: true
155+
early_adopter: false
156+
allow_ask_ai: true
157+
allow_invite_people: true
158+
allow_storage_proxy: true
159+
embed_enabled: false
160+
embed_domains:
161+
- domain: http://localhost:3000
162+
- domain: https://example.com
163+
embed_settings:
164+
public_verify_alg:
165+
- RS256
166+
public_verify_key: ....
167+
- name: enterprise
168+
response:
169+
body:
170+
billing_checks:
171+
users:
172+
count: 20
173+
limit: 100
174+
reached: false
175+
total: 22
176+
projects:
177+
count: 15
178+
limit: 200
179+
reached: false
180+
total: 1
181+
results:
182+
count: 25000
183+
limit: 100000
184+
reached: false
185+
total: 1
186+
trial_days: 0
187+
organization_is_active: true
188+
license_issued: '2023-01-01'
189+
license_warning: '2024-12-01'
190+
is_license_warning: false
191+
license_expires: '2025-01-01'
192+
is_license_expired: false
193+
prompts_enabled: true
194+
prompts_status: Enabled
195+
prompts_warning: prompts_warning
196+
is_prompts_warning: false
197+
prompts_expire: prompts_expire
198+
is_prompts_expire: false
199+
prompts_api_keys_enabled: true
200+
import_storages:
201+
count: 0
202+
limit: 0
203+
reached: false
204+
total: 1
205+
export_storages:
206+
count: 0
207+
limit: 0
208+
reached: false
209+
total: 1
210+
billing_flags:
211+
activated_at: '2024-01-15T09:30:00Z'
212+
cloud_instance: false
213+
allow_activity_log: true
214+
allow_invite_project_experts: true
215+
allow_sso: true
216+
white_label_id: wl-1
217+
allow_data_credentials: true
218+
allow_organization_webhooks: true
219+
disable_members_page: false
220+
secure_mode: false
221+
manual_workspace_management: false
222+
manual_role_management: false
223+
hide_storage_settings_for_manager: false
224+
disable_project_imports: false
225+
automax_token_exists: true
226+
automax_enabled: true
227+
storage_persistence: true
228+
allow_ai: false
229+
early_adopter: true
230+
allow_ask_ai: true
231+
allow_invite_people: true
232+
allow_storage_proxy: true
233+
embed_enabled: false
234+
embed_domains:
235+
- domain: http://localhost:3000
236+
- domain: https://example.com
237+
embed_settings:
238+
public_verify_alg:
239+
- RS256
240+
public_verify_key: ....
241+
audiences:
242+
- public
243+
source:
244+
openapi: openapi/openapi.yaml

0 commit comments

Comments
 (0)