@parra/parra-js-sdk 0.3.160 → 0.3.162
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/ParraAPI.d.ts +78 -43
- package/dist/ParraAPI.js +18 -16
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -170,9 +170,61 @@ export interface NewInstalledVersionInfo {
|
|
|
170
170
|
export interface AppInfo {
|
|
171
171
|
version_token: string | null;
|
|
172
172
|
new_installed_version_info?: NewInstalledVersionInfo;
|
|
173
|
+
tenant: TenantAppInfoStub;
|
|
173
174
|
auth: AppAuthInfo;
|
|
174
175
|
legal: AppLegalInfo;
|
|
175
176
|
}
|
|
177
|
+
export declare enum DomainType {
|
|
178
|
+
managed = "managed",
|
|
179
|
+
external = "external",
|
|
180
|
+
subdomain = "subdomain",
|
|
181
|
+
fallback = "fallback"
|
|
182
|
+
}
|
|
183
|
+
export declare enum DomainStatus {
|
|
184
|
+
setup = "setup",
|
|
185
|
+
pending = "pending",
|
|
186
|
+
error = "error",
|
|
187
|
+
disabled = "disabled",
|
|
188
|
+
deleted = "deleted"
|
|
189
|
+
}
|
|
190
|
+
export interface ExternalDomainData {
|
|
191
|
+
status: DomainStatus;
|
|
192
|
+
domain: string;
|
|
193
|
+
disabled: boolean;
|
|
194
|
+
}
|
|
195
|
+
export type DomainData = ExternalDomainData;
|
|
196
|
+
export interface Domain {
|
|
197
|
+
id: string;
|
|
198
|
+
type: DomainType;
|
|
199
|
+
name: string;
|
|
200
|
+
title: string;
|
|
201
|
+
host: string;
|
|
202
|
+
url: string;
|
|
203
|
+
data?: DomainData | null;
|
|
204
|
+
}
|
|
205
|
+
export interface Entitlement {
|
|
206
|
+
}
|
|
207
|
+
export interface CreateTenantRequestBody {
|
|
208
|
+
name: string;
|
|
209
|
+
subdomain?: string | null;
|
|
210
|
+
is_test: boolean;
|
|
211
|
+
parent_tenant_id?: string | null;
|
|
212
|
+
}
|
|
213
|
+
export interface TenantAppInfoStub {
|
|
214
|
+
id: string;
|
|
215
|
+
created_at: string;
|
|
216
|
+
updated_at: string;
|
|
217
|
+
deleted_at?: string | null;
|
|
218
|
+
name: string;
|
|
219
|
+
subdomain?: string | null;
|
|
220
|
+
is_test: boolean;
|
|
221
|
+
parent_tenant_id?: string | null;
|
|
222
|
+
logo?: ImageAssetStub | null;
|
|
223
|
+
issuer?: string;
|
|
224
|
+
domains?: Array<Domain> | null;
|
|
225
|
+
urls?: Array<string> | null;
|
|
226
|
+
entitlements?: Array<Entitlement> | null;
|
|
227
|
+
}
|
|
176
228
|
export interface PasswordRule {
|
|
177
229
|
regular_expression?: string;
|
|
178
230
|
error_message?: string;
|
|
@@ -1525,18 +1577,6 @@ export interface ExternalDomainDnsRecord {
|
|
|
1525
1577
|
verified_at?: string | null;
|
|
1526
1578
|
required: boolean;
|
|
1527
1579
|
}
|
|
1528
|
-
export declare enum DomainStatus {
|
|
1529
|
-
setup = "setup",
|
|
1530
|
-
pending = "pending",
|
|
1531
|
-
error = "error",
|
|
1532
|
-
disabled = "disabled",
|
|
1533
|
-
deleted = "deleted"
|
|
1534
|
-
}
|
|
1535
|
-
export interface ExternalDomainData {
|
|
1536
|
-
status: DomainStatus;
|
|
1537
|
-
domain: string;
|
|
1538
|
-
disabled: boolean;
|
|
1539
|
-
}
|
|
1540
1580
|
export interface ExternalDomain {
|
|
1541
1581
|
id: string;
|
|
1542
1582
|
created_at: string;
|
|
@@ -1672,7 +1712,7 @@ export interface AuthenticatorSelection {
|
|
|
1672
1712
|
residentKey?: string;
|
|
1673
1713
|
userVerification?: string;
|
|
1674
1714
|
}
|
|
1675
|
-
export interface
|
|
1715
|
+
export interface PublicKeyCredentialDescriptor {
|
|
1676
1716
|
type: string;
|
|
1677
1717
|
id: string;
|
|
1678
1718
|
transports?: Array<string> | null;
|
|
@@ -1695,7 +1735,7 @@ export interface PublicKeyCredentialCreationOptions {
|
|
|
1695
1735
|
attestationFormats?: Array<string>;
|
|
1696
1736
|
authenticatorSelection?: AuthenticatorSelection;
|
|
1697
1737
|
challenge: string;
|
|
1698
|
-
excludeCredentials?: Array<
|
|
1738
|
+
excludeCredentials?: Array<PublicKeyCredentialDescriptor>;
|
|
1699
1739
|
extensions?: object | null;
|
|
1700
1740
|
pubKeyCredParams: Array<PublicKeyCredParam>;
|
|
1701
1741
|
rp: RelyingParty;
|
|
@@ -1705,7 +1745,7 @@ export interface PublicKeyCredentialCreationOptions {
|
|
|
1705
1745
|
}
|
|
1706
1746
|
export interface PublicKeyCredentialRequestOptions {
|
|
1707
1747
|
challenge: string;
|
|
1708
|
-
allowCredentials?: Array<
|
|
1748
|
+
allowCredentials?: Array<PublicKeyCredentialDescriptor>;
|
|
1709
1749
|
extensions?: object | null;
|
|
1710
1750
|
rpId?: string;
|
|
1711
1751
|
timeout?: number;
|
|
@@ -1728,12 +1768,13 @@ export interface WebauthnRegisterRequestBody {
|
|
|
1728
1768
|
export interface WebauthnRegisterResponseBody {
|
|
1729
1769
|
status: string;
|
|
1730
1770
|
message: string;
|
|
1771
|
+
token: string;
|
|
1731
1772
|
}
|
|
1732
1773
|
export interface AuthenticatorAssertionResponse {
|
|
1733
1774
|
clientDataJSON: string;
|
|
1734
1775
|
authenticatorData: string;
|
|
1735
1776
|
signature: string;
|
|
1736
|
-
userHandle
|
|
1777
|
+
userHandle?: string | null;
|
|
1737
1778
|
}
|
|
1738
1779
|
export interface WebauthnAuthenticateRequestBody {
|
|
1739
1780
|
id: string;
|
|
@@ -1902,24 +1943,6 @@ export interface TenantOnboarding {
|
|
|
1902
1943
|
goal?: TenantOnboardingGoal | null;
|
|
1903
1944
|
application_intent?: TenantOnboardingApplicationIntent | null;
|
|
1904
1945
|
}
|
|
1905
|
-
export declare enum DomainType {
|
|
1906
|
-
managed = "managed",
|
|
1907
|
-
external = "external",
|
|
1908
|
-
subdomain = "subdomain",
|
|
1909
|
-
fallback = "fallback"
|
|
1910
|
-
}
|
|
1911
|
-
export type DomainData = ExternalDomainData;
|
|
1912
|
-
export interface Domain {
|
|
1913
|
-
id: string;
|
|
1914
|
-
type: DomainType;
|
|
1915
|
-
name: string;
|
|
1916
|
-
title: string;
|
|
1917
|
-
host: string;
|
|
1918
|
-
url: string;
|
|
1919
|
-
data?: DomainData | null;
|
|
1920
|
-
}
|
|
1921
|
-
export interface Entitlement {
|
|
1922
|
-
}
|
|
1923
1946
|
export interface TenantMetrics {
|
|
1924
1947
|
application_count: number;
|
|
1925
1948
|
child_tenant_count: number;
|
|
@@ -1929,12 +1952,6 @@ export interface TenantMetrics {
|
|
|
1929
1952
|
team_member_pending_invitation_count: number;
|
|
1930
1953
|
user_count: number;
|
|
1931
1954
|
}
|
|
1932
|
-
export interface CreateTenantRequestBody {
|
|
1933
|
-
name: string;
|
|
1934
|
-
subdomain?: string | null;
|
|
1935
|
-
is_test: boolean;
|
|
1936
|
-
parent_tenant_id?: string | null;
|
|
1937
|
-
}
|
|
1938
1955
|
export interface Tenant {
|
|
1939
1956
|
id: string;
|
|
1940
1957
|
created_at: string;
|
|
@@ -1944,10 +1961,12 @@ export interface Tenant {
|
|
|
1944
1961
|
subdomain?: string | null;
|
|
1945
1962
|
is_test: boolean;
|
|
1946
1963
|
parent_tenant_id?: string | null;
|
|
1947
|
-
onboarding?: TenantOnboarding | null;
|
|
1948
1964
|
logo?: ImageAssetStub | null;
|
|
1965
|
+
issuer?: string;
|
|
1949
1966
|
domains?: Array<Domain> | null;
|
|
1967
|
+
urls?: Array<string> | null;
|
|
1950
1968
|
entitlements?: Array<Entitlement> | null;
|
|
1969
|
+
onboarding?: TenantOnboarding | null;
|
|
1951
1970
|
metrics?: TenantMetrics | null;
|
|
1952
1971
|
}
|
|
1953
1972
|
export interface TenantInvitation {
|
|
@@ -1999,6 +2018,8 @@ export interface ApiKeyCollectionResponse {
|
|
|
1999
2018
|
export declare enum ConnectedAppType {
|
|
2000
2019
|
parra = "parra",
|
|
2001
2020
|
appStoreConnectApi = "app-store-connect-api",
|
|
2021
|
+
resend = "resend",
|
|
2022
|
+
sendgrid = "sendgrid",
|
|
2002
2023
|
slack = "slack",
|
|
2003
2024
|
twilio = "twilio",
|
|
2004
2025
|
x = "x"
|
|
@@ -2014,12 +2035,18 @@ export interface ConnectedAppAppStoreConnectApiConnectionData {
|
|
|
2014
2035
|
key_id: string;
|
|
2015
2036
|
private_key: string;
|
|
2016
2037
|
}
|
|
2038
|
+
export interface ConnectedAppResendConnectionData {
|
|
2039
|
+
api_key: string;
|
|
2040
|
+
}
|
|
2017
2041
|
export interface ConnectedAppSlackConnectionData {
|
|
2018
2042
|
team_name: string;
|
|
2019
2043
|
team_id: string;
|
|
2020
2044
|
app_id: string;
|
|
2021
2045
|
user_id: string;
|
|
2022
2046
|
}
|
|
2047
|
+
export interface ConnectedAppSendgridConnectionData {
|
|
2048
|
+
api_key: string;
|
|
2049
|
+
}
|
|
2023
2050
|
export interface ConnectedAppTwilioConnectionData {
|
|
2024
2051
|
account_sid: string;
|
|
2025
2052
|
auth_token: string;
|
|
@@ -2030,7 +2057,7 @@ export interface ConnectedAppXConnectionData {
|
|
|
2030
2057
|
handle: string;
|
|
2031
2058
|
name: string;
|
|
2032
2059
|
}
|
|
2033
|
-
export type ConnectedAppConnectionData = ConnectedAppAppStoreConnectApiConnectionData | ConnectedAppSlackConnectionData | ConnectedAppTwilioConnectionData | ConnectedAppXConnectionData;
|
|
2060
|
+
export type ConnectedAppConnectionData = ConnectedAppAppStoreConnectApiConnectionData | ConnectedAppResendConnectionData | ConnectedAppSlackConnectionData | ConnectedAppSendgridConnectionData | ConnectedAppTwilioConnectionData | ConnectedAppXConnectionData;
|
|
2034
2061
|
export interface ConnectedAppConnection {
|
|
2035
2062
|
id: string;
|
|
2036
2063
|
created_at: string;
|
|
@@ -2077,12 +2104,20 @@ export interface UpdateConnectedAppConnectionRequestBody {
|
|
|
2077
2104
|
twilio_auth_token?: string;
|
|
2078
2105
|
twilio_messaging_service_sid?: string;
|
|
2079
2106
|
twilio_from_number?: string;
|
|
2107
|
+
resend_api_key?: string;
|
|
2108
|
+
sendgrid_api_key?: string;
|
|
2080
2109
|
}
|
|
2081
2110
|
export interface CreateAppStoreConnectConnectedAppConnectionRequestBody {
|
|
2082
2111
|
issuer: string;
|
|
2083
2112
|
key_id: string;
|
|
2084
2113
|
private_key: string;
|
|
2085
2114
|
}
|
|
2115
|
+
export interface CreateResendConnectedAppConnectionRequestBody {
|
|
2116
|
+
api_key: string;
|
|
2117
|
+
}
|
|
2118
|
+
export interface CreateSendgridConnectedAppConnectionRequestBody {
|
|
2119
|
+
api_key: string;
|
|
2120
|
+
}
|
|
2086
2121
|
export interface CreateSlackConnectedAppConnectionRequestBody {
|
|
2087
2122
|
code: string;
|
|
2088
2123
|
}
|
|
@@ -2096,7 +2131,7 @@ export interface CreateXConnectedAppConnectionRequestBody {
|
|
|
2096
2131
|
code: string;
|
|
2097
2132
|
code_verifier: string;
|
|
2098
2133
|
}
|
|
2099
|
-
export type CreateConnectedAppConnectionRequestBody = CreateAppStoreConnectConnectedAppConnectionRequestBody | CreateSlackConnectedAppConnectionRequestBody | CreateTwilioConnectedAppConnectionRequestBody | CreateXConnectedAppConnectionRequestBody;
|
|
2134
|
+
export type CreateConnectedAppConnectionRequestBody = CreateAppStoreConnectConnectedAppConnectionRequestBody | CreateResendConnectedAppConnectionRequestBody | CreateSendgridConnectedAppConnectionRequestBody | CreateSlackConnectedAppConnectionRequestBody | CreateTwilioConnectedAppConnectionRequestBody | CreateXConnectedAppConnectionRequestBody;
|
|
2100
2135
|
export declare enum IntegrationType {
|
|
2101
2136
|
parraFeedbackFormBoard = "parra-feedback-form-board",
|
|
2102
2137
|
slackFeedbackForm = "slack-feedback-form",
|
package/dist/ParraAPI.js
CHANGED
|
@@ -11,7 +11,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.PolicyDocumentVersionStatus = exports.PolicyDocumentStatus = exports.IntegrationScope = exports.IntegrationConnectionStatus = exports.IntegrationType = exports.ConnectedAppConnectionStatus = exports.ConnectedAppType = exports.
|
|
14
|
+
exports.PolicyDocumentVersionStatus = exports.PolicyDocumentStatus = exports.IntegrationScope = exports.IntegrationConnectionStatus = exports.IntegrationType = exports.ConnectedAppConnectionStatus = exports.ConnectedAppType = exports.TenantOnboardingGoal = exports.ApplicationType = exports.RefreshTokenRotationType = exports.RefreshTokenExpirationType = exports.JwtAlgorithm = exports.GrantType = exports.PasswordlessStrategy = exports.DnsRecordType = exports.DnsRecordStatus = exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = exports.AppVersionStatus = exports.TicketDisplayStatus = exports.UserNoteStatus = exports.TemplateType = exports.CampaignStatus = exports.CampaignActionDisplayType = exports.CampaignActionType = exports.CardItemDisplayType = exports.CardItemType = exports.QuestionKind = exports.QuestionType = exports.FeedbackFormFieldType = exports.SubscriptionStatus = exports.Currency = exports.Interval = exports.IdentityType = exports.PolicyDocumentType = exports.DomainStatus = exports.DomainType = exports.ReleaseType = exports.ReleaseStatus = exports.TicketIconType = exports.TicketPriority = exports.TicketStatus = exports.TicketType = void 0;
|
|
15
15
|
var TicketType;
|
|
16
16
|
(function (TicketType) {
|
|
17
17
|
TicketType["bug"] = "bug";
|
|
@@ -52,6 +52,21 @@ var ReleaseType;
|
|
|
52
52
|
ReleaseType["patch"] = "patch";
|
|
53
53
|
ReleaseType["launch"] = "launch";
|
|
54
54
|
})(ReleaseType || (exports.ReleaseType = ReleaseType = {}));
|
|
55
|
+
var DomainType;
|
|
56
|
+
(function (DomainType) {
|
|
57
|
+
DomainType["managed"] = "managed";
|
|
58
|
+
DomainType["external"] = "external";
|
|
59
|
+
DomainType["subdomain"] = "subdomain";
|
|
60
|
+
DomainType["fallback"] = "fallback";
|
|
61
|
+
})(DomainType || (exports.DomainType = DomainType = {}));
|
|
62
|
+
var DomainStatus;
|
|
63
|
+
(function (DomainStatus) {
|
|
64
|
+
DomainStatus["setup"] = "setup";
|
|
65
|
+
DomainStatus["pending"] = "pending";
|
|
66
|
+
DomainStatus["error"] = "error";
|
|
67
|
+
DomainStatus["disabled"] = "disabled";
|
|
68
|
+
DomainStatus["deleted"] = "deleted";
|
|
69
|
+
})(DomainStatus || (exports.DomainStatus = DomainStatus = {}));
|
|
55
70
|
var PolicyDocumentType;
|
|
56
71
|
(function (PolicyDocumentType) {
|
|
57
72
|
PolicyDocumentType["terms"] = "terms";
|
|
@@ -200,14 +215,6 @@ var DnsRecordType;
|
|
|
200
215
|
DnsRecordType["cname"] = "CNAME";
|
|
201
216
|
DnsRecordType["txt"] = "TXT";
|
|
202
217
|
})(DnsRecordType || (exports.DnsRecordType = DnsRecordType = {}));
|
|
203
|
-
var DomainStatus;
|
|
204
|
-
(function (DomainStatus) {
|
|
205
|
-
DomainStatus["setup"] = "setup";
|
|
206
|
-
DomainStatus["pending"] = "pending";
|
|
207
|
-
DomainStatus["error"] = "error";
|
|
208
|
-
DomainStatus["disabled"] = "disabled";
|
|
209
|
-
DomainStatus["deleted"] = "deleted";
|
|
210
|
-
})(DomainStatus || (exports.DomainStatus = DomainStatus = {}));
|
|
211
218
|
var PasswordlessStrategy;
|
|
212
219
|
(function (PasswordlessStrategy) {
|
|
213
220
|
PasswordlessStrategy["email"] = "email";
|
|
@@ -247,17 +254,12 @@ var TenantOnboardingGoal;
|
|
|
247
254
|
TenantOnboardingGoal["newProject"] = "new_project";
|
|
248
255
|
TenantOnboardingGoal["existingProject"] = "existing_project";
|
|
249
256
|
})(TenantOnboardingGoal || (exports.TenantOnboardingGoal = TenantOnboardingGoal = {}));
|
|
250
|
-
var DomainType;
|
|
251
|
-
(function (DomainType) {
|
|
252
|
-
DomainType["managed"] = "managed";
|
|
253
|
-
DomainType["external"] = "external";
|
|
254
|
-
DomainType["subdomain"] = "subdomain";
|
|
255
|
-
DomainType["fallback"] = "fallback";
|
|
256
|
-
})(DomainType || (exports.DomainType = DomainType = {}));
|
|
257
257
|
var ConnectedAppType;
|
|
258
258
|
(function (ConnectedAppType) {
|
|
259
259
|
ConnectedAppType["parra"] = "parra";
|
|
260
260
|
ConnectedAppType["appStoreConnectApi"] = "app-store-connect-api";
|
|
261
|
+
ConnectedAppType["resend"] = "resend";
|
|
262
|
+
ConnectedAppType["sendgrid"] = "sendgrid";
|
|
261
263
|
ConnectedAppType["slack"] = "slack";
|
|
262
264
|
ConnectedAppType["twilio"] = "twilio";
|
|
263
265
|
ConnectedAppType["x"] = "x";
|