@joai/sdk 2.2.0 → 2.3.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/dist/index.d.mts +21 -11
- package/dist/index.mjs +10 -4
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -471,7 +471,7 @@ type Contact = {
|
|
|
471
471
|
nextFollowUpAt?: string | null;
|
|
472
472
|
followUpNote?: string | null;
|
|
473
473
|
};
|
|
474
|
-
type ContactActivityType = 'note' | 'call' | 'meeting' | 'task' | 'update' | 'custom' | 'form' | 'loyalty';
|
|
474
|
+
type ContactActivityType = 'note' | 'call' | 'meeting' | 'task' | 'update' | 'custom' | 'form' | 'loyalty' | 'follow_up';
|
|
475
475
|
type ContactActivityAuthor = {
|
|
476
476
|
name: string;
|
|
477
477
|
imageUrl: string | null;
|
|
@@ -581,7 +581,7 @@ type TerminalPaymentIntent = {
|
|
|
581
581
|
payload?: string | null;
|
|
582
582
|
signature?: string | null;
|
|
583
583
|
};
|
|
584
|
-
type PlanFeature = 'general' | 'messages' | 'team-members' | 'teams' | 'support' | 'agent' | 'auto-mode' | 'cloud-sync' | 'wallet-cloud' | 'wallet-cloud-premium' | 'wallet-multi' | 'cards' | 'alerts' | 'advanced-commands' | 'tasks' | 'integrations' | 'message-history' | 'memory' | 'documents' | 'voice-input' | 'voice-live' | 'image-gen' | 'video-gen' | 'openclaw' | 'skills' | 'items' | 'context-length' | 'workspace-storage' | 'ingestions' | 'agent-email' | 'streak-freezes' | 'byok' | '
|
|
584
|
+
type PlanFeature = 'general' | 'messages' | 'team-members' | 'teams' | 'support' | 'agent' | 'auto-mode' | 'cloud-sync' | 'wallet-cloud' | 'wallet-cloud-premium' | 'wallet-multi' | 'cards' | 'alerts' | 'advanced-commands' | 'tasks' | 'integrations' | 'message-history' | 'memory' | 'documents' | 'voice-input' | 'voice-live' | 'image-gen' | 'video-gen' | 'openclaw' | 'skills' | 'items' | 'context-length' | 'workspace-storage' | 'ingestions' | 'agent-email' | 'streak-freezes' | 'byok' | 'phone-call' | 'phone-number' | 'custom-domain' | 'contacts' | 'links' | 'store-fee-rate' | 'store-fee-rate-physical' | 'tap-to-pay';
|
|
585
585
|
type PlanBenefit = {
|
|
586
586
|
label: Partial<Record<WarpLocale, string>>;
|
|
587
587
|
tip?: Partial<Record<WarpLocale, string>>;
|
|
@@ -607,7 +607,7 @@ type Plan = {
|
|
|
607
607
|
resource: 'plan';
|
|
608
608
|
id: string;
|
|
609
609
|
sku: string;
|
|
610
|
-
name:
|
|
610
|
+
name: string;
|
|
611
611
|
description: Partial<Record<WarpLocale, string>>;
|
|
612
612
|
price: number;
|
|
613
613
|
priceDisplay: string;
|
|
@@ -1113,6 +1113,10 @@ type WarpExecutionBackend = {
|
|
|
1113
1113
|
agent: AgentSimple | null;
|
|
1114
1114
|
createdAt: string;
|
|
1115
1115
|
};
|
|
1116
|
+
type PublicFormResults = {
|
|
1117
|
+
total: number;
|
|
1118
|
+
fields: Record<string, Record<string, number>>;
|
|
1119
|
+
};
|
|
1116
1120
|
type BrandSourceConfig = {
|
|
1117
1121
|
type: string;
|
|
1118
1122
|
chain?: string;
|
|
@@ -1513,6 +1517,7 @@ type AppointmentPolicy = {
|
|
|
1513
1517
|
conferenceEnabled: boolean | null;
|
|
1514
1518
|
serviceSelectionEnabled?: boolean | null;
|
|
1515
1519
|
paymentEnabled?: boolean | null;
|
|
1520
|
+
bookingCapacity?: number | null;
|
|
1516
1521
|
requireApproval?: boolean | null;
|
|
1517
1522
|
sync?: AppointmentPolicySync | null;
|
|
1518
1523
|
agent?: Agent | null;
|
|
@@ -1531,6 +1536,7 @@ type AppointmentBooking = {
|
|
|
1531
1536
|
attendeeEmail: string | null;
|
|
1532
1537
|
attendeeName: string | null;
|
|
1533
1538
|
configuration?: Configuration;
|
|
1539
|
+
quantity?: number;
|
|
1534
1540
|
};
|
|
1535
1541
|
type AppointmentRequest = {
|
|
1536
1542
|
id: string;
|
|
@@ -2997,6 +3003,7 @@ declare class AppointmentsResource {
|
|
|
2997
3003
|
timezone?: string;
|
|
2998
3004
|
limit?: number;
|
|
2999
3005
|
serviceSlug?: string;
|
|
3006
|
+
quantity?: number;
|
|
3000
3007
|
}): Promise<IAppResponse<AppointmentAvailability>>;
|
|
3001
3008
|
book(agentUuid: string, data: {
|
|
3002
3009
|
title: string;
|
|
@@ -3013,6 +3020,7 @@ declare class AppointmentsResource {
|
|
|
3013
3020
|
serviceSlug?: string;
|
|
3014
3021
|
appointmentRequestId?: string;
|
|
3015
3022
|
configuration?: Configuration;
|
|
3023
|
+
quantity?: number;
|
|
3016
3024
|
}): Promise<IAppResponse<AppointmentBooking>>;
|
|
3017
3025
|
reschedule(agentUuid: string, meetingId: string, data: {
|
|
3018
3026
|
scheduledAt: string;
|
|
@@ -3120,17 +3128,17 @@ declare class BillingResource {
|
|
|
3120
3128
|
deleteOrder(id: string): Promise<IAppResponse<void>>;
|
|
3121
3129
|
paymentAccount(team: string, provider: PaymentProvider): Promise<IAppResponse<PaymentAccount>>;
|
|
3122
3130
|
createPaymentAccountOnboarding(team: string, provider: PaymentProvider): Promise<IAppResponse<PaymentAccountOnboarding>>;
|
|
3123
|
-
updatePaymentAccount(team: string, provider:
|
|
3131
|
+
updatePaymentAccount(team: string, provider: PaymentProvider, input: {
|
|
3124
3132
|
providerAccountId: string;
|
|
3125
3133
|
chargesEnabled?: boolean;
|
|
3126
3134
|
payoutsEnabled?: boolean;
|
|
3127
3135
|
detailsSubmitted?: boolean;
|
|
3128
3136
|
requirements?: string[];
|
|
3129
3137
|
}): Promise<IAppResponse<PaymentAccount>>;
|
|
3130
|
-
createTerminalConnectionToken(team: string, provider:
|
|
3131
|
-
createTerminalPaymentIntent(orderId: string, provider:
|
|
3132
|
-
captureTerminalPaymentIntent(orderId: string, provider:
|
|
3133
|
-
cancelTerminalPaymentIntent(orderId: string, provider:
|
|
3138
|
+
createTerminalConnectionToken(team: string, provider: PaymentProvider): Promise<IAppResponse<TerminalConnectionToken>>;
|
|
3139
|
+
createTerminalPaymentIntent(orderId: string, provider: PaymentProvider): Promise<IAppResponse<TerminalPaymentIntent>>;
|
|
3140
|
+
captureTerminalPaymentIntent(orderId: string, provider: PaymentProvider, paymentIntentId: string): Promise<IAppResponse<void>>;
|
|
3141
|
+
cancelTerminalPaymentIntent(orderId: string, provider: PaymentProvider, paymentIntentId: string): Promise<IAppResponse<void>>;
|
|
3134
3142
|
cancelSubscription(teamSlug: string): Promise<IAppResponse<void>>;
|
|
3135
3143
|
resumeSubscription(teamSlug: string): Promise<IAppResponse<void>>;
|
|
3136
3144
|
verifyIap(receipt: IapReceipt, team: string, meta?: Record<string, string>): Promise<IAppResponse<PurchaseResult>>;
|
|
@@ -3251,7 +3259,7 @@ declare class ContactsResource {
|
|
|
3251
3259
|
}): Promise<IAppResponse<ContactActivity>>;
|
|
3252
3260
|
deleteActivity(id: string, activityId: string): Promise<IAppResponse<void>>;
|
|
3253
3261
|
send(id: string, message: string, subject?: string, integration?: IntegrationType | 'preferred'): Promise<IAppResponse<void>>;
|
|
3254
|
-
|
|
3262
|
+
setProperty(id: string, key: string, value: string): Promise<IAppResponse<void>>;
|
|
3255
3263
|
}
|
|
3256
3264
|
//#endregion
|
|
3257
3265
|
//#region src/resources/contracts.d.ts
|
|
@@ -3753,7 +3761,7 @@ declare class OrdersResource {
|
|
|
3753
3761
|
}): Promise<IAppResponse<Order>>;
|
|
3754
3762
|
convertToOrder(id: string): Promise<IAppResponse<Order>>;
|
|
3755
3763
|
delete(id: string): Promise<IAppResponse<void>>;
|
|
3756
|
-
pay(id: string, provider
|
|
3764
|
+
pay(id: string, provider?: PaymentProvider): Promise<IAppResponse<{
|
|
3757
3765
|
url: string;
|
|
3758
3766
|
}>>;
|
|
3759
3767
|
notify(id: string, type?: string): Promise<IAppResponse<{
|
|
@@ -4326,7 +4334,9 @@ declare class WarpsResource {
|
|
|
4326
4334
|
destroy(identifier: string): Promise<IAppResponse<void>>;
|
|
4327
4335
|
execute<C extends Record<string, unknown> = Record<string, never>>(identifier: string, inputs: string[], room?: string, context?: WarpExecutionContext<C>): Promise<IAppResponse<JsonValue>>;
|
|
4328
4336
|
executions(identifier: string, page?: number, perPage?: number): Promise<IAppResponse<WarpExecutionBackend[]>>;
|
|
4329
|
-
|
|
4337
|
+
clearExecutions(identifier: string): Promise<IAppResponse<void>>;
|
|
4338
|
+
clearExecution(identifier: string, executionId: string): Promise<IAppResponse<void>>;
|
|
4339
|
+
results(identifier: string): Promise<IAppResponse<PublicFormResults>>;
|
|
4330
4340
|
ensureLink(identifier: string): Promise<IAppResponse<Link>>;
|
|
4331
4341
|
install(identifier: string): Promise<IAppResponse<{
|
|
4332
4342
|
identifier: string;
|
package/dist/index.mjs
CHANGED
|
@@ -780,7 +780,7 @@ var ContactsResource = class {
|
|
|
780
780
|
integration
|
|
781
781
|
});
|
|
782
782
|
}
|
|
783
|
-
|
|
783
|
+
setProperty(id, key, value) {
|
|
784
784
|
return this.http.post(`contacts/${id}/properties`, {
|
|
785
785
|
key,
|
|
786
786
|
value
|
|
@@ -1563,7 +1563,7 @@ var OrdersResource = class {
|
|
|
1563
1563
|
return this.http.delete(`orders/${id}`);
|
|
1564
1564
|
}
|
|
1565
1565
|
pay(id, provider) {
|
|
1566
|
-
return this.http.post(`orders/${id}/pay`, { provider });
|
|
1566
|
+
return this.http.post(`orders/${id}/pay`, provider ? { provider } : {});
|
|
1567
1567
|
}
|
|
1568
1568
|
notify(id, type = "confirmation") {
|
|
1569
1569
|
return this.http.post(`orders/${id}/notify`, { type });
|
|
@@ -2384,8 +2384,14 @@ var WarpsResource = class {
|
|
|
2384
2384
|
executions(identifier, page = 1, perPage = 20) {
|
|
2385
2385
|
return this.http.get(`warps/${identifier}/executions?page=${page}&perPage=${perPage}`);
|
|
2386
2386
|
}
|
|
2387
|
-
|
|
2388
|
-
return this.http.
|
|
2387
|
+
clearExecutions(identifier) {
|
|
2388
|
+
return this.http.delete(`warps/${identifier}/executions`);
|
|
2389
|
+
}
|
|
2390
|
+
clearExecution(identifier, executionId) {
|
|
2391
|
+
return this.http.delete(`warps/${identifier}/executions/${executionId}`);
|
|
2392
|
+
}
|
|
2393
|
+
results(identifier) {
|
|
2394
|
+
return this.http.get(`warps/${identifier}/results`);
|
|
2389
2395
|
}
|
|
2390
2396
|
ensureLink(identifier) {
|
|
2391
2397
|
return this.http.post(`warps/${identifier}/link`, {});
|