pingram 1.0.18-alpha.1313 → 1.0.18-alpha.1315

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 (52) hide show
  1. package/dist/generated/src/apis/AccountApi.d.ts +47 -21
  2. package/dist/generated/src/apis/AccountApi.js +78 -16
  3. package/dist/generated/src/apis/MembersApi.d.ts +20 -20
  4. package/dist/generated/src/apis/MembersApi.js +10 -10
  5. package/dist/generated/src/apis/index.d.ts +1 -3
  6. package/dist/generated/src/apis/index.js +1 -3
  7. package/dist/generated/src/models/AccountGetResponse.d.ts +73 -3
  8. package/dist/generated/src/models/AccountGetResponse.js +52 -7
  9. package/dist/generated/src/models/AutoJoinGetResponse.d.ts +1 -1
  10. package/dist/generated/src/models/AutoJoinGetResponse.js +3 -3
  11. package/dist/generated/src/models/AutoJoinPostResponse.d.ts +1 -1
  12. package/dist/generated/src/models/AutoJoinPostResponse.js +3 -3
  13. package/dist/generated/src/models/BillingPostResponseBody.d.ts +7 -7
  14. package/dist/generated/src/models/BillingPostResponseBody.js +14 -18
  15. package/dist/generated/src/models/GetMembersResponseInner.d.ts +0 -6
  16. package/dist/generated/src/models/GetMembersResponseInner.js +0 -4
  17. package/dist/generated/src/models/GetUsageHistoryQuery.d.ts +1 -1
  18. package/dist/generated/src/models/GetUsageHistoryResponse.d.ts +33 -0
  19. package/dist/generated/src/models/GetUsageHistoryResponse.js +51 -0
  20. package/dist/generated/src/models/GetUsageHistoryResponseItemsInner.d.ts +39 -0
  21. package/dist/generated/src/models/GetUsageHistoryResponseItemsInner.js +55 -0
  22. package/dist/generated/src/models/GetUsageHistoryResponseItemsInnerCounts.d.ts +74 -0
  23. package/dist/generated/src/models/{OrganizationUsageHistoryItemsInnerCounts.js → GetUsageHistoryResponseItemsInnerCounts.js} +13 -13
  24. package/dist/generated/src/models/GetUsageResponse.d.ts +52 -0
  25. package/dist/generated/src/models/GetUsageResponse.js +65 -0
  26. package/dist/generated/src/models/GetUsageResponseCosts.d.ts +33 -0
  27. package/dist/generated/src/models/GetUsageResponseCosts.js +50 -0
  28. package/dist/generated/src/models/GetUsageResponseCounts.d.ts +74 -0
  29. package/dist/generated/src/models/{OrganizationUsageCounts.js → GetUsageResponseCounts.js} +13 -13
  30. package/dist/generated/src/models/index.d.ts +6 -9
  31. package/dist/generated/src/models/index.js +6 -9
  32. package/dist/src/client.d.ts +0 -2
  33. package/dist/src/client.js +22 -25
  34. package/package.json +1 -1
  35. package/dist/generated/src/apis/OrganizationApi.d.ts +0 -96
  36. package/dist/generated/src/apis/OrganizationApi.js +0 -224
  37. package/dist/generated/src/models/CreateOrganizationRequest.d.ts +0 -34
  38. package/dist/generated/src/models/CreateOrganizationRequest.js +0 -48
  39. package/dist/generated/src/models/CreateOrganizationResponse.d.ts +0 -44
  40. package/dist/generated/src/models/CreateOrganizationResponse.js +0 -58
  41. package/dist/generated/src/models/Organization.d.ts +0 -120
  42. package/dist/generated/src/models/Organization.js +0 -111
  43. package/dist/generated/src/models/OrganizationUsage.d.ts +0 -52
  44. package/dist/generated/src/models/OrganizationUsage.js +0 -65
  45. package/dist/generated/src/models/OrganizationUsageCosts.d.ts +0 -33
  46. package/dist/generated/src/models/OrganizationUsageCosts.js +0 -50
  47. package/dist/generated/src/models/OrganizationUsageCounts.d.ts +0 -74
  48. package/dist/generated/src/models/OrganizationUsageHistory.d.ts +0 -33
  49. package/dist/generated/src/models/OrganizationUsageHistory.js +0 -51
  50. package/dist/generated/src/models/OrganizationUsageHistoryItemsInner.d.ts +0 -39
  51. package/dist/generated/src/models/OrganizationUsageHistoryItemsInner.js +0 -55
  52. package/dist/generated/src/models/OrganizationUsageHistoryItemsInnerCounts.d.ts +0 -74
@@ -10,10 +10,14 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AccountGetResponse, BillingPostRequestBody, BillingPostResponseBody, CreateAccountRequestBody, CreateAccountResponse, Organization, SupabaseConfigureRequest, SupabaseConfigureResponse, SupabaseOAuthRequest, SupabaseOAuthResponse, SupabaseProjectsResponse, SupabaseStatusResponse } from '../models/index';
13
+ import type { AccountGetResponse, BillingPostRequestBody, BillingPostResponseBody, CreateAccountRequestBody, CreateAccountResponse, GetUsageHistoryResponse, GetUsageResponse, SupabaseConfigureRequest, SupabaseConfigureResponse, SupabaseOAuthRequest, SupabaseOAuthResponse, SupabaseProjectsResponse, SupabaseStatusResponse } from '../models/index';
14
14
  export interface ConfigureSupabaseSMTPRequest {
15
15
  supabaseConfigureRequest: SupabaseConfigureRequest;
16
16
  }
17
+ export interface GetUsageHistoryRequest {
18
+ startDate: string;
19
+ endDate: string;
20
+ }
17
21
  export interface PrepareCheckoutSessionRequest {
18
22
  billingPostRequestBody: BillingPostRequestBody;
19
23
  }
@@ -45,40 +49,54 @@ export interface AccountApiInterface {
45
49
  configureSupabaseSMTP(supabaseConfigureRequest: SupabaseConfigureRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SupabaseConfigureResponse>;
46
50
  /**
47
51
  *
48
- * @summary Get account information for the authenticated user
52
+ * @summary Get account information for the authenticated account
49
53
  * @param {*} [options] Override http request option.
50
54
  * @throws {RequiredError}
51
55
  * @memberof AccountApiInterface
52
56
  */
53
57
  getAccountDetailsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountGetResponse>>;
54
58
  /**
55
- * Get account information for the authenticated user
59
+ * Get account information for the authenticated account
56
60
  */
57
61
  getAccountDetails(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountGetResponse>;
58
62
  /**
59
63
  *
60
- * @summary Get organization for the authenticated account (new billing model).
64
+ * @summary Get Supabase integration status for the account
61
65
  * @param {*} [options] Override http request option.
62
66
  * @throws {RequiredError}
63
67
  * @memberof AccountApiInterface
64
68
  */
65
- getOrganizationRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Organization>>;
69
+ getSupabaseStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SupabaseStatusResponse>>;
66
70
  /**
67
- * Get organization for the authenticated account (new billing model).
71
+ * Get Supabase integration status for the account
68
72
  */
69
- getOrganization(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Organization>;
73
+ getSupabaseStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SupabaseStatusResponse>;
70
74
  /**
71
75
  *
72
- * @summary Get Supabase integration status for the account
76
+ * @summary Get usage for the authenticated account.
73
77
  * @param {*} [options] Override http request option.
74
78
  * @throws {RequiredError}
75
79
  * @memberof AccountApiInterface
76
80
  */
77
- getSupabaseStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SupabaseStatusResponse>>;
81
+ getUsageRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetUsageResponse>>;
78
82
  /**
79
- * Get Supabase integration status for the account
83
+ * Get usage for the authenticated account.
80
84
  */
81
- getSupabaseStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SupabaseStatusResponse>;
85
+ getUsage(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetUsageResponse>;
86
+ /**
87
+ *
88
+ * @summary Get historical usage for the authenticated account over a date range.
89
+ * @param {string} startDate Start date (YYYY-MM-DD) for the range
90
+ * @param {string} endDate End date (YYYY-MM-DD) for the range
91
+ * @param {*} [options] Override http request option.
92
+ * @throws {RequiredError}
93
+ * @memberof AccountApiInterface
94
+ */
95
+ getUsageHistoryRaw(requestParameters: GetUsageHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetUsageHistoryResponse>>;
96
+ /**
97
+ * Get historical usage for the authenticated account over a date range.
98
+ */
99
+ getUsageHistory(startDate: string, endDate: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetUsageHistoryResponse>;
82
100
  /**
83
101
  *
84
102
  * @summary List Supabase projects for the connected account
@@ -156,21 +174,13 @@ export declare class AccountApi extends runtime.BaseAPI implements AccountApiInt
156
174
  */
157
175
  configureSupabaseSMTP(supabaseConfigureRequest: SupabaseConfigureRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SupabaseConfigureResponse>;
158
176
  /**
159
- * Get account information for the authenticated user
177
+ * Get account information for the authenticated account
160
178
  */
161
179
  getAccountDetailsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountGetResponse>>;
162
180
  /**
163
- * Get account information for the authenticated user
181
+ * Get account information for the authenticated account
164
182
  */
165
183
  getAccountDetails(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountGetResponse>;
166
- /**
167
- * Get organization for the authenticated account (new billing model).
168
- */
169
- getOrganizationRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Organization>>;
170
- /**
171
- * Get organization for the authenticated account (new billing model).
172
- */
173
- getOrganization(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Organization>;
174
184
  /**
175
185
  * Get Supabase integration status for the account
176
186
  */
@@ -179,6 +189,22 @@ export declare class AccountApi extends runtime.BaseAPI implements AccountApiInt
179
189
  * Get Supabase integration status for the account
180
190
  */
181
191
  getSupabaseStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SupabaseStatusResponse>;
192
+ /**
193
+ * Get usage for the authenticated account.
194
+ */
195
+ getUsageRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetUsageResponse>>;
196
+ /**
197
+ * Get usage for the authenticated account.
198
+ */
199
+ getUsage(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetUsageResponse>;
200
+ /**
201
+ * Get historical usage for the authenticated account over a date range.
202
+ */
203
+ getUsageHistoryRaw(requestParameters: GetUsageHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetUsageHistoryResponse>>;
204
+ /**
205
+ * Get historical usage for the authenticated account over a date range.
206
+ */
207
+ getUsageHistory(startDate: string, endDate: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetUsageHistoryResponse>;
182
208
  /**
183
209
  * List Supabase projects for the connected account
184
210
  */
@@ -109,7 +109,7 @@ class AccountApi extends runtime.BaseAPI {
109
109
  return await response.value();
110
110
  }
111
111
  /**
112
- * Get account information for the authenticated user
112
+ * Get account information for the authenticated account
113
113
  */
114
114
  async getAccountDetailsRaw(initOverrides) {
115
115
  const queryParameters = {};
@@ -152,16 +152,16 @@ class AccountApi extends runtime.BaseAPI {
152
152
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AccountGetResponseFromJSON)(jsonValue));
153
153
  }
154
154
  /**
155
- * Get account information for the authenticated user
155
+ * Get account information for the authenticated account
156
156
  */
157
157
  async getAccountDetails(initOverrides) {
158
158
  const response = await this.getAccountDetailsRaw(initOverrides);
159
159
  return await response.value();
160
160
  }
161
161
  /**
162
- * Get organization for the authenticated account (new billing model).
162
+ * Get Supabase integration status for the account
163
163
  */
164
- async getOrganizationRaw(initOverrides) {
164
+ async getSupabaseStatusRaw(initOverrides) {
165
165
  const queryParameters = {};
166
166
  const headerParameters = {};
167
167
  if (this.configuration &&
@@ -192,26 +192,26 @@ class AccountApi extends runtime.BaseAPI {
192
192
  'Basic ' +
193
193
  btoa(this.configuration.username + ':' + this.configuration.password);
194
194
  }
195
- let urlPath = `/account/organization`;
195
+ let urlPath = `/account/supabase/status`;
196
196
  const response = await this.request({
197
197
  path: urlPath,
198
198
  method: 'GET',
199
199
  headers: headerParameters,
200
200
  query: queryParameters
201
201
  }, initOverrides);
202
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.OrganizationFromJSON)(jsonValue));
202
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SupabaseStatusResponseFromJSON)(jsonValue));
203
203
  }
204
204
  /**
205
- * Get organization for the authenticated account (new billing model).
205
+ * Get Supabase integration status for the account
206
206
  */
207
- async getOrganization(initOverrides) {
208
- const response = await this.getOrganizationRaw(initOverrides);
207
+ async getSupabaseStatus(initOverrides) {
208
+ const response = await this.getSupabaseStatusRaw(initOverrides);
209
209
  return await response.value();
210
210
  }
211
211
  /**
212
- * Get Supabase integration status for the account
212
+ * Get usage for the authenticated account.
213
213
  */
214
- async getSupabaseStatusRaw(initOverrides) {
214
+ async getUsageRaw(initOverrides) {
215
215
  const queryParameters = {};
216
216
  const headerParameters = {};
217
217
  if (this.configuration &&
@@ -242,20 +242,82 @@ class AccountApi extends runtime.BaseAPI {
242
242
  'Basic ' +
243
243
  btoa(this.configuration.username + ':' + this.configuration.password);
244
244
  }
245
- let urlPath = `/account/supabase/status`;
245
+ let urlPath = `/account/usage`;
246
246
  const response = await this.request({
247
247
  path: urlPath,
248
248
  method: 'GET',
249
249
  headers: headerParameters,
250
250
  query: queryParameters
251
251
  }, initOverrides);
252
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SupabaseStatusResponseFromJSON)(jsonValue));
252
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetUsageResponseFromJSON)(jsonValue));
253
253
  }
254
254
  /**
255
- * Get Supabase integration status for the account
255
+ * Get usage for the authenticated account.
256
256
  */
257
- async getSupabaseStatus(initOverrides) {
258
- const response = await this.getSupabaseStatusRaw(initOverrides);
257
+ async getUsage(initOverrides) {
258
+ const response = await this.getUsageRaw(initOverrides);
259
+ return await response.value();
260
+ }
261
+ /**
262
+ * Get historical usage for the authenticated account over a date range.
263
+ */
264
+ async getUsageHistoryRaw(requestParameters, initOverrides) {
265
+ if (requestParameters['startDate'] == null) {
266
+ throw new runtime.RequiredError('startDate', 'Required parameter "startDate" was null or undefined when calling getUsageHistory().');
267
+ }
268
+ if (requestParameters['endDate'] == null) {
269
+ throw new runtime.RequiredError('endDate', 'Required parameter "endDate" was null or undefined when calling getUsageHistory().');
270
+ }
271
+ const queryParameters = {};
272
+ if (requestParameters['startDate'] != null) {
273
+ queryParameters['startDate'] = requestParameters['startDate'];
274
+ }
275
+ if (requestParameters['endDate'] != null) {
276
+ queryParameters['endDate'] = requestParameters['endDate'];
277
+ }
278
+ const headerParameters = {};
279
+ if (this.configuration &&
280
+ (this.configuration.username !== undefined ||
281
+ this.configuration.password !== undefined)) {
282
+ headerParameters['Authorization'] =
283
+ 'Basic ' +
284
+ btoa(this.configuration.username + ':' + this.configuration.password);
285
+ }
286
+ if (this.configuration &&
287
+ (this.configuration.username !== undefined ||
288
+ this.configuration.password !== undefined)) {
289
+ headerParameters['Authorization'] =
290
+ 'Basic ' +
291
+ btoa(this.configuration.username + ':' + this.configuration.password);
292
+ }
293
+ if (this.configuration && this.configuration.accessToken) {
294
+ const token = this.configuration.accessToken;
295
+ const tokenString = await token('apiKey', []);
296
+ if (tokenString) {
297
+ headerParameters['Authorization'] = `Bearer ${tokenString}`;
298
+ }
299
+ }
300
+ if (this.configuration &&
301
+ (this.configuration.username !== undefined ||
302
+ this.configuration.password !== undefined)) {
303
+ headerParameters['Authorization'] =
304
+ 'Basic ' +
305
+ btoa(this.configuration.username + ':' + this.configuration.password);
306
+ }
307
+ let urlPath = `/account/usage/history`;
308
+ const response = await this.request({
309
+ path: urlPath,
310
+ method: 'GET',
311
+ headers: headerParameters,
312
+ query: queryParameters
313
+ }, initOverrides);
314
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetUsageHistoryResponseFromJSON)(jsonValue));
315
+ }
316
+ /**
317
+ * Get historical usage for the authenticated account over a date range.
318
+ */
319
+ async getUsageHistory(startDate, endDate, initOverrides) {
320
+ const response = await this.getUsageHistoryRaw({ startDate: startDate, endDate: endDate }, initOverrides);
259
321
  return await response.value();
260
322
  }
261
323
  /**
@@ -43,7 +43,7 @@ export interface UpdateRequest {
43
43
  export interface MembersApiInterface {
44
44
  /**
45
45
  *
46
- * @summary Get auto-join domains for the organization
46
+ * @summary Get auto-join domains for the account
47
47
  * @param {string} envId Environment ID
48
48
  * @param {*} [options] Override http request option.
49
49
  * @throws {RequiredError}
@@ -51,12 +51,12 @@ export interface MembersApiInterface {
51
51
  */
52
52
  getAutoJoinRaw(requestParameters: GetAutoJoinRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AutoJoinGetResponse>>;
53
53
  /**
54
- * Get auto-join domains for the organization
54
+ * Get auto-join domains for the account
55
55
  */
56
56
  getAutoJoin(envId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AutoJoinGetResponse>;
57
57
  /**
58
58
  *
59
- * @summary Invite a new member to the organization
59
+ * @summary Invite a new member to the account
60
60
  * @param {string} envId Environment ID
61
61
  * @param {MemberInviteRequest} memberInviteRequest
62
62
  * @param {*} [options] Override http request option.
@@ -65,12 +65,12 @@ export interface MembersApiInterface {
65
65
  */
66
66
  inviteMemberRaw(requestParameters: InviteMemberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InvitePostResponse>>;
67
67
  /**
68
- * Invite a new member to the organization
68
+ * Invite a new member to the account
69
69
  */
70
70
  inviteMember(envId: string, memberInviteRequest: MemberInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InvitePostResponse>;
71
71
  /**
72
72
  *
73
- * @summary Get a list of team members in the organization
73
+ * @summary Get a list of team members in the account
74
74
  * @param {string} envId Environment ID
75
75
  * @param {*} [options] Override http request option.
76
76
  * @throws {RequiredError}
@@ -78,12 +78,12 @@ export interface MembersApiInterface {
78
78
  */
79
79
  listMembersRaw(requestParameters: ListMembersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<GetMembersResponseInner>>>;
80
80
  /**
81
- * Get a list of team members in the organization
81
+ * Get a list of team members in the account
82
82
  */
83
83
  listMembers(envId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<GetMembersResponseInner>>;
84
84
  /**
85
85
  *
86
- * @summary Remove a member from the organization
86
+ * @summary Remove a member from the account
87
87
  * @param {string} envId Environment ID
88
88
  * @param {string} userId User ID or email address (URL encoded)
89
89
  * @param {*} [options] Override http request option.
@@ -92,12 +92,12 @@ export interface MembersApiInterface {
92
92
  */
93
93
  removeMemberRaw(requestParameters: RemoveMemberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessResponse>>;
94
94
  /**
95
- * Remove a member from the organization
95
+ * Remove a member from the account
96
96
  */
97
97
  removeMember(envId: string, userId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessResponse>;
98
98
  /**
99
99
  *
100
- * @summary Set auto-join domains for the organization
100
+ * @summary Set auto-join domains for the account
101
101
  * @param {string} envId Environment ID
102
102
  * @param {AutoJoinRequestBody} autoJoinRequestBody
103
103
  * @param {*} [options] Override http request option.
@@ -106,7 +106,7 @@ export interface MembersApiInterface {
106
106
  */
107
107
  setAutoJoinRaw(requestParameters: SetAutoJoinRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AutoJoinPostResponse>>;
108
108
  /**
109
- * Set auto-join domains for the organization
109
+ * Set auto-join domains for the account
110
110
  */
111
111
  setAutoJoin(envId: string, autoJoinRequestBody: AutoJoinRequestBody, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AutoJoinPostResponse>;
112
112
  /**
@@ -130,43 +130,43 @@ export interface MembersApiInterface {
130
130
  */
131
131
  export declare class MembersApi extends runtime.BaseAPI implements MembersApiInterface {
132
132
  /**
133
- * Get auto-join domains for the organization
133
+ * Get auto-join domains for the account
134
134
  */
135
135
  getAutoJoinRaw(requestParameters: GetAutoJoinRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AutoJoinGetResponse>>;
136
136
  /**
137
- * Get auto-join domains for the organization
137
+ * Get auto-join domains for the account
138
138
  */
139
139
  getAutoJoin(envId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AutoJoinGetResponse>;
140
140
  /**
141
- * Invite a new member to the organization
141
+ * Invite a new member to the account
142
142
  */
143
143
  inviteMemberRaw(requestParameters: InviteMemberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InvitePostResponse>>;
144
144
  /**
145
- * Invite a new member to the organization
145
+ * Invite a new member to the account
146
146
  */
147
147
  inviteMember(envId: string, memberInviteRequest: MemberInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InvitePostResponse>;
148
148
  /**
149
- * Get a list of team members in the organization
149
+ * Get a list of team members in the account
150
150
  */
151
151
  listMembersRaw(requestParameters: ListMembersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<GetMembersResponseInner>>>;
152
152
  /**
153
- * Get a list of team members in the organization
153
+ * Get a list of team members in the account
154
154
  */
155
155
  listMembers(envId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<GetMembersResponseInner>>;
156
156
  /**
157
- * Remove a member from the organization
157
+ * Remove a member from the account
158
158
  */
159
159
  removeMemberRaw(requestParameters: RemoveMemberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessResponse>>;
160
160
  /**
161
- * Remove a member from the organization
161
+ * Remove a member from the account
162
162
  */
163
163
  removeMember(envId: string, userId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessResponse>;
164
164
  /**
165
- * Set auto-join domains for the organization
165
+ * Set auto-join domains for the account
166
166
  */
167
167
  setAutoJoinRaw(requestParameters: SetAutoJoinRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AutoJoinPostResponse>>;
168
168
  /**
169
- * Set auto-join domains for the organization
169
+ * Set auto-join domains for the account
170
170
  */
171
171
  setAutoJoin(envId: string, autoJoinRequestBody: AutoJoinRequestBody, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AutoJoinPostResponse>;
172
172
  /**
@@ -54,7 +54,7 @@ const index_1 = require("../models/index");
54
54
  */
55
55
  class MembersApi extends runtime.BaseAPI {
56
56
  /**
57
- * Get auto-join domains for the organization
57
+ * Get auto-join domains for the account
58
58
  */
59
59
  async getAutoJoinRaw(requestParameters, initOverrides) {
60
60
  if (requestParameters['envId'] == null) {
@@ -101,14 +101,14 @@ class MembersApi extends runtime.BaseAPI {
101
101
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AutoJoinGetResponseFromJSON)(jsonValue));
102
102
  }
103
103
  /**
104
- * Get auto-join domains for the organization
104
+ * Get auto-join domains for the account
105
105
  */
106
106
  async getAutoJoin(envId, initOverrides) {
107
107
  const response = await this.getAutoJoinRaw({ envId: envId }, initOverrides);
108
108
  return await response.value();
109
109
  }
110
110
  /**
111
- * Invite a new member to the organization
111
+ * Invite a new member to the account
112
112
  */
113
113
  async inviteMemberRaw(requestParameters, initOverrides) {
114
114
  if (requestParameters['envId'] == null) {
@@ -160,14 +160,14 @@ class MembersApi extends runtime.BaseAPI {
160
160
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.InvitePostResponseFromJSON)(jsonValue));
161
161
  }
162
162
  /**
163
- * Invite a new member to the organization
163
+ * Invite a new member to the account
164
164
  */
165
165
  async inviteMember(envId, memberInviteRequest, initOverrides) {
166
166
  const response = await this.inviteMemberRaw({ envId: envId, memberInviteRequest: memberInviteRequest }, initOverrides);
167
167
  return await response.value();
168
168
  }
169
169
  /**
170
- * Get a list of team members in the organization
170
+ * Get a list of team members in the account
171
171
  */
172
172
  async listMembersRaw(requestParameters, initOverrides) {
173
173
  if (requestParameters['envId'] == null) {
@@ -214,14 +214,14 @@ class MembersApi extends runtime.BaseAPI {
214
214
  return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.GetMembersResponseInnerFromJSON));
215
215
  }
216
216
  /**
217
- * Get a list of team members in the organization
217
+ * Get a list of team members in the account
218
218
  */
219
219
  async listMembers(envId, initOverrides) {
220
220
  const response = await this.listMembersRaw({ envId: envId }, initOverrides);
221
221
  return await response.value();
222
222
  }
223
223
  /**
224
- * Remove a member from the organization
224
+ * Remove a member from the account
225
225
  */
226
226
  async removeMemberRaw(requestParameters, initOverrides) {
227
227
  if (requestParameters['envId'] == null) {
@@ -272,14 +272,14 @@ class MembersApi extends runtime.BaseAPI {
272
272
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SuccessResponseFromJSON)(jsonValue));
273
273
  }
274
274
  /**
275
- * Remove a member from the organization
275
+ * Remove a member from the account
276
276
  */
277
277
  async removeMember(envId, userId, initOverrides) {
278
278
  const response = await this.removeMemberRaw({ envId: envId, userId: userId }, initOverrides);
279
279
  return await response.value();
280
280
  }
281
281
  /**
282
- * Set auto-join domains for the organization
282
+ * Set auto-join domains for the account
283
283
  */
284
284
  async setAutoJoinRaw(requestParameters, initOverrides) {
285
285
  if (requestParameters['envId'] == null) {
@@ -331,7 +331,7 @@ class MembersApi extends runtime.BaseAPI {
331
331
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AutoJoinPostResponseFromJSON)(jsonValue));
332
332
  }
333
333
  /**
334
- * Set auto-join domains for the organization
334
+ * Set auto-join domains for the account
335
335
  */
336
336
  async setAutoJoin(envId, autoJoinRequestBody, initOverrides) {
337
337
  const response = await this.setAutoJoinRaw({ envId: envId, autoJoinRequestBody: autoJoinRequestBody }, initOverrides);
@@ -2,7 +2,7 @@
2
2
  * Explicit barrel (patched by tools/sdk-codegen/patch-node-apis-barrel.ts).
3
3
  * Multiple `SendRequest` types from bare `send` APIs are re-exported under stable names.
4
4
  */
5
- export type { ConfigureSupabaseSMTPRequest, PrepareCheckoutSessionRequest, SupabaseOAuthOperationRequest, UpdateAccountRequest, AccountApiInterface } from './AccountApi';
5
+ export type { ConfigureSupabaseSMTPRequest, GetUsageHistoryRequest, PrepareCheckoutSessionRequest, SupabaseOAuthOperationRequest, UpdateAccountRequest, AccountApiInterface } from './AccountApi';
6
6
  export { AccountApi } from './AccountApi';
7
7
  export type { CreateAddressOperationRequest, DeleteAddressRequest, UpdateAddressOperationRequest, AddressesApiInterface } from './AddressesApi';
8
8
  export { AddressesApi } from './AddressesApi';
@@ -30,8 +30,6 @@ export type { GetAutoJoinRequest, InviteMemberRequest, ListMembersRequest, Remov
30
30
  export { MembersApi } from './MembersApi';
31
31
  export type { OrderNumberRequest, ReleaseNumberRequest, SearchAvailableRequest, NumbersApiInterface } from './NumbersApi';
32
32
  export { NumbersApi } from './NumbersApi';
33
- export type { CreateRequest, GetUsageHistoryRequest, OrganizationApiInterface } from './OrganizationApi';
34
- export { OrganizationApi } from './OrganizationApi';
35
33
  export type { AcceptInviteOperationRequest, ChangeEmailOperationRequest, DeleteAccountOperationRequest, DisableMfaRequest, SetupMfaRequest, VerifyMfaRequest, ProfileApiInterface } from './ProfileApi';
36
34
  export { ProfileApi } from './ProfileApi';
37
35
  export type { UpsertPushApnSettingsRequest, UpsertPushFcmSettingsRequest, PushSettingsApiInterface } from './PushSettingsApi';
@@ -6,7 +6,7 @@
6
6
  * Multiple `SendRequest` types from bare `send` APIs are re-exported under stable names.
7
7
  */
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.WebhooksApi = exports.VoiceApi = exports.UsersApi = exports.UserApi = exports.TypesApi = exports.TemplatesApi = exports.SmsApi = exports.SenderApi = exports.PushSettingsApi = exports.ProfileApi = exports.OrganizationApi = exports.NumbersApi = exports.MembersApi = exports.LogsApi = exports.KeysApi = exports.InsightsApi = exports.HealthApi = exports.EnvironmentsApi = exports.EmailApi = exports.EditorApi = exports.DomainsApi = exports.DefaultApi = exports.ComponentsApi = exports.AddressesApi = exports.AccountApi = void 0;
9
+ exports.WebhooksApi = exports.VoiceApi = exports.UsersApi = exports.UserApi = exports.TypesApi = exports.TemplatesApi = exports.SmsApi = exports.SenderApi = exports.PushSettingsApi = exports.ProfileApi = exports.NumbersApi = exports.MembersApi = exports.LogsApi = exports.KeysApi = exports.InsightsApi = exports.HealthApi = exports.EnvironmentsApi = exports.EmailApi = exports.EditorApi = exports.DomainsApi = exports.DefaultApi = exports.ComponentsApi = exports.AddressesApi = exports.AccountApi = void 0;
10
10
  var AccountApi_1 = require("./AccountApi");
11
11
  Object.defineProperty(exports, "AccountApi", { enumerable: true, get: function () { return AccountApi_1.AccountApi; } });
12
12
  var AddressesApi_1 = require("./AddressesApi");
@@ -35,8 +35,6 @@ var MembersApi_1 = require("./MembersApi");
35
35
  Object.defineProperty(exports, "MembersApi", { enumerable: true, get: function () { return MembersApi_1.MembersApi; } });
36
36
  var NumbersApi_1 = require("./NumbersApi");
37
37
  Object.defineProperty(exports, "NumbersApi", { enumerable: true, get: function () { return NumbersApi_1.NumbersApi; } });
38
- var OrganizationApi_1 = require("./OrganizationApi");
39
- Object.defineProperty(exports, "OrganizationApi", { enumerable: true, get: function () { return OrganizationApi_1.OrganizationApi; } });
40
38
  var ProfileApi_1 = require("./ProfileApi");
41
39
  Object.defineProperty(exports, "ProfileApi", { enumerable: true, get: function () { return ProfileApi_1.ProfileApi; } });
42
40
  var PushSettingsApi_1 = require("./PushSettingsApi");
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * GET /account response: basic account info (billing fields are on the organization).
13
+ * GET /account response: public plan fields for the authenticated account.
14
14
  * @export
15
15
  * @interface AccountGetResponse
16
16
  */
@@ -26,19 +26,89 @@ export interface AccountGetResponse {
26
26
  * @type {string}
27
27
  * @memberof AccountGetResponse
28
28
  */
29
- organizationId: string;
29
+ accountType: AccountGetResponseAccountTypeEnum;
30
30
  /**
31
31
  *
32
32
  * @type {string}
33
33
  * @memberof AccountGetResponse
34
34
  */
35
- name: string;
35
+ creator?: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof AccountGetResponse
40
+ */
41
+ name?: string;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof AccountGetResponse
46
+ */
47
+ messagesCap: number;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof AccountGetResponse
52
+ */
53
+ costCap: number;
54
+ /**
55
+ *
56
+ * @type {number}
57
+ * @memberof AccountGetResponse
58
+ */
59
+ smsCap?: number;
60
+ /**
61
+ *
62
+ * @type {number}
63
+ * @memberof AccountGetResponse
64
+ */
65
+ callCap?: number;
66
+ /**
67
+ * When omitted, defaults to LATEST_BILLING_VERSION.
68
+ * @type {number}
69
+ * @memberof AccountGetResponse
70
+ */
71
+ billingVersion?: AccountGetResponseBillingVersionEnum;
72
+ /**
73
+ * ISO date (YYYY-MM-DD) when the billing cycle resets.
74
+ * @type {string}
75
+ * @memberof AccountGetResponse
76
+ */
77
+ anniversaryDate: string;
78
+ /**
79
+ *
80
+ * @type {boolean}
81
+ * @memberof AccountGetResponse
82
+ */
83
+ allowOverage: boolean;
36
84
  /**
37
85
  *
38
86
  * @type {string}
39
87
  * @memberof AccountGetResponse
40
88
  */
41
89
  createdAt: string;
90
+ /**
91
+ *
92
+ * @type {string}
93
+ * @memberof AccountGetResponse
94
+ */
95
+ updatedAt: string;
96
+ }
97
+ /**
98
+ * @export
99
+ * @enum {string}
100
+ */
101
+ export declare enum AccountGetResponseAccountTypeEnum {
102
+ FREE = "free",
103
+ PAID = "paid"
104
+ }
105
+ /**
106
+ * @export
107
+ * @enum {string}
108
+ */
109
+ export declare enum AccountGetResponseBillingVersionEnum {
110
+ NUMBER_1 = 1,
111
+ NUMBER_3 = 3
42
112
  }
43
113
  /**
44
114
  * Check if a given object implements the AccountGetResponse interface.