@stack-spot/portal-network 0.99.4 → 0.100.0
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/CHANGELOG.md +25 -0
- package/dist/api/account.d.ts +257 -46
- package/dist/api/account.d.ts.map +1 -1
- package/dist/api/account.js +134 -42
- package/dist/api/account.js.map +1 -1
- package/dist/api/cloudPlatformHorizon.d.ts +114 -75
- package/dist/api/cloudPlatformHorizon.d.ts.map +1 -1
- package/dist/api/cloudPlatformHorizon.js +43 -11
- package/dist/api/cloudPlatformHorizon.js.map +1 -1
- package/dist/client/account.d.ts +34 -1
- package/dist/client/account.d.ts.map +1 -1
- package/dist/client/account.js +56 -1
- package/dist/client/account.js.map +1 -1
- package/dist/client/cloud-platform-horizon.d.ts +1 -4
- package/dist/client/cloud-platform-horizon.d.ts.map +1 -1
- package/dist/client/cloud-platform-horizon.js +2 -11
- package/dist/client/cloud-platform-horizon.js.map +1 -1
- package/package.json +1 -1
- package/src/api/account.ts +474 -105
- package/src/api/cloudPlatformHorizon.ts +202 -82
- package/src/client/account.ts +32 -0
- package/src/client/cloud-platform-horizon.ts +2 -6
package/src/api/account.ts
CHANGED
|
@@ -580,7 +580,7 @@ export type CreateSecretRequest = {
|
|
|
580
580
|
/** Secret name */
|
|
581
581
|
name: string;
|
|
582
582
|
/** Secret description */
|
|
583
|
-
description
|
|
583
|
+
description?: string;
|
|
584
584
|
/** Secret type */
|
|
585
585
|
"type": "API_KEY" | "OAUTH" | "CERTIFICATE" | "KEY_VALUE" | "BEARER_TOKEN";
|
|
586
586
|
/** Secret scope */
|
|
@@ -896,6 +896,62 @@ export type InviteMembersResponse = {
|
|
|
896
896
|
/** Members with error */
|
|
897
897
|
errors: string[];
|
|
898
898
|
};
|
|
899
|
+
export type PersonalLeadRequest = {
|
|
900
|
+
/** Lead name */
|
|
901
|
+
name: string;
|
|
902
|
+
/** Lead email */
|
|
903
|
+
email: string;
|
|
904
|
+
/** Lead phone number */
|
|
905
|
+
phone: string;
|
|
906
|
+
/** Preferred contact method */
|
|
907
|
+
contactPreference: "EMAIL" | "PHONE";
|
|
908
|
+
/** Contact reason */
|
|
909
|
+
reason: string;
|
|
910
|
+
};
|
|
911
|
+
export type LeadResponse = {
|
|
912
|
+
/** Unique identifier of the lead. */
|
|
913
|
+
id: string;
|
|
914
|
+
/** Type of the lead, indicating whether it is a personal or enterprise lead. */
|
|
915
|
+
"type": "PERSONAL" | "ENTERPRISE";
|
|
916
|
+
/** Full name of the lead. */
|
|
917
|
+
name: string;
|
|
918
|
+
/** Email address of the lead. */
|
|
919
|
+
email: string;
|
|
920
|
+
/** Phone number of the lead, including country code if applicable. */
|
|
921
|
+
phone: string;
|
|
922
|
+
/** Reason for the lead's contact or inquiry. */
|
|
923
|
+
reason: string;
|
|
924
|
+
/** Name of the company associated with the lead, if applicable. */
|
|
925
|
+
companyName?: string | null;
|
|
926
|
+
/** Industry of the company associated with the lead, if applicable. */
|
|
927
|
+
companyIndustry?: string | null;
|
|
928
|
+
/** Size of the team in the company associated with the lead, if applicable. */
|
|
929
|
+
teamSize?: string | null;
|
|
930
|
+
/** Preferred contact method. */
|
|
931
|
+
contactPreference?: ("EMAIL" | "PHONE") | null;
|
|
932
|
+
/** Timestamp when the lead was created. */
|
|
933
|
+
createdAt: string;
|
|
934
|
+
/** Timestamp when the lead was last updated, if applicable. */
|
|
935
|
+
updatedAt?: string | null;
|
|
936
|
+
/** Timestamp when the lead was deleted, if applicable. */
|
|
937
|
+
deletedAt?: string | null;
|
|
938
|
+
};
|
|
939
|
+
export type EnterpriseLeadRequest = {
|
|
940
|
+
/** Lead name */
|
|
941
|
+
name: string;
|
|
942
|
+
/** Lead email */
|
|
943
|
+
email: string;
|
|
944
|
+
/** Lead phone number */
|
|
945
|
+
phone: string;
|
|
946
|
+
/** Company name */
|
|
947
|
+
companyName: string;
|
|
948
|
+
/** Company industry */
|
|
949
|
+
companyIndustry: string;
|
|
950
|
+
/** Team size */
|
|
951
|
+
teamSize: string;
|
|
952
|
+
/** Contact reason */
|
|
953
|
+
reason: string;
|
|
954
|
+
};
|
|
899
955
|
export type CreateUserInvitationRequest = {
|
|
900
956
|
/** User email */
|
|
901
957
|
email: string;
|
|
@@ -1177,6 +1233,28 @@ export type CreateAccountOrderRequest = {
|
|
|
1177
1233
|
/** Email list of the sales representatives responsible for this request. */
|
|
1178
1234
|
salesRepresentatives: string[];
|
|
1179
1235
|
};
|
|
1236
|
+
export type AccountTrialCreateRequest = {
|
|
1237
|
+
/** The slug to use in URL as unique identifying part representing the account (https://developer.mozilla.org/en-US/docs/Glossary/Slug). Example: zup */
|
|
1238
|
+
slug: string;
|
|
1239
|
+
/** The full name of the person who is creating a trial account */
|
|
1240
|
+
fullName: string;
|
|
1241
|
+
/** The company name where the trial user is related */
|
|
1242
|
+
companyName?: string;
|
|
1243
|
+
/** The company amount of people where the trial user is related */
|
|
1244
|
+
companySize?: string;
|
|
1245
|
+
/** The position occupied in the company by the trial user */
|
|
1246
|
+
companyPositionType?: "DEVELOPER" | "PROJECT_MANAGER" | "DESIGNER" | "DATA_ANALYST" | "PRODUCT_OWNER" | "SOFTWARE_ENGINEER" | "DEVOPS_SPECIALIST" | "QUALITY_ANALYST" | "SCRUM_MASTER" | "BUSINESS_AREA" | "INFORMATION_SECURITY" | "OTHER";
|
|
1247
|
+
/** The custom position occupied in the company by the trial user */
|
|
1248
|
+
otherPosition?: string;
|
|
1249
|
+
/** The channel used for the trial user to reach Stackspot */
|
|
1250
|
+
reachedBy?: "GOOGLE_SEARCH" | "REFERRAL" | "SOCIAL_MEDIA" | "ONLINE_AD" | "EVENT_CONFERENCE" | "EMAIL_CAMPAIGN" | "FRIEND_COLLEAGUE" | "BLOG_ARTICLE" | "YOUTUBE_VIDEO_CONTENT" | "ZUP_OFFICIAL_CHANNELS" | "OTHER";
|
|
1251
|
+
/** The custom channel used for the trial user to reach Stackspot */
|
|
1252
|
+
customReachedBy?: string;
|
|
1253
|
+
};
|
|
1254
|
+
export type AccountCollaboratorRequest = {
|
|
1255
|
+
/** The API id of account requester */
|
|
1256
|
+
accountApiId: string;
|
|
1257
|
+
};
|
|
1180
1258
|
export type PageResponseAccountSsoGroupMappingResponse = {
|
|
1181
1259
|
/** Current page content */
|
|
1182
1260
|
items?: AccountSsoGroupMappingResponse[];
|
|
@@ -1271,16 +1349,6 @@ export type AccountSsoParserResponse = {
|
|
|
1271
1349
|
/** SSO callback url */
|
|
1272
1350
|
callbackUrl?: string;
|
|
1273
1351
|
};
|
|
1274
|
-
export type AccountFreemiumCreateRequest = {
|
|
1275
|
-
/** The account's name. Example: Zup IT Innovation */
|
|
1276
|
-
name: string;
|
|
1277
|
-
/** The slug to use in URL as unique identifying part representing the account (https://developer.mozilla.org/en-US/docs/Glossary/Slug). Example: zup */
|
|
1278
|
-
slug: string;
|
|
1279
|
-
};
|
|
1280
|
-
export type AccountCollaboratorRequest = {
|
|
1281
|
-
/** The API id of account requester */
|
|
1282
|
-
accountApiId: string;
|
|
1283
|
-
};
|
|
1284
1352
|
export type CreateAccountPartnerOrderRequest = {
|
|
1285
1353
|
/** The account's name. Example: Zup IT Innovation */
|
|
1286
1354
|
name: string;
|
|
@@ -1316,6 +1384,43 @@ export type UpdateServiceCredentialScopesRequest = {
|
|
|
1316
1384
|
/** Service credential statements */
|
|
1317
1385
|
scopes: string[];
|
|
1318
1386
|
};
|
|
1387
|
+
export type ServiceCredentialRateLimitResponse = {
|
|
1388
|
+
/** Service Credential ID */
|
|
1389
|
+
serviceCredentialId?: string;
|
|
1390
|
+
apiId?: string;
|
|
1391
|
+
/** When was created */
|
|
1392
|
+
createdAt?: string;
|
|
1393
|
+
/** Who created */
|
|
1394
|
+
createdBy?: string;
|
|
1395
|
+
/** Who updated */
|
|
1396
|
+
updatedBy?: string;
|
|
1397
|
+
/** When was updated */
|
|
1398
|
+
updatedAt?: string;
|
|
1399
|
+
/** Limit of executions per minute */
|
|
1400
|
+
scMaxPerMin: number;
|
|
1401
|
+
/** Limit of executions per day */
|
|
1402
|
+
scMaxPerDay: number;
|
|
1403
|
+
};
|
|
1404
|
+
export type PageResponseServiceCredentialRateLimitResponse = {
|
|
1405
|
+
/** Current page content */
|
|
1406
|
+
items?: ServiceCredentialRateLimitResponse[];
|
|
1407
|
+
/** Total elements found */
|
|
1408
|
+
totalElements: number;
|
|
1409
|
+
/** Current page number */
|
|
1410
|
+
page: number;
|
|
1411
|
+
/** Length of current page items */
|
|
1412
|
+
size: number;
|
|
1413
|
+
/** Total pages found */
|
|
1414
|
+
totalPages: number;
|
|
1415
|
+
};
|
|
1416
|
+
export type ServiceCredentialRateLimitRequest = {
|
|
1417
|
+
/** Limit of executions per minute */
|
|
1418
|
+
scMaxPerMin?: number;
|
|
1419
|
+
/** Limit of executions per day */
|
|
1420
|
+
scMaxPerDay?: number;
|
|
1421
|
+
/** List of service credentials IDs */
|
|
1422
|
+
serviceCredentialIds: string[];
|
|
1423
|
+
};
|
|
1319
1424
|
export type DeleteMemberPermissionsRequest = {
|
|
1320
1425
|
/** Permission Action */
|
|
1321
1426
|
actionName: string;
|
|
@@ -1436,6 +1541,22 @@ export type AddNewEmailDomainRequest = {
|
|
|
1436
1541
|
/** Email domains list that account users will use to login into StackSpot. Example: zup.com.br */
|
|
1437
1542
|
domains: string[];
|
|
1438
1543
|
};
|
|
1544
|
+
export type AccountTrialUpdateRequest = {
|
|
1545
|
+
/** The full name of the person who is creating a trial account */
|
|
1546
|
+
fullName?: string;
|
|
1547
|
+
/** The company name where the trial user is related */
|
|
1548
|
+
companyName?: string;
|
|
1549
|
+
/** The company amount of people where the trial user is related */
|
|
1550
|
+
companySize?: string;
|
|
1551
|
+
/** The position occupied in the company by the trial user */
|
|
1552
|
+
companyPositionType?: "DEVELOPER" | "PROJECT_MANAGER" | "DESIGNER" | "DATA_ANALYST" | "PRODUCT_OWNER" | "SOFTWARE_ENGINEER" | "DEVOPS_SPECIALIST" | "QUALITY_ANALYST" | "SCRUM_MASTER" | "BUSINESS_AREA" | "INFORMATION_SECURITY" | "OTHER";
|
|
1553
|
+
/** The custom position occupied in the company by the trial user */
|
|
1554
|
+
otherPosition?: string;
|
|
1555
|
+
/** The channel used for the trial user to reach Stackspot */
|
|
1556
|
+
reachedBy?: "GOOGLE_SEARCH" | "REFERRAL" | "SOCIAL_MEDIA" | "ONLINE_AD" | "EVENT_CONFERENCE" | "EMAIL_CAMPAIGN" | "FRIEND_COLLEAGUE" | "BLOG_ARTICLE" | "YOUTUBE_VIDEO_CONTENT" | "ZUP_OFFICIAL_CHANNELS" | "OTHER";
|
|
1557
|
+
/** The custom channel used for the trial user to reach Stackspot */
|
|
1558
|
+
customReachedBy?: string;
|
|
1559
|
+
};
|
|
1439
1560
|
export type AccountSsoAttributesConfigResponse = {
|
|
1440
1561
|
/** Id from SSO */
|
|
1441
1562
|
id: string;
|
|
@@ -1819,6 +1940,42 @@ export type AccountSlugResponse = {
|
|
|
1819
1940
|
/** Account slug */
|
|
1820
1941
|
slug: string;
|
|
1821
1942
|
};
|
|
1943
|
+
export type PersonalAccountDetailsResponse = {
|
|
1944
|
+
/** Unique identifier of the personal account. */
|
|
1945
|
+
id: number;
|
|
1946
|
+
/** Unique identifier of the associated account. */
|
|
1947
|
+
accountId: string;
|
|
1948
|
+
/** Full name of the account owner. */
|
|
1949
|
+
fullName: string;
|
|
1950
|
+
/** Name of the company associated with the account. */
|
|
1951
|
+
companyName?: string | null;
|
|
1952
|
+
/** Size of the company associated with the account. */
|
|
1953
|
+
companySize?: string | null;
|
|
1954
|
+
/** Position of the account owner in the company. */
|
|
1955
|
+
companyPosition?: ("DEVELOPER" | "PROJECT_MANAGER" | "DESIGNER" | "DATA_ANALYST" | "PRODUCT_OWNER" | "SOFTWARE_ENGINEER" | "DEVOPS_SPECIALIST" | "QUALITY_ANALYST" | "SCRUM_MASTER" | "BUSINESS_AREA" | "INFORMATION_SECURITY" | "OTHER") | null;
|
|
1956
|
+
/** Custom position of the account owner in the company, if not listed. */
|
|
1957
|
+
otherPosition?: string | null;
|
|
1958
|
+
/** How the account owner was reached. */
|
|
1959
|
+
reachedBy?: ("GOOGLE_SEARCH" | "REFERRAL" | "SOCIAL_MEDIA" | "ONLINE_AD" | "EVENT_CONFERENCE" | "EMAIL_CAMPAIGN" | "FRIEND_COLLEAGUE" | "BLOG_ARTICLE" | "YOUTUBE_VIDEO_CONTENT" | "ZUP_OFFICIAL_CHANNELS" | "OTHER") | null;
|
|
1960
|
+
/** Custom description of how the account owner was reached, if not listed. */
|
|
1961
|
+
customReachedBy?: string | null;
|
|
1962
|
+
/** Date and time until the account is valid. */
|
|
1963
|
+
validUntil: string;
|
|
1964
|
+
};
|
|
1965
|
+
export type PersonalAccountExpirationDataResponse = {
|
|
1966
|
+
/** Account id */
|
|
1967
|
+
accountId: string;
|
|
1968
|
+
/** Account name */
|
|
1969
|
+
name: string;
|
|
1970
|
+
/** Account remaining trial days */
|
|
1971
|
+
remainingTrialDays: number;
|
|
1972
|
+
/** Date that trial Account will be blocked */
|
|
1973
|
+
validUntil: string;
|
|
1974
|
+
};
|
|
1975
|
+
export type AccountDataAvailableResponse = {
|
|
1976
|
+
/** Account data (name and slug) is available to be registered */
|
|
1977
|
+
available: boolean;
|
|
1978
|
+
};
|
|
1822
1979
|
export type AccountSsoResponse = {
|
|
1823
1980
|
/** SSO configuration name */
|
|
1824
1981
|
name: string;
|
|
@@ -1852,10 +2009,6 @@ export type PageResponseAccountSsoResponse = {
|
|
|
1852
2009
|
/** Total pages found */
|
|
1853
2010
|
totalPages: number;
|
|
1854
2011
|
};
|
|
1855
|
-
export type AccountDataAvailableResponse = {
|
|
1856
|
-
/** Account data (name and slug) is available to be registered */
|
|
1857
|
-
available: boolean;
|
|
1858
|
-
};
|
|
1859
2012
|
export type AccountPartnerResponse = {
|
|
1860
2013
|
/** Account id */
|
|
1861
2014
|
accountApiId: string;
|
|
@@ -2656,7 +2809,7 @@ export function createServiceCredential({ serviceCredentialCreateRequestV2 }: {
|
|
|
2656
2809
|
})));
|
|
2657
2810
|
}
|
|
2658
2811
|
/**
|
|
2659
|
-
*
|
|
2812
|
+
* Get Service Credentials
|
|
2660
2813
|
*/
|
|
2661
2814
|
export function getServiceCredentials1({ name, status, page, size }: {
|
|
2662
2815
|
name?: string;
|
|
@@ -2683,7 +2836,7 @@ export function getServiceCredentials1({ name, status, page, size }: {
|
|
|
2683
2836
|
}));
|
|
2684
2837
|
}
|
|
2685
2838
|
/**
|
|
2686
|
-
*
|
|
2839
|
+
* Create Service Credential
|
|
2687
2840
|
*/
|
|
2688
2841
|
export function createServiceCredential1({ serviceCredentialCreateRequest }: {
|
|
2689
2842
|
serviceCredentialCreateRequest: ServiceCredentialCreateRequest;
|
|
@@ -2710,7 +2863,7 @@ export function createServiceCredential1({ serviceCredentialCreateRequest }: {
|
|
|
2710
2863
|
})));
|
|
2711
2864
|
}
|
|
2712
2865
|
/**
|
|
2713
|
-
*
|
|
2866
|
+
* Notify about Service Credential expiration
|
|
2714
2867
|
*/
|
|
2715
2868
|
export function notifyServiceCredentialExpiration({ serviceCredentialExpirationRequest }: {
|
|
2716
2869
|
serviceCredentialExpirationRequest: ServiceCredentialExpirationNotifyRequest;
|
|
@@ -3348,7 +3501,7 @@ export function bindToGroups({ memberId, memberIdsCommonRequest }: {
|
|
|
3348
3501
|
})));
|
|
3349
3502
|
}
|
|
3350
3503
|
/**
|
|
3351
|
-
*
|
|
3504
|
+
* Get account member favorite resources
|
|
3352
3505
|
*/
|
|
3353
3506
|
export function listAccountMemberFavorites({ memberId }: {
|
|
3354
3507
|
memberId: string;
|
|
@@ -3367,7 +3520,7 @@ export function listAccountMemberFavorites({ memberId }: {
|
|
|
3367
3520
|
}));
|
|
3368
3521
|
}
|
|
3369
3522
|
/**
|
|
3370
|
-
*
|
|
3523
|
+
* Add account member favorite resource
|
|
3371
3524
|
*/
|
|
3372
3525
|
export function addAccountMemberFavorite({ memberId, createFavoriteResourceRequest }: {
|
|
3373
3526
|
memberId: string;
|
|
@@ -3437,6 +3590,54 @@ export function inviteMembers({ body }: {
|
|
|
3437
3590
|
body
|
|
3438
3591
|
})));
|
|
3439
3592
|
}
|
|
3593
|
+
/**
|
|
3594
|
+
* Create a personal lead contact
|
|
3595
|
+
*/
|
|
3596
|
+
export function personalContact({ personalLeadRequest }: {
|
|
3597
|
+
personalLeadRequest: PersonalLeadRequest;
|
|
3598
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3599
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3600
|
+
status: 201;
|
|
3601
|
+
data: LeadResponse;
|
|
3602
|
+
} | {
|
|
3603
|
+
status: 400;
|
|
3604
|
+
data: ErrorResponse;
|
|
3605
|
+
} | {
|
|
3606
|
+
status: 422;
|
|
3607
|
+
data: ErrorResponse;
|
|
3608
|
+
} | {
|
|
3609
|
+
status: 500;
|
|
3610
|
+
data: LeadResponse;
|
|
3611
|
+
}>("/v1/leads/personal", oazapfts.json({
|
|
3612
|
+
...opts,
|
|
3613
|
+
method: "POST",
|
|
3614
|
+
body: personalLeadRequest
|
|
3615
|
+
})));
|
|
3616
|
+
}
|
|
3617
|
+
/**
|
|
3618
|
+
* Create an enterprise lead contact
|
|
3619
|
+
*/
|
|
3620
|
+
export function enterpriseContact({ enterpriseLeadRequest }: {
|
|
3621
|
+
enterpriseLeadRequest: EnterpriseLeadRequest;
|
|
3622
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3623
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3624
|
+
status: 201;
|
|
3625
|
+
data: LeadResponse;
|
|
3626
|
+
} | {
|
|
3627
|
+
status: 400;
|
|
3628
|
+
data: ErrorResponse;
|
|
3629
|
+
} | {
|
|
3630
|
+
status: 422;
|
|
3631
|
+
data: ErrorResponse;
|
|
3632
|
+
} | {
|
|
3633
|
+
status: 500;
|
|
3634
|
+
data: LeadResponse;
|
|
3635
|
+
}>("/v1/leads/enterprise", oazapfts.json({
|
|
3636
|
+
...opts,
|
|
3637
|
+
method: "POST",
|
|
3638
|
+
body: enterpriseLeadRequest
|
|
3639
|
+
})));
|
|
3640
|
+
}
|
|
3440
3641
|
/**
|
|
3441
3642
|
* Lists user invitations for account
|
|
3442
3643
|
*/
|
|
@@ -4267,6 +4468,78 @@ export function create1({ createAccountOrderRequest }: {
|
|
|
4267
4468
|
body: createAccountOrderRequest
|
|
4268
4469
|
})));
|
|
4269
4470
|
}
|
|
4471
|
+
/**
|
|
4472
|
+
* Creates a Trial account.
|
|
4473
|
+
*/
|
|
4474
|
+
export function createTrialAccount({ accountTrialCreateRequest }: {
|
|
4475
|
+
accountTrialCreateRequest: AccountTrialCreateRequest;
|
|
4476
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4477
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4478
|
+
status: 201;
|
|
4479
|
+
} | {
|
|
4480
|
+
status: 400;
|
|
4481
|
+
data: ErrorResponse;
|
|
4482
|
+
} | {
|
|
4483
|
+
status: 403;
|
|
4484
|
+
data: ErrorResponse;
|
|
4485
|
+
} | {
|
|
4486
|
+
status: 422;
|
|
4487
|
+
data: ErrorResponse;
|
|
4488
|
+
} | {
|
|
4489
|
+
status: 500;
|
|
4490
|
+
data: ErrorResponse;
|
|
4491
|
+
}>("/v1/accounts/trial", oazapfts.json({
|
|
4492
|
+
...opts,
|
|
4493
|
+
method: "POST",
|
|
4494
|
+
body: accountTrialCreateRequest
|
|
4495
|
+
})));
|
|
4496
|
+
}
|
|
4497
|
+
/**
|
|
4498
|
+
* Sets trial account to be removed after expiration.
|
|
4499
|
+
*/
|
|
4500
|
+
export function removeTrialAccount(opts?: Oazapfts.RequestOpts) {
|
|
4501
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4502
|
+
status: 202;
|
|
4503
|
+
} | {
|
|
4504
|
+
status: 404;
|
|
4505
|
+
data: ErrorResponse;
|
|
4506
|
+
} | {
|
|
4507
|
+
status: 422;
|
|
4508
|
+
data: ErrorResponse;
|
|
4509
|
+
} | {
|
|
4510
|
+
status: 500;
|
|
4511
|
+
data: ErrorResponse;
|
|
4512
|
+
}>("/v1/accounts/trial", {
|
|
4513
|
+
...opts,
|
|
4514
|
+
method: "DELETE"
|
|
4515
|
+
}));
|
|
4516
|
+
}
|
|
4517
|
+
/**
|
|
4518
|
+
* Adds a collaborator to an account with a specified role.
|
|
4519
|
+
*/
|
|
4520
|
+
export function addCollaborator({ accountCollaboratorRequest }: {
|
|
4521
|
+
accountCollaboratorRequest: AccountCollaboratorRequest;
|
|
4522
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4523
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4524
|
+
status: 204;
|
|
4525
|
+
} | {
|
|
4526
|
+
status: 400;
|
|
4527
|
+
data: ErrorResponse;
|
|
4528
|
+
} | {
|
|
4529
|
+
status: 403;
|
|
4530
|
+
data: ErrorResponse;
|
|
4531
|
+
} | {
|
|
4532
|
+
status: 422;
|
|
4533
|
+
data: ErrorResponse;
|
|
4534
|
+
} | {
|
|
4535
|
+
status: 500;
|
|
4536
|
+
data: ErrorResponse;
|
|
4537
|
+
}>("/v1/accounts/trial/collaborators", oazapfts.json({
|
|
4538
|
+
...opts,
|
|
4539
|
+
method: "POST",
|
|
4540
|
+
body: accountCollaboratorRequest
|
|
4541
|
+
})));
|
|
4542
|
+
}
|
|
4270
4543
|
/**
|
|
4271
4544
|
* Retrieves a list of SSO group mappings.
|
|
4272
4545
|
*/
|
|
@@ -4376,58 +4649,6 @@ export function ssoParseConfigurationFile({ protocol, body }: {
|
|
|
4376
4649
|
body
|
|
4377
4650
|
})));
|
|
4378
4651
|
}
|
|
4379
|
-
/**
|
|
4380
|
-
* Creates a freemium account.
|
|
4381
|
-
*/
|
|
4382
|
-
export function createAccountFreemium({ accountFreemiumCreateRequest }: {
|
|
4383
|
-
accountFreemiumCreateRequest: AccountFreemiumCreateRequest;
|
|
4384
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
4385
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4386
|
-
status: 201;
|
|
4387
|
-
} | {
|
|
4388
|
-
status: 400;
|
|
4389
|
-
data: ErrorResponse;
|
|
4390
|
-
} | {
|
|
4391
|
-
status: 403;
|
|
4392
|
-
data: ErrorResponse;
|
|
4393
|
-
} | {
|
|
4394
|
-
status: 422;
|
|
4395
|
-
data: ErrorResponse;
|
|
4396
|
-
} | {
|
|
4397
|
-
status: 500;
|
|
4398
|
-
data: ErrorResponse;
|
|
4399
|
-
}>("/v1/accounts/freemium", oazapfts.json({
|
|
4400
|
-
...opts,
|
|
4401
|
-
method: "POST",
|
|
4402
|
-
body: accountFreemiumCreateRequest
|
|
4403
|
-
})));
|
|
4404
|
-
}
|
|
4405
|
-
/**
|
|
4406
|
-
* Adds a collaborator to an account with a specified role.
|
|
4407
|
-
*/
|
|
4408
|
-
export function addCollaborator({ accountCollaboratorRequest }: {
|
|
4409
|
-
accountCollaboratorRequest: AccountCollaboratorRequest;
|
|
4410
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
4411
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4412
|
-
status: 204;
|
|
4413
|
-
} | {
|
|
4414
|
-
status: 400;
|
|
4415
|
-
data: ErrorResponse;
|
|
4416
|
-
} | {
|
|
4417
|
-
status: 403;
|
|
4418
|
-
data: ErrorResponse;
|
|
4419
|
-
} | {
|
|
4420
|
-
status: 422;
|
|
4421
|
-
data: ErrorResponse;
|
|
4422
|
-
} | {
|
|
4423
|
-
status: 500;
|
|
4424
|
-
data: ErrorResponse;
|
|
4425
|
-
}>("/v1/accounts/freemium/collaborators", oazapfts.json({
|
|
4426
|
-
...opts,
|
|
4427
|
-
method: "POST",
|
|
4428
|
-
body: accountCollaboratorRequest
|
|
4429
|
-
})));
|
|
4430
|
-
}
|
|
4431
4652
|
/**
|
|
4432
4653
|
* Create an Account Order for Partner
|
|
4433
4654
|
*/
|
|
@@ -4547,6 +4768,68 @@ export function revokeServiceCredential({ id }: {
|
|
|
4547
4768
|
method: "PATCH"
|
|
4548
4769
|
}));
|
|
4549
4770
|
}
|
|
4771
|
+
/**
|
|
4772
|
+
* Rotates the secret of a service credential.
|
|
4773
|
+
*/
|
|
4774
|
+
export function getAllServiceCredentialRateLimit({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
4775
|
+
size?: any;
|
|
4776
|
+
page?: any;
|
|
4777
|
+
sort?: string;
|
|
4778
|
+
direction?: "ASC" | "DESC";
|
|
4779
|
+
search?: string;
|
|
4780
|
+
filterMode?: "MATCH" | "CONTAINS" | "IN";
|
|
4781
|
+
filterBy?: string;
|
|
4782
|
+
filterValue?: string;
|
|
4783
|
+
multiFilterMode?: string;
|
|
4784
|
+
filterIn?: any;
|
|
4785
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4786
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4787
|
+
status: 200;
|
|
4788
|
+
data: PageResponseServiceCredentialRateLimitResponse;
|
|
4789
|
+
} | {
|
|
4790
|
+
status: 403;
|
|
4791
|
+
data: ErrorResponse;
|
|
4792
|
+
} | {
|
|
4793
|
+
status: 500;
|
|
4794
|
+
data: ErrorResponse;
|
|
4795
|
+
}>(`/v2/service-credentials/rate-limit${QS.query(QS.explode({
|
|
4796
|
+
size,
|
|
4797
|
+
page,
|
|
4798
|
+
sort,
|
|
4799
|
+
direction,
|
|
4800
|
+
search,
|
|
4801
|
+
filterMode,
|
|
4802
|
+
filterBy,
|
|
4803
|
+
filterValue,
|
|
4804
|
+
multiFilterMode,
|
|
4805
|
+
filterIn
|
|
4806
|
+
}))}`, {
|
|
4807
|
+
...opts
|
|
4808
|
+
}));
|
|
4809
|
+
}
|
|
4810
|
+
/**
|
|
4811
|
+
* Rotates the secret of a service credential.
|
|
4812
|
+
*/
|
|
4813
|
+
export function updateServiceCredentialRateLimit({ serviceCredentialRateLimitRequest }: {
|
|
4814
|
+
serviceCredentialRateLimitRequest: ServiceCredentialRateLimitRequest;
|
|
4815
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4816
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4817
|
+
status: 200;
|
|
4818
|
+
} | {
|
|
4819
|
+
status: 403;
|
|
4820
|
+
data: ErrorResponse;
|
|
4821
|
+
} | {
|
|
4822
|
+
status: 422;
|
|
4823
|
+
data: ErrorResponse;
|
|
4824
|
+
} | {
|
|
4825
|
+
status: 500;
|
|
4826
|
+
data: ErrorResponse;
|
|
4827
|
+
}>("/v2/service-credentials/rate-limit", oazapfts.json({
|
|
4828
|
+
...opts,
|
|
4829
|
+
method: "PATCH",
|
|
4830
|
+
body: serviceCredentialRateLimitRequest
|
|
4831
|
+
})));
|
|
4832
|
+
}
|
|
4550
4833
|
/**
|
|
4551
4834
|
* Delete a member permissions
|
|
4552
4835
|
*/
|
|
@@ -4665,7 +4948,7 @@ export function associateGroupToServiceCredential({ id, serviceCredentialAssocia
|
|
|
4665
4948
|
})));
|
|
4666
4949
|
}
|
|
4667
4950
|
/**
|
|
4668
|
-
*
|
|
4951
|
+
* Revoke Service Credential
|
|
4669
4952
|
*/
|
|
4670
4953
|
export function revokeServiceCredential1({ id }: {
|
|
4671
4954
|
id: string;
|
|
@@ -5233,6 +5516,33 @@ export function addNewEmailDomain({ accountId, addNewEmailDomainRequest }: {
|
|
|
5233
5516
|
body: addNewEmailDomainRequest
|
|
5234
5517
|
})));
|
|
5235
5518
|
}
|
|
5519
|
+
/**
|
|
5520
|
+
* Update personal account details
|
|
5521
|
+
*/
|
|
5522
|
+
export function updatePersonalAccountDetails({ accountId, accountTrialUpdateRequest }: {
|
|
5523
|
+
accountId: string;
|
|
5524
|
+
accountTrialUpdateRequest: AccountTrialUpdateRequest;
|
|
5525
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
5526
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
5527
|
+
status: 204;
|
|
5528
|
+
} | {
|
|
5529
|
+
status: 400;
|
|
5530
|
+
data: ErrorResponse;
|
|
5531
|
+
} | {
|
|
5532
|
+
status: 404;
|
|
5533
|
+
data: ErrorResponse;
|
|
5534
|
+
} | {
|
|
5535
|
+
status: 422;
|
|
5536
|
+
data: ErrorResponse;
|
|
5537
|
+
} | {
|
|
5538
|
+
status: 500;
|
|
5539
|
+
data: ErrorResponse;
|
|
5540
|
+
}>(`/v1/accounts/trial/personal-details/${encodeURIComponent(accountId)}`, oazapfts.json({
|
|
5541
|
+
...opts,
|
|
5542
|
+
method: "PATCH",
|
|
5543
|
+
body: accountTrialUpdateRequest
|
|
5544
|
+
})));
|
|
5545
|
+
}
|
|
5236
5546
|
/**
|
|
5237
5547
|
* Retrieves the SSO attributes configuration for a given SSO ID.
|
|
5238
5548
|
*/
|
|
@@ -5419,6 +5729,25 @@ export function getServiceCredentialGroups({ id }: {
|
|
|
5419
5729
|
...opts
|
|
5420
5730
|
}));
|
|
5421
5731
|
}
|
|
5732
|
+
/**
|
|
5733
|
+
* Rotates the secret of a service credential.
|
|
5734
|
+
*/
|
|
5735
|
+
export function getServiceCredentialByIdRateLimit({ clientId }: {
|
|
5736
|
+
clientId: string;
|
|
5737
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
5738
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
5739
|
+
status: 200;
|
|
5740
|
+
data: ServiceCredentialRateLimitResponse;
|
|
5741
|
+
} | {
|
|
5742
|
+
status: 403;
|
|
5743
|
+
data: ErrorResponse;
|
|
5744
|
+
} | {
|
|
5745
|
+
status: 500;
|
|
5746
|
+
data: ErrorResponse;
|
|
5747
|
+
}>(`/v2/service-credentials/${encodeURIComponent(clientId)}/rate-limit`, {
|
|
5748
|
+
...opts
|
|
5749
|
+
}));
|
|
5750
|
+
}
|
|
5422
5751
|
/**
|
|
5423
5752
|
* Get Roles
|
|
5424
5753
|
*/
|
|
@@ -6143,7 +6472,7 @@ export function getAccountMembers1({ id, size, page, sort, direction, search, fi
|
|
|
6143
6472
|
}));
|
|
6144
6473
|
}
|
|
6145
6474
|
/**
|
|
6146
|
-
*
|
|
6475
|
+
* Get Service Credential by ID (Client ID)
|
|
6147
6476
|
*/
|
|
6148
6477
|
export function getServiceCredential({ id }: {
|
|
6149
6478
|
id: string;
|
|
@@ -6181,7 +6510,7 @@ export function getServiceCredentialPermissions({ id }: {
|
|
|
6181
6510
|
}));
|
|
6182
6511
|
}
|
|
6183
6512
|
/**
|
|
6184
|
-
*
|
|
6513
|
+
* List service credential groups
|
|
6185
6514
|
*/
|
|
6186
6515
|
export function getServiceCredentialGroups1({ id }: {
|
|
6187
6516
|
id: string;
|
|
@@ -6467,7 +6796,7 @@ export function getResources2({ memberId }: {
|
|
|
6467
6796
|
}));
|
|
6468
6797
|
}
|
|
6469
6798
|
/**
|
|
6470
|
-
*
|
|
6799
|
+
* Get member favorite resources by type
|
|
6471
6800
|
*/
|
|
6472
6801
|
export function listMemberFavoritesByResource({ memberId, resourceType }: {
|
|
6473
6802
|
memberId: string;
|
|
@@ -6475,7 +6804,7 @@ export function listMemberFavoritesByResource({ memberId, resourceType }: {
|
|
|
6475
6804
|
}, opts?: Oazapfts.RequestOpts) {
|
|
6476
6805
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
6477
6806
|
status: 200;
|
|
6478
|
-
data:
|
|
6807
|
+
data: any;
|
|
6479
6808
|
} | {
|
|
6480
6809
|
status: 404;
|
|
6481
6810
|
data: ErrorResponse;
|
|
@@ -6694,6 +7023,72 @@ export function getAccountSlug({ accountId }: {
|
|
|
6694
7023
|
...opts
|
|
6695
7024
|
}));
|
|
6696
7025
|
}
|
|
7026
|
+
/**
|
|
7027
|
+
* Finds and returns personal account details.
|
|
7028
|
+
*/
|
|
7029
|
+
export function getPersonalAccountDetails(opts?: Oazapfts.RequestOpts) {
|
|
7030
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
7031
|
+
status: 200;
|
|
7032
|
+
data: PersonalAccountDetailsResponse;
|
|
7033
|
+
} | {
|
|
7034
|
+
status: 400;
|
|
7035
|
+
data: ErrorResponse;
|
|
7036
|
+
} | {
|
|
7037
|
+
status: 404;
|
|
7038
|
+
data: ErrorResponse;
|
|
7039
|
+
} | {
|
|
7040
|
+
status: 500;
|
|
7041
|
+
data: ErrorResponse;
|
|
7042
|
+
}>("/v1/accounts/trial/personal-details", {
|
|
7043
|
+
...opts
|
|
7044
|
+
}));
|
|
7045
|
+
}
|
|
7046
|
+
/**
|
|
7047
|
+
* Finds and returns personal account expiration data associated with the provided token.
|
|
7048
|
+
*/
|
|
7049
|
+
export function getPersonalAccountExpirationData(opts?: Oazapfts.RequestOpts) {
|
|
7050
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
7051
|
+
status: 200;
|
|
7052
|
+
data: PersonalAccountExpirationDataResponse;
|
|
7053
|
+
} | {
|
|
7054
|
+
status: 400;
|
|
7055
|
+
data: ErrorResponse;
|
|
7056
|
+
} | {
|
|
7057
|
+
status: 404;
|
|
7058
|
+
data: ErrorResponse;
|
|
7059
|
+
} | {
|
|
7060
|
+
status: 500;
|
|
7061
|
+
data: ErrorResponse;
|
|
7062
|
+
}>("/v1/accounts/trial/expiration", {
|
|
7063
|
+
...opts
|
|
7064
|
+
}));
|
|
7065
|
+
}
|
|
7066
|
+
/**
|
|
7067
|
+
* Determines whether account data is available for registration based on the provided name and slug.
|
|
7068
|
+
*/
|
|
7069
|
+
export function accountDataIsAvailable({ name, slug }: {
|
|
7070
|
+
name: string;
|
|
7071
|
+
slug: string;
|
|
7072
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
7073
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
7074
|
+
status: 200;
|
|
7075
|
+
data: AccountDataAvailableResponse;
|
|
7076
|
+
} | {
|
|
7077
|
+
status: 400;
|
|
7078
|
+
data: ErrorResponse;
|
|
7079
|
+
} | {
|
|
7080
|
+
status: 403;
|
|
7081
|
+
data: ErrorResponse;
|
|
7082
|
+
} | {
|
|
7083
|
+
status: 500;
|
|
7084
|
+
data: ErrorResponse;
|
|
7085
|
+
}>(`/v1/accounts/trial/available${QS.query(QS.explode({
|
|
7086
|
+
name,
|
|
7087
|
+
slug
|
|
7088
|
+
}))}`, {
|
|
7089
|
+
...opts
|
|
7090
|
+
}));
|
|
7091
|
+
}
|
|
6697
7092
|
/**
|
|
6698
7093
|
* Retrieves a list of SSO for the current account.
|
|
6699
7094
|
*/
|
|
@@ -6736,32 +7131,6 @@ export function getAllAccountSso({ size, page, sort, direction, search, filterMo
|
|
|
6736
7131
|
...opts
|
|
6737
7132
|
}));
|
|
6738
7133
|
}
|
|
6739
|
-
/**
|
|
6740
|
-
* Determines whether account data is available for registration based on the provided name and slug.
|
|
6741
|
-
*/
|
|
6742
|
-
export function accountDataIsAvailable({ name, slug }: {
|
|
6743
|
-
name: string;
|
|
6744
|
-
slug: string;
|
|
6745
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
6746
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
6747
|
-
status: 200;
|
|
6748
|
-
data: AccountDataAvailableResponse;
|
|
6749
|
-
} | {
|
|
6750
|
-
status: 400;
|
|
6751
|
-
data: ErrorResponse;
|
|
6752
|
-
} | {
|
|
6753
|
-
status: 403;
|
|
6754
|
-
data: ErrorResponse;
|
|
6755
|
-
} | {
|
|
6756
|
-
status: 500;
|
|
6757
|
-
data: ErrorResponse;
|
|
6758
|
-
}>(`/v1/accounts/freemium/available${QS.query(QS.explode({
|
|
6759
|
-
name,
|
|
6760
|
-
slug
|
|
6761
|
-
}))}`, {
|
|
6762
|
-
...opts
|
|
6763
|
-
}));
|
|
6764
|
-
}
|
|
6765
7134
|
/**
|
|
6766
7135
|
* Get Partners who are sharing content.
|
|
6767
7136
|
*/
|
|
@@ -6829,7 +7198,7 @@ export function validatePartnerAssociationLimit(opts?: Oazapfts.RequestOpts) {
|
|
|
6829
7198
|
}));
|
|
6830
7199
|
}
|
|
6831
7200
|
/**
|
|
6832
|
-
*
|
|
7201
|
+
* Disassociate Group to Service Credential
|
|
6833
7202
|
*/
|
|
6834
7203
|
export function disassociateGroupToServiceCredential({ id, groupId }: {
|
|
6835
7204
|
id: string;
|
|
@@ -6921,7 +7290,7 @@ export function deleteProfileImage({ memberId }: {
|
|
|
6921
7290
|
}));
|
|
6922
7291
|
}
|
|
6923
7292
|
/**
|
|
6924
|
-
*
|
|
7293
|
+
* Remove resource from member favorites
|
|
6925
7294
|
*/
|
|
6926
7295
|
export function deleteMemberFavorite({ memberId, resourceType, resourceId }: {
|
|
6927
7296
|
memberId: string;
|