lemma-sdk 0.2.40 → 0.2.41

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.
Files changed (114) hide show
  1. package/README.md +5 -1
  2. package/dist/browser/lemma-client.js +80 -14
  3. package/dist/index.d.ts +1 -1
  4. package/dist/namespaces/resources.d.ts +21 -5
  5. package/dist/openapi_client/index.d.ts +19 -14
  6. package/dist/openapi_client/index.js +3 -4
  7. package/dist/openapi_client/models/AgentResponse.d.ts +3 -2
  8. package/dist/openapi_client/models/BillingHistoryResponse.d.ts +8 -0
  9. package/dist/openapi_client/models/BillingInvoiceResponse.d.ts +29 -0
  10. package/dist/openapi_client/models/BillingInvoiceStatus.d.ts +10 -0
  11. package/dist/openapi_client/models/BillingInvoiceStatus.js +15 -0
  12. package/dist/openapi_client/models/BillingScope.d.ts +7 -0
  13. package/dist/openapi_client/models/BillingScope.js +12 -0
  14. package/dist/openapi_client/models/ConversationResponse.d.ts +1 -0
  15. package/dist/openapi_client/models/CreateAgentRequest.d.ts +3 -2
  16. package/dist/openapi_client/models/CreateConversationRequest.d.ts +1 -0
  17. package/dist/openapi_client/models/CreateDeskRequest.d.ts +1 -0
  18. package/dist/openapi_client/models/CreateFolderRequest.d.ts +2 -0
  19. package/dist/openapi_client/models/CreateFunctionRequest.d.ts +9 -4
  20. package/dist/openapi_client/models/CreateInvoicePaymentUrlRequest.d.ts +7 -0
  21. package/dist/openapi_client/models/CreateInvoicePaymentUrlResponse.d.ts +8 -0
  22. package/dist/openapi_client/models/CreateScheduleRequest.d.ts +1 -0
  23. package/dist/openapi_client/models/CreateTableRequest.d.ts +1 -0
  24. package/dist/openapi_client/models/DatastoreFileUploadRequest.d.ts +1 -0
  25. package/dist/openapi_client/models/DeskResponse.d.ts +2 -0
  26. package/dist/openapi_client/models/FileResponse.d.ts +2 -0
  27. package/dist/openapi_client/models/FlowResponse.d.ts +2 -0
  28. package/dist/openapi_client/models/FunctionResponse.d.ts +13 -2
  29. package/dist/openapi_client/models/{app__modules__function__api__schemas__function_schemas__TableAccessEntry.d.ts → FunctionTableAccessEntry.d.ts} +1 -1
  30. package/dist/openapi_client/models/PodMemberAddRequest.d.ts +1 -0
  31. package/dist/openapi_client/models/PodMemberDetailResponse.d.ts +1 -0
  32. package/dist/openapi_client/models/PodMemberResponse.d.ts +1 -0
  33. package/dist/openapi_client/models/PodMemberUpdateRoleRequest.d.ts +2 -1
  34. package/dist/openapi_client/models/PodRoleCreateRequest.d.ts +6 -0
  35. package/dist/openapi_client/models/PodRoleListResponse.d.ts +7 -0
  36. package/dist/openapi_client/models/PodRoleResponse.d.ts +11 -0
  37. package/dist/openapi_client/models/ScheduleResponse.d.ts +2 -0
  38. package/dist/openapi_client/models/SendMessageRequest.d.ts +1 -0
  39. package/dist/openapi_client/models/StartSubscriptionResponse.d.ts +3 -1
  40. package/dist/openapi_client/models/StartTeamBillingRequest.d.ts +6 -0
  41. package/dist/openapi_client/models/SubscriptionResponse.d.ts +22 -0
  42. package/dist/openapi_client/models/SubscriptionWithPlanResponse.d.ts +4 -1
  43. package/dist/openapi_client/models/{app__modules__agent__domain__value_objects__TableAccessEntry.d.ts → TableAccessEntry.d.ts} +1 -1
  44. package/dist/openapi_client/models/TableAccessEntry.js +1 -0
  45. package/dist/openapi_client/models/TableResponse.d.ts +2 -0
  46. package/dist/openapi_client/models/UpdateAgentRequest.d.ts +3 -2
  47. package/dist/openapi_client/models/UpdateConversationRequest.d.ts +1 -0
  48. package/dist/openapi_client/models/UpdateDeskRequest.d.ts +2 -0
  49. package/dist/openapi_client/models/UpdateFunctionRequest.d.ts +6 -2
  50. package/dist/openapi_client/models/UpdateScheduleRequest.d.ts +1 -0
  51. package/dist/openapi_client/models/UpdateTableRequest.d.ts +2 -1
  52. package/dist/openapi_client/models/UsageLimitScopeResponse.d.ts +10 -0
  53. package/dist/openapi_client/models/UsageLimitScopeResponse.js +1 -0
  54. package/dist/openapi_client/models/UsageLimitsResponse.d.ts +11 -0
  55. package/dist/openapi_client/models/UsageLimitsResponse.js +1 -0
  56. package/dist/openapi_client/models/UsageListResponse.d.ts +10 -0
  57. package/dist/openapi_client/models/UsageListResponse.js +1 -0
  58. package/dist/openapi_client/models/UsageRecordResponse.d.ts +12 -4
  59. package/dist/openapi_client/models/UsageStatsBucketResponse.d.ts +12 -0
  60. package/dist/openapi_client/models/UsageStatsBucketResponse.js +1 -0
  61. package/dist/openapi_client/models/UsageStatsResponse.d.ts +12 -0
  62. package/dist/openapi_client/models/UsageStatsResponse.js +1 -0
  63. package/dist/openapi_client/models/UsageSummaryResponse.d.ts +3 -0
  64. package/dist/openapi_client/models/WorkflowCreateRequest.d.ts +1 -0
  65. package/dist/openapi_client/models/WorkflowUpdateRequest.d.ts +1 -0
  66. package/dist/openapi_client/models/update.d.ts +2 -0
  67. package/dist/openapi_client/services/BillingSubscriptionsService.d.ts +80 -20
  68. package/dist/openapi_client/services/BillingSubscriptionsService.js +164 -27
  69. package/dist/openapi_client/services/BillingUsageService.d.ts +89 -5
  70. package/dist/openapi_client/services/BillingUsageService.js +186 -6
  71. package/dist/openapi_client/services/DesksService.d.ts +21 -4
  72. package/dist/openapi_client/services/DesksService.js +44 -2
  73. package/dist/openapi_client/services/FilesService.d.ts +10 -10
  74. package/dist/openapi_client/services/FilesService.js +10 -10
  75. package/dist/openapi_client/services/FunctionsService.d.ts +2 -2
  76. package/dist/openapi_client/services/FunctionsService.js +2 -2
  77. package/dist/openapi_client/services/PodMembersService.d.ts +10 -0
  78. package/dist/openapi_client/services/PodMembersService.js +24 -0
  79. package/dist/openapi_client/services/PodRolesService.d.ts +29 -0
  80. package/dist/openapi_client/services/PodRolesService.js +63 -0
  81. package/dist/react/index.d.ts +1 -1
  82. package/dist/react/useAssistantController.d.ts +8 -4
  83. package/dist/react/useAssistantController.js +9 -6
  84. package/dist/react/useAssistantSession.d.ts +3 -0
  85. package/dist/react/useAssistantSession.js +6 -2
  86. package/dist/react/useConversationMessages.d.ts +2 -1
  87. package/dist/react/useConversationMessages.js +2 -1
  88. package/package.json +1 -1
  89. package/dist/openapi_client/models/Body_upload_file_files__resource_type___resource_id__upload_post.d.ts +0 -3
  90. package/dist/openapi_client/models/FileInfo.d.ts +0 -14
  91. package/dist/openapi_client/models/FileInfo.js +0 -8
  92. package/dist/openapi_client/models/FileUploadResponse.d.ts +0 -6
  93. package/dist/openapi_client/models/GrantPermissionRequest.d.ts +0 -6
  94. package/dist/openapi_client/models/PodPermissionsResponse.d.ts +0 -4
  95. package/dist/openapi_client/models/ResourceFileListResponse.d.ts +0 -6
  96. package/dist/openapi_client/models/ResourcePermissionListResponse.d.ts +0 -4
  97. package/dist/openapi_client/models/ResourcePermissionResponse.d.ts +0 -12
  98. package/dist/openapi_client/models/ResourceType.d.ts +0 -4
  99. package/dist/openapi_client/models/ResourceType.js +0 -9
  100. package/dist/openapi_client/models/SetVisibilityRequest.d.ts +0 -3
  101. package/dist/openapi_client/services/AgentFilesService.d.ts +0 -46
  102. package/dist/openapi_client/services/AgentFilesService.js +0 -103
  103. package/dist/openapi_client/services/AuthorizationService.d.ts +0 -58
  104. package/dist/openapi_client/services/AuthorizationService.js +0 -122
  105. /package/dist/openapi_client/models/{Body_upload_file_files__resource_type___resource_id__upload_post.js → BillingHistoryResponse.js} +0 -0
  106. /package/dist/openapi_client/models/{FileUploadResponse.js → BillingInvoiceResponse.js} +0 -0
  107. /package/dist/openapi_client/models/{GrantPermissionRequest.js → CreateInvoicePaymentUrlRequest.js} +0 -0
  108. /package/dist/openapi_client/models/{PodPermissionsResponse.js → CreateInvoicePaymentUrlResponse.js} +0 -0
  109. /package/dist/openapi_client/models/{ResourceFileListResponse.js → FunctionTableAccessEntry.js} +0 -0
  110. /package/dist/openapi_client/models/{ResourcePermissionListResponse.js → PodRoleCreateRequest.js} +0 -0
  111. /package/dist/openapi_client/models/{ResourcePermissionResponse.js → PodRoleListResponse.js} +0 -0
  112. /package/dist/openapi_client/models/{SetVisibilityRequest.js → PodRoleResponse.js} +0 -0
  113. /package/dist/openapi_client/models/{app__modules__agent__domain__value_objects__TableAccessEntry.js → StartTeamBillingRequest.js} +0 -0
  114. /package/dist/openapi_client/models/{app__modules__function__api__schemas__function_schemas__TableAccessEntry.js → SubscriptionResponse.js} +0 -0
@@ -1,56 +1,116 @@
1
+ import type { BillingHistoryResponse } from '../models/BillingHistoryResponse.js';
2
+ import type { BillingInvoiceResponse } from '../models/BillingInvoiceResponse.js';
1
3
  import type { CancelSubscriptionResponse } from '../models/CancelSubscriptionResponse.js';
4
+ import type { CreateInvoicePaymentUrlRequest } from '../models/CreateInvoicePaymentUrlRequest.js';
5
+ import type { CreateInvoicePaymentUrlResponse } from '../models/CreateInvoicePaymentUrlResponse.js';
2
6
  import type { PlanListResponse } from '../models/PlanListResponse.js';
3
7
  import type { SeatInfoResponse } from '../models/SeatInfoResponse.js';
4
8
  import type { StartSubscriptionRequest } from '../models/StartSubscriptionRequest.js';
5
9
  import type { StartSubscriptionResponse } from '../models/StartSubscriptionResponse.js';
10
+ import type { StartTeamBillingRequest } from '../models/StartTeamBillingRequest.js';
6
11
  import type { SubscriptionStatusResponse } from '../models/SubscriptionStatusResponse.js';
7
12
  import type { SubscriptionWithPlanResponse } from '../models/SubscriptionWithPlanResponse.js';
8
13
  import type { CancelablePromise } from '../core/CancelablePromise.js';
9
14
  export declare class BillingSubscriptionsService {
10
15
  /**
11
- * List Plans
12
- * List available subscription plans.
13
- * @param onlyActive
16
+ * List Organization Billing History
17
+ * List invoices for an organization.
18
+ * @param organizationId
14
19
  * @param limit
15
20
  * @param pageToken
16
- * @returns PlanListResponse Successful Response
21
+ * @returns BillingHistoryResponse Successful Response
22
+ * @throws ApiError
23
+ */
24
+ static billingOrganizationHistory(organizationId: string, limit?: number, pageToken?: (string | null)): CancelablePromise<BillingHistoryResponse>;
25
+ /**
26
+ * Get Current Organization Invoice
27
+ * Get or create the current unpaid monthly invoice.
28
+ * @param organizationId
29
+ * @returns BillingInvoiceResponse Successful Response
17
30
  * @throws ApiError
18
31
  */
19
- static billingPlansList(onlyActive?: boolean, limit?: number, pageToken?: (string | null)): CancelablePromise<PlanListResponse>;
32
+ static billingOrganizationInvoicesCurrent(organizationId: string): CancelablePromise<BillingInvoiceResponse>;
33
+ /**
34
+ * Create Invoice Payment URL
35
+ * Create a hosted checkout URL for an unpaid invoice.
36
+ * @param organizationId
37
+ * @param invoiceId
38
+ * @param requestBody
39
+ * @returns CreateInvoicePaymentUrlResponse Successful Response
40
+ * @throws ApiError
41
+ */
42
+ static billingOrganizationInvoicesPaymentUrl(organizationId: string, invoiceId: string, requestBody: CreateInvoicePaymentUrlRequest): CancelablePromise<CreateInvoicePaymentUrlResponse>;
20
43
  /**
21
44
  * Get Seat Info
22
45
  * Get seat availability information.
46
+ * @param organizationId
23
47
  * @returns SeatInfoResponse Successful Response
24
48
  * @throws ApiError
25
49
  */
26
- static billingSeatsInfo(): CancelablePromise<SeatInfoResponse>;
50
+ static billingOrganizationSeatsInfo(organizationId: string): CancelablePromise<SeatInfoResponse>;
27
51
  /**
28
- * Start Subscription
29
- * Start a new subscription. Returns checkout URL.
30
- * @param requestBody
31
- * @returns StartSubscriptionResponse Successful Response
52
+ * Get Organization Subscription
53
+ * Get subscription for an organization.
54
+ * @param organizationId
55
+ * @returns SubscriptionWithPlanResponse Successful Response
32
56
  * @throws ApiError
33
57
  */
34
- static billingSubscriptionsStart(requestBody: StartSubscriptionRequest): CancelablePromise<StartSubscriptionResponse>;
58
+ static billingOrganizationSubscriptionGet(organizationId: string): CancelablePromise<SubscriptionWithPlanResponse>;
35
59
  /**
36
- * Cancel Subscription
37
- * Cancel the current subscription.
60
+ * Cancel Organization Subscription
61
+ * Cancel an organization's team billing subscription.
62
+ * @param organizationId
38
63
  * @returns CancelSubscriptionResponse Successful Response
39
64
  * @throws ApiError
40
65
  */
41
- static billingSubscriptionsCancel(): CancelablePromise<CancelSubscriptionResponse>;
66
+ static billingOrganizationSubscriptionCancel(organizationId: string): CancelablePromise<CancelSubscriptionResponse>;
67
+ /**
68
+ * Start Organization Team Billing
69
+ * Start monthly-invoiced team billing for an organization.
70
+ * @param organizationId
71
+ * @param requestBody
72
+ * @returns SubscriptionWithPlanResponse Successful Response
73
+ * @throws ApiError
74
+ */
75
+ static billingOrganizationTeamBillingStart(organizationId: string, requestBody: StartTeamBillingRequest): CancelablePromise<SubscriptionWithPlanResponse>;
42
76
  /**
43
- * Get My Subscription
44
- * Get the current organization's subscription.
77
+ * Get Personal Subscription
78
+ * Get the current user's personal subscription.
45
79
  * @returns SubscriptionWithPlanResponse Successful Response
46
80
  * @throws ApiError
47
81
  */
48
- static billingSubscriptionsMy(): CancelablePromise<SubscriptionWithPlanResponse>;
82
+ static billingPersonalSubscriptionGet(): CancelablePromise<SubscriptionWithPlanResponse>;
49
83
  /**
50
- * Get Subscription Status
51
- * Get simple subscription status for the organization.
84
+ * Start Personal Subscription
85
+ * Start a new subscription.
86
+ * @param requestBody
87
+ * @returns StartSubscriptionResponse Successful Response
88
+ * @throws ApiError
89
+ */
90
+ static billingPersonalSubscriptionStart(requestBody: StartSubscriptionRequest): CancelablePromise<StartSubscriptionResponse>;
91
+ /**
92
+ * Cancel Personal Subscription
93
+ * Cancel subscription.
94
+ * @returns CancelSubscriptionResponse Successful Response
95
+ * @throws ApiError
96
+ */
97
+ static billingPersonalSubscriptionCancel(): CancelablePromise<CancelSubscriptionResponse>;
98
+ /**
99
+ * Get Personal Subscription Status
100
+ * Get subscription status.
52
101
  * @returns SubscriptionStatusResponse Successful Response
53
102
  * @throws ApiError
54
103
  */
55
- static billingSubscriptionsStatus(): CancelablePromise<SubscriptionStatusResponse>;
104
+ static billingPersonalSubscriptionStatus(): CancelablePromise<SubscriptionStatusResponse>;
105
+ /**
106
+ * List Plans
107
+ * List available subscription plans.
108
+ * @param onlyActive
109
+ * @param audience
110
+ * @param limit
111
+ * @param pageToken
112
+ * @returns PlanListResponse Successful Response
113
+ * @throws ApiError
114
+ */
115
+ static billingPlansList(onlyActive?: boolean, audience?: (string | null), limit?: number, pageToken?: (string | null)): CancelablePromise<PlanListResponse>;
56
116
  }
@@ -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 Plans
6
- * List available subscription plans.
7
- * @param onlyActive
5
+ * List Organization Billing History
6
+ * List invoices for an organization.
7
+ * @param organizationId
8
8
  * @param limit
9
9
  * @param pageToken
10
- * @returns PlanListResponse Successful Response
10
+ * @returns BillingHistoryResponse Successful Response
11
11
  * @throws ApiError
12
12
  */
13
- static billingPlansList(onlyActive = true, limit = 100, pageToken) {
13
+ static billingOrganizationHistory(organizationId, limit = 100, pageToken) {
14
14
  return __request(OpenAPI, {
15
15
  method: 'GET',
16
- url: '/billing/plans',
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 billingSeatsInfo() {
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
- * Start Subscription
41
- * Start a new subscription. Returns checkout URL.
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 billingSubscriptionsStart(requestBody) {
170
+ static billingPersonalSubscriptionStart(requestBody) {
47
171
  return __request(OpenAPI, {
48
172
  method: 'POST',
49
- url: '/billing/subscriptions',
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 the current subscription.
182
+ * Cancel Personal Subscription
183
+ * Cancel subscription.
60
184
  * @returns CancelSubscriptionResponse Successful Response
61
185
  * @throws ApiError
62
186
  */
63
- static billingSubscriptionsCancel() {
187
+ static billingPersonalSubscriptionCancel() {
64
188
  return __request(OpenAPI, {
65
189
  method: 'POST',
66
- url: '/billing/subscriptions/cancel',
190
+ url: '/billing/personal/subscription/cancel',
67
191
  });
68
192
  }
69
193
  /**
70
- * Get My Subscription
71
- * Get the current organization's subscription.
72
- * @returns SubscriptionWithPlanResponse Successful Response
194
+ * Get Personal Subscription Status
195
+ * Get subscription status.
196
+ * @returns SubscriptionStatusResponse Successful Response
73
197
  * @throws ApiError
74
198
  */
75
- static billingSubscriptionsMy() {
199
+ static billingPersonalSubscriptionStatus() {
76
200
  return __request(OpenAPI, {
77
201
  method: 'GET',
78
- url: '/billing/subscriptions/my',
202
+ url: '/billing/personal/subscription/status',
79
203
  });
80
204
  }
81
205
  /**
82
- * Get Subscription Status
83
- * Get simple subscription status for the organization.
84
- * @returns SubscriptionStatusResponse Successful Response
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 billingSubscriptionsStatus() {
215
+ static billingPlansList(onlyActive = true, audience, limit = 100, pageToken) {
88
216
  return __request(OpenAPI, {
89
217
  method: 'GET',
90
- url: '/billing/subscriptions/status',
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), modelName?: (string | null), days?: number): CancelablePromise<UsageSummaryResponse>;
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
  }