@outseta/api-client 0.3.3 → 0.3.5
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/index.js +302 -0
- package/package.json +1 -1
- package/src/generated/activity/activity.ts +1 -1
- package/src/generated/attribute/attribute.ts +2 -2
- package/src/generated/billing/billing.ts +1639 -430
- package/src/generated/crm/crm.ts +9 -6
- package/src/generated/email/email.ts +4 -3
- package/src/generated/models/discountCouponGetAllDiscountCouponsParams.ts +18 -0
- package/src/generated/models/discountCouponGetDiscountCouponByCodeParams.ts +9 -0
- package/src/generated/models/discountCouponGetDiscountCouponRedemptionsParams.ts +14 -0
- package/src/generated/models/discountCouponUpdateDiscountCouponBody.ts +7 -0
- package/src/generated/models/index.ts +13 -2
- package/src/generated/models/planAddPlanBody.ts +7 -0
- package/src/generated/models/planFamilyAddPlanFamilyBody.ts +7 -0
- package/src/generated/models/planFamilyUpdatePlanFamilyBody.ts +7 -0
- package/src/generated/models/planUpdatePlanBody.ts +7 -0
- package/src/generated/models/subscriptionAddOnAddSubscriptionAddOnPreviewBody.ts +7 -0
- package/src/generated/models/subscriptionAddOnGetAllSubscriptionsAddOnsParams.ts +9 -0
- package/src/generated/models/subscriptionAddOnSetAddOnUpgradeRequiredBody.ts +7 -0
- package/src/generated/models/subscriptionGetAllSubscriptionsParams.ts +14 -0
- package/src/generated/models/twoFactorVerifyRequest.ts +25 -0
- package/src/generated/public/public.ts +17 -82
- package/src/generated/support/support.ts +6 -5
- package/src/generated/models/authRefreshTokenParams.ts +0 -8
- package/src/generated/models/authVerifyTwoFactorTokenParams.ts +0 -8
package/src/generated/crm/crm.ts
CHANGED
|
@@ -52,7 +52,8 @@ type NonReadonly<T> = [T] extends [UnionToIntersection<T>] ? {
|
|
|
52
52
|
|
|
53
53
|
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* Returns the deals associated with your account.
|
|
56
|
+
* @summary Retrieve all deals.
|
|
56
57
|
*/
|
|
57
58
|
export type dealGetAllDealsResponse200 = {
|
|
58
59
|
data: Deal[]
|
|
@@ -149,7 +150,7 @@ export const dealAddDeal = async (dealAddDealBody: NonReadonly<DealAddDealBody>,
|
|
|
149
150
|
|
|
150
151
|
|
|
151
152
|
/**
|
|
152
|
-
* @summary
|
|
153
|
+
* @summary Retrieve a deal.
|
|
153
154
|
*/
|
|
154
155
|
export type dealGetDealResponse200 = {
|
|
155
156
|
data: Deal
|
|
@@ -349,7 +350,8 @@ export const registrationRegisterAccount = async (account: NonReadonly<Account>,
|
|
|
349
350
|
|
|
350
351
|
|
|
351
352
|
/**
|
|
352
|
-
*
|
|
353
|
+
* Optionally filtered by segment (segmentUid) or search query (q).
|
|
354
|
+
* @summary Retrieve all accounts.
|
|
353
355
|
*/
|
|
354
356
|
export type accountGetAllAccountsResponse200 = {
|
|
355
357
|
data: Account[]
|
|
@@ -456,7 +458,7 @@ export const accountAddAccount = async (accountAddAccountBody: NonReadonly<Accou
|
|
|
456
458
|
|
|
457
459
|
|
|
458
460
|
/**
|
|
459
|
-
* @summary
|
|
461
|
+
* @summary Retrieve an account.
|
|
460
462
|
*/
|
|
461
463
|
export type accountGetAccountResponse200 = {
|
|
462
464
|
data: Account
|
|
@@ -999,7 +1001,8 @@ export const accountSendConfirmationEmail = async (accountUid: string | null, op
|
|
|
999
1001
|
|
|
1000
1002
|
|
|
1001
1003
|
/**
|
|
1002
|
-
*
|
|
1004
|
+
* Returns the people associated with your account.
|
|
1005
|
+
* @summary Retrieve all people.
|
|
1003
1006
|
*/
|
|
1004
1007
|
export type personGetAllPeopleResponse200 = {
|
|
1005
1008
|
data: Person[]
|
|
@@ -1091,7 +1094,7 @@ export const personAddPerson = async (personAddPersonBody: NonReadonly<PersonAdd
|
|
|
1091
1094
|
|
|
1092
1095
|
|
|
1093
1096
|
/**
|
|
1094
|
-
* @summary
|
|
1097
|
+
* @summary Retrieve a person.
|
|
1095
1098
|
*/
|
|
1096
1099
|
export type personGetPersonResponse200 = {
|
|
1097
1100
|
data: Person
|
|
@@ -39,7 +39,8 @@ type NonReadonly<T> = [T] extends [UnionToIntersection<T>] ? {
|
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
42
|
+
* Archived campaigns are excluded.
|
|
43
|
+
* @summary Retrieve all broadcast campaigns.
|
|
43
44
|
*/
|
|
44
45
|
export type campaignGetAllBroadcastEmailsResponse200 = {
|
|
45
46
|
data: BroadcastCampaign[]
|
|
@@ -128,7 +129,7 @@ export const campaignAddBroadcastEmail = async (campaignAddBroadcastEmailBody: N
|
|
|
128
129
|
|
|
129
130
|
|
|
130
131
|
/**
|
|
131
|
-
* @summary
|
|
132
|
+
* @summary Retrieve a broadcast campaign.
|
|
132
133
|
*/
|
|
133
134
|
export type campaignGetBroadcastEmailResponse200 = {
|
|
134
135
|
data: BroadcastCampaign
|
|
@@ -442,7 +443,7 @@ export const campaignSendTestCampaignEmail = async (campaignSendTestCampaignEmai
|
|
|
442
443
|
|
|
443
444
|
|
|
444
445
|
/**
|
|
445
|
-
* @summary
|
|
446
|
+
* @summary Retrieve all subscribers to an email list.
|
|
446
447
|
*/
|
|
447
448
|
export type emailListGetAllSubscriptionsResponse200 = {
|
|
448
449
|
data: EmailListPerson[]
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
|
|
3
|
+
export type DiscountCouponGetAllDiscountCouponsParams = {
|
|
4
|
+
/**
|
|
5
|
+
* When true, returns only coupons that can still be redeemed
|
|
6
|
+
*/
|
|
7
|
+
canRedeem?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Searches coupons by name or code
|
|
10
|
+
* @nullable
|
|
11
|
+
*/
|
|
12
|
+
q?: string | null;
|
|
13
|
+
/**
|
|
14
|
+
* Returns only coupons that apply to the plan with this unique identifier
|
|
15
|
+
* @nullable
|
|
16
|
+
*/
|
|
17
|
+
planUid?: string | null;
|
|
18
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
|
|
3
|
+
export type DiscountCouponGetDiscountCouponRedemptionsParams = {
|
|
4
|
+
/**
|
|
5
|
+
* Searches redemptions by account or plan name
|
|
6
|
+
* @nullable
|
|
7
|
+
*/
|
|
8
|
+
q?: string | null;
|
|
9
|
+
/**
|
|
10
|
+
* When set, filters by whether the redemption is still active
|
|
11
|
+
* @nullable
|
|
12
|
+
*/
|
|
13
|
+
isActive?: boolean | null;
|
|
14
|
+
};
|
|
@@ -100,11 +100,9 @@ export * from './articleAllOf';
|
|
|
100
100
|
export * from './articleAllOfCategory';
|
|
101
101
|
export * from './articleGetAllArticlesParams';
|
|
102
102
|
export * from './authGetTokenParams';
|
|
103
|
-
export * from './authRefreshTokenParams';
|
|
104
103
|
export * from './authResendTwoFactorParams';
|
|
105
104
|
export * from './authSwitchTwoFactorMechanismParams';
|
|
106
105
|
export * from './authVerifyTwoFactorRecoveryParams';
|
|
107
|
-
export * from './authVerifyTwoFactorTokenParams';
|
|
108
106
|
export * from './backGroundTaskType';
|
|
109
107
|
export * from './billSettings';
|
|
110
108
|
export * from './billSettingsAllOf';
|
|
@@ -189,6 +187,9 @@ export * from './discordUserAllOf';
|
|
|
189
187
|
export * from './discountCoupon';
|
|
190
188
|
export * from './discountCouponAddDiscountCouponBody';
|
|
191
189
|
export * from './discountCouponAllOf';
|
|
190
|
+
export * from './discountCouponGetAllDiscountCouponsParams';
|
|
191
|
+
export * from './discountCouponGetDiscountCouponByCodeParams';
|
|
192
|
+
export * from './discountCouponGetDiscountCouponRedemptionsParams';
|
|
192
193
|
export * from './discountCouponPlan';
|
|
193
194
|
export * from './discountCouponPlanAllOf';
|
|
194
195
|
export * from './discountCouponPlanAllOfDiscountCoupon';
|
|
@@ -197,6 +198,7 @@ export * from './discountCouponSubscription';
|
|
|
197
198
|
export * from './discountCouponSubscriptionAllOf';
|
|
198
199
|
export * from './discountCouponSubscriptionAllOfDiscountCoupon';
|
|
199
200
|
export * from './discountCouponSubscriptionAllOfSubscription';
|
|
201
|
+
export * from './discountCouponUpdateDiscountCouponBody';
|
|
200
202
|
export * from './dnsEntry';
|
|
201
203
|
export * from './dripCampaign';
|
|
202
204
|
export * from './dripCampaignAllOf';
|
|
@@ -303,10 +305,14 @@ export * from './planAddOn';
|
|
|
303
305
|
export * from './planAddOnAllOf';
|
|
304
306
|
export * from './planAddOnAllOfAddOn';
|
|
305
307
|
export * from './planAddOnAllOfPlan';
|
|
308
|
+
export * from './planAddPlanBody';
|
|
306
309
|
export * from './planAllOf';
|
|
307
310
|
export * from './planAllOfPlanFamily';
|
|
308
311
|
export * from './planFamily';
|
|
312
|
+
export * from './planFamilyAddPlanFamilyBody';
|
|
309
313
|
export * from './planFamilyAllOf';
|
|
314
|
+
export * from './planFamilyUpdatePlanFamilyBody';
|
|
315
|
+
export * from './planUpdatePlanBody';
|
|
310
316
|
export * from './processCodePayload';
|
|
311
317
|
export * from './qcount';
|
|
312
318
|
export * from './qcountAllOf';
|
|
@@ -430,9 +436,12 @@ export * from './stripeSubscriptionSchedulePhaseItemAllOfStripePrice';
|
|
|
430
436
|
export * from './subscription';
|
|
431
437
|
export * from './subscriptionAddOn';
|
|
432
438
|
export * from './subscriptionAddOnAddSubscriptionAddOnBody';
|
|
439
|
+
export * from './subscriptionAddOnAddSubscriptionAddOnPreviewBody';
|
|
433
440
|
export * from './subscriptionAddOnAllOf';
|
|
434
441
|
export * from './subscriptionAddOnAllOfAddOn';
|
|
435
442
|
export * from './subscriptionAddOnAllOfSubscription';
|
|
443
|
+
export * from './subscriptionAddOnGetAllSubscriptionsAddOnsParams';
|
|
444
|
+
export * from './subscriptionAddOnSetAddOnUpgradeRequiredBody';
|
|
436
445
|
export * from './subscriptionAllOf';
|
|
437
446
|
export * from './subscriptionAllOfAccount';
|
|
438
447
|
export * from './subscriptionAllOfLatestInvoice';
|
|
@@ -444,6 +453,7 @@ export * from './subscriptionChangeSubscriptionPreviewParams';
|
|
|
444
453
|
export * from './subscriptionFirstTimeSubscriptionBody';
|
|
445
454
|
export * from './subscriptionFirstTimeSubscriptionPreviewBody';
|
|
446
455
|
export * from './subscriptionFirstTimeSubscriptionPreviewParams';
|
|
456
|
+
export * from './subscriptionGetAllSubscriptionsParams';
|
|
447
457
|
export * from './subscriptionSetSubscriptionUpgradeRequiredBody';
|
|
448
458
|
export * from './supportArticleStatus';
|
|
449
459
|
export * from './supportCaseHistoryType';
|
|
@@ -485,6 +495,7 @@ export * from './translationAllOf';
|
|
|
485
495
|
export * from './twoFactorChallengePayload';
|
|
486
496
|
export * from './twoFactorEnrollmentConfirmationPayload';
|
|
487
497
|
export * from './twoFactorTotpEnrollmentPayload';
|
|
498
|
+
export * from './twoFactorVerifyRequest';
|
|
488
499
|
export * from './usage';
|
|
489
500
|
export * from './usageAddUsageBody';
|
|
490
501
|
export * from './usageAllOf';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
|
|
3
|
+
export type SubscriptionGetAllSubscriptionsParams = {
|
|
4
|
+
/**
|
|
5
|
+
* Pass 1 to return only the most recent subscription per account, expired or not
|
|
6
|
+
* @nullable
|
|
7
|
+
*/
|
|
8
|
+
current?: string | null;
|
|
9
|
+
/**
|
|
10
|
+
* Filters by the subscription's lifecycle: current, future, or past
|
|
11
|
+
* @nullable
|
|
12
|
+
*/
|
|
13
|
+
status?: string | null;
|
|
14
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Request body for POST /api/v1/tokens/two-factor: the challenge token
|
|
5
|
+
from the login response plus the user's one-time code. Property names are
|
|
6
|
+
snake_case to match the wire format of the token endpoints.
|
|
7
|
+
|
|
8
|
+
The action binds the body as a loose JObject at runtime; this type
|
|
9
|
+
exists so the API docs describe the body instead of an opaque data
|
|
10
|
+
parameter (see [OpenApiRequestBody] on the action).
|
|
11
|
+
*/
|
|
12
|
+
export interface TwoFactorVerifyRequest {
|
|
13
|
+
/**
|
|
14
|
+
* The challenge_token returned by POST /api/v1/tokens when
|
|
15
|
+
two-factor authentication is required. Echo it back verbatim.
|
|
16
|
+
* @nullable
|
|
17
|
+
*/
|
|
18
|
+
challenge_token?: string | null;
|
|
19
|
+
/**
|
|
20
|
+
* The user's one-time code: the emailed code for an Email challenge,
|
|
21
|
+
or the current code from their authenticator app for a Totp challenge.
|
|
22
|
+
* @nullable
|
|
23
|
+
*/
|
|
24
|
+
code?: string | null;
|
|
25
|
+
}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
import type {
|
|
3
3
|
AuthGetTokenParams,
|
|
4
|
-
AuthRefreshTokenParams,
|
|
5
4
|
AuthResendTwoFactorParams,
|
|
6
5
|
AuthSwitchTwoFactorMechanismParams,
|
|
7
6
|
AuthVerifyTwoFactorRecoveryParams,
|
|
8
|
-
AuthVerifyTwoFactorTokenParams,
|
|
9
7
|
TokenPayload,
|
|
10
8
|
TokenTwoFactorEnrollmentBeginEmailParams,
|
|
11
9
|
TokenTwoFactorEnrollmentBeginTotpParams,
|
|
@@ -13,13 +11,16 @@ import type {
|
|
|
13
11
|
TokenTwoFactorEnrollmentConfirmTotpParams,
|
|
14
12
|
TwoFactorChallengePayload,
|
|
15
13
|
TwoFactorEnrollmentConfirmationPayload,
|
|
16
|
-
TwoFactorTotpEnrollmentPayload
|
|
14
|
+
TwoFactorTotpEnrollmentPayload,
|
|
15
|
+
TwoFactorVerifyRequest
|
|
17
16
|
} from '.././models';
|
|
18
17
|
|
|
19
18
|
import { customFetch } from '../../client';
|
|
20
19
|
|
|
21
20
|
/**
|
|
22
|
-
*
|
|
21
|
+
* Authenticates a user and returns a JWT access token (plus a refresh token).
|
|
22
|
+
|
|
23
|
+
Post a JSON body with the user's credentials:
|
|
23
24
|
|
|
24
25
|
{ "username": "user@example.com", "password": "their-password" }
|
|
25
26
|
|
|
@@ -54,7 +55,7 @@ body instead contains `"two_factor_enrollment_required": true` with a
|
|
|
54
55
|
`challenge_token` to drive the mid-login enrollment endpoints.
|
|
55
56
|
|
|
56
57
|
Invalid credentials return `400` with a body of `invalid_grant`.
|
|
57
|
-
* @summary Log a user in
|
|
58
|
+
* @summary Log a user in.
|
|
58
59
|
*/
|
|
59
60
|
export type authGetTokenResponse200 = {
|
|
60
61
|
data: TokenPayload
|
|
@@ -124,7 +125,7 @@ An incorrect code returns `400` (`invalid_grant`). A code has at most
|
|
|
124
125
|
five attempts before the challenge locks. An expired challenge returns
|
|
125
126
|
`410` (`challenge_expired`) — restart at `POST /api/v1/tokens`. The
|
|
126
127
|
endpoint is rate limited to 10 requests per minute (`429`).
|
|
127
|
-
* @summary Complete
|
|
128
|
+
* @summary Complete login when user has two-factor authentication enabled.
|
|
128
129
|
*/
|
|
129
130
|
export type authVerifyTwoFactorTokenResponse200 = {
|
|
130
131
|
data: TokenPayload
|
|
@@ -150,29 +151,23 @@ export type authVerifyTwoFactorTokenResponseError = (authVerifyTwoFactorTokenRes
|
|
|
150
151
|
|
|
151
152
|
export type authVerifyTwoFactorTokenResponse = (authVerifyTwoFactorTokenResponseSuccess | authVerifyTwoFactorTokenResponseError)
|
|
152
153
|
|
|
153
|
-
export const getAuthVerifyTwoFactorTokenUrl = (
|
|
154
|
-
const normalizedParams = new URLSearchParams();
|
|
154
|
+
export const getAuthVerifyTwoFactorTokenUrl = () => {
|
|
155
155
|
|
|
156
|
-
Object.entries(params || {}).forEach(([key, value]) => {
|
|
157
|
-
|
|
158
|
-
if (value !== undefined) {
|
|
159
|
-
normalizedParams.append(key, value === null ? 'null' : value.toString())
|
|
160
|
-
}
|
|
161
|
-
});
|
|
162
156
|
|
|
163
|
-
|
|
157
|
+
|
|
164
158
|
|
|
165
|
-
return
|
|
159
|
+
return `/api/v1/tokens/two-factor`
|
|
166
160
|
}
|
|
167
161
|
|
|
168
|
-
export const authVerifyTwoFactorToken = async (
|
|
162
|
+
export const authVerifyTwoFactorToken = async (twoFactorVerifyRequest: TwoFactorVerifyRequest, options?: RequestInit): Promise<authVerifyTwoFactorTokenResponse> => {
|
|
169
163
|
|
|
170
|
-
return customFetch<authVerifyTwoFactorTokenResponse>(getAuthVerifyTwoFactorTokenUrl(
|
|
164
|
+
return customFetch<authVerifyTwoFactorTokenResponse>(getAuthVerifyTwoFactorTokenUrl(),
|
|
171
165
|
{
|
|
172
166
|
...options,
|
|
173
|
-
method: 'POST'
|
|
174
|
-
|
|
175
|
-
|
|
167
|
+
method: 'POST',
|
|
168
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
169
|
+
body: JSON.stringify(
|
|
170
|
+
twoFactorVerifyRequest,)
|
|
176
171
|
}
|
|
177
172
|
);}
|
|
178
173
|
|
|
@@ -320,8 +315,7 @@ requests per minute (`429`).
|
|
|
320
315
|
|
|
321
316
|
Used by the embed login widget; the hosted Razor flow has its own
|
|
322
317
|
equivalent action on the AuthenticationController.
|
|
323
|
-
* @summary Complete a two-factor
|
|
324
|
-
the primary one-time code, and obtain a JWT access token.
|
|
318
|
+
* @summary Complete login with a two-factor recovery code.
|
|
325
319
|
*/
|
|
326
320
|
export type authVerifyTwoFactorRecoveryResponse200 = {
|
|
327
321
|
data: TokenPayload
|
|
@@ -374,65 +368,6 @@ export const authVerifyTwoFactorRecovery = async (params: AuthVerifyTwoFactorRec
|
|
|
374
368
|
);}
|
|
375
369
|
|
|
376
370
|
|
|
377
|
-
/**
|
|
378
|
-
* Post the refresh token returned from `POST /api/v1/tokens` or the
|
|
379
|
-
two-factor completion endpoints:
|
|
380
|
-
|
|
381
|
-
{ "refresh_token": "..." }
|
|
382
|
-
|
|
383
|
-
On success the response is `200` with a new access token and refresh token:
|
|
384
|
-
|
|
385
|
-
{ "access_token": "eyJ...", "refresh_token": "...", "token_type": "Bearer", "expires_in": 31536000 }
|
|
386
|
-
|
|
387
|
-
An invalid or expired refresh token returns `400` with a body of `invalid_grant`.
|
|
388
|
-
* @summary Exchange a refresh token for a new access token.
|
|
389
|
-
*/
|
|
390
|
-
export type authRefreshTokenResponse200 = {
|
|
391
|
-
data: TokenPayload
|
|
392
|
-
status: 200
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
export type authRefreshTokenResponse400 = {
|
|
396
|
-
data: string
|
|
397
|
-
status: 400
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
export type authRefreshTokenResponseSuccess = (authRefreshTokenResponse200) & {
|
|
401
|
-
headers: Headers;
|
|
402
|
-
};
|
|
403
|
-
export type authRefreshTokenResponseError = (authRefreshTokenResponse400) & {
|
|
404
|
-
headers: Headers;
|
|
405
|
-
};
|
|
406
|
-
|
|
407
|
-
export type authRefreshTokenResponse = (authRefreshTokenResponseSuccess | authRefreshTokenResponseError)
|
|
408
|
-
|
|
409
|
-
export const getAuthRefreshTokenUrl = (params: AuthRefreshTokenParams,) => {
|
|
410
|
-
const normalizedParams = new URLSearchParams();
|
|
411
|
-
|
|
412
|
-
Object.entries(params || {}).forEach(([key, value]) => {
|
|
413
|
-
|
|
414
|
-
if (value !== undefined) {
|
|
415
|
-
normalizedParams.append(key, value === null ? 'null' : value.toString())
|
|
416
|
-
}
|
|
417
|
-
});
|
|
418
|
-
|
|
419
|
-
const stringifiedParams = normalizedParams.toString();
|
|
420
|
-
|
|
421
|
-
return stringifiedParams.length > 0 ? `/api/v1/tokens/refresh-token?${stringifiedParams}` : `/api/v1/tokens/refresh-token`
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
export const authRefreshToken = async (params: AuthRefreshTokenParams, options?: RequestInit): Promise<authRefreshTokenResponse> => {
|
|
425
|
-
|
|
426
|
-
return customFetch<authRefreshTokenResponse>(getAuthRefreshTokenUrl(params),
|
|
427
|
-
{
|
|
428
|
-
...options,
|
|
429
|
-
method: 'POST'
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
}
|
|
433
|
-
);}
|
|
434
|
-
|
|
435
|
-
|
|
436
371
|
/**
|
|
437
372
|
* Call this when `POST /api/v1/tokens` returned
|
|
438
373
|
`two_factor_enrollment_required` and the user chooses email. Post the
|
|
@@ -40,9 +40,10 @@ type NonReadonly<T> = [T] extends [UnionToIntersection<T>] ? {
|
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Optionally filtered by search string, tag, and/or assignment.
|
|
44
|
+
Assigned cases can be filtered by passing in the AssignedToPersonClientIdentifier,
|
|
44
45
|
which is the Uid of the person the case is assigned to.
|
|
45
|
-
* @summary
|
|
46
|
+
* @summary Retrieve all cases.
|
|
46
47
|
*/
|
|
47
48
|
export type caseGetAllCasesResponse200 = {
|
|
48
49
|
data: Case[]
|
|
@@ -147,7 +148,7 @@ export const caseAddCase = async (caseAddCaseBody: NonReadonly<CaseAddCaseBody>,
|
|
|
147
148
|
|
|
148
149
|
|
|
149
150
|
/**
|
|
150
|
-
* @summary Retrieve a
|
|
151
|
+
* @summary Retrieve a case.
|
|
151
152
|
*/
|
|
152
153
|
export type caseGetCaseResponse200 = {
|
|
153
154
|
data: Case
|
|
@@ -347,7 +348,7 @@ export const articleGetAllArticles = async (params?: ArticleGetAllArticlesParams
|
|
|
347
348
|
|
|
348
349
|
|
|
349
350
|
/**
|
|
350
|
-
* @summary
|
|
351
|
+
* @summary Retrieve a knowledge base article.
|
|
351
352
|
*/
|
|
352
353
|
export type articleGetArticleResponse200 = {
|
|
353
354
|
data: Article
|
|
@@ -394,7 +395,7 @@ export const articleGetArticle = async (articleUid: string | null, options?: Req
|
|
|
394
395
|
|
|
395
396
|
|
|
396
397
|
/**
|
|
397
|
-
* @summary
|
|
398
|
+
* @summary Retrieve all knowledge base categories.
|
|
398
399
|
*/
|
|
399
400
|
export type categoryGetAllCategoriesResponse200 = {
|
|
400
401
|
data: Category[]
|