pingram 1.0.16-alpha.1300 → 1.0.16-alpha.1301
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/OrganizationApi.d.ts +9 -5
- package/dist/generated/src/apis/OrganizationApi.js +9 -4
- package/dist/generated/src/apis/index.d.ts +1 -1
- package/dist/generated/src/models/CreateOrganizationRequest.d.ts +34 -0
- package/dist/generated/src/models/CreateOrganizationRequest.js +48 -0
- package/dist/generated/src/models/PhoneVerifyConfirmRequest.d.ts +8 -0
- package/dist/generated/src/models/PhoneVerifyConfirmRequest.js +4 -2
- package/dist/generated/src/models/index.d.ts +1 -0
- package/dist/generated/src/models/index.js +1 -0
- package/package.json +1 -1
|
@@ -10,7 +10,10 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { CreateOrganizationResponse, OrganizationUsage, OrganizationUsageHistory } from '../models/index';
|
|
13
|
+
import type { CreateOrganizationRequest, CreateOrganizationResponse, OrganizationUsage, OrganizationUsageHistory } from '../models/index';
|
|
14
|
+
export interface CreateRequest {
|
|
15
|
+
createOrganizationRequest: CreateOrganizationRequest;
|
|
16
|
+
}
|
|
14
17
|
export interface GetUsageHistoryRequest {
|
|
15
18
|
startDate: string;
|
|
16
19
|
endDate: string;
|
|
@@ -25,15 +28,16 @@ export interface OrganizationApiInterface {
|
|
|
25
28
|
/**
|
|
26
29
|
*
|
|
27
30
|
* @summary Create organization after SMS verification bypass
|
|
31
|
+
* @param {CreateOrganizationRequest} createOrganizationRequest
|
|
28
32
|
* @param {*} [options] Override http request option.
|
|
29
33
|
* @throws {RequiredError}
|
|
30
34
|
* @memberof OrganizationApiInterface
|
|
31
35
|
*/
|
|
32
|
-
createRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateOrganizationResponse>>;
|
|
36
|
+
createRaw(requestParameters: CreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateOrganizationResponse>>;
|
|
33
37
|
/**
|
|
34
38
|
* Create organization after SMS verification bypass
|
|
35
39
|
*/
|
|
36
|
-
create(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateOrganizationResponse>;
|
|
40
|
+
create(createOrganizationRequest: CreateOrganizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateOrganizationResponse>;
|
|
37
41
|
/**
|
|
38
42
|
*
|
|
39
43
|
* @summary Get usage for the authenticated account\'s organization (new billing model).
|
|
@@ -68,11 +72,11 @@ export declare class OrganizationApi extends runtime.BaseAPI implements Organiza
|
|
|
68
72
|
/**
|
|
69
73
|
* Create organization after SMS verification bypass
|
|
70
74
|
*/
|
|
71
|
-
createRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateOrganizationResponse>>;
|
|
75
|
+
createRaw(requestParameters: CreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateOrganizationResponse>>;
|
|
72
76
|
/**
|
|
73
77
|
* Create organization after SMS verification bypass
|
|
74
78
|
*/
|
|
75
|
-
create(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateOrganizationResponse>;
|
|
79
|
+
create(createOrganizationRequest: CreateOrganizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateOrganizationResponse>;
|
|
76
80
|
/**
|
|
77
81
|
* Get usage for the authenticated account\'s organization (new billing model).
|
|
78
82
|
*/
|
|
@@ -56,9 +56,13 @@ class OrganizationApi extends runtime.BaseAPI {
|
|
|
56
56
|
/**
|
|
57
57
|
* Create organization after SMS verification bypass
|
|
58
58
|
*/
|
|
59
|
-
async createRaw(initOverrides) {
|
|
59
|
+
async createRaw(requestParameters, initOverrides) {
|
|
60
|
+
if (requestParameters['createOrganizationRequest'] == null) {
|
|
61
|
+
throw new runtime.RequiredError('createOrganizationRequest', 'Required parameter "createOrganizationRequest" was null or undefined when calling create().');
|
|
62
|
+
}
|
|
60
63
|
const queryParameters = {};
|
|
61
64
|
const headerParameters = {};
|
|
65
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
62
66
|
if (this.configuration &&
|
|
63
67
|
(this.configuration.username !== undefined ||
|
|
64
68
|
this.configuration.password !== undefined)) {
|
|
@@ -92,15 +96,16 @@ class OrganizationApi extends runtime.BaseAPI {
|
|
|
92
96
|
path: urlPath,
|
|
93
97
|
method: 'POST',
|
|
94
98
|
headers: headerParameters,
|
|
95
|
-
query: queryParameters
|
|
99
|
+
query: queryParameters,
|
|
100
|
+
body: (0, index_1.CreateOrganizationRequestToJSON)(requestParameters['createOrganizationRequest'])
|
|
96
101
|
}, initOverrides);
|
|
97
102
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CreateOrganizationResponseFromJSON)(jsonValue));
|
|
98
103
|
}
|
|
99
104
|
/**
|
|
100
105
|
* Create organization after SMS verification bypass
|
|
101
106
|
*/
|
|
102
|
-
async create(initOverrides) {
|
|
103
|
-
const response = await this.createRaw(initOverrides);
|
|
107
|
+
async create(createOrganizationRequest, initOverrides) {
|
|
108
|
+
const response = await this.createRaw({ createOrganizationRequest: createOrganizationRequest }, initOverrides);
|
|
104
109
|
return await response.value();
|
|
105
110
|
}
|
|
106
111
|
/**
|
|
@@ -30,7 +30,7 @@ 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 { GetUsageHistoryRequest, OrganizationApiInterface } from './OrganizationApi';
|
|
33
|
+
export type { CreateRequest, GetUsageHistoryRequest, OrganizationApiInterface } from './OrganizationApi';
|
|
34
34
|
export { OrganizationApi } from './OrganizationApi';
|
|
35
35
|
export type { AcceptInviteOperationRequest, ChangeEmailOperationRequest, DeleteAccountOperationRequest, DisableMfaRequest, SetupMfaRequest, VerifyMfaRequest, ProfileApiInterface } from './ProfileApi';
|
|
36
36
|
export { ProfileApi } from './ProfileApi';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pingram
|
|
3
|
+
* Internal API for notification delivery and management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CreateOrganizationRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateOrganizationRequest {
|
|
18
|
+
/**
|
|
19
|
+
* First-touch PostHog props from the client; attached to signup events.
|
|
20
|
+
* @type {{ [key: string]: string; }}
|
|
21
|
+
* @memberof CreateOrganizationRequest
|
|
22
|
+
*/
|
|
23
|
+
attribution?: {
|
|
24
|
+
[key: string]: string;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Check if a given object implements the CreateOrganizationRequest interface.
|
|
29
|
+
*/
|
|
30
|
+
export declare function instanceOfCreateOrganizationRequest(value: object): value is CreateOrganizationRequest;
|
|
31
|
+
export declare function CreateOrganizationRequestFromJSON(json: any): CreateOrganizationRequest;
|
|
32
|
+
export declare function CreateOrganizationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateOrganizationRequest;
|
|
33
|
+
export declare function CreateOrganizationRequestToJSON(json: any): CreateOrganizationRequest;
|
|
34
|
+
export declare function CreateOrganizationRequestToJSONTyped(value?: CreateOrganizationRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Pingram
|
|
6
|
+
* Internal API for notification delivery and management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfCreateOrganizationRequest = instanceOfCreateOrganizationRequest;
|
|
17
|
+
exports.CreateOrganizationRequestFromJSON = CreateOrganizationRequestFromJSON;
|
|
18
|
+
exports.CreateOrganizationRequestFromJSONTyped = CreateOrganizationRequestFromJSONTyped;
|
|
19
|
+
exports.CreateOrganizationRequestToJSON = CreateOrganizationRequestToJSON;
|
|
20
|
+
exports.CreateOrganizationRequestToJSONTyped = CreateOrganizationRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the CreateOrganizationRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfCreateOrganizationRequest(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function CreateOrganizationRequestFromJSON(json) {
|
|
28
|
+
return CreateOrganizationRequestFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function CreateOrganizationRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
attribution: json['attribution'] == null ? undefined : json['attribution']
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function CreateOrganizationRequestToJSON(json) {
|
|
39
|
+
return CreateOrganizationRequestToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function CreateOrganizationRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
attribution: value['attribution']
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -27,6 +27,14 @@ export interface PhoneVerifyConfirmRequest {
|
|
|
27
27
|
* @memberof PhoneVerifyConfirmRequest
|
|
28
28
|
*/
|
|
29
29
|
turnstileToken: string;
|
|
30
|
+
/**
|
|
31
|
+
* First-touch PostHog props from the client; attached to signup events.
|
|
32
|
+
* @type {{ [key: string]: string; }}
|
|
33
|
+
* @memberof PhoneVerifyConfirmRequest
|
|
34
|
+
*/
|
|
35
|
+
attribution?: {
|
|
36
|
+
[key: string]: string;
|
|
37
|
+
};
|
|
30
38
|
}
|
|
31
39
|
/**
|
|
32
40
|
* Check if a given object implements the PhoneVerifyConfirmRequest interface.
|
|
@@ -37,7 +37,8 @@ function PhoneVerifyConfirmRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
37
|
}
|
|
38
38
|
return {
|
|
39
39
|
code: json['code'],
|
|
40
|
-
turnstileToken: json['turnstileToken']
|
|
40
|
+
turnstileToken: json['turnstileToken'],
|
|
41
|
+
attribution: json['attribution'] == null ? undefined : json['attribution']
|
|
41
42
|
};
|
|
42
43
|
}
|
|
43
44
|
function PhoneVerifyConfirmRequestToJSON(json) {
|
|
@@ -49,6 +50,7 @@ function PhoneVerifyConfirmRequestToJSONTyped(value, ignoreDiscriminator = false
|
|
|
49
50
|
}
|
|
50
51
|
return {
|
|
51
52
|
code: value['code'],
|
|
52
|
-
turnstileToken: value['turnstileToken']
|
|
53
|
+
turnstileToken: value['turnstileToken'],
|
|
54
|
+
attribution: value['attribution']
|
|
53
55
|
};
|
|
54
56
|
}
|
|
@@ -33,6 +33,7 @@ export * from './CreateAccountResponse';
|
|
|
33
33
|
export * from './CreateAddressRequest';
|
|
34
34
|
export * from './CreateKeyRequest';
|
|
35
35
|
export * from './CreateKeyResponse';
|
|
36
|
+
export * from './CreateOrganizationRequest';
|
|
36
37
|
export * from './CreateOrganizationResponse';
|
|
37
38
|
export * from './CreateVoiceAgentRequest';
|
|
38
39
|
export * from './CreateVoiceAgentResponse';
|
|
@@ -51,6 +51,7 @@ __exportStar(require("./CreateAccountResponse"), exports);
|
|
|
51
51
|
__exportStar(require("./CreateAddressRequest"), exports);
|
|
52
52
|
__exportStar(require("./CreateKeyRequest"), exports);
|
|
53
53
|
__exportStar(require("./CreateKeyResponse"), exports);
|
|
54
|
+
__exportStar(require("./CreateOrganizationRequest"), exports);
|
|
54
55
|
__exportStar(require("./CreateOrganizationResponse"), exports);
|
|
55
56
|
__exportStar(require("./CreateVoiceAgentRequest"), exports);
|
|
56
57
|
__exportStar(require("./CreateVoiceAgentResponse"), exports);
|
package/package.json
CHANGED