Skip to content

Commit 9ed4efe

Browse files
feat(api): manual updates
1 parent 23517a4 commit 9ed4efe

7 files changed

Lines changed: 270 additions & 111 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 44
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lightspark%2Fgrid-3bb10cd66d5dd370dd6f6c0934f4bcf8b571cd375b09e7bdc1e430335683447c.yml
3-
openapi_spec_hash: 8283d72bae0aac6ade01772fda453181
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lightspark%2Fgrid-126d467753812e0eac7b168bf6172af32b9436b959b3b108cb418cc9247dfac1.yml
3+
openapi_spec_hash: 0a2ab5a0a02e51056122e301a1459db5
44
config_hash: 5d8241df181a5bbf53d8c8b2ddee1fc2

api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ Types:
294294
- <code><a href="./src/resources/webhooks.ts">BulkUploadWebhookEvent</a></code>
295295
- <code><a href="./src/resources/webhooks.ts">InvitationClaimedWebhookEvent</a></code>
296296
- <code><a href="./src/resources/webhooks.ts">KYCStatusWebhookEvent</a></code>
297+
- <code><a href="./src/resources/webhooks.ts">KYBStatusWebhookEvent</a></code>
297298
- <code><a href="./src/resources/webhooks.ts">InternalAccountStatusWebhookEvent</a></code>
298299
- <code><a href="./src/resources/webhooks.ts">UnwrapWebhookEvent</a></code>
299300

src/client.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ import {
101101
IncomingPaymentWebhookEvent,
102102
InternalAccountStatusWebhookEvent,
103103
InvitationClaimedWebhookEvent,
104+
KYBStatusWebhookEvent,
104105
KYCStatusWebhookEvent,
105106
OutgoingPaymentWebhookEvent,
106107
TestWebhookWebhookEvent,
@@ -1114,6 +1115,7 @@ export declare namespace LightsparkGrid {
11141115
type BulkUploadWebhookEvent as BulkUploadWebhookEvent,
11151116
type InvitationClaimedWebhookEvent as InvitationClaimedWebhookEvent,
11161117
type KYCStatusWebhookEvent as KYCStatusWebhookEvent,
1118+
type KYBStatusWebhookEvent as KYBStatusWebhookEvent,
11171119
type InternalAccountStatusWebhookEvent as InternalAccountStatusWebhookEvent,
11181120
type UnwrapWebhookEvent as UnwrapWebhookEvent,
11191121
};

src/resources/customers/customers.ts

Lines changed: 75 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -222,18 +222,6 @@ export interface Customer {
222222
*/
223223
isDeleted?: boolean;
224224

225-
/**
226-
* The current KYC status of a customer
227-
*/
228-
kycStatus?:
229-
| 'APPROVED'
230-
| 'REJECTED'
231-
| 'PENDING_REVIEW'
232-
| 'EXPIRED'
233-
| 'CANCELED'
234-
| 'MANUALLY_APPROVED'
235-
| 'MANUALLY_REJECTED';
236-
237225
/**
238226
* Last update timestamp
239227
*/
@@ -275,6 +263,18 @@ export namespace CustomerOneOf {
275263
*/
276264
fullName?: string;
277265

266+
/**
267+
* The current KYC status of a customer
268+
*/
269+
kycStatus?:
270+
| 'APPROVED'
271+
| 'REJECTED'
272+
| 'PENDING_REVIEW'
273+
| 'EXPIRED'
274+
| 'CANCELED'
275+
| 'MANUALLY_APPROVED'
276+
| 'MANUALLY_REJECTED';
277+
278278
/**
279279
* Country code (ISO 3166-1 alpha-2)
280280
*/
@@ -289,6 +289,19 @@ export namespace CustomerOneOf {
289289
beneficialOwners?: Array<BusinessCustomer.BeneficialOwner>;
290290

291291
businessInfo?: BusinessCustomer.BusinessInfo;
292+
293+
/**
294+
* The current KYB status of a business customer
295+
*/
296+
kybStatus?:
297+
| 'AWAITING_SUBMISSION'
298+
| 'APPROVED'
299+
| 'REJECTED'
300+
| 'PENDING_REVIEW'
301+
| 'EXPIRED'
302+
| 'CANCELED'
303+
| 'MANUALLY_APPROVED'
304+
| 'MANUALLY_REJECTED';
292305
}
293306

294307
export namespace BusinessCustomer {
@@ -415,6 +428,18 @@ export namespace CustomerCreateParams {
415428
*/
416429
fullName?: string;
417430

431+
/**
432+
* The current KYC status of a customer
433+
*/
434+
kycStatus?:
435+
| 'APPROVED'
436+
| 'REJECTED'
437+
| 'PENDING_REVIEW'
438+
| 'EXPIRED'
439+
| 'CANCELED'
440+
| 'MANUALLY_APPROVED'
441+
| 'MANUALLY_REJECTED';
442+
418443
/**
419444
* Country code (ISO 3166-1 alpha-2)
420445
*/
@@ -429,6 +454,19 @@ export namespace CustomerCreateParams {
429454
beneficialOwners?: Array<BusinessCustomerCreateRequest.BeneficialOwner>;
430455

431456
businessInfo?: BusinessCustomerCreateRequest.BusinessInfo;
457+
458+
/**
459+
* The current KYB status of a business customer
460+
*/
461+
kybStatus?:
462+
| 'AWAITING_SUBMISSION'
463+
| 'APPROVED'
464+
| 'REJECTED'
465+
| 'PENDING_REVIEW'
466+
| 'EXPIRED'
467+
| 'CANCELED'
468+
| 'MANUALLY_APPROVED'
469+
| 'MANUALLY_REJECTED';
432470
}
433471

434472
export namespace BusinessCustomerCreateRequest {
@@ -530,6 +568,18 @@ export namespace CustomerUpdateParams {
530568
*/
531569
fullName?: string;
532570

571+
/**
572+
* The current KYC status of a customer
573+
*/
574+
kycStatus?:
575+
| 'APPROVED'
576+
| 'REJECTED'
577+
| 'PENDING_REVIEW'
578+
| 'EXPIRED'
579+
| 'CANCELED'
580+
| 'MANUALLY_APPROVED'
581+
| 'MANUALLY_REJECTED';
582+
533583
/**
534584
* Country code (ISO 3166-1 alpha-2)
535585
*/
@@ -547,6 +597,19 @@ export namespace CustomerUpdateParams {
547597
* Additional information for business entities
548598
*/
549599
businessInfo?: BusinessCustomerUpdateRequest.BusinessInfo;
600+
601+
/**
602+
* The current KYB status of a business customer
603+
*/
604+
kybStatus?:
605+
| 'AWAITING_SUBMISSION'
606+
| 'APPROVED'
607+
| 'REJECTED'
608+
| 'PENDING_REVIEW'
609+
| 'EXPIRED'
610+
| 'CANCELED'
611+
| 'MANUALLY_APPROVED'
612+
| 'MANUALLY_REJECTED';
550613
}
551614

552615
export namespace BusinessCustomerUpdateRequest {

src/resources/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ export {
106106
type BulkUploadWebhookEvent,
107107
type InvitationClaimedWebhookEvent,
108108
type KYCStatusWebhookEvent,
109+
type KYBStatusWebhookEvent,
109110
type InternalAccountStatusWebhookEvent,
110111
type UnwrapWebhookEvent,
111112
} from './webhooks';

0 commit comments

Comments
 (0)