pingram 1.0.42 → 1.0.43-alpha.1742
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/src/apis/AccountApi.d.ts +65 -26
- package/dist/generated/src/apis/AccountApi.js +26 -0
- package/dist/generated/src/apis/AccountsApi.d.ts +35 -3
- package/dist/generated/src/apis/AccountsApi.js +63 -0
- package/dist/generated/src/apis/BroadcastsApi.d.ts +70 -28
- package/dist/generated/src/apis/BroadcastsApi.js +28 -0
- package/dist/generated/src/apis/DefaultApi.d.ts +5 -2
- package/dist/generated/src/apis/DefaultApi.js +2 -0
- package/dist/generated/src/apis/DomainsApi.d.ts +26 -14
- package/dist/generated/src/apis/DomainsApi.js +12 -4
- package/dist/generated/src/apis/EditorApi.d.ts +5 -2
- package/dist/generated/src/apis/EditorApi.js +2 -0
- package/dist/generated/src/apis/EmailApi.d.ts +10 -4
- package/dist/generated/src/apis/EmailApi.js +4 -0
- package/dist/generated/src/apis/EnvironmentsApi.d.ts +5 -2
- package/dist/generated/src/apis/EnvironmentsApi.js +2 -0
- package/dist/generated/src/apis/HealthApi.d.ts +5 -2
- package/dist/generated/src/apis/HealthApi.js +2 -0
- package/dist/generated/src/apis/LibraryApi.d.ts +10 -4
- package/dist/generated/src/apis/LibraryApi.js +4 -0
- package/dist/generated/src/apis/LogsApi.d.ts +30 -12
- package/dist/generated/src/apis/LogsApi.js +12 -0
- package/dist/generated/src/apis/MembersApi.d.ts +5 -2
- package/dist/generated/src/apis/MembersApi.js +2 -0
- package/dist/generated/src/apis/NumbersApi.d.ts +25 -10
- package/dist/generated/src/apis/NumbersApi.js +10 -0
- package/dist/generated/src/apis/RegistrationsApi.d.ts +25 -10
- package/dist/generated/src/apis/RegistrationsApi.js +10 -0
- package/dist/generated/src/apis/SenderApi.d.ts +5 -2
- package/dist/generated/src/apis/SenderApi.js +2 -0
- package/dist/generated/src/apis/SmsApi.d.ts +5 -2
- package/dist/generated/src/apis/SmsApi.js +2 -0
- package/dist/generated/src/apis/SubNotificationsApi.d.ts +10 -4
- package/dist/generated/src/apis/SubNotificationsApi.js +4 -0
- package/dist/generated/src/apis/UserApi.d.ts +15 -6
- package/dist/generated/src/apis/UserApi.js +6 -0
- package/dist/generated/src/apis/UsersApi.d.ts +5 -2
- package/dist/generated/src/apis/UsersApi.js +2 -0
- package/dist/generated/src/apis/VoiceApi.d.ts +47 -9
- package/dist/generated/src/apis/VoiceApi.js +67 -0
- package/dist/generated/src/apis/WebhooksApi.d.ts +20 -8
- package/dist/generated/src/apis/WebhooksApi.js +8 -0
- package/dist/generated/src/apis/index.d.ts +2 -2
- package/dist/generated/src/models/AccountPaymentMethods.js +3 -1
- package/dist/generated/src/models/AccountSummary.d.ts +79 -0
- package/dist/generated/src/models/AccountSummary.js +84 -0
- package/dist/generated/src/models/Agent.d.ts +7 -0
- package/dist/generated/src/models/Agent.js +3 -0
- package/dist/generated/src/models/Agent1.d.ts +7 -0
- package/dist/generated/src/models/Agent1.js +3 -0
- package/dist/generated/src/models/AgentAgentModel.d.ts +3 -1
- package/dist/generated/src/models/AgentAgentModel.js +14 -0
- package/dist/generated/src/models/ArmVoiceInboundClaimRequestInbound.d.ts +3 -1
- package/dist/generated/src/models/ArmVoiceInboundClaimRequestInbound.js +14 -0
- package/dist/generated/src/models/BrandWebhookResponse.d.ts +1 -1
- package/dist/generated/src/models/CampaignWebhookResponse.d.ts +1 -1
- package/dist/generated/src/models/CheckDomainDnsRequest.d.ts +32 -0
- package/dist/generated/src/models/CheckDomainDnsRequest.js +48 -0
- package/dist/generated/src/models/DomainDnsCheck.js +3 -1
- package/dist/generated/src/models/DomainDnsCheckRecordsInner.d.ts +1 -0
- package/dist/generated/src/models/DomainDnsCheckRecordsInner.js +2 -1
- package/dist/generated/src/models/Elevenlabs.d.ts +53 -0
- package/dist/generated/src/models/Elevenlabs.js +67 -0
- package/dist/generated/src/models/Elevenlabs1.d.ts +53 -0
- package/dist/generated/src/models/Elevenlabs1.js +67 -0
- package/dist/generated/src/models/ElevenlabsElevenRealtimeV1Max.d.ts +119 -0
- package/dist/generated/src/models/ElevenlabsElevenRealtimeV1Max.js +121 -0
- package/dist/generated/src/models/ElevenlabsElevenRealtimeV1Mini.d.ts +119 -0
- package/dist/generated/src/models/ElevenlabsElevenRealtimeV1Mini.js +121 -0
- package/dist/generated/src/models/EmailComponentResponse.js +3 -1
- package/dist/generated/src/models/Environment.js +3 -1
- package/dist/generated/src/models/GetEmailComponentsResponseInner.js +3 -1
- package/dist/generated/src/models/GetEnvironmentsResponseInner.js +3 -1
- package/dist/generated/src/models/GetInappNotificationsResponse.js +3 -1
- package/dist/generated/src/models/GetKeysResponse.js +3 -1
- package/dist/generated/src/models/GetLogsResponse.js +3 -1
- package/dist/generated/src/models/GetNotificationsResponseInner.js +3 -1
- package/dist/generated/src/models/GetSendersResponseInner.d.ts +46 -0
- package/dist/generated/src/models/GetSendersResponseInner.js +33 -3
- package/dist/generated/src/models/GetSendersResponseInnerVerificationRecords.d.ts +6 -0
- package/dist/generated/src/models/GetSendersResponseInnerVerificationRecords.js +6 -2
- package/dist/generated/src/models/GetSendersResponseInnerVerificationRecordsDkim.d.ts +1 -0
- package/dist/generated/src/models/GetSendersResponseInnerVerificationRecordsDkim.js +2 -1
- package/dist/generated/src/models/GetUsageHistoryResponse.js +3 -1
- package/dist/generated/src/models/GetUsersResponse.js +3 -1
- package/dist/generated/src/models/GetVoiceCallResponseCall.d.ts +19 -0
- package/dist/generated/src/models/GetVoiceCallResponseCall.js +12 -1
- package/dist/generated/src/models/GetVoiceCallResponseCallCost.js +3 -1
- package/dist/generated/src/models/GetVoiceCallResponseCallSetup.d.ts +80 -0
- package/dist/generated/src/models/GetVoiceCallResponseCallSetup.js +82 -0
- package/dist/generated/src/models/GetVoiceCallResponseCallSetupStream.d.ts +46 -0
- package/dist/generated/src/models/GetVoiceCallResponseCallSetupStream.js +58 -0
- package/dist/generated/src/models/GetVoiceCallResponseCallSetupTranscript.d.ts +26 -0
- package/dist/generated/src/models/GetVoiceCallResponseCallSetupTranscript.js +52 -0
- package/dist/generated/src/models/GoogleGemini31FlashLivePreview.d.ts +16 -0
- package/dist/generated/src/models/GoogleGemini31FlashLivePreview.js +12 -1
- package/dist/generated/src/models/InboundConfig.d.ts +3 -1
- package/dist/generated/src/models/InboundConfig.js +14 -0
- package/dist/generated/src/models/InboundResponseBody.js +3 -1
- package/dist/generated/src/models/IngishtsPostRequest.js +3 -1
- package/dist/generated/src/models/IntercomWebhook.d.ts +1 -1
- package/dist/generated/src/models/IntercomWebhookDataItemAnyOfContacts.js +3 -1
- package/dist/generated/src/models/InternalTransferBody.d.ts +69 -0
- package/dist/generated/src/models/InternalTransferBody.js +71 -0
- package/dist/generated/src/models/InternalTransferBodyAgentMetersInner.d.ts +90 -0
- package/dist/generated/src/models/InternalTransferBodyAgentMetersInner.js +84 -0
- package/dist/generated/src/models/Knowledge.js +3 -1
- package/dist/generated/src/models/ListAccountsResponse.js +3 -1
- package/dist/generated/src/models/ListBroadcastRecipientsResponse.js +3 -1
- package/dist/generated/src/models/ListBroadcastsResponse.js +3 -1
- package/dist/generated/src/models/ListInvoicesResponse.js +3 -1
- package/dist/generated/src/models/ListLibraryResponse.js +3 -1
- package/dist/generated/src/models/ListPersonalAccessTokensResponse.js +3 -1
- package/dist/generated/src/models/ListPhoneNumbersResponse.js +3 -1
- package/dist/generated/src/models/ListReleasedPhoneNumbersResponse.js +3 -1
- package/dist/generated/src/models/ListVoiceCallsResponse.js +3 -1
- package/dist/generated/src/models/ListVoiceCallsResponseCallsInner.d.ts +12 -0
- package/dist/generated/src/models/ListVoiceCallsResponseCallsInner.js +6 -2
- package/dist/generated/src/models/LogsDeliveryStatusResponse.js +3 -1
- package/dist/generated/src/models/LogsGetResponse.js +3 -1
- package/dist/generated/src/models/LogsTailResponse.js +3 -1
- package/dist/generated/src/models/MemberUpdateRequest.d.ts +1 -1
- package/dist/generated/src/models/Notification.js +3 -1
- package/dist/generated/src/models/OpenaiGptLive1.d.ts +18 -0
- package/dist/generated/src/models/OpenaiGptLive1.js +14 -1
- package/dist/generated/src/models/OpenaiGptRealtime21.d.ts +17 -0
- package/dist/generated/src/models/OpenaiGptRealtime21.js +13 -1
- package/dist/generated/src/models/OpenaiGptRealtime21Mini.d.ts +17 -0
- package/dist/generated/src/models/OpenaiGptRealtime21Mini.js +13 -1
- package/dist/generated/src/models/Script.d.ts +7 -0
- package/dist/generated/src/models/Script.js +6 -1
- package/dist/generated/src/models/Script1.d.ts +7 -0
- package/dist/generated/src/models/Script1.js +6 -1
- package/dist/generated/src/models/ScriptPrivacy.d.ts +12 -4
- package/dist/generated/src/models/ScriptPrivacy.js +10 -2
- package/dist/generated/src/models/ScriptStream.d.ts +46 -0
- package/dist/generated/src/models/ScriptStream.js +58 -0
- package/dist/generated/src/models/SearchAvailablePhoneNumbersResponse.js +3 -1
- package/dist/generated/src/models/SignInUsernameResponse.d.ts +1 -1
- package/dist/generated/src/models/SignOutRequest.d.ts +1 -1
- package/dist/generated/src/models/SmsComplianceCountriesResponse.js +3 -1
- package/dist/generated/src/models/SmsComplianceCountriesResponseCountriesInner.d.ts +1 -1
- package/dist/generated/src/models/SmsComplianceCountry.d.ts +1 -1
- package/dist/generated/src/models/SmsLocalNumberRegistrationAdmin.js +3 -1
- package/dist/generated/src/models/SmsLocalNumberSubmitResponse.js +6 -2
- package/dist/generated/src/models/SmsRegistrationCreateRequestLocalNumber.js +3 -1
- package/dist/generated/src/models/SmsRegistrationLocalNumber.js +3 -1
- package/dist/generated/src/models/Stream.d.ts +53 -0
- package/dist/generated/src/models/Stream.js +67 -0
- package/dist/generated/src/models/SupabaseProjectsResponse.js +3 -1
- package/dist/generated/src/models/TenDlcBrandAdminUpdateRequest.d.ts +1 -1
- package/dist/generated/src/models/Transfer.js +3 -1
- package/dist/generated/src/models/Transfer1.d.ts +25 -0
- package/dist/generated/src/models/Transfer1.js +9 -0
- package/dist/generated/src/models/TransferCallRequest.d.ts +50 -0
- package/dist/generated/src/models/TransferCallRequest.js +56 -0
- package/dist/generated/src/models/TransferDestinationsInner.d.ts +10 -12
- package/dist/generated/src/models/TransferDestinationsInner.js +8 -14
- package/dist/generated/src/models/UpdateAccountRequest.d.ts +32 -0
- package/dist/generated/src/models/UpdateAccountRequest.js +50 -0
- package/dist/generated/src/models/UserPreferencesGETResponse.js +9 -3
- package/dist/generated/src/models/UserPreferencesGETResponseNotificationsInner.js +3 -1
- package/dist/generated/src/models/VoiceBrowserCallRequestConfig.d.ts +27 -2
- package/dist/generated/src/models/VoiceBrowserCallRequestConfig.js +16 -5
- package/dist/generated/src/models/VoiceBrowserCallRequestConfigAnyOf.d.ts +3 -1
- package/dist/generated/src/models/VoiceBrowserCallRequestConfigAnyOf.js +14 -0
- package/dist/generated/src/models/VoiceCallResponse.d.ts +7 -1
- package/dist/generated/src/models/VoiceCallResponse.js +6 -2
- package/dist/generated/src/models/WebhookEndpointsResponse.js +3 -1
- package/dist/generated/src/models/index.d.ts +15 -0
- package/dist/generated/src/models/index.js +15 -0
- package/dist/src/client.js +1 -1
- package/package.json +1 -1
|
@@ -55,8 +55,8 @@ export interface UpdateBillingEmailOperationRequest {
|
|
|
55
55
|
*/
|
|
56
56
|
export interface AccountApiInterface {
|
|
57
57
|
/**
|
|
58
|
-
*
|
|
59
|
-
* @summary
|
|
58
|
+
* Use a saved card for this account, as the default for new accounts, or for every account that shares these cards. Only the account owner can call this.
|
|
59
|
+
* @summary Assign a saved card
|
|
60
60
|
* @param {AssignPaymentMethodRequest} assignPaymentMethodRequest
|
|
61
61
|
* @param {*} [options] Override http request option.
|
|
62
62
|
* @throws {RequiredError}
|
|
@@ -65,11 +65,12 @@ export interface AccountApiInterface {
|
|
|
65
65
|
assignPaymentMethodRaw(requestParameters: AssignPaymentMethodOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountPaymentMethods>>;
|
|
66
66
|
/**
|
|
67
67
|
* Use a saved card for this account, as the default for new accounts, or for every account that shares these cards. Only the account owner can call this.
|
|
68
|
+
* Assign a saved card
|
|
68
69
|
*/
|
|
69
70
|
assignPaymentMethod(assignPaymentMethodRequest: AssignPaymentMethodRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountPaymentMethods>;
|
|
70
71
|
/**
|
|
71
|
-
*
|
|
72
|
-
* @summary Cancel the paid plan at the end of the current billing cycle
|
|
72
|
+
* Cancel the paid plan at the end of the current billing cycle. Access continues until then.
|
|
73
|
+
* @summary Cancel the paid plan at the end of the current billing cycle
|
|
73
74
|
* @param {CancelSubscriptionRequest} cancelSubscriptionRequest
|
|
74
75
|
* @param {*} [options] Override http request option.
|
|
75
76
|
* @throws {RequiredError}
|
|
@@ -78,6 +79,7 @@ export interface AccountApiInterface {
|
|
|
78
79
|
cancelSubscriptionRaw(requestParameters: CancelSubscriptionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountGetResponse>>;
|
|
79
80
|
/**
|
|
80
81
|
* Cancel the paid plan at the end of the current billing cycle. Access continues until then.
|
|
82
|
+
* Cancel the paid plan at the end of the current billing cycle
|
|
81
83
|
*/
|
|
82
84
|
cancelSubscription(cancelSubscriptionRequest: CancelSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountGetResponse>;
|
|
83
85
|
/**
|
|
@@ -94,8 +96,8 @@ export interface AccountApiInterface {
|
|
|
94
96
|
*/
|
|
95
97
|
configureSupabaseSMTP(supabaseConfigureRequest: SupabaseConfigureRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SupabaseConfigureResponse>;
|
|
96
98
|
/**
|
|
97
|
-
*
|
|
98
|
-
* @summary Return a URL to add a card
|
|
99
|
+
* Return a URL to add a card. Only the account owner can call this. The card is not assigned until you call assign.
|
|
100
|
+
* @summary Return a URL to add a card
|
|
99
101
|
* @param {CreatePaymentMethodSetupRequest} createPaymentMethodSetupRequest
|
|
100
102
|
* @param {*} [options] Override http request option.
|
|
101
103
|
* @throws {RequiredError}
|
|
@@ -104,6 +106,7 @@ export interface AccountApiInterface {
|
|
|
104
106
|
createPaymentMethodSetupRaw(requestParameters: CreatePaymentMethodSetupOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaymentMethodSetup>>;
|
|
105
107
|
/**
|
|
106
108
|
* Return a URL to add a card. Only the account owner can call this. The card is not assigned until you call assign.
|
|
109
|
+
* Return a URL to add a card
|
|
107
110
|
*/
|
|
108
111
|
createPaymentMethodSetup(createPaymentMethodSetupRequest: CreatePaymentMethodSetupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaymentMethodSetup>;
|
|
109
112
|
/**
|
|
@@ -119,8 +122,8 @@ export interface AccountApiInterface {
|
|
|
119
122
|
*/
|
|
120
123
|
getAccountDetails(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountGetResponse>;
|
|
121
124
|
/**
|
|
122
|
-
*
|
|
123
|
-
* @summary Get the email address
|
|
125
|
+
* Get the email address that receives invoices for this account.
|
|
126
|
+
* @summary Get the invoice email address
|
|
124
127
|
* @param {*} [options] Override http request option.
|
|
125
128
|
* @throws {RequiredError}
|
|
126
129
|
* @memberof AccountApiInterface
|
|
@@ -128,6 +131,7 @@ export interface AccountApiInterface {
|
|
|
128
131
|
getBillingEmailRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BillingEmail>>;
|
|
129
132
|
/**
|
|
130
133
|
* Get the email address that receives invoices for this account.
|
|
134
|
+
* Get the invoice email address
|
|
131
135
|
*/
|
|
132
136
|
getBillingEmail(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BillingEmail>;
|
|
133
137
|
/**
|
|
@@ -143,8 +147,8 @@ export interface AccountApiInterface {
|
|
|
143
147
|
*/
|
|
144
148
|
getSupabaseStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SupabaseStatusResponse>;
|
|
145
149
|
/**
|
|
146
|
-
*
|
|
147
|
-
* @summary Get usage for the authenticated account
|
|
150
|
+
* Get usage for the authenticated account.
|
|
151
|
+
* @summary Get usage for the authenticated account
|
|
148
152
|
* @param {*} [options] Override http request option.
|
|
149
153
|
* @throws {RequiredError}
|
|
150
154
|
* @memberof AccountApiInterface
|
|
@@ -152,11 +156,12 @@ export interface AccountApiInterface {
|
|
|
152
156
|
getUsageRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetUsageResponse>>;
|
|
153
157
|
/**
|
|
154
158
|
* Get usage for the authenticated account.
|
|
159
|
+
* Get usage for the authenticated account
|
|
155
160
|
*/
|
|
156
161
|
getUsage(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetUsageResponse>;
|
|
157
162
|
/**
|
|
158
|
-
*
|
|
159
|
-
* @summary Get
|
|
163
|
+
* Get historical usage for the authenticated account over a date range, summed by UTC calendar month or billing cycle from daily counts.
|
|
164
|
+
* @summary Get usage history
|
|
160
165
|
* @param {string} startDate Start date (YYYY-MM-DD) for the range
|
|
161
166
|
* @param {string} endDate End date (YYYY-MM-DD) for the range
|
|
162
167
|
* @param {string} [groupBy] calendar (UTC months, default) or billing (account billing cycles)
|
|
@@ -167,11 +172,12 @@ export interface AccountApiInterface {
|
|
|
167
172
|
getUsageHistoryRaw(requestParameters: GetUsageHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetUsageHistoryResponse>>;
|
|
168
173
|
/**
|
|
169
174
|
* Get historical usage for the authenticated account over a date range, summed by UTC calendar month or billing cycle from daily counts.
|
|
175
|
+
* Get usage history
|
|
170
176
|
*/
|
|
171
177
|
getUsageHistory(startDate: string, endDate: string, groupBy?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetUsageHistoryResponse>;
|
|
172
178
|
/**
|
|
173
|
-
*
|
|
174
|
-
* @summary List invoices for this account, newest first
|
|
179
|
+
* List invoices for this account, newest first.
|
|
180
|
+
* @summary List invoices for this account, newest first
|
|
175
181
|
* @param {number} [limit] Max invoices to return (1-100, default 10)
|
|
176
182
|
* @param {string} [startingAfter] Pagination cursor (invoice id from a previous response)
|
|
177
183
|
* @param {string} [status] Filter by status
|
|
@@ -184,11 +190,12 @@ export interface AccountApiInterface {
|
|
|
184
190
|
listInvoicesRaw(requestParameters: ListInvoicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListInvoicesResponse>>;
|
|
185
191
|
/**
|
|
186
192
|
* List invoices for this account, newest first.
|
|
193
|
+
* List invoices for this account, newest first
|
|
187
194
|
*/
|
|
188
195
|
listInvoices(limit?: number, startingAfter?: string, status?: string, createdAfter?: string, createdBefore?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListInvoicesResponse>;
|
|
189
196
|
/**
|
|
190
|
-
*
|
|
191
|
-
* @summary List saved cards. Only the account owner can call this
|
|
197
|
+
* List saved cards. Only the account owner can call this.
|
|
198
|
+
* @summary List saved cards. Only the account owner can call this
|
|
192
199
|
* @param {*} [options] Override http request option.
|
|
193
200
|
* @throws {RequiredError}
|
|
194
201
|
* @memberof AccountApiInterface
|
|
@@ -196,6 +203,7 @@ export interface AccountApiInterface {
|
|
|
196
203
|
listPaymentMethodsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountPaymentMethods>>;
|
|
197
204
|
/**
|
|
198
205
|
* List saved cards. Only the account owner can call this.
|
|
206
|
+
* List saved cards. Only the account owner can call this
|
|
199
207
|
*/
|
|
200
208
|
listPaymentMethods(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountPaymentMethods>;
|
|
201
209
|
/**
|
|
@@ -211,8 +219,8 @@ export interface AccountApiInterface {
|
|
|
211
219
|
*/
|
|
212
220
|
listSupabaseProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SupabaseProjectsResponse>;
|
|
213
221
|
/**
|
|
214
|
-
*
|
|
215
|
-
* @summary Start or continue billing for this account
|
|
222
|
+
* Start or continue billing for this account. Returns a URL when payment is needed.
|
|
223
|
+
* @summary Start or continue billing for this account
|
|
216
224
|
* @param {BillingPostRequestBody} billingPostRequestBody
|
|
217
225
|
* @param {*} [options] Override http request option.
|
|
218
226
|
* @throws {RequiredError}
|
|
@@ -221,11 +229,12 @@ export interface AccountApiInterface {
|
|
|
221
229
|
prepareCheckoutSessionRaw(requestParameters: PrepareCheckoutSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BillingPostResponseBody>>;
|
|
222
230
|
/**
|
|
223
231
|
* Start or continue billing for this account. Returns a URL when payment is needed.
|
|
232
|
+
* Start or continue billing for this account
|
|
224
233
|
*/
|
|
225
234
|
prepareCheckoutSession(billingPostRequestBody: BillingPostRequestBody, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BillingPostResponseBody>;
|
|
226
235
|
/**
|
|
227
|
-
*
|
|
228
|
-
* @summary
|
|
236
|
+
* Keep the current paid plan and undo a cancellation scheduled for the end of the billing cycle.
|
|
237
|
+
* @summary Undo a scheduled cancellation
|
|
229
238
|
* @param {*} [options] Override http request option.
|
|
230
239
|
* @throws {RequiredError}
|
|
231
240
|
* @memberof AccountApiInterface
|
|
@@ -233,11 +242,12 @@ export interface AccountApiInterface {
|
|
|
233
242
|
resumeSubscriptionRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountGetResponse>>;
|
|
234
243
|
/**
|
|
235
244
|
* Keep the current paid plan and undo a cancellation scheduled for the end of the billing cycle.
|
|
245
|
+
* Undo a scheduled cancellation
|
|
236
246
|
*/
|
|
237
247
|
resumeSubscription(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountGetResponse>;
|
|
238
248
|
/**
|
|
239
|
-
*
|
|
240
|
-
* @summary Revoke Supabase integration
|
|
249
|
+
* Revoke Supabase integration (removes stored tokens and project info)
|
|
250
|
+
* @summary Revoke Supabase integration
|
|
241
251
|
* @param {*} [options] Override http request option.
|
|
242
252
|
* @throws {RequiredError}
|
|
243
253
|
* @memberof AccountApiInterface
|
|
@@ -245,6 +255,7 @@ export interface AccountApiInterface {
|
|
|
245
255
|
revokeSupabaseRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SupabaseConfigureResponse>>;
|
|
246
256
|
/**
|
|
247
257
|
* Revoke Supabase integration (removes stored tokens and project info)
|
|
258
|
+
* Revoke Supabase integration
|
|
248
259
|
*/
|
|
249
260
|
revokeSupabase(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SupabaseConfigureResponse>;
|
|
250
261
|
/**
|
|
@@ -261,8 +272,8 @@ export interface AccountApiInterface {
|
|
|
261
272
|
*/
|
|
262
273
|
supabaseOAuth(supabaseOAuthRequest: SupabaseOAuthRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SupabaseOAuthResponse>;
|
|
263
274
|
/**
|
|
264
|
-
*
|
|
265
|
-
* @summary Update account billing preferences
|
|
275
|
+
* Update account billing preferences such as auto upgrade and usage email alerts.
|
|
276
|
+
* @summary Update account billing preferences
|
|
266
277
|
* @param {AccountPatchRequest} accountPatchRequest
|
|
267
278
|
* @param {*} [options] Override http request option.
|
|
268
279
|
* @throws {RequiredError}
|
|
@@ -271,11 +282,12 @@ export interface AccountApiInterface {
|
|
|
271
282
|
updateAccountSettingsRaw(requestParameters: UpdateAccountSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountGetResponse>>;
|
|
272
283
|
/**
|
|
273
284
|
* Update account billing preferences such as auto upgrade and usage email alerts.
|
|
285
|
+
* Update account billing preferences
|
|
274
286
|
*/
|
|
275
287
|
updateAccountSettings(accountPatchRequest: AccountPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountGetResponse>;
|
|
276
288
|
/**
|
|
277
|
-
*
|
|
278
|
-
* @summary Update the email address
|
|
289
|
+
* Update the email address that receives invoices for this account.
|
|
290
|
+
* @summary Update the invoice email address
|
|
279
291
|
* @param {UpdateBillingEmailRequest} updateBillingEmailRequest
|
|
280
292
|
* @param {*} [options] Override http request option.
|
|
281
293
|
* @throws {RequiredError}
|
|
@@ -284,6 +296,7 @@ export interface AccountApiInterface {
|
|
|
284
296
|
updateBillingEmailRaw(requestParameters: UpdateBillingEmailOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BillingEmail>>;
|
|
285
297
|
/**
|
|
286
298
|
* Update the email address that receives invoices for this account.
|
|
299
|
+
* Update the invoice email address
|
|
287
300
|
*/
|
|
288
301
|
updateBillingEmail(updateBillingEmailRequest: UpdateBillingEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BillingEmail>;
|
|
289
302
|
}
|
|
@@ -293,18 +306,22 @@ export interface AccountApiInterface {
|
|
|
293
306
|
export declare class AccountApi extends runtime.BaseAPI implements AccountApiInterface {
|
|
294
307
|
/**
|
|
295
308
|
* Use a saved card for this account, as the default for new accounts, or for every account that shares these cards. Only the account owner can call this.
|
|
309
|
+
* Assign a saved card
|
|
296
310
|
*/
|
|
297
311
|
assignPaymentMethodRaw(requestParameters: AssignPaymentMethodOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountPaymentMethods>>;
|
|
298
312
|
/**
|
|
299
313
|
* Use a saved card for this account, as the default for new accounts, or for every account that shares these cards. Only the account owner can call this.
|
|
314
|
+
* Assign a saved card
|
|
300
315
|
*/
|
|
301
316
|
assignPaymentMethod(assignPaymentMethodRequest: AssignPaymentMethodRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountPaymentMethods>;
|
|
302
317
|
/**
|
|
303
318
|
* Cancel the paid plan at the end of the current billing cycle. Access continues until then.
|
|
319
|
+
* Cancel the paid plan at the end of the current billing cycle
|
|
304
320
|
*/
|
|
305
321
|
cancelSubscriptionRaw(requestParameters: CancelSubscriptionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountGetResponse>>;
|
|
306
322
|
/**
|
|
307
323
|
* Cancel the paid plan at the end of the current billing cycle. Access continues until then.
|
|
324
|
+
* Cancel the paid plan at the end of the current billing cycle
|
|
308
325
|
*/
|
|
309
326
|
cancelSubscription(cancelSubscriptionRequest: CancelSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountGetResponse>;
|
|
310
327
|
/**
|
|
@@ -317,10 +334,12 @@ export declare class AccountApi extends runtime.BaseAPI implements AccountApiInt
|
|
|
317
334
|
configureSupabaseSMTP(supabaseConfigureRequest: SupabaseConfigureRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SupabaseConfigureResponse>;
|
|
318
335
|
/**
|
|
319
336
|
* Return a URL to add a card. Only the account owner can call this. The card is not assigned until you call assign.
|
|
337
|
+
* Return a URL to add a card
|
|
320
338
|
*/
|
|
321
339
|
createPaymentMethodSetupRaw(requestParameters: CreatePaymentMethodSetupOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaymentMethodSetup>>;
|
|
322
340
|
/**
|
|
323
341
|
* Return a URL to add a card. Only the account owner can call this. The card is not assigned until you call assign.
|
|
342
|
+
* Return a URL to add a card
|
|
324
343
|
*/
|
|
325
344
|
createPaymentMethodSetup(createPaymentMethodSetupRequest: CreatePaymentMethodSetupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaymentMethodSetup>;
|
|
326
345
|
/**
|
|
@@ -333,10 +352,12 @@ export declare class AccountApi extends runtime.BaseAPI implements AccountApiInt
|
|
|
333
352
|
getAccountDetails(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountGetResponse>;
|
|
334
353
|
/**
|
|
335
354
|
* Get the email address that receives invoices for this account.
|
|
355
|
+
* Get the invoice email address
|
|
336
356
|
*/
|
|
337
357
|
getBillingEmailRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BillingEmail>>;
|
|
338
358
|
/**
|
|
339
359
|
* Get the email address that receives invoices for this account.
|
|
360
|
+
* Get the invoice email address
|
|
340
361
|
*/
|
|
341
362
|
getBillingEmail(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BillingEmail>;
|
|
342
363
|
/**
|
|
@@ -349,34 +370,42 @@ export declare class AccountApi extends runtime.BaseAPI implements AccountApiInt
|
|
|
349
370
|
getSupabaseStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SupabaseStatusResponse>;
|
|
350
371
|
/**
|
|
351
372
|
* Get usage for the authenticated account.
|
|
373
|
+
* Get usage for the authenticated account
|
|
352
374
|
*/
|
|
353
375
|
getUsageRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetUsageResponse>>;
|
|
354
376
|
/**
|
|
355
377
|
* Get usage for the authenticated account.
|
|
378
|
+
* Get usage for the authenticated account
|
|
356
379
|
*/
|
|
357
380
|
getUsage(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetUsageResponse>;
|
|
358
381
|
/**
|
|
359
382
|
* Get historical usage for the authenticated account over a date range, summed by UTC calendar month or billing cycle from daily counts.
|
|
383
|
+
* Get usage history
|
|
360
384
|
*/
|
|
361
385
|
getUsageHistoryRaw(requestParameters: GetUsageHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetUsageHistoryResponse>>;
|
|
362
386
|
/**
|
|
363
387
|
* Get historical usage for the authenticated account over a date range, summed by UTC calendar month or billing cycle from daily counts.
|
|
388
|
+
* Get usage history
|
|
364
389
|
*/
|
|
365
390
|
getUsageHistory(startDate: string, endDate: string, groupBy?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetUsageHistoryResponse>;
|
|
366
391
|
/**
|
|
367
392
|
* List invoices for this account, newest first.
|
|
393
|
+
* List invoices for this account, newest first
|
|
368
394
|
*/
|
|
369
395
|
listInvoicesRaw(requestParameters: ListInvoicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListInvoicesResponse>>;
|
|
370
396
|
/**
|
|
371
397
|
* List invoices for this account, newest first.
|
|
398
|
+
* List invoices for this account, newest first
|
|
372
399
|
*/
|
|
373
400
|
listInvoices(limit?: number, startingAfter?: string, status?: string, createdAfter?: string, createdBefore?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListInvoicesResponse>;
|
|
374
401
|
/**
|
|
375
402
|
* List saved cards. Only the account owner can call this.
|
|
403
|
+
* List saved cards. Only the account owner can call this
|
|
376
404
|
*/
|
|
377
405
|
listPaymentMethodsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountPaymentMethods>>;
|
|
378
406
|
/**
|
|
379
407
|
* List saved cards. Only the account owner can call this.
|
|
408
|
+
* List saved cards. Only the account owner can call this
|
|
380
409
|
*/
|
|
381
410
|
listPaymentMethods(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountPaymentMethods>;
|
|
382
411
|
/**
|
|
@@ -389,26 +418,32 @@ export declare class AccountApi extends runtime.BaseAPI implements AccountApiInt
|
|
|
389
418
|
listSupabaseProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SupabaseProjectsResponse>;
|
|
390
419
|
/**
|
|
391
420
|
* Start or continue billing for this account. Returns a URL when payment is needed.
|
|
421
|
+
* Start or continue billing for this account
|
|
392
422
|
*/
|
|
393
423
|
prepareCheckoutSessionRaw(requestParameters: PrepareCheckoutSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BillingPostResponseBody>>;
|
|
394
424
|
/**
|
|
395
425
|
* Start or continue billing for this account. Returns a URL when payment is needed.
|
|
426
|
+
* Start or continue billing for this account
|
|
396
427
|
*/
|
|
397
428
|
prepareCheckoutSession(billingPostRequestBody: BillingPostRequestBody, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BillingPostResponseBody>;
|
|
398
429
|
/**
|
|
399
430
|
* Keep the current paid plan and undo a cancellation scheduled for the end of the billing cycle.
|
|
431
|
+
* Undo a scheduled cancellation
|
|
400
432
|
*/
|
|
401
433
|
resumeSubscriptionRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountGetResponse>>;
|
|
402
434
|
/**
|
|
403
435
|
* Keep the current paid plan and undo a cancellation scheduled for the end of the billing cycle.
|
|
436
|
+
* Undo a scheduled cancellation
|
|
404
437
|
*/
|
|
405
438
|
resumeSubscription(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountGetResponse>;
|
|
406
439
|
/**
|
|
407
440
|
* Revoke Supabase integration (removes stored tokens and project info)
|
|
441
|
+
* Revoke Supabase integration
|
|
408
442
|
*/
|
|
409
443
|
revokeSupabaseRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SupabaseConfigureResponse>>;
|
|
410
444
|
/**
|
|
411
445
|
* Revoke Supabase integration (removes stored tokens and project info)
|
|
446
|
+
* Revoke Supabase integration
|
|
412
447
|
*/
|
|
413
448
|
revokeSupabase(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SupabaseConfigureResponse>;
|
|
414
449
|
/**
|
|
@@ -421,18 +456,22 @@ export declare class AccountApi extends runtime.BaseAPI implements AccountApiInt
|
|
|
421
456
|
supabaseOAuth(supabaseOAuthRequest: SupabaseOAuthRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SupabaseOAuthResponse>;
|
|
422
457
|
/**
|
|
423
458
|
* Update account billing preferences such as auto upgrade and usage email alerts.
|
|
459
|
+
* Update account billing preferences
|
|
424
460
|
*/
|
|
425
461
|
updateAccountSettingsRaw(requestParameters: UpdateAccountSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountGetResponse>>;
|
|
426
462
|
/**
|
|
427
463
|
* Update account billing preferences such as auto upgrade and usage email alerts.
|
|
464
|
+
* Update account billing preferences
|
|
428
465
|
*/
|
|
429
466
|
updateAccountSettings(accountPatchRequest: AccountPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountGetResponse>;
|
|
430
467
|
/**
|
|
431
468
|
* Update the email address that receives invoices for this account.
|
|
469
|
+
* Update the invoice email address
|
|
432
470
|
*/
|
|
433
471
|
updateBillingEmailRaw(requestParameters: UpdateBillingEmailOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BillingEmail>>;
|
|
434
472
|
/**
|
|
435
473
|
* Update the email address that receives invoices for this account.
|
|
474
|
+
* Update the invoice email address
|
|
436
475
|
*/
|
|
437
476
|
updateBillingEmail(updateBillingEmailRequest: UpdateBillingEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BillingEmail>;
|
|
438
477
|
}
|
|
@@ -55,6 +55,7 @@ const index_1 = require("../models/index");
|
|
|
55
55
|
class AccountApi extends runtime.BaseAPI {
|
|
56
56
|
/**
|
|
57
57
|
* Use a saved card for this account, as the default for new accounts, or for every account that shares these cards. Only the account owner can call this.
|
|
58
|
+
* Assign a saved card
|
|
58
59
|
*/
|
|
59
60
|
async assignPaymentMethodRaw(requestParameters, initOverrides) {
|
|
60
61
|
if (requestParameters['assignPaymentMethodRequest'] == null) {
|
|
@@ -103,6 +104,7 @@ class AccountApi extends runtime.BaseAPI {
|
|
|
103
104
|
}
|
|
104
105
|
/**
|
|
105
106
|
* Use a saved card for this account, as the default for new accounts, or for every account that shares these cards. Only the account owner can call this.
|
|
107
|
+
* Assign a saved card
|
|
106
108
|
*/
|
|
107
109
|
async assignPaymentMethod(assignPaymentMethodRequest, initOverrides) {
|
|
108
110
|
const response = await this.assignPaymentMethodRaw({ assignPaymentMethodRequest: assignPaymentMethodRequest }, initOverrides);
|
|
@@ -110,6 +112,7 @@ class AccountApi extends runtime.BaseAPI {
|
|
|
110
112
|
}
|
|
111
113
|
/**
|
|
112
114
|
* Cancel the paid plan at the end of the current billing cycle. Access continues until then.
|
|
115
|
+
* Cancel the paid plan at the end of the current billing cycle
|
|
113
116
|
*/
|
|
114
117
|
async cancelSubscriptionRaw(requestParameters, initOverrides) {
|
|
115
118
|
if (requestParameters['cancelSubscriptionRequest'] == null) {
|
|
@@ -158,6 +161,7 @@ class AccountApi extends runtime.BaseAPI {
|
|
|
158
161
|
}
|
|
159
162
|
/**
|
|
160
163
|
* Cancel the paid plan at the end of the current billing cycle. Access continues until then.
|
|
164
|
+
* Cancel the paid plan at the end of the current billing cycle
|
|
161
165
|
*/
|
|
162
166
|
async cancelSubscription(cancelSubscriptionRequest, initOverrides) {
|
|
163
167
|
const response = await this.cancelSubscriptionRaw({ cancelSubscriptionRequest: cancelSubscriptionRequest }, initOverrides);
|
|
@@ -220,6 +224,7 @@ class AccountApi extends runtime.BaseAPI {
|
|
|
220
224
|
}
|
|
221
225
|
/**
|
|
222
226
|
* Return a URL to add a card. Only the account owner can call this. The card is not assigned until you call assign.
|
|
227
|
+
* Return a URL to add a card
|
|
223
228
|
*/
|
|
224
229
|
async createPaymentMethodSetupRaw(requestParameters, initOverrides) {
|
|
225
230
|
if (requestParameters['createPaymentMethodSetupRequest'] == null) {
|
|
@@ -268,6 +273,7 @@ class AccountApi extends runtime.BaseAPI {
|
|
|
268
273
|
}
|
|
269
274
|
/**
|
|
270
275
|
* Return a URL to add a card. Only the account owner can call this. The card is not assigned until you call assign.
|
|
276
|
+
* Return a URL to add a card
|
|
271
277
|
*/
|
|
272
278
|
async createPaymentMethodSetup(createPaymentMethodSetupRequest, initOverrides) {
|
|
273
279
|
const response = await this.createPaymentMethodSetupRaw({ createPaymentMethodSetupRequest: createPaymentMethodSetupRequest }, initOverrides);
|
|
@@ -325,6 +331,7 @@ class AccountApi extends runtime.BaseAPI {
|
|
|
325
331
|
}
|
|
326
332
|
/**
|
|
327
333
|
* Get the email address that receives invoices for this account.
|
|
334
|
+
* Get the invoice email address
|
|
328
335
|
*/
|
|
329
336
|
async getBillingEmailRaw(initOverrides) {
|
|
330
337
|
const queryParameters = {};
|
|
@@ -368,6 +375,7 @@ class AccountApi extends runtime.BaseAPI {
|
|
|
368
375
|
}
|
|
369
376
|
/**
|
|
370
377
|
* Get the email address that receives invoices for this account.
|
|
378
|
+
* Get the invoice email address
|
|
371
379
|
*/
|
|
372
380
|
async getBillingEmail(initOverrides) {
|
|
373
381
|
const response = await this.getBillingEmailRaw(initOverrides);
|
|
@@ -425,6 +433,7 @@ class AccountApi extends runtime.BaseAPI {
|
|
|
425
433
|
}
|
|
426
434
|
/**
|
|
427
435
|
* Get usage for the authenticated account.
|
|
436
|
+
* Get usage for the authenticated account
|
|
428
437
|
*/
|
|
429
438
|
async getUsageRaw(initOverrides) {
|
|
430
439
|
const queryParameters = {};
|
|
@@ -468,6 +477,7 @@ class AccountApi extends runtime.BaseAPI {
|
|
|
468
477
|
}
|
|
469
478
|
/**
|
|
470
479
|
* Get usage for the authenticated account.
|
|
480
|
+
* Get usage for the authenticated account
|
|
471
481
|
*/
|
|
472
482
|
async getUsage(initOverrides) {
|
|
473
483
|
const response = await this.getUsageRaw(initOverrides);
|
|
@@ -475,6 +485,7 @@ class AccountApi extends runtime.BaseAPI {
|
|
|
475
485
|
}
|
|
476
486
|
/**
|
|
477
487
|
* Get historical usage for the authenticated account over a date range, summed by UTC calendar month or billing cycle from daily counts.
|
|
488
|
+
* Get usage history
|
|
478
489
|
*/
|
|
479
490
|
async getUsageHistoryRaw(requestParameters, initOverrides) {
|
|
480
491
|
if (requestParameters['startDate'] == null) {
|
|
@@ -533,6 +544,7 @@ class AccountApi extends runtime.BaseAPI {
|
|
|
533
544
|
}
|
|
534
545
|
/**
|
|
535
546
|
* Get historical usage for the authenticated account over a date range, summed by UTC calendar month or billing cycle from daily counts.
|
|
547
|
+
* Get usage history
|
|
536
548
|
*/
|
|
537
549
|
async getUsageHistory(startDate, endDate, groupBy, initOverrides) {
|
|
538
550
|
const response = await this.getUsageHistoryRaw({ startDate: startDate, endDate: endDate, groupBy: groupBy }, initOverrides);
|
|
@@ -540,6 +552,7 @@ class AccountApi extends runtime.BaseAPI {
|
|
|
540
552
|
}
|
|
541
553
|
/**
|
|
542
554
|
* List invoices for this account, newest first.
|
|
555
|
+
* List invoices for this account, newest first
|
|
543
556
|
*/
|
|
544
557
|
async listInvoicesRaw(requestParameters, initOverrides) {
|
|
545
558
|
const queryParameters = {};
|
|
@@ -598,6 +611,7 @@ class AccountApi extends runtime.BaseAPI {
|
|
|
598
611
|
}
|
|
599
612
|
/**
|
|
600
613
|
* List invoices for this account, newest first.
|
|
614
|
+
* List invoices for this account, newest first
|
|
601
615
|
*/
|
|
602
616
|
async listInvoices(limit, startingAfter, status, createdAfter, createdBefore, initOverrides) {
|
|
603
617
|
const response = await this.listInvoicesRaw({
|
|
@@ -611,6 +625,7 @@ class AccountApi extends runtime.BaseAPI {
|
|
|
611
625
|
}
|
|
612
626
|
/**
|
|
613
627
|
* List saved cards. Only the account owner can call this.
|
|
628
|
+
* List saved cards. Only the account owner can call this
|
|
614
629
|
*/
|
|
615
630
|
async listPaymentMethodsRaw(initOverrides) {
|
|
616
631
|
const queryParameters = {};
|
|
@@ -654,6 +669,7 @@ class AccountApi extends runtime.BaseAPI {
|
|
|
654
669
|
}
|
|
655
670
|
/**
|
|
656
671
|
* List saved cards. Only the account owner can call this.
|
|
672
|
+
* List saved cards. Only the account owner can call this
|
|
657
673
|
*/
|
|
658
674
|
async listPaymentMethods(initOverrides) {
|
|
659
675
|
const response = await this.listPaymentMethodsRaw(initOverrides);
|
|
@@ -711,6 +727,7 @@ class AccountApi extends runtime.BaseAPI {
|
|
|
711
727
|
}
|
|
712
728
|
/**
|
|
713
729
|
* Start or continue billing for this account. Returns a URL when payment is needed.
|
|
730
|
+
* Start or continue billing for this account
|
|
714
731
|
*/
|
|
715
732
|
async prepareCheckoutSessionRaw(requestParameters, initOverrides) {
|
|
716
733
|
if (requestParameters['billingPostRequestBody'] == null) {
|
|
@@ -759,6 +776,7 @@ class AccountApi extends runtime.BaseAPI {
|
|
|
759
776
|
}
|
|
760
777
|
/**
|
|
761
778
|
* Start or continue billing for this account. Returns a URL when payment is needed.
|
|
779
|
+
* Start or continue billing for this account
|
|
762
780
|
*/
|
|
763
781
|
async prepareCheckoutSession(billingPostRequestBody, initOverrides) {
|
|
764
782
|
const response = await this.prepareCheckoutSessionRaw({ billingPostRequestBody: billingPostRequestBody }, initOverrides);
|
|
@@ -766,6 +784,7 @@ class AccountApi extends runtime.BaseAPI {
|
|
|
766
784
|
}
|
|
767
785
|
/**
|
|
768
786
|
* Keep the current paid plan and undo a cancellation scheduled for the end of the billing cycle.
|
|
787
|
+
* Undo a scheduled cancellation
|
|
769
788
|
*/
|
|
770
789
|
async resumeSubscriptionRaw(initOverrides) {
|
|
771
790
|
const queryParameters = {};
|
|
@@ -809,6 +828,7 @@ class AccountApi extends runtime.BaseAPI {
|
|
|
809
828
|
}
|
|
810
829
|
/**
|
|
811
830
|
* Keep the current paid plan and undo a cancellation scheduled for the end of the billing cycle.
|
|
831
|
+
* Undo a scheduled cancellation
|
|
812
832
|
*/
|
|
813
833
|
async resumeSubscription(initOverrides) {
|
|
814
834
|
const response = await this.resumeSubscriptionRaw(initOverrides);
|
|
@@ -816,6 +836,7 @@ class AccountApi extends runtime.BaseAPI {
|
|
|
816
836
|
}
|
|
817
837
|
/**
|
|
818
838
|
* Revoke Supabase integration (removes stored tokens and project info)
|
|
839
|
+
* Revoke Supabase integration
|
|
819
840
|
*/
|
|
820
841
|
async revokeSupabaseRaw(initOverrides) {
|
|
821
842
|
const queryParameters = {};
|
|
@@ -859,6 +880,7 @@ class AccountApi extends runtime.BaseAPI {
|
|
|
859
880
|
}
|
|
860
881
|
/**
|
|
861
882
|
* Revoke Supabase integration (removes stored tokens and project info)
|
|
883
|
+
* Revoke Supabase integration
|
|
862
884
|
*/
|
|
863
885
|
async revokeSupabase(initOverrides) {
|
|
864
886
|
const response = await this.revokeSupabaseRaw(initOverrides);
|
|
@@ -921,6 +943,7 @@ class AccountApi extends runtime.BaseAPI {
|
|
|
921
943
|
}
|
|
922
944
|
/**
|
|
923
945
|
* Update account billing preferences such as auto upgrade and usage email alerts.
|
|
946
|
+
* Update account billing preferences
|
|
924
947
|
*/
|
|
925
948
|
async updateAccountSettingsRaw(requestParameters, initOverrides) {
|
|
926
949
|
if (requestParameters['accountPatchRequest'] == null) {
|
|
@@ -969,6 +992,7 @@ class AccountApi extends runtime.BaseAPI {
|
|
|
969
992
|
}
|
|
970
993
|
/**
|
|
971
994
|
* Update account billing preferences such as auto upgrade and usage email alerts.
|
|
995
|
+
* Update account billing preferences
|
|
972
996
|
*/
|
|
973
997
|
async updateAccountSettings(accountPatchRequest, initOverrides) {
|
|
974
998
|
const response = await this.updateAccountSettingsRaw({ accountPatchRequest: accountPatchRequest }, initOverrides);
|
|
@@ -976,6 +1000,7 @@ class AccountApi extends runtime.BaseAPI {
|
|
|
976
1000
|
}
|
|
977
1001
|
/**
|
|
978
1002
|
* Update the email address that receives invoices for this account.
|
|
1003
|
+
* Update the invoice email address
|
|
979
1004
|
*/
|
|
980
1005
|
async updateBillingEmailRaw(requestParameters, initOverrides) {
|
|
981
1006
|
if (requestParameters['updateBillingEmailRequest'] == null) {
|
|
@@ -1024,6 +1049,7 @@ class AccountApi extends runtime.BaseAPI {
|
|
|
1024
1049
|
}
|
|
1025
1050
|
/**
|
|
1026
1051
|
* Update the email address that receives invoices for this account.
|
|
1052
|
+
* Update the invoice email address
|
|
1027
1053
|
*/
|
|
1028
1054
|
async updateBillingEmail(updateBillingEmailRequest, initOverrides) {
|
|
1029
1055
|
const response = await this.updateBillingEmailRaw({ updateBillingEmailRequest: updateBillingEmailRequest }, initOverrides);
|
|
@@ -10,10 +10,14 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { CreateAccountRequest, CreateAccountResponse, ListAccountsResponse } from '../models/index';
|
|
13
|
+
import type { AccountSummary, CreateAccountRequest, CreateAccountResponse, ListAccountsResponse, UpdateAccountRequest } from '../models/index';
|
|
14
14
|
export interface CreateAccountOperationRequest {
|
|
15
15
|
createAccountRequest: CreateAccountRequest;
|
|
16
16
|
}
|
|
17
|
+
export interface UpdateAccountOperationRequest {
|
|
18
|
+
accountId: string;
|
|
19
|
+
updateAccountRequest: UpdateAccountRequest;
|
|
20
|
+
}
|
|
17
21
|
/**
|
|
18
22
|
* AccountsApi - interface
|
|
19
23
|
*
|
|
@@ -22,8 +26,8 @@ export interface CreateAccountOperationRequest {
|
|
|
22
26
|
*/
|
|
23
27
|
export interface AccountsApiInterface {
|
|
24
28
|
/**
|
|
25
|
-
*
|
|
26
|
-
* @summary Create
|
|
29
|
+
* Create one additional Pingram account (a separate workspace) for the signed-in user. The caller must already belong to an account. Requires a user session or personal access token; an account API key cannot call this. Does not create a login, and does not change, delete, or grant access to existing accounts. Omit plan and nothing is charged. The new account is ready for billing to be added later, and it cannot send until then. Setting plan charges immediately. It starts a paid subscription on the payment method already saved on sourceBillingAccountId, an account the caller must own. Optional memberEmails adds people who already share an account with the caller and invites everyone else.
|
|
30
|
+
* @summary Create another Pingram account
|
|
27
31
|
* @param {CreateAccountRequest} createAccountRequest
|
|
28
32
|
* @param {*} [options] Override http request option.
|
|
29
33
|
* @throws {RequiredError}
|
|
@@ -32,6 +36,7 @@ export interface AccountsApiInterface {
|
|
|
32
36
|
createAccountRaw(requestParameters: CreateAccountOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateAccountResponse>>;
|
|
33
37
|
/**
|
|
34
38
|
* Create one additional Pingram account (a separate workspace) for the signed-in user. The caller must already belong to an account. Requires a user session or personal access token; an account API key cannot call this. Does not create a login, and does not change, delete, or grant access to existing accounts. Omit plan and nothing is charged. The new account is ready for billing to be added later, and it cannot send until then. Setting plan charges immediately. It starts a paid subscription on the payment method already saved on sourceBillingAccountId, an account the caller must own. Optional memberEmails adds people who already share an account with the caller and invites everyone else.
|
|
39
|
+
* Create another Pingram account
|
|
35
40
|
*/
|
|
36
41
|
createAccount(createAccountRequest: CreateAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateAccountResponse>;
|
|
37
42
|
/**
|
|
@@ -46,6 +51,21 @@ export interface AccountsApiInterface {
|
|
|
46
51
|
* List accounts the authenticated user can access
|
|
47
52
|
*/
|
|
48
53
|
listAccounts(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListAccountsResponse>;
|
|
54
|
+
/**
|
|
55
|
+
* Change the display name of an account the caller can access. The name is the label shown in the dashboard and in account lists.
|
|
56
|
+
* @summary Change the display name of an account
|
|
57
|
+
* @param {string} accountId Account to rename
|
|
58
|
+
* @param {UpdateAccountRequest} updateAccountRequest
|
|
59
|
+
* @param {*} [options] Override http request option.
|
|
60
|
+
* @throws {RequiredError}
|
|
61
|
+
* @memberof AccountsApiInterface
|
|
62
|
+
*/
|
|
63
|
+
updateAccountRaw(requestParameters: UpdateAccountOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountSummary>>;
|
|
64
|
+
/**
|
|
65
|
+
* Change the display name of an account the caller can access. The name is the label shown in the dashboard and in account lists.
|
|
66
|
+
* Change the display name of an account
|
|
67
|
+
*/
|
|
68
|
+
updateAccount(accountId: string, updateAccountRequest: UpdateAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountSummary>;
|
|
49
69
|
}
|
|
50
70
|
/**
|
|
51
71
|
*
|
|
@@ -53,10 +73,12 @@ export interface AccountsApiInterface {
|
|
|
53
73
|
export declare class AccountsApi extends runtime.BaseAPI implements AccountsApiInterface {
|
|
54
74
|
/**
|
|
55
75
|
* Create one additional Pingram account (a separate workspace) for the signed-in user. The caller must already belong to an account. Requires a user session or personal access token; an account API key cannot call this. Does not create a login, and does not change, delete, or grant access to existing accounts. Omit plan and nothing is charged. The new account is ready for billing to be added later, and it cannot send until then. Setting plan charges immediately. It starts a paid subscription on the payment method already saved on sourceBillingAccountId, an account the caller must own. Optional memberEmails adds people who already share an account with the caller and invites everyone else.
|
|
76
|
+
* Create another Pingram account
|
|
56
77
|
*/
|
|
57
78
|
createAccountRaw(requestParameters: CreateAccountOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateAccountResponse>>;
|
|
58
79
|
/**
|
|
59
80
|
* Create one additional Pingram account (a separate workspace) for the signed-in user. The caller must already belong to an account. Requires a user session or personal access token; an account API key cannot call this. Does not create a login, and does not change, delete, or grant access to existing accounts. Omit plan and nothing is charged. The new account is ready for billing to be added later, and it cannot send until then. Setting plan charges immediately. It starts a paid subscription on the payment method already saved on sourceBillingAccountId, an account the caller must own. Optional memberEmails adds people who already share an account with the caller and invites everyone else.
|
|
81
|
+
* Create another Pingram account
|
|
60
82
|
*/
|
|
61
83
|
createAccount(createAccountRequest: CreateAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateAccountResponse>;
|
|
62
84
|
/**
|
|
@@ -67,4 +89,14 @@ export declare class AccountsApi extends runtime.BaseAPI implements AccountsApiI
|
|
|
67
89
|
* List accounts the authenticated user can access
|
|
68
90
|
*/
|
|
69
91
|
listAccounts(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListAccountsResponse>;
|
|
92
|
+
/**
|
|
93
|
+
* Change the display name of an account the caller can access. The name is the label shown in the dashboard and in account lists.
|
|
94
|
+
* Change the display name of an account
|
|
95
|
+
*/
|
|
96
|
+
updateAccountRaw(requestParameters: UpdateAccountOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountSummary>>;
|
|
97
|
+
/**
|
|
98
|
+
* Change the display name of an account the caller can access. The name is the label shown in the dashboard and in account lists.
|
|
99
|
+
* Change the display name of an account
|
|
100
|
+
*/
|
|
101
|
+
updateAccount(accountId: string, updateAccountRequest: UpdateAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountSummary>;
|
|
70
102
|
}
|