lemma-sdk 0.2.44 → 0.2.45

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 (273) hide show
  1. package/README.md +1 -1
  2. package/dist/assistant-events.d.ts +1 -0
  3. package/dist/assistant-events.js +25 -0
  4. package/dist/browser/lemma-client.js +264 -152
  5. package/dist/config.d.ts +2 -2
  6. package/dist/config.js +2 -2
  7. package/dist/hey_client/client/client.gen.d.ts +2 -0
  8. package/dist/hey_client/client/client.gen.js +216 -0
  9. package/dist/hey_client/client/index.d.ts +10 -0
  10. package/dist/hey_client/client/index.js +6 -0
  11. package/dist/hey_client/client/types.gen.d.ts +120 -0
  12. package/dist/hey_client/client/types.gen.js +2 -0
  13. package/dist/hey_client/client/utils.gen.d.ts +37 -0
  14. package/dist/hey_client/client/utils.gen.js +228 -0
  15. package/dist/hey_client/client.gen.d.ts +12 -0
  16. package/dist/hey_client/client.gen.js +3 -0
  17. package/dist/hey_client/core/auth.gen.d.ts +25 -0
  18. package/dist/hey_client/core/auth.gen.js +14 -0
  19. package/dist/hey_client/core/bodySerializer.gen.d.ts +25 -0
  20. package/dist/hey_client/core/bodySerializer.gen.js +57 -0
  21. package/dist/hey_client/core/params.gen.d.ts +43 -0
  22. package/dist/hey_client/core/params.gen.js +100 -0
  23. package/dist/hey_client/core/pathSerializer.gen.d.ts +33 -0
  24. package/dist/hey_client/core/pathSerializer.gen.js +106 -0
  25. package/dist/hey_client/core/queryKeySerializer.gen.d.ts +18 -0
  26. package/dist/hey_client/core/queryKeySerializer.gen.js +92 -0
  27. package/dist/hey_client/core/serverSentEvents.gen.d.ts +71 -0
  28. package/dist/hey_client/core/serverSentEvents.gen.js +132 -0
  29. package/dist/hey_client/core/types.gen.d.ts +83 -0
  30. package/dist/hey_client/core/types.gen.js +2 -0
  31. package/dist/hey_client/core/utils.gen.d.ts +19 -0
  32. package/dist/hey_client/core/utils.gen.js +87 -0
  33. package/dist/hey_client/index.d.ts +2 -0
  34. package/dist/hey_client/index.js +2 -0
  35. package/dist/hey_client/sdk.gen.d.ts +1005 -0
  36. package/dist/hey_client/sdk.gen.js +1438 -0
  37. package/dist/hey_client/types.gen.d.ts +13004 -0
  38. package/dist/hey_client/types.gen.js +2 -0
  39. package/dist/namespaces/files.d.ts +6 -24
  40. package/dist/namespaces/files.js +6 -16
  41. package/dist/namespaces/integrations.js +4 -4
  42. package/dist/namespaces/pod-surfaces.d.ts +8 -3
  43. package/dist/namespaces/pod-surfaces.js +15 -6
  44. package/dist/namespaces/pods.d.ts +2 -3
  45. package/dist/namespaces/pods.js +1 -6
  46. package/dist/namespaces/records.d.ts +7 -7
  47. package/dist/namespaces/resource-access.d.ts +3 -3
  48. package/dist/namespaces/resource-access.js +6 -6
  49. package/dist/namespaces/schedules.d.ts +1 -0
  50. package/dist/namespaces/schedules.js +1 -1
  51. package/dist/namespaces/tables.d.ts +2 -2
  52. package/dist/namespaces/workflows.d.ts +12 -8
  53. package/dist/namespaces/workflows.js +9 -18
  54. package/dist/openapi_client/index.d.ts +20 -37
  55. package/dist/openapi_client/index.js +3 -11
  56. package/dist/openapi_client/models/AgentHarnessInfo.d.ts +2 -0
  57. package/dist/openapi_client/models/AgentNode.d.ts +1 -1
  58. package/dist/openapi_client/models/AgentNodeConfig.d.ts +1 -1
  59. package/dist/openapi_client/models/AgentResourcePermissionRequest.d.ts +1 -1
  60. package/dist/openapi_client/models/AgentResourcePermissionResponse.d.ts +1 -1
  61. package/dist/openapi_client/models/AgentRuntimeProfileResponse.d.ts +6 -0
  62. package/dist/openapi_client/models/AgentSurfaceResponse.d.ts +6 -17
  63. package/dist/openapi_client/models/AgentSurfaceStatus.d.ts +3 -1
  64. package/dist/openapi_client/models/AgentSurfaceStatus.js +2 -0
  65. package/dist/openapi_client/models/ApplicationSkillResponse.d.ts +6 -0
  66. package/dist/openapi_client/models/ConnectedAccountSummary.d.ts +7 -0
  67. package/dist/openapi_client/models/CreateFunctionRequest.d.ts +0 -1
  68. package/dist/openapi_client/models/CreateScheduleRequest.d.ts +4 -0
  69. package/dist/openapi_client/models/CreateSurfaceRequest.d.ts +3 -10
  70. package/dist/openapi_client/models/CreateUserDaemonRuntimeProfileRequest.d.ts +2 -0
  71. package/dist/openapi_client/models/DataStoreFlowStartInput.d.ts +1 -1
  72. package/dist/openapi_client/models/DataStoreFlowStartOutput.d.ts +1 -1
  73. package/dist/openapi_client/models/DatastoreCountResponse.d.ts +6 -0
  74. package/dist/openapi_client/models/DecisionNode.d.ts +2 -1
  75. package/dist/openapi_client/models/DecisionRule.d.ts +3 -0
  76. package/dist/openapi_client/models/EndNode.d.ts +1 -1
  77. package/dist/openapi_client/models/ExpressionInputBinding.d.ts +6 -2
  78. package/dist/openapi_client/models/FileListResponse.d.ts +1 -0
  79. package/dist/openapi_client/models/FileSearchResponse.d.ts +2 -2
  80. package/dist/openapi_client/models/FlowRunStatus.d.ts +4 -1
  81. package/dist/openapi_client/models/FlowRunStatus.js +4 -1
  82. package/dist/openapi_client/models/FormNode.d.ts +2 -1
  83. package/dist/openapi_client/models/FormNodeConfig.d.ts +1 -1
  84. package/dist/openapi_client/models/FunctionNode.d.ts +2 -1
  85. package/dist/openapi_client/models/FunctionResourcePermissionRequest.d.ts +1 -1
  86. package/dist/openapi_client/models/FunctionResourcePermissionResponse.d.ts +1 -1
  87. package/dist/openapi_client/models/InstalledAppSummary.d.ts +7 -0
  88. package/dist/openapi_client/models/IntegrationStatusResponse.d.ts +6 -0
  89. package/dist/openapi_client/models/LoopNode.d.ts +2 -1
  90. package/dist/openapi_client/models/LoopNodeConfig.d.ts +3 -3
  91. package/dist/openapi_client/models/PodMemberAddRequest.d.ts +1 -3
  92. package/dist/openapi_client/models/PodMemberDetailResponse.d.ts +0 -2
  93. package/dist/openapi_client/models/PodMemberResponse.d.ts +0 -2
  94. package/dist/openapi_client/models/PodMemberUpdateRoleRequest.d.ts +1 -3
  95. package/dist/openapi_client/models/PodRoleResourcePermissionRequest.d.ts +1 -1
  96. package/dist/openapi_client/models/PodRoleResourcePermissionResponse.d.ts +1 -1
  97. package/dist/openapi_client/models/ResourceAccessGrantResponse.d.ts +1 -1
  98. package/dist/openapi_client/models/ResourceAccessResponse.d.ts +1 -1
  99. package/dist/openapi_client/models/RuntimeProfileScope.d.ts +2 -1
  100. package/dist/openapi_client/models/RuntimeProfileScope.js +1 -0
  101. package/dist/openapi_client/models/ScheduleDetailResponse.d.ts +6 -0
  102. package/dist/openapi_client/models/ScheduleFireStatus.d.ts +8 -0
  103. package/dist/openapi_client/models/ScheduleFireStatus.js +13 -0
  104. package/dist/openapi_client/models/StepRecordResponse.d.ts +10 -0
  105. package/dist/openapi_client/models/StepStatus.d.ts +7 -0
  106. package/dist/openapi_client/models/StepStatus.js +12 -0
  107. package/dist/openapi_client/models/SurfaceBehaviorConfigInput.d.ts +4 -0
  108. package/dist/openapi_client/models/SurfaceChannelRouteInput.d.ts +6 -0
  109. package/dist/openapi_client/models/SurfaceChannelRouteResponse.d.ts +6 -0
  110. package/dist/openapi_client/models/SurfaceConfigResponse.d.ts +10 -0
  111. package/dist/openapi_client/models/SurfaceCredentialMode.d.ts +4 -0
  112. package/dist/openapi_client/models/SurfaceCredentialMode.js +9 -0
  113. package/dist/openapi_client/models/SurfaceIdentityConfigInput.d.ts +4 -0
  114. package/dist/openapi_client/models/SurfaceIdentityConfigResponse.d.ts +4 -0
  115. package/dist/openapi_client/models/SurfaceSetupStatusResponse.d.ts +10 -0
  116. package/dist/openapi_client/models/TableListResponse.d.ts +2 -0
  117. package/dist/openapi_client/models/ToggleSurfaceRequest.d.ts +1 -1
  118. package/dist/openapi_client/models/UpdateScheduleRequest.d.ts +1 -0
  119. package/dist/openapi_client/models/UpdateSurfaceChannelsRequest.d.ts +4 -0
  120. package/dist/openapi_client/models/UpdateSurfaceRequest.d.ts +4 -11
  121. package/dist/openapi_client/models/UpsertSurfaceRequest.d.ts +9 -0
  122. package/dist/openapi_client/models/UserProfileRequest.d.ts +1 -0
  123. package/dist/openapi_client/models/UserResponse.d.ts +1 -0
  124. package/dist/openapi_client/models/WaitUntilNode.d.ts +1 -1
  125. package/dist/openapi_client/models/WorkflowCreateRequest.d.ts +16 -0
  126. package/dist/openapi_client/models/WorkflowRunFormSubmitRequest.d.ts +13 -0
  127. package/dist/openapi_client/models/WorkflowRunResponse.d.ts +28 -0
  128. package/dist/openapi_client/models/WorkflowRunSummaryResponse.d.ts +2 -3
  129. package/dist/openapi_client/models/WorkflowRunWaitAssignment.d.ts +4 -4
  130. package/dist/openapi_client/models/{WorkflowRunWaitEntity.d.ts → WorkflowRunWaitResponse.d.ts} +4 -8
  131. package/dist/openapi_client/models/WorkflowRunWaitType.d.ts +1 -2
  132. package/dist/openapi_client/models/WorkflowRunWaitType.js +0 -1
  133. package/dist/openapi_client/models/WorkspaceAppAccessRequest.d.ts +0 -3
  134. package/dist/openapi_client/models/WorkspaceMeSandbox.d.ts +1 -4
  135. package/dist/openapi_client/services/AgentSurfacesService.d.ts +39 -10
  136. package/dist/openapi_client/services/AgentSurfacesService.js +86 -20
  137. package/dist/openapi_client/services/ApplicationsService.d.ts +10 -0
  138. package/dist/openapi_client/services/ApplicationsService.js +23 -0
  139. package/dist/openapi_client/services/FilesService.d.ts +2 -3
  140. package/dist/openapi_client/services/FilesService.js +1 -1
  141. package/dist/openapi_client/services/FunctionsService.d.ts +1 -1
  142. package/dist/openapi_client/services/FunctionsService.js +1 -1
  143. package/dist/openapi_client/services/IntegrationsService.d.ts +12 -4
  144. package/dist/openapi_client/services/IntegrationsService.js +22 -4
  145. package/dist/openapi_client/services/PodResourceAccessService.d.ts +6 -6
  146. package/dist/openapi_client/services/PodResourceAccessService.js +12 -12
  147. package/dist/openapi_client/services/RecordsService.d.ts +21 -22
  148. package/dist/openapi_client/services/RecordsService.js +13 -13
  149. package/dist/openapi_client/services/SchedulesService.d.ts +2 -1
  150. package/dist/openapi_client/services/SchedulesService.js +3 -1
  151. package/dist/openapi_client/services/TablesService.d.ts +4 -5
  152. package/dist/openapi_client/services/TablesService.js +2 -2
  153. package/dist/openapi_client/services/WorkflowsService.d.ts +35 -26
  154. package/dist/openapi_client/services/WorkflowsService.js +57 -39
  155. package/dist/react/useAddPodMember.js +1 -1
  156. package/dist/react/useAssistantController.d.ts +1 -0
  157. package/dist/react/useAssistantController.js +5 -1
  158. package/dist/react/useAssistantSession.d.ts +1 -0
  159. package/dist/react/useAssistantSession.js +41 -0
  160. package/dist/react/useBulkRecords.d.ts +5 -5
  161. package/dist/react/useBulkRecords.js +5 -5
  162. package/dist/react/useCreateFolder.d.ts +2 -4
  163. package/dist/react/useCreateFolder.js +2 -3
  164. package/dist/react/useCreateRecord.d.ts +2 -2
  165. package/dist/react/useCreateRecord.js +1 -1
  166. package/dist/react/useDeleteFile.d.ts +1 -4
  167. package/dist/react/useDeleteFile.js +3 -3
  168. package/dist/react/useDeleteRecord.d.ts +1 -2
  169. package/dist/react/useDeleteRecord.js +3 -3
  170. package/dist/react/useFile.d.ts +2 -4
  171. package/dist/react/useFile.js +3 -3
  172. package/dist/react/useFilePreview.d.ts +1 -4
  173. package/dist/react/useFilePreview.js +4 -5
  174. package/dist/react/useFileSearch.d.ts +5 -1
  175. package/dist/react/useFileSearch.js +6 -4
  176. package/dist/react/useFileTree.d.ts +2 -4
  177. package/dist/react/useFileTree.js +2 -3
  178. package/dist/react/useFiles.d.ts +2 -4
  179. package/dist/react/useFiles.js +3 -5
  180. package/dist/react/useFlowSession.d.ts +3 -1
  181. package/dist/react/useFlowSession.js +24 -17
  182. package/dist/react/useGlobalSearch.js +1 -1
  183. package/dist/react/useRecord.d.ts +2 -2
  184. package/dist/react/useRecord.js +1 -1
  185. package/dist/react/useRecordForm.d.ts +2 -2
  186. package/dist/react/useRecordForm.js +2 -2
  187. package/dist/react/useReverseRelatedRecords.js +1 -1
  188. package/dist/react/useUpdateFile.d.ts +2 -4
  189. package/dist/react/useUpdateFile.js +2 -3
  190. package/dist/react/useUpdateRecord.d.ts +2 -2
  191. package/dist/react/useUpdateRecord.js +1 -1
  192. package/dist/react/useUploadFile.d.ts +2 -4
  193. package/dist/react/useUploadFile.js +2 -3
  194. package/dist/react/useWorkflowResume.d.ts +1 -0
  195. package/dist/react/useWorkflowResume.js +10 -1
  196. package/dist/react/useWorkflowRun.js +1 -3
  197. package/dist/react/useWorkflowStart.js +11 -26
  198. package/dist/react/utils.js +2 -0
  199. package/dist/types.d.ts +3 -3
  200. package/package.json +7 -2
  201. package/dist/openapi_client/models/BillingHistoryResponse.d.ts +0 -8
  202. package/dist/openapi_client/models/BillingInterval.d.ts +0 -7
  203. package/dist/openapi_client/models/BillingInterval.js +0 -12
  204. package/dist/openapi_client/models/BillingInvoiceResponse.d.ts +0 -27
  205. package/dist/openapi_client/models/BillingInvoiceStatus.d.ts +0 -10
  206. package/dist/openapi_client/models/BillingInvoiceStatus.js +0 -15
  207. package/dist/openapi_client/models/CancelSubscriptionResponse.d.ts +0 -10
  208. package/dist/openapi_client/models/CreateInvoicePaymentUrlRequest.d.ts +0 -7
  209. package/dist/openapi_client/models/CreateInvoicePaymentUrlResponse.d.ts +0 -8
  210. package/dist/openapi_client/models/DatastoreMessageResponse.d.ts +0 -6
  211. package/dist/openapi_client/models/DeskServingConfigResponse.d.ts +0 -11
  212. package/dist/openapi_client/models/DeskServingConfigResponse.js +0 -8
  213. package/dist/openapi_client/models/FlowRunEntity.d.ts +0 -36
  214. package/dist/openapi_client/models/GmailSurfaceConfig.d.ts +0 -7
  215. package/dist/openapi_client/models/OutlookSurfaceConfig.d.ts +0 -7
  216. package/dist/openapi_client/models/PlanListResponse.d.ts +0 -8
  217. package/dist/openapi_client/models/PlanResponse.d.ts +0 -18
  218. package/dist/openapi_client/models/PlanType.d.ts +0 -7
  219. package/dist/openapi_client/models/PlanType.js +0 -12
  220. package/dist/openapi_client/models/RecordResponse.d.ts +0 -9
  221. package/dist/openapi_client/models/SeatInfoResponse.d.ts +0 -10
  222. package/dist/openapi_client/models/SlackSurfaceConfig.d.ts +0 -7
  223. package/dist/openapi_client/models/StackFrame.d.ts +0 -11
  224. package/dist/openapi_client/models/StartSubscriptionRequest.d.ts +0 -14
  225. package/dist/openapi_client/models/StartSubscriptionResponse.d.ts +0 -9
  226. package/dist/openapi_client/models/StartTeamBillingRequest.d.ts +0 -6
  227. package/dist/openapi_client/models/StartTeamBillingRequest.js +0 -1
  228. package/dist/openapi_client/models/StepExecution.d.ts +0 -13
  229. package/dist/openapi_client/models/StepExecution.js +0 -1
  230. package/dist/openapi_client/models/SubscriptionResponse.d.ts +0 -22
  231. package/dist/openapi_client/models/SubscriptionResponse.js +0 -1
  232. package/dist/openapi_client/models/SubscriptionStatus.d.ts +0 -10
  233. package/dist/openapi_client/models/SubscriptionStatus.js +0 -15
  234. package/dist/openapi_client/models/SubscriptionStatusResponse.d.ts +0 -10
  235. package/dist/openapi_client/models/SubscriptionStatusResponse.js +0 -1
  236. package/dist/openapi_client/models/SubscriptionWithPlanResponse.d.ts +0 -22
  237. package/dist/openapi_client/models/SubscriptionWithPlanResponse.js +0 -1
  238. package/dist/openapi_client/models/SurfaceEventMode.d.ts +0 -6
  239. package/dist/openapi_client/models/SurfaceEventMode.js +0 -11
  240. package/dist/openapi_client/models/SurfaceMode.d.ts +0 -5
  241. package/dist/openapi_client/models/SurfaceMode.js +0 -10
  242. package/dist/openapi_client/models/SurfaceRoutingScope.d.ts +0 -4
  243. package/dist/openapi_client/models/SurfaceRoutingScope.js +0 -9
  244. package/dist/openapi_client/models/TeamsSurfaceConfig.d.ts +0 -7
  245. package/dist/openapi_client/models/TeamsSurfaceConfig.js +0 -1
  246. package/dist/openapi_client/models/TelegramSurfaceConfig.d.ts +0 -7
  247. package/dist/openapi_client/models/TelegramSurfaceConfig.js +0 -1
  248. package/dist/openapi_client/models/WhatsAppSurfaceConfig.d.ts +0 -7
  249. package/dist/openapi_client/models/WhatsAppSurfaceConfig.js +0 -1
  250. package/dist/openapi_client/models/WorkflowRunWaitEntity.js +0 -1
  251. package/dist/openapi_client/services/BillingSubscriptionsService.d.ts +0 -117
  252. package/dist/openapi_client/services/BillingSubscriptionsService.js +0 -230
  253. package/dist/openapi_client/services/BillingWebhooksService.d.ts +0 -12
  254. package/dist/openapi_client/services/BillingWebhooksService.js +0 -25
  255. package/dist/openapi_client/services/PublicDesksService.d.ts +0 -10
  256. package/dist/openapi_client/services/PublicDesksService.js +0 -15
  257. /package/dist/openapi_client/models/{BillingHistoryResponse.js → ApplicationSkillResponse.js} +0 -0
  258. /package/dist/openapi_client/models/{BillingInvoiceResponse.js → ConnectedAccountSummary.js} +0 -0
  259. /package/dist/openapi_client/models/{CancelSubscriptionResponse.js → DatastoreCountResponse.js} +0 -0
  260. /package/dist/openapi_client/models/{CreateInvoicePaymentUrlRequest.js → InstalledAppSummary.js} +0 -0
  261. /package/dist/openapi_client/models/{CreateInvoicePaymentUrlResponse.js → IntegrationStatusResponse.js} +0 -0
  262. /package/dist/openapi_client/models/{DatastoreMessageResponse.js → StepRecordResponse.js} +0 -0
  263. /package/dist/openapi_client/models/{FlowRunEntity.js → SurfaceChannelRouteInput.js} +0 -0
  264. /package/dist/openapi_client/models/{GmailSurfaceConfig.js → SurfaceChannelRouteResponse.js} +0 -0
  265. /package/dist/openapi_client/models/{OutlookSurfaceConfig.js → SurfaceConfigResponse.js} +0 -0
  266. /package/dist/openapi_client/models/{PlanListResponse.js → SurfaceIdentityConfigInput.js} +0 -0
  267. /package/dist/openapi_client/models/{PlanResponse.js → SurfaceIdentityConfigResponse.js} +0 -0
  268. /package/dist/openapi_client/models/{RecordResponse.js → SurfaceSetupStatusResponse.js} +0 -0
  269. /package/dist/openapi_client/models/{SeatInfoResponse.js → UpdateSurfaceChannelsRequest.js} +0 -0
  270. /package/dist/openapi_client/models/{SlackSurfaceConfig.js → UpsertSurfaceRequest.js} +0 -0
  271. /package/dist/openapi_client/models/{StackFrame.js → WorkflowRunFormSubmitRequest.js} +0 -0
  272. /package/dist/openapi_client/models/{StartSubscriptionRequest.js → WorkflowRunResponse.js} +0 -0
  273. /package/dist/openapi_client/models/{StartSubscriptionResponse.js → WorkflowRunWaitResponse.js} +0 -0
@@ -1,7 +0,0 @@
1
- export type TeamsSurfaceConfig = {
2
- created_at?: string;
3
- dm_conversation_reset_after_hours?: number;
4
- id?: string;
5
- type?: string;
6
- updated_at?: string;
7
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,7 +0,0 @@
1
- export type TelegramSurfaceConfig = {
2
- created_at?: string;
3
- dm_conversation_reset_after_hours?: number;
4
- id?: string;
5
- type?: string;
6
- updated_at?: string;
7
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,7 +0,0 @@
1
- export type WhatsAppSurfaceConfig = {
2
- created_at?: string;
3
- dm_conversation_reset_after_hours?: number;
4
- id?: string;
5
- type?: string;
6
- updated_at?: string;
7
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,117 +0,0 @@
1
- import type { BillingHistoryResponse } from '../models/BillingHistoryResponse.js';
2
- import type { BillingInvoiceResponse } from '../models/BillingInvoiceResponse.js';
3
- import type { CancelSubscriptionResponse } from '../models/CancelSubscriptionResponse.js';
4
- import type { CreateInvoicePaymentUrlRequest } from '../models/CreateInvoicePaymentUrlRequest.js';
5
- import type { CreateInvoicePaymentUrlResponse } from '../models/CreateInvoicePaymentUrlResponse.js';
6
- import type { PlanListResponse } from '../models/PlanListResponse.js';
7
- import type { PlanType } from '../models/PlanType.js';
8
- import type { SeatInfoResponse } from '../models/SeatInfoResponse.js';
9
- import type { StartSubscriptionRequest } from '../models/StartSubscriptionRequest.js';
10
- import type { StartSubscriptionResponse } from '../models/StartSubscriptionResponse.js';
11
- import type { StartTeamBillingRequest } from '../models/StartTeamBillingRequest.js';
12
- import type { SubscriptionStatusResponse } from '../models/SubscriptionStatusResponse.js';
13
- import type { SubscriptionWithPlanResponse } from '../models/SubscriptionWithPlanResponse.js';
14
- import type { CancelablePromise } from '../core/CancelablePromise.js';
15
- export declare class BillingSubscriptionsService {
16
- /**
17
- * List Organization Billing History
18
- * List invoices for an organization.
19
- * @param organizationId
20
- * @param limit
21
- * @param pageToken
22
- * @returns BillingHistoryResponse Successful Response
23
- * @throws ApiError
24
- */
25
- static billingOrganizationHistory(organizationId: string, limit?: number, pageToken?: (string | null)): CancelablePromise<BillingHistoryResponse>;
26
- /**
27
- * Get Current Organization Invoice
28
- * Get or create the current unpaid monthly invoice.
29
- * @param organizationId
30
- * @returns BillingInvoiceResponse Successful Response
31
- * @throws ApiError
32
- */
33
- static billingOrganizationInvoicesCurrent(organizationId: string): CancelablePromise<BillingInvoiceResponse>;
34
- /**
35
- * Create Invoice Payment URL
36
- * Create a hosted checkout URL for an unpaid invoice.
37
- * @param organizationId
38
- * @param invoiceId
39
- * @param requestBody
40
- * @returns CreateInvoicePaymentUrlResponse Successful Response
41
- * @throws ApiError
42
- */
43
- static billingOrganizationInvoicesPaymentUrl(organizationId: string, invoiceId: string, requestBody: CreateInvoicePaymentUrlRequest): CancelablePromise<CreateInvoicePaymentUrlResponse>;
44
- /**
45
- * Get Seat Info
46
- * Get seat availability information.
47
- * @param organizationId
48
- * @returns SeatInfoResponse Successful Response
49
- * @throws ApiError
50
- */
51
- static billingOrganizationSeatsInfo(organizationId: string): CancelablePromise<SeatInfoResponse>;
52
- /**
53
- * Get Organization Subscription
54
- * Get subscription for an organization.
55
- * @param organizationId
56
- * @returns SubscriptionWithPlanResponse Successful Response
57
- * @throws ApiError
58
- */
59
- static billingOrganizationSubscriptionGet(organizationId: string): CancelablePromise<SubscriptionWithPlanResponse>;
60
- /**
61
- * Cancel Organization Subscription
62
- * Cancel an organization's team billing subscription.
63
- * @param organizationId
64
- * @returns CancelSubscriptionResponse Successful Response
65
- * @throws ApiError
66
- */
67
- static billingOrganizationSubscriptionCancel(organizationId: string): CancelablePromise<CancelSubscriptionResponse>;
68
- /**
69
- * Start Organization Team Billing
70
- * Start monthly-invoiced team billing for an organization.
71
- * @param organizationId
72
- * @param requestBody
73
- * @returns SubscriptionWithPlanResponse Successful Response
74
- * @throws ApiError
75
- */
76
- static billingOrganizationTeamBillingStart(organizationId: string, requestBody: StartTeamBillingRequest): CancelablePromise<SubscriptionWithPlanResponse>;
77
- /**
78
- * Get Personal Subscription
79
- * Get the current user's personal subscription.
80
- * @returns SubscriptionWithPlanResponse Successful Response
81
- * @throws ApiError
82
- */
83
- static billingPersonalSubscriptionGet(): CancelablePromise<SubscriptionWithPlanResponse>;
84
- /**
85
- * Start Personal Subscription
86
- * Start a new subscription.
87
- * @param requestBody
88
- * @returns StartSubscriptionResponse Successful Response
89
- * @throws ApiError
90
- */
91
- static billingPersonalSubscriptionStart(requestBody: StartSubscriptionRequest): CancelablePromise<StartSubscriptionResponse>;
92
- /**
93
- * Cancel Personal Subscription
94
- * Cancel subscription.
95
- * @returns CancelSubscriptionResponse Successful Response
96
- * @throws ApiError
97
- */
98
- static billingPersonalSubscriptionCancel(): CancelablePromise<CancelSubscriptionResponse>;
99
- /**
100
- * Get Personal Subscription Status
101
- * Get subscription status.
102
- * @returns SubscriptionStatusResponse Successful Response
103
- * @throws ApiError
104
- */
105
- static billingPersonalSubscriptionStatus(): CancelablePromise<SubscriptionStatusResponse>;
106
- /**
107
- * List Plans
108
- * List available subscription plans.
109
- * @param onlyActive
110
- * @param planType
111
- * @param limit
112
- * @param pageToken
113
- * @returns PlanListResponse Successful Response
114
- * @throws ApiError
115
- */
116
- static billingPlansList(onlyActive?: boolean, planType?: (PlanType | null), limit?: number, pageToken?: (string | null)): CancelablePromise<PlanListResponse>;
117
- }
@@ -1,230 +0,0 @@
1
- import { OpenAPI } from '../core/OpenAPI.js';
2
- import { request as __request } from '../core/request.js';
3
- export class BillingSubscriptionsService {
4
- /**
5
- * List Organization Billing History
6
- * List invoices for an organization.
7
- * @param organizationId
8
- * @param limit
9
- * @param pageToken
10
- * @returns BillingHistoryResponse Successful Response
11
- * @throws ApiError
12
- */
13
- static billingOrganizationHistory(organizationId, limit = 100, pageToken) {
14
- return __request(OpenAPI, {
15
- method: 'GET',
16
- url: '/billing/organizations/{organization_id}/billing-history',
17
- path: {
18
- 'organization_id': organizationId,
19
- },
20
- query: {
21
- 'limit': limit,
22
- 'page_token': pageToken,
23
- },
24
- errors: {
25
- 422: `Validation Error`,
26
- },
27
- });
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
- }
72
- /**
73
- * Get Seat Info
74
- * Get seat availability information.
75
- * @param organizationId
76
- * @returns SeatInfoResponse Successful Response
77
- * @throws ApiError
78
- */
79
- static billingOrganizationSeatsInfo(organizationId) {
80
- return __request(OpenAPI, {
81
- method: 'GET',
82
- url: '/billing/organizations/{organization_id}/seats',
83
- path: {
84
- 'organization_id': organizationId,
85
- },
86
- errors: {
87
- 422: `Validation Error`,
88
- },
89
- });
90
- }
91
- /**
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.
166
- * @param requestBody
167
- * @returns StartSubscriptionResponse Successful Response
168
- * @throws ApiError
169
- */
170
- static billingPersonalSubscriptionStart(requestBody) {
171
- return __request(OpenAPI, {
172
- method: 'POST',
173
- url: '/billing/personal/subscription',
174
- body: requestBody,
175
- mediaType: 'application/json',
176
- errors: {
177
- 422: `Validation Error`,
178
- },
179
- });
180
- }
181
- /**
182
- * Cancel Personal Subscription
183
- * Cancel subscription.
184
- * @returns CancelSubscriptionResponse Successful Response
185
- * @throws ApiError
186
- */
187
- static billingPersonalSubscriptionCancel() {
188
- return __request(OpenAPI, {
189
- method: 'POST',
190
- url: '/billing/personal/subscription/cancel',
191
- });
192
- }
193
- /**
194
- * Get Personal Subscription Status
195
- * Get subscription status.
196
- * @returns SubscriptionStatusResponse Successful Response
197
- * @throws ApiError
198
- */
199
- static billingPersonalSubscriptionStatus() {
200
- return __request(OpenAPI, {
201
- method: 'GET',
202
- url: '/billing/personal/subscription/status',
203
- });
204
- }
205
- /**
206
- * List Plans
207
- * List available subscription plans.
208
- * @param onlyActive
209
- * @param planType
210
- * @param limit
211
- * @param pageToken
212
- * @returns PlanListResponse Successful Response
213
- * @throws ApiError
214
- */
215
- static billingPlansList(onlyActive = true, planType, limit = 100, pageToken) {
216
- return __request(OpenAPI, {
217
- method: 'GET',
218
- url: '/billing/plans',
219
- query: {
220
- 'only_active': onlyActive,
221
- 'plan_type': planType,
222
- 'limit': limit,
223
- 'page_token': pageToken,
224
- },
225
- errors: {
226
- 422: `Validation Error`,
227
- },
228
- });
229
- }
230
- }
@@ -1,12 +0,0 @@
1
- import type { CancelablePromise } from '../core/CancelablePromise.js';
2
- export declare class BillingWebhooksService {
3
- /**
4
- * DodoPayments Webhook
5
- * Handle webhooks from DodoPayments.
6
- * @param xDodoSignature
7
- * @param xDodoEventType
8
- * @returns any Successful Response
9
- * @throws ApiError
10
- */
11
- static billingWebhooksDodo(xDodoSignature?: (string | null), xDodoEventType?: (string | null)): CancelablePromise<any>;
12
- }
@@ -1,25 +0,0 @@
1
- import { OpenAPI } from '../core/OpenAPI.js';
2
- import { request as __request } from '../core/request.js';
3
- export class BillingWebhooksService {
4
- /**
5
- * DodoPayments Webhook
6
- * Handle webhooks from DodoPayments.
7
- * @param xDodoSignature
8
- * @param xDodoEventType
9
- * @returns any Successful Response
10
- * @throws ApiError
11
- */
12
- static billingWebhooksDodo(xDodoSignature, xDodoEventType) {
13
- return __request(OpenAPI, {
14
- method: 'POST',
15
- url: '/billing/webhooks/dodo',
16
- headers: {
17
- 'X-Dodo-Signature': xDodoSignature,
18
- 'X-Dodo-Event-Type': xDodoEventType,
19
- },
20
- errors: {
21
- 422: `Validation Error`,
22
- },
23
- });
24
- }
25
- }
@@ -1,10 +0,0 @@
1
- import type { DeskServingConfigResponse } from '../models/DeskServingConfigResponse.js';
2
- import type { CancelablePromise } from '../core/CancelablePromise.js';
3
- export declare class PublicDesksService {
4
- /**
5
- * Get Desk Serving Config
6
- * @returns DeskServingConfigResponse Successful Response
7
- * @throws ApiError
8
- */
9
- static deskServingConfig(): CancelablePromise<DeskServingConfigResponse>;
10
- }
@@ -1,15 +0,0 @@
1
- import { OpenAPI } from '../core/OpenAPI.js';
2
- import { request as __request } from '../core/request.js';
3
- export class PublicDesksService {
4
- /**
5
- * Get Desk Serving Config
6
- * @returns DeskServingConfigResponse Successful Response
7
- * @throws ApiError
8
- */
9
- static deskServingConfig() {
10
- return __request(OpenAPI, {
11
- method: 'GET',
12
- url: '/public/desks/-/config',
13
- });
14
- }
15
- }