lemma-sdk 0.2.40 → 0.2.42
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/README.md +10 -3
- package/dist/browser/lemma-client.js +95 -68
- package/dist/index.d.ts +1 -1
- package/dist/namespaces/conversations.d.ts +6 -0
- package/dist/namespaces/conversations.js +2 -0
- package/dist/namespaces/files.js +12 -21
- package/dist/namespaces/resources.d.ts +21 -5
- package/dist/openapi_client/index.d.ts +21 -15
- package/dist/openapi_client/index.js +5 -5
- package/dist/openapi_client/models/AgentResponse.d.ts +3 -2
- package/dist/openapi_client/models/BillingHistoryResponse.d.ts +8 -0
- package/dist/openapi_client/models/BillingInvoiceResponse.d.ts +29 -0
- package/dist/openapi_client/models/BillingInvoiceStatus.d.ts +10 -0
- package/dist/openapi_client/models/BillingInvoiceStatus.js +15 -0
- package/dist/openapi_client/models/BillingScope.d.ts +7 -0
- package/dist/openapi_client/models/BillingScope.js +12 -0
- package/dist/openapi_client/models/ConversationResponse.d.ts +6 -0
- package/dist/openapi_client/models/ConversationStatus.d.ts +11 -0
- package/dist/openapi_client/models/ConversationStatus.js +16 -0
- package/dist/openapi_client/models/ConversationType.d.ts +7 -0
- package/dist/openapi_client/models/ConversationType.js +12 -0
- package/dist/openapi_client/models/CreateAgentRequest.d.ts +3 -2
- package/dist/openapi_client/models/CreateConversationRequest.d.ts +4 -0
- package/dist/openapi_client/models/CreateDeskRequest.d.ts +1 -0
- package/dist/openapi_client/models/CreateFolderRequest.d.ts +1 -2
- package/dist/openapi_client/models/CreateFunctionRequest.d.ts +9 -4
- package/dist/openapi_client/models/CreateInvoicePaymentUrlRequest.d.ts +7 -0
- package/dist/openapi_client/models/CreateInvoicePaymentUrlResponse.d.ts +8 -0
- package/dist/openapi_client/models/CreateScheduleRequest.d.ts +1 -0
- package/dist/openapi_client/models/CreateTableRequest.d.ts +1 -0
- package/dist/openapi_client/models/DatastoreFileUploadRequest.d.ts +1 -2
- package/dist/openapi_client/models/DeskResponse.d.ts +2 -0
- package/dist/openapi_client/models/FileResponse.d.ts +2 -2
- package/dist/openapi_client/models/FlowResponse.d.ts +2 -0
- package/dist/openapi_client/models/FunctionResponse.d.ts +13 -2
- package/dist/openapi_client/models/{app__modules__function__api__schemas__function_schemas__TableAccessEntry.d.ts → FunctionTableAccessEntry.d.ts} +1 -1
- package/dist/openapi_client/models/PodMemberAddRequest.d.ts +1 -0
- package/dist/openapi_client/models/PodMemberDetailResponse.d.ts +1 -0
- package/dist/openapi_client/models/PodMemberResponse.d.ts +1 -0
- package/dist/openapi_client/models/PodMemberUpdateRoleRequest.d.ts +2 -1
- package/dist/openapi_client/models/PodRoleCreateRequest.d.ts +6 -0
- package/dist/openapi_client/models/PodRoleListResponse.d.ts +7 -0
- package/dist/openapi_client/models/PodRoleResponse.d.ts +11 -0
- package/dist/openapi_client/models/ScheduleResponse.d.ts +2 -0
- package/dist/openapi_client/models/SendMessageRequest.d.ts +1 -0
- package/dist/openapi_client/models/StartSubscriptionResponse.d.ts +3 -1
- package/dist/openapi_client/models/StartTeamBillingRequest.d.ts +6 -0
- package/dist/openapi_client/models/SubscriptionResponse.d.ts +22 -0
- package/dist/openapi_client/models/SubscriptionWithPlanResponse.d.ts +4 -1
- package/dist/openapi_client/models/{app__modules__agent__domain__value_objects__TableAccessEntry.d.ts → TableAccessEntry.d.ts} +1 -1
- package/dist/openapi_client/models/TableAccessEntry.js +1 -0
- package/dist/openapi_client/models/TableResponse.d.ts +2 -0
- package/dist/openapi_client/models/UpdateAgentRequest.d.ts +3 -2
- package/dist/openapi_client/models/UpdateConversationRequest.d.ts +2 -0
- package/dist/openapi_client/models/UpdateDeskRequest.d.ts +2 -0
- package/dist/openapi_client/models/UpdateFunctionRequest.d.ts +6 -2
- package/dist/openapi_client/models/UpdateScheduleRequest.d.ts +1 -0
- package/dist/openapi_client/models/UpdateTableRequest.d.ts +2 -1
- package/dist/openapi_client/models/UsageLimitScopeResponse.d.ts +10 -0
- package/dist/openapi_client/models/UsageLimitScopeResponse.js +1 -0
- package/dist/openapi_client/models/UsageLimitsResponse.d.ts +11 -0
- package/dist/openapi_client/models/UsageLimitsResponse.js +1 -0
- package/dist/openapi_client/models/UsageListResponse.d.ts +10 -0
- package/dist/openapi_client/models/UsageListResponse.js +1 -0
- package/dist/openapi_client/models/UsageRecordResponse.d.ts +12 -4
- package/dist/openapi_client/models/UsageStatsBucketResponse.d.ts +12 -0
- package/dist/openapi_client/models/UsageStatsBucketResponse.js +1 -0
- package/dist/openapi_client/models/UsageStatsResponse.d.ts +12 -0
- package/dist/openapi_client/models/UsageStatsResponse.js +1 -0
- package/dist/openapi_client/models/UsageSummaryResponse.d.ts +3 -0
- package/dist/openapi_client/models/WorkflowCreateRequest.d.ts +1 -0
- package/dist/openapi_client/models/WorkflowUpdateRequest.d.ts +1 -0
- package/dist/openapi_client/models/update.d.ts +1 -2
- package/dist/openapi_client/services/AgentConversationsService.d.ts +5 -1
- package/dist/openapi_client/services/AgentConversationsService.js +5 -1
- package/dist/openapi_client/services/BillingSubscriptionsService.d.ts +80 -20
- package/dist/openapi_client/services/BillingSubscriptionsService.js +164 -27
- package/dist/openapi_client/services/BillingUsageService.d.ts +89 -5
- package/dist/openapi_client/services/BillingUsageService.js +186 -6
- package/dist/openapi_client/services/DesksService.d.ts +21 -4
- package/dist/openapi_client/services/DesksService.js +44 -2
- package/dist/openapi_client/services/FilesService.d.ts +11 -20
- package/dist/openapi_client/services/FilesService.js +11 -28
- package/dist/openapi_client/services/FunctionsService.d.ts +2 -2
- package/dist/openapi_client/services/FunctionsService.js +2 -2
- package/dist/openapi_client/services/PodMembersService.d.ts +10 -0
- package/dist/openapi_client/services/PodMembersService.js +24 -0
- package/dist/openapi_client/services/PodRolesService.d.ts +29 -0
- package/dist/openapi_client/services/PodRolesService.js +63 -0
- package/dist/react/AuthGuard.d.ts +0 -15
- package/dist/react/AuthGuard.js +128 -167
- package/dist/react/index.d.ts +1 -1
- package/dist/react/useAssistantController.d.ts +8 -4
- package/dist/react/useAssistantController.js +9 -6
- package/dist/react/useAssistantSession.d.ts +9 -0
- package/dist/react/useAssistantSession.js +10 -2
- package/dist/react/useConversationMessages.d.ts +2 -1
- package/dist/react/useConversationMessages.js +2 -1
- package/dist/react/useConversations.d.ts +7 -1
- package/dist/react/useConversations.js +10 -4
- package/dist/types.d.ts +2 -2
- package/package.json +1 -1
- package/dist/openapi_client/models/Body_upload_file_files__resource_type___resource_id__upload_post.d.ts +0 -3
- package/dist/openapi_client/models/FileInfo.d.ts +0 -14
- package/dist/openapi_client/models/FileInfo.js +0 -8
- package/dist/openapi_client/models/FileNamespace.d.ts +0 -4
- package/dist/openapi_client/models/FileNamespace.js +0 -9
- package/dist/openapi_client/models/FileUploadResponse.d.ts +0 -6
- package/dist/openapi_client/models/GrantPermissionRequest.d.ts +0 -6
- package/dist/openapi_client/models/PodPermissionsResponse.d.ts +0 -4
- package/dist/openapi_client/models/ResourceFileListResponse.d.ts +0 -6
- package/dist/openapi_client/models/ResourcePermissionListResponse.d.ts +0 -4
- package/dist/openapi_client/models/ResourcePermissionResponse.d.ts +0 -12
- package/dist/openapi_client/models/ResourceType.d.ts +0 -4
- package/dist/openapi_client/models/ResourceType.js +0 -9
- package/dist/openapi_client/models/SetVisibilityRequest.d.ts +0 -3
- package/dist/openapi_client/services/AgentFilesService.d.ts +0 -46
- package/dist/openapi_client/services/AgentFilesService.js +0 -103
- package/dist/openapi_client/services/AuthorizationService.d.ts +0 -58
- package/dist/openapi_client/services/AuthorizationService.js +0 -122
- /package/dist/openapi_client/models/{Body_upload_file_files__resource_type___resource_id__upload_post.js → BillingHistoryResponse.js} +0 -0
- /package/dist/openapi_client/models/{FileUploadResponse.js → BillingInvoiceResponse.js} +0 -0
- /package/dist/openapi_client/models/{GrantPermissionRequest.js → CreateInvoicePaymentUrlRequest.js} +0 -0
- /package/dist/openapi_client/models/{PodPermissionsResponse.js → CreateInvoicePaymentUrlResponse.js} +0 -0
- /package/dist/openapi_client/models/{ResourceFileListResponse.js → FunctionTableAccessEntry.js} +0 -0
- /package/dist/openapi_client/models/{ResourcePermissionListResponse.js → PodRoleCreateRequest.js} +0 -0
- /package/dist/openapi_client/models/{ResourcePermissionResponse.js → PodRoleListResponse.js} +0 -0
- /package/dist/openapi_client/models/{SetVisibilityRequest.js → PodRoleResponse.js} +0 -0
- /package/dist/openapi_client/models/{app__modules__agent__domain__value_objects__TableAccessEntry.js → StartTeamBillingRequest.js} +0 -0
- /package/dist/openapi_client/models/{app__modules__function__api__schemas__function_schemas__TableAccessEntry.js → SubscriptionResponse.js} +0 -0
|
@@ -2,20 +2,22 @@ import { OpenAPI } from '../core/OpenAPI.js';
|
|
|
2
2
|
import { request as __request } from '../core/request.js';
|
|
3
3
|
export class BillingSubscriptionsService {
|
|
4
4
|
/**
|
|
5
|
-
* List
|
|
6
|
-
* List
|
|
7
|
-
* @param
|
|
5
|
+
* List Organization Billing History
|
|
6
|
+
* List invoices for an organization.
|
|
7
|
+
* @param organizationId
|
|
8
8
|
* @param limit
|
|
9
9
|
* @param pageToken
|
|
10
|
-
* @returns
|
|
10
|
+
* @returns BillingHistoryResponse Successful Response
|
|
11
11
|
* @throws ApiError
|
|
12
12
|
*/
|
|
13
|
-
static
|
|
13
|
+
static billingOrganizationHistory(organizationId, limit = 100, pageToken) {
|
|
14
14
|
return __request(OpenAPI, {
|
|
15
15
|
method: 'GET',
|
|
16
|
-
url: '/billing/
|
|
16
|
+
url: '/billing/organizations/{organization_id}/billing-history',
|
|
17
|
+
path: {
|
|
18
|
+
'organization_id': organizationId,
|
|
19
|
+
},
|
|
17
20
|
query: {
|
|
18
|
-
'only_active': onlyActive,
|
|
19
21
|
'limit': limit,
|
|
20
22
|
'page_token': pageToken,
|
|
21
23
|
},
|
|
@@ -24,29 +26,151 @@ export class BillingSubscriptionsService {
|
|
|
24
26
|
},
|
|
25
27
|
});
|
|
26
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* Get Current Organization Invoice
|
|
31
|
+
* Get or create the current unpaid monthly invoice.
|
|
32
|
+
* @param organizationId
|
|
33
|
+
* @returns BillingInvoiceResponse Successful Response
|
|
34
|
+
* @throws ApiError
|
|
35
|
+
*/
|
|
36
|
+
static billingOrganizationInvoicesCurrent(organizationId) {
|
|
37
|
+
return __request(OpenAPI, {
|
|
38
|
+
method: 'GET',
|
|
39
|
+
url: '/billing/organizations/{organization_id}/invoices/current',
|
|
40
|
+
path: {
|
|
41
|
+
'organization_id': organizationId,
|
|
42
|
+
},
|
|
43
|
+
errors: {
|
|
44
|
+
422: `Validation Error`,
|
|
45
|
+
},
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Create Invoice Payment URL
|
|
50
|
+
* Create a hosted checkout URL for an unpaid invoice.
|
|
51
|
+
* @param organizationId
|
|
52
|
+
* @param invoiceId
|
|
53
|
+
* @param requestBody
|
|
54
|
+
* @returns CreateInvoicePaymentUrlResponse Successful Response
|
|
55
|
+
* @throws ApiError
|
|
56
|
+
*/
|
|
57
|
+
static billingOrganizationInvoicesPaymentUrl(organizationId, invoiceId, requestBody) {
|
|
58
|
+
return __request(OpenAPI, {
|
|
59
|
+
method: 'POST',
|
|
60
|
+
url: '/billing/organizations/{organization_id}/invoices/{invoice_id}/payment-url',
|
|
61
|
+
path: {
|
|
62
|
+
'organization_id': organizationId,
|
|
63
|
+
'invoice_id': invoiceId,
|
|
64
|
+
},
|
|
65
|
+
body: requestBody,
|
|
66
|
+
mediaType: 'application/json',
|
|
67
|
+
errors: {
|
|
68
|
+
422: `Validation Error`,
|
|
69
|
+
},
|
|
70
|
+
});
|
|
71
|
+
}
|
|
27
72
|
/**
|
|
28
73
|
* Get Seat Info
|
|
29
74
|
* Get seat availability information.
|
|
75
|
+
* @param organizationId
|
|
30
76
|
* @returns SeatInfoResponse Successful Response
|
|
31
77
|
* @throws ApiError
|
|
32
78
|
*/
|
|
33
|
-
static
|
|
79
|
+
static billingOrganizationSeatsInfo(organizationId) {
|
|
34
80
|
return __request(OpenAPI, {
|
|
35
81
|
method: 'GET',
|
|
36
|
-
url: '/billing/seats',
|
|
82
|
+
url: '/billing/organizations/{organization_id}/seats',
|
|
83
|
+
path: {
|
|
84
|
+
'organization_id': organizationId,
|
|
85
|
+
},
|
|
86
|
+
errors: {
|
|
87
|
+
422: `Validation Error`,
|
|
88
|
+
},
|
|
37
89
|
});
|
|
38
90
|
}
|
|
39
91
|
/**
|
|
40
|
-
*
|
|
41
|
-
*
|
|
92
|
+
* Get Organization Subscription
|
|
93
|
+
* Get subscription for an organization.
|
|
94
|
+
* @param organizationId
|
|
95
|
+
* @returns SubscriptionWithPlanResponse Successful Response
|
|
96
|
+
* @throws ApiError
|
|
97
|
+
*/
|
|
98
|
+
static billingOrganizationSubscriptionGet(organizationId) {
|
|
99
|
+
return __request(OpenAPI, {
|
|
100
|
+
method: 'GET',
|
|
101
|
+
url: '/billing/organizations/{organization_id}/subscription',
|
|
102
|
+
path: {
|
|
103
|
+
'organization_id': organizationId,
|
|
104
|
+
},
|
|
105
|
+
errors: {
|
|
106
|
+
422: `Validation Error`,
|
|
107
|
+
},
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Cancel Organization Subscription
|
|
112
|
+
* Cancel an organization's team billing subscription.
|
|
113
|
+
* @param organizationId
|
|
114
|
+
* @returns CancelSubscriptionResponse Successful Response
|
|
115
|
+
* @throws ApiError
|
|
116
|
+
*/
|
|
117
|
+
static billingOrganizationSubscriptionCancel(organizationId) {
|
|
118
|
+
return __request(OpenAPI, {
|
|
119
|
+
method: 'POST',
|
|
120
|
+
url: '/billing/organizations/{organization_id}/subscription/cancel',
|
|
121
|
+
path: {
|
|
122
|
+
'organization_id': organizationId,
|
|
123
|
+
},
|
|
124
|
+
errors: {
|
|
125
|
+
422: `Validation Error`,
|
|
126
|
+
},
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Start Organization Team Billing
|
|
131
|
+
* Start monthly-invoiced team billing for an organization.
|
|
132
|
+
* @param organizationId
|
|
133
|
+
* @param requestBody
|
|
134
|
+
* @returns SubscriptionWithPlanResponse Successful Response
|
|
135
|
+
* @throws ApiError
|
|
136
|
+
*/
|
|
137
|
+
static billingOrganizationTeamBillingStart(organizationId, requestBody) {
|
|
138
|
+
return __request(OpenAPI, {
|
|
139
|
+
method: 'POST',
|
|
140
|
+
url: '/billing/organizations/{organization_id}/team-billing',
|
|
141
|
+
path: {
|
|
142
|
+
'organization_id': organizationId,
|
|
143
|
+
},
|
|
144
|
+
body: requestBody,
|
|
145
|
+
mediaType: 'application/json',
|
|
146
|
+
errors: {
|
|
147
|
+
422: `Validation Error`,
|
|
148
|
+
},
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Get Personal Subscription
|
|
153
|
+
* Get the current user's personal subscription.
|
|
154
|
+
* @returns SubscriptionWithPlanResponse Successful Response
|
|
155
|
+
* @throws ApiError
|
|
156
|
+
*/
|
|
157
|
+
static billingPersonalSubscriptionGet() {
|
|
158
|
+
return __request(OpenAPI, {
|
|
159
|
+
method: 'GET',
|
|
160
|
+
url: '/billing/personal/subscription',
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Start Personal Subscription
|
|
165
|
+
* Start a new subscription.
|
|
42
166
|
* @param requestBody
|
|
43
167
|
* @returns StartSubscriptionResponse Successful Response
|
|
44
168
|
* @throws ApiError
|
|
45
169
|
*/
|
|
46
|
-
static
|
|
170
|
+
static billingPersonalSubscriptionStart(requestBody) {
|
|
47
171
|
return __request(OpenAPI, {
|
|
48
172
|
method: 'POST',
|
|
49
|
-
url: '/billing/
|
|
173
|
+
url: '/billing/personal/subscription',
|
|
50
174
|
body: requestBody,
|
|
51
175
|
mediaType: 'application/json',
|
|
52
176
|
errors: {
|
|
@@ -55,39 +179,52 @@ export class BillingSubscriptionsService {
|
|
|
55
179
|
});
|
|
56
180
|
}
|
|
57
181
|
/**
|
|
58
|
-
* Cancel Subscription
|
|
59
|
-
* Cancel
|
|
182
|
+
* Cancel Personal Subscription
|
|
183
|
+
* Cancel subscription.
|
|
60
184
|
* @returns CancelSubscriptionResponse Successful Response
|
|
61
185
|
* @throws ApiError
|
|
62
186
|
*/
|
|
63
|
-
static
|
|
187
|
+
static billingPersonalSubscriptionCancel() {
|
|
64
188
|
return __request(OpenAPI, {
|
|
65
189
|
method: 'POST',
|
|
66
|
-
url: '/billing/
|
|
190
|
+
url: '/billing/personal/subscription/cancel',
|
|
67
191
|
});
|
|
68
192
|
}
|
|
69
193
|
/**
|
|
70
|
-
* Get
|
|
71
|
-
* Get
|
|
72
|
-
* @returns
|
|
194
|
+
* Get Personal Subscription Status
|
|
195
|
+
* Get subscription status.
|
|
196
|
+
* @returns SubscriptionStatusResponse Successful Response
|
|
73
197
|
* @throws ApiError
|
|
74
198
|
*/
|
|
75
|
-
static
|
|
199
|
+
static billingPersonalSubscriptionStatus() {
|
|
76
200
|
return __request(OpenAPI, {
|
|
77
201
|
method: 'GET',
|
|
78
|
-
url: '/billing/
|
|
202
|
+
url: '/billing/personal/subscription/status',
|
|
79
203
|
});
|
|
80
204
|
}
|
|
81
205
|
/**
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
* @
|
|
206
|
+
* List Plans
|
|
207
|
+
* List available subscription plans.
|
|
208
|
+
* @param onlyActive
|
|
209
|
+
* @param audience
|
|
210
|
+
* @param limit
|
|
211
|
+
* @param pageToken
|
|
212
|
+
* @returns PlanListResponse Successful Response
|
|
85
213
|
* @throws ApiError
|
|
86
214
|
*/
|
|
87
|
-
static
|
|
215
|
+
static billingPlansList(onlyActive = true, audience, limit = 100, pageToken) {
|
|
88
216
|
return __request(OpenAPI, {
|
|
89
217
|
method: 'GET',
|
|
90
|
-
url: '/billing/
|
|
218
|
+
url: '/billing/plans',
|
|
219
|
+
query: {
|
|
220
|
+
'only_active': onlyActive,
|
|
221
|
+
'audience': audience,
|
|
222
|
+
'limit': limit,
|
|
223
|
+
'page_token': pageToken,
|
|
224
|
+
},
|
|
225
|
+
errors: {
|
|
226
|
+
422: `Validation Error`,
|
|
227
|
+
},
|
|
91
228
|
});
|
|
92
229
|
}
|
|
93
230
|
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import type { RecentUsageResponse } from '../models/RecentUsageResponse.js';
|
|
2
|
+
import type { UsageLimitsResponse } from '../models/UsageLimitsResponse.js';
|
|
3
|
+
import type { UsageListResponse } from '../models/UsageListResponse.js';
|
|
4
|
+
import type { UsageStatsResponse } from '../models/UsageStatsResponse.js';
|
|
2
5
|
import type { UsageSummaryResponse } from '../models/UsageSummaryResponse.js';
|
|
3
6
|
import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
4
7
|
export declare class BillingUsageService {
|
|
@@ -9,11 +12,43 @@ export declare class BillingUsageService {
|
|
|
9
12
|
* @param start
|
|
10
13
|
* @param end
|
|
11
14
|
* @param modelName
|
|
15
|
+
* @param podId
|
|
16
|
+
* @param userId
|
|
17
|
+
* @param agentId
|
|
18
|
+
* @param usageKind
|
|
19
|
+
* @param status
|
|
12
20
|
* @param days
|
|
21
|
+
* @param limit
|
|
13
22
|
* @returns UsageSummaryResponse Successful Response
|
|
14
23
|
* @throws ApiError
|
|
15
24
|
*/
|
|
16
|
-
static billingUsageOrganizationSummaryGet(organizationId: string, start?: (string | null), end?: (string | null), modelName?: (string | null), days?: number): CancelablePromise<UsageSummaryResponse>;
|
|
25
|
+
static billingUsageOrganizationSummaryGet(organizationId: string, start?: (string | null), end?: (string | null), modelName?: (string | null), podId?: (string | null), userId?: (string | null), agentId?: (string | null), usageKind?: (string | null), status?: (string | null), days?: number, limit?: number): CancelablePromise<UsageSummaryResponse>;
|
|
26
|
+
/**
|
|
27
|
+
* List Organization Usage Events
|
|
28
|
+
* List usage events with optional filters.
|
|
29
|
+
* @param organizationId
|
|
30
|
+
* @param start
|
|
31
|
+
* @param end
|
|
32
|
+
* @param modelName
|
|
33
|
+
* @param podId
|
|
34
|
+
* @param userId
|
|
35
|
+
* @param agentId
|
|
36
|
+
* @param usageKind
|
|
37
|
+
* @param status
|
|
38
|
+
* @param days
|
|
39
|
+
* @param limit
|
|
40
|
+
* @returns UsageListResponse Successful Response
|
|
41
|
+
* @throws ApiError
|
|
42
|
+
*/
|
|
43
|
+
static billingUsageOrganizationEventsList(organizationId: string, start?: (string | null), end?: (string | null), modelName?: (string | null), podId?: (string | null), userId?: (string | null), agentId?: (string | null), usageKind?: (string | null), status?: (string | null), days?: number, limit?: number): CancelablePromise<UsageListResponse>;
|
|
44
|
+
/**
|
|
45
|
+
* Get Current Usage Limits
|
|
46
|
+
* Get current usage limits for the requesting user in an organization.
|
|
47
|
+
* @param organizationId
|
|
48
|
+
* @returns UsageLimitsResponse Successful Response
|
|
49
|
+
* @throws ApiError
|
|
50
|
+
*/
|
|
51
|
+
static billingUsageOrganizationLimitsGet(organizationId: string): CancelablePromise<UsageLimitsResponse>;
|
|
17
52
|
/**
|
|
18
53
|
* Get My Organization Usage Summary
|
|
19
54
|
* Get usage summary for the current user within an organization.
|
|
@@ -21,11 +56,17 @@ export declare class BillingUsageService {
|
|
|
21
56
|
* @param start
|
|
22
57
|
* @param end
|
|
23
58
|
* @param modelName
|
|
59
|
+
* @param podId
|
|
60
|
+
* @param userId
|
|
61
|
+
* @param agentId
|
|
62
|
+
* @param usageKind
|
|
63
|
+
* @param status
|
|
24
64
|
* @param days
|
|
65
|
+
* @param limit
|
|
25
66
|
* @returns UsageSummaryResponse Successful Response
|
|
26
67
|
* @throws ApiError
|
|
27
68
|
*/
|
|
28
|
-
static billingUsageOrganizationMeSummaryGet(organizationId: string, start?: (string | null), end?: (string | null), modelName?: (string | null), days?: number): CancelablePromise<UsageSummaryResponse>;
|
|
69
|
+
static billingUsageOrganizationMeSummaryGet(organizationId: string, start?: (string | null), end?: (string | null), modelName?: (string | null), podId?: (string | null), userId?: (string | null), agentId?: (string | null), usageKind?: (string | null), status?: (string | null), days?: number, limit?: number): CancelablePromise<UsageSummaryResponse>;
|
|
29
70
|
/**
|
|
30
71
|
* Get Pod Usage Summary
|
|
31
72
|
* Get usage summary for a specific pod within an organization.
|
|
@@ -33,12 +74,11 @@ export declare class BillingUsageService {
|
|
|
33
74
|
* @param podId
|
|
34
75
|
* @param start
|
|
35
76
|
* @param end
|
|
36
|
-
* @param modelName
|
|
37
77
|
* @param days
|
|
38
78
|
* @returns UsageSummaryResponse Successful Response
|
|
39
79
|
* @throws ApiError
|
|
40
80
|
*/
|
|
41
|
-
static billingUsageOrganizationPodSummaryGet(organizationId: string, podId: string, start?: (string | null), end?: (string | null),
|
|
81
|
+
static billingUsageOrganizationPodSummaryGet(organizationId: string, podId: string, start?: (string | null), end?: (string | null), days?: number): CancelablePromise<UsageSummaryResponse>;
|
|
42
82
|
/**
|
|
43
83
|
* Get Organization Recent Usage
|
|
44
84
|
* Get recent usage records for a specific organization.
|
|
@@ -46,9 +86,53 @@ export declare class BillingUsageService {
|
|
|
46
86
|
* @param start
|
|
47
87
|
* @param end
|
|
48
88
|
* @param modelName
|
|
89
|
+
* @param podId
|
|
90
|
+
* @param userId
|
|
91
|
+
* @param agentId
|
|
92
|
+
* @param usageKind
|
|
93
|
+
* @param status
|
|
49
94
|
* @param days
|
|
95
|
+
* @param limit
|
|
50
96
|
* @returns RecentUsageResponse Successful Response
|
|
51
97
|
* @throws ApiError
|
|
52
98
|
*/
|
|
53
|
-
static billingUsageOrganizationRecentGet(organizationId: string, start?: (string | null), end?: (string | null), modelName?: (string | null), days?: number): CancelablePromise<RecentUsageResponse>;
|
|
99
|
+
static billingUsageOrganizationRecentGet(organizationId: string, start?: (string | null), end?: (string | null), modelName?: (string | null), podId?: (string | null), userId?: (string | null), agentId?: (string | null), usageKind?: (string | null), status?: (string | null), days?: number, limit?: number): CancelablePromise<RecentUsageResponse>;
|
|
100
|
+
/**
|
|
101
|
+
* Get Organization Usage Stats
|
|
102
|
+
* Get bucketed usage stats with optional filters.
|
|
103
|
+
* @param organizationId
|
|
104
|
+
* @param start
|
|
105
|
+
* @param end
|
|
106
|
+
* @param modelName
|
|
107
|
+
* @param podId
|
|
108
|
+
* @param userId
|
|
109
|
+
* @param agentId
|
|
110
|
+
* @param usageKind
|
|
111
|
+
* @param status
|
|
112
|
+
* @param days
|
|
113
|
+
* @param limit
|
|
114
|
+
* @param granularity
|
|
115
|
+
* @param groupBy
|
|
116
|
+
* @returns UsageStatsResponse Successful Response
|
|
117
|
+
* @throws ApiError
|
|
118
|
+
*/
|
|
119
|
+
static billingUsageOrganizationStatsGet(organizationId: string, start?: (string | null), end?: (string | null), modelName?: (string | null), podId?: (string | null), userId?: (string | null), agentId?: (string | null), usageKind?: (string | null), status?: (string | null), days?: number, limit?: number, granularity?: string, groupBy?: (string | null)): CancelablePromise<UsageStatsResponse>;
|
|
120
|
+
/**
|
|
121
|
+
* Get Organization Usage Summary
|
|
122
|
+
* Get usage summary with optional filters.
|
|
123
|
+
* @param organizationId
|
|
124
|
+
* @param start
|
|
125
|
+
* @param end
|
|
126
|
+
* @param modelName
|
|
127
|
+
* @param podId
|
|
128
|
+
* @param userId
|
|
129
|
+
* @param agentId
|
|
130
|
+
* @param usageKind
|
|
131
|
+
* @param status
|
|
132
|
+
* @param days
|
|
133
|
+
* @param limit
|
|
134
|
+
* @returns UsageSummaryResponse Successful Response
|
|
135
|
+
* @throws ApiError
|
|
136
|
+
*/
|
|
137
|
+
static billingUsageOrganizationSummaryQuery(organizationId: string, start?: (string | null), end?: (string | null), modelName?: (string | null), podId?: (string | null), userId?: (string | null), agentId?: (string | null), usageKind?: (string | null), status?: (string | null), days?: number, limit?: number): CancelablePromise<UsageSummaryResponse>;
|
|
54
138
|
}
|
|
@@ -8,11 +8,17 @@ export class BillingUsageService {
|
|
|
8
8
|
* @param start
|
|
9
9
|
* @param end
|
|
10
10
|
* @param modelName
|
|
11
|
+
* @param podId
|
|
12
|
+
* @param userId
|
|
13
|
+
* @param agentId
|
|
14
|
+
* @param usageKind
|
|
15
|
+
* @param status
|
|
11
16
|
* @param days
|
|
17
|
+
* @param limit
|
|
12
18
|
* @returns UsageSummaryResponse Successful Response
|
|
13
19
|
* @throws ApiError
|
|
14
20
|
*/
|
|
15
|
-
static billingUsageOrganizationSummaryGet(organizationId, start, end, modelName, days = 30) {
|
|
21
|
+
static billingUsageOrganizationSummaryGet(organizationId, start, end, modelName, podId, userId, agentId, usageKind, status, days = 30, limit = 100) {
|
|
16
22
|
return __request(OpenAPI, {
|
|
17
23
|
method: 'GET',
|
|
18
24
|
url: '/billing/usage/organizations/{organization_id}',
|
|
@@ -23,7 +29,73 @@ export class BillingUsageService {
|
|
|
23
29
|
'start': start,
|
|
24
30
|
'end': end,
|
|
25
31
|
'model_name': modelName,
|
|
32
|
+
'pod_id': podId,
|
|
33
|
+
'user_id': userId,
|
|
34
|
+
'agent_id': agentId,
|
|
35
|
+
'usage_kind': usageKind,
|
|
36
|
+
'status': status,
|
|
26
37
|
'days': days,
|
|
38
|
+
'limit': limit,
|
|
39
|
+
},
|
|
40
|
+
errors: {
|
|
41
|
+
422: `Validation Error`,
|
|
42
|
+
},
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* List Organization Usage Events
|
|
47
|
+
* List usage events with optional filters.
|
|
48
|
+
* @param organizationId
|
|
49
|
+
* @param start
|
|
50
|
+
* @param end
|
|
51
|
+
* @param modelName
|
|
52
|
+
* @param podId
|
|
53
|
+
* @param userId
|
|
54
|
+
* @param agentId
|
|
55
|
+
* @param usageKind
|
|
56
|
+
* @param status
|
|
57
|
+
* @param days
|
|
58
|
+
* @param limit
|
|
59
|
+
* @returns UsageListResponse Successful Response
|
|
60
|
+
* @throws ApiError
|
|
61
|
+
*/
|
|
62
|
+
static billingUsageOrganizationEventsList(organizationId, start, end, modelName, podId, userId, agentId, usageKind, status, days = 30, limit = 100) {
|
|
63
|
+
return __request(OpenAPI, {
|
|
64
|
+
method: 'GET',
|
|
65
|
+
url: '/billing/usage/organizations/{organization_id}/events',
|
|
66
|
+
path: {
|
|
67
|
+
'organization_id': organizationId,
|
|
68
|
+
},
|
|
69
|
+
query: {
|
|
70
|
+
'start': start,
|
|
71
|
+
'end': end,
|
|
72
|
+
'model_name': modelName,
|
|
73
|
+
'pod_id': podId,
|
|
74
|
+
'user_id': userId,
|
|
75
|
+
'agent_id': agentId,
|
|
76
|
+
'usage_kind': usageKind,
|
|
77
|
+
'status': status,
|
|
78
|
+
'days': days,
|
|
79
|
+
'limit': limit,
|
|
80
|
+
},
|
|
81
|
+
errors: {
|
|
82
|
+
422: `Validation Error`,
|
|
83
|
+
},
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Get Current Usage Limits
|
|
88
|
+
* Get current usage limits for the requesting user in an organization.
|
|
89
|
+
* @param organizationId
|
|
90
|
+
* @returns UsageLimitsResponse Successful Response
|
|
91
|
+
* @throws ApiError
|
|
92
|
+
*/
|
|
93
|
+
static billingUsageOrganizationLimitsGet(organizationId) {
|
|
94
|
+
return __request(OpenAPI, {
|
|
95
|
+
method: 'GET',
|
|
96
|
+
url: '/billing/usage/organizations/{organization_id}/limits',
|
|
97
|
+
path: {
|
|
98
|
+
'organization_id': organizationId,
|
|
27
99
|
},
|
|
28
100
|
errors: {
|
|
29
101
|
422: `Validation Error`,
|
|
@@ -37,11 +109,17 @@ export class BillingUsageService {
|
|
|
37
109
|
* @param start
|
|
38
110
|
* @param end
|
|
39
111
|
* @param modelName
|
|
112
|
+
* @param podId
|
|
113
|
+
* @param userId
|
|
114
|
+
* @param agentId
|
|
115
|
+
* @param usageKind
|
|
116
|
+
* @param status
|
|
40
117
|
* @param days
|
|
118
|
+
* @param limit
|
|
41
119
|
* @returns UsageSummaryResponse Successful Response
|
|
42
120
|
* @throws ApiError
|
|
43
121
|
*/
|
|
44
|
-
static billingUsageOrganizationMeSummaryGet(organizationId, start, end, modelName, days = 30) {
|
|
122
|
+
static billingUsageOrganizationMeSummaryGet(organizationId, start, end, modelName, podId, userId, agentId, usageKind, status, days = 30, limit = 100) {
|
|
45
123
|
return __request(OpenAPI, {
|
|
46
124
|
method: 'GET',
|
|
47
125
|
url: '/billing/usage/organizations/{organization_id}/me',
|
|
@@ -52,7 +130,13 @@ export class BillingUsageService {
|
|
|
52
130
|
'start': start,
|
|
53
131
|
'end': end,
|
|
54
132
|
'model_name': modelName,
|
|
133
|
+
'pod_id': podId,
|
|
134
|
+
'user_id': userId,
|
|
135
|
+
'agent_id': agentId,
|
|
136
|
+
'usage_kind': usageKind,
|
|
137
|
+
'status': status,
|
|
55
138
|
'days': days,
|
|
139
|
+
'limit': limit,
|
|
56
140
|
},
|
|
57
141
|
errors: {
|
|
58
142
|
422: `Validation Error`,
|
|
@@ -66,12 +150,11 @@ export class BillingUsageService {
|
|
|
66
150
|
* @param podId
|
|
67
151
|
* @param start
|
|
68
152
|
* @param end
|
|
69
|
-
* @param modelName
|
|
70
153
|
* @param days
|
|
71
154
|
* @returns UsageSummaryResponse Successful Response
|
|
72
155
|
* @throws ApiError
|
|
73
156
|
*/
|
|
74
|
-
static billingUsageOrganizationPodSummaryGet(organizationId, podId, start, end,
|
|
157
|
+
static billingUsageOrganizationPodSummaryGet(organizationId, podId, start, end, days = 30) {
|
|
75
158
|
return __request(OpenAPI, {
|
|
76
159
|
method: 'GET',
|
|
77
160
|
url: '/billing/usage/organizations/{organization_id}/pods/{pod_id}',
|
|
@@ -82,7 +165,6 @@ export class BillingUsageService {
|
|
|
82
165
|
query: {
|
|
83
166
|
'start': start,
|
|
84
167
|
'end': end,
|
|
85
|
-
'model_name': modelName,
|
|
86
168
|
'days': days,
|
|
87
169
|
},
|
|
88
170
|
errors: {
|
|
@@ -97,11 +179,17 @@ export class BillingUsageService {
|
|
|
97
179
|
* @param start
|
|
98
180
|
* @param end
|
|
99
181
|
* @param modelName
|
|
182
|
+
* @param podId
|
|
183
|
+
* @param userId
|
|
184
|
+
* @param agentId
|
|
185
|
+
* @param usageKind
|
|
186
|
+
* @param status
|
|
100
187
|
* @param days
|
|
188
|
+
* @param limit
|
|
101
189
|
* @returns RecentUsageResponse Successful Response
|
|
102
190
|
* @throws ApiError
|
|
103
191
|
*/
|
|
104
|
-
static billingUsageOrganizationRecentGet(organizationId, start, end, modelName, days = 30) {
|
|
192
|
+
static billingUsageOrganizationRecentGet(organizationId, start, end, modelName, podId, userId, agentId, usageKind, status, days = 30, limit = 100) {
|
|
105
193
|
return __request(OpenAPI, {
|
|
106
194
|
method: 'GET',
|
|
107
195
|
url: '/billing/usage/organizations/{organization_id}/recent',
|
|
@@ -112,7 +200,99 @@ export class BillingUsageService {
|
|
|
112
200
|
'start': start,
|
|
113
201
|
'end': end,
|
|
114
202
|
'model_name': modelName,
|
|
203
|
+
'pod_id': podId,
|
|
204
|
+
'user_id': userId,
|
|
205
|
+
'agent_id': agentId,
|
|
206
|
+
'usage_kind': usageKind,
|
|
207
|
+
'status': status,
|
|
208
|
+
'days': days,
|
|
209
|
+
'limit': limit,
|
|
210
|
+
},
|
|
211
|
+
errors: {
|
|
212
|
+
422: `Validation Error`,
|
|
213
|
+
},
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Get Organization Usage Stats
|
|
218
|
+
* Get bucketed usage stats with optional filters.
|
|
219
|
+
* @param organizationId
|
|
220
|
+
* @param start
|
|
221
|
+
* @param end
|
|
222
|
+
* @param modelName
|
|
223
|
+
* @param podId
|
|
224
|
+
* @param userId
|
|
225
|
+
* @param agentId
|
|
226
|
+
* @param usageKind
|
|
227
|
+
* @param status
|
|
228
|
+
* @param days
|
|
229
|
+
* @param limit
|
|
230
|
+
* @param granularity
|
|
231
|
+
* @param groupBy
|
|
232
|
+
* @returns UsageStatsResponse Successful Response
|
|
233
|
+
* @throws ApiError
|
|
234
|
+
*/
|
|
235
|
+
static billingUsageOrganizationStatsGet(organizationId, start, end, modelName, podId, userId, agentId, usageKind, status, days = 30, limit = 100, granularity = 'day', groupBy) {
|
|
236
|
+
return __request(OpenAPI, {
|
|
237
|
+
method: 'GET',
|
|
238
|
+
url: '/billing/usage/organizations/{organization_id}/stats',
|
|
239
|
+
path: {
|
|
240
|
+
'organization_id': organizationId,
|
|
241
|
+
},
|
|
242
|
+
query: {
|
|
243
|
+
'start': start,
|
|
244
|
+
'end': end,
|
|
245
|
+
'model_name': modelName,
|
|
246
|
+
'pod_id': podId,
|
|
247
|
+
'user_id': userId,
|
|
248
|
+
'agent_id': agentId,
|
|
249
|
+
'usage_kind': usageKind,
|
|
250
|
+
'status': status,
|
|
251
|
+
'days': days,
|
|
252
|
+
'limit': limit,
|
|
253
|
+
'granularity': granularity,
|
|
254
|
+
'group_by': groupBy,
|
|
255
|
+
},
|
|
256
|
+
errors: {
|
|
257
|
+
422: `Validation Error`,
|
|
258
|
+
},
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* Get Organization Usage Summary
|
|
263
|
+
* Get usage summary with optional filters.
|
|
264
|
+
* @param organizationId
|
|
265
|
+
* @param start
|
|
266
|
+
* @param end
|
|
267
|
+
* @param modelName
|
|
268
|
+
* @param podId
|
|
269
|
+
* @param userId
|
|
270
|
+
* @param agentId
|
|
271
|
+
* @param usageKind
|
|
272
|
+
* @param status
|
|
273
|
+
* @param days
|
|
274
|
+
* @param limit
|
|
275
|
+
* @returns UsageSummaryResponse Successful Response
|
|
276
|
+
* @throws ApiError
|
|
277
|
+
*/
|
|
278
|
+
static billingUsageOrganizationSummaryQuery(organizationId, start, end, modelName, podId, userId, agentId, usageKind, status, days = 30, limit = 100) {
|
|
279
|
+
return __request(OpenAPI, {
|
|
280
|
+
method: 'GET',
|
|
281
|
+
url: '/billing/usage/organizations/{organization_id}/summary',
|
|
282
|
+
path: {
|
|
283
|
+
'organization_id': organizationId,
|
|
284
|
+
},
|
|
285
|
+
query: {
|
|
286
|
+
'start': start,
|
|
287
|
+
'end': end,
|
|
288
|
+
'model_name': modelName,
|
|
289
|
+
'pod_id': podId,
|
|
290
|
+
'user_id': userId,
|
|
291
|
+
'agent_id': agentId,
|
|
292
|
+
'usage_kind': usageKind,
|
|
293
|
+
'status': status,
|
|
115
294
|
'days': days,
|
|
295
|
+
'limit': limit,
|
|
116
296
|
},
|
|
117
297
|
errors: {
|
|
118
298
|
422: `Validation Error`,
|