@joai/sdk 2.1.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 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' | 'mcp' | 'phone-call' | 'phone-number' | 'custom-domain' | 'contacts' | 'links' | 'store-fee-rate' | 'store-fee-rate-physical' | 'tap-to-pay';
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: TranslatableValue;
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;
@@ -2715,64 +2721,67 @@ type RampProviderInfo = {
2715
2721
  active: boolean;
2716
2722
  }; //#endregion
2717
2723
  //#region src/warp-webhooks/types.d.ts
2718
- type AgentWebhookTriggerCondition = {
2724
+ type HookTriggerCondition = {
2719
2725
  path: string;
2720
2726
  operator: 'exists' | 'equals' | 'contains' | 'not_contains';
2721
2727
  value?: unknown;
2722
2728
  };
2723
- type AgentWebhookTriggerInput = string | {
2729
+ type HookTriggerInput = string | {
2724
2730
  source: 'payload';
2725
2731
  path: string;
2726
2732
  } | {
2727
2733
  source: 'literal';
2728
2734
  value: unknown;
2729
2735
  };
2730
- type AgentWebhookTrigger = {
2736
+ type HookTrigger = {
2731
2737
  event?: string;
2732
2738
  contract?: string;
2733
- when?: AgentWebhookTriggerCondition[];
2734
- inputs?: Record<string, AgentWebhookTriggerInput>;
2739
+ when?: HookTriggerCondition[];
2740
+ inputs?: Record<string, HookTriggerInput>;
2735
2741
  };
2736
- type AgentWebhookWarp = {
2737
- id: number;
2742
+ type WebHookTriggerEvent = 'agent.action' | 'agent.message' | 'agent.activity' | 'user.message' | 'external.message';
2743
+ type Hook = {
2744
+ id: string;
2738
2745
  source: string;
2739
2746
  event?: string | null;
2740
2747
  contract?: string | null;
2741
- next: string;
2748
+ trigger?: HookTrigger | null;
2749
+ triggerEvent?: string | null;
2750
+ next: string | null;
2751
+ name?: string | null;
2752
+ url?: string | null;
2753
+ headers?: Record<string, string> | null;
2754
+ verifySsl?: boolean;
2755
+ timeout?: number;
2756
+ maxRetries?: number;
2757
+ lastTriggeredAt?: string | null;
2758
+ description?: string | null;
2742
2759
  active: boolean;
2743
2760
  managed: boolean;
2744
- trigger?: AgentWebhookTrigger | null;
2745
2761
  warpIdentifier: string | null;
2746
2762
  createdAt: string;
2747
2763
  };
2748
- type ActivateAgentWebhookWarpPayload = {
2764
+ type CreateInternalHookPayload = {
2765
+ source: 'internal';
2749
2766
  warpIdentifier: string;
2750
- source?: 'internal';
2751
- trigger?: AgentWebhookTrigger;
2752
- }; //#endregion
2753
- //#region src/webhook/types.d.ts
2754
- type WebhookTriggerEvent = 'agent.action' | 'agent.message' | 'user.message';
2755
- type Webhook = {
2756
- id: string;
2767
+ trigger?: HookTrigger;
2768
+ };
2769
+ type CreateWebHookPayload = {
2770
+ source: 'web';
2757
2771
  name: string;
2758
2772
  url: string;
2759
- trigger: WebhookTriggerEvent;
2760
- headers: Record<string, string>;
2761
- description: string | null;
2762
- active: boolean;
2763
- verifySsl: boolean;
2764
- timeout: number;
2765
- maxRetries: number;
2766
- lastTriggeredAt: string | null;
2767
- createdAt: string;
2768
- updatedAt: string;
2769
- webhookableType: string;
2770
- webhookable?: {
2771
- type: string;
2772
- uuid: string;
2773
- name: string;
2774
- };
2775
- }; //#endregion
2773
+ trigger: WebHookTriggerEvent;
2774
+ headers?: Record<string, string>;
2775
+ description?: string;
2776
+ active?: boolean;
2777
+ verifySsl?: boolean;
2778
+ timeout?: number;
2779
+ maxRetries?: number;
2780
+ };
2781
+ type CreateWarpLinkedHookPayload = {
2782
+ warpIdentifier: string;
2783
+ };
2784
+ type CreateHookPayload = CreateInternalHookPayload | CreateWebHookPayload | CreateWarpLinkedHookPayload; //#endregion
2776
2785
  //#region src/workspace/types.d.ts
2777
2786
  type WorkspaceInfo = {
2778
2787
  id?: string;
@@ -2994,6 +3003,7 @@ declare class AppointmentsResource {
2994
3003
  timezone?: string;
2995
3004
  limit?: number;
2996
3005
  serviceSlug?: string;
3006
+ quantity?: number;
2997
3007
  }): Promise<IAppResponse<AppointmentAvailability>>;
2998
3008
  book(agentUuid: string, data: {
2999
3009
  title: string;
@@ -3010,6 +3020,7 @@ declare class AppointmentsResource {
3010
3020
  serviceSlug?: string;
3011
3021
  appointmentRequestId?: string;
3012
3022
  configuration?: Configuration;
3023
+ quantity?: number;
3013
3024
  }): Promise<IAppResponse<AppointmentBooking>>;
3014
3025
  reschedule(agentUuid: string, meetingId: string, data: {
3015
3026
  scheduledAt: string;
@@ -3117,17 +3128,17 @@ declare class BillingResource {
3117
3128
  deleteOrder(id: string): Promise<IAppResponse<void>>;
3118
3129
  paymentAccount(team: string, provider: PaymentProvider): Promise<IAppResponse<PaymentAccount>>;
3119
3130
  createPaymentAccountOnboarding(team: string, provider: PaymentProvider): Promise<IAppResponse<PaymentAccountOnboarding>>;
3120
- updatePaymentAccount(team: string, provider: string, input: {
3131
+ updatePaymentAccount(team: string, provider: PaymentProvider, input: {
3121
3132
  providerAccountId: string;
3122
3133
  chargesEnabled?: boolean;
3123
3134
  payoutsEnabled?: boolean;
3124
3135
  detailsSubmitted?: boolean;
3125
3136
  requirements?: string[];
3126
3137
  }): Promise<IAppResponse<PaymentAccount>>;
3127
- createTerminalConnectionToken(team: string, provider: string): Promise<IAppResponse<TerminalConnectionToken>>;
3128
- createTerminalPaymentIntent(orderId: string, provider: string): Promise<IAppResponse<TerminalPaymentIntent>>;
3129
- captureTerminalPaymentIntent(orderId: string, provider: string, paymentIntentId: string): Promise<IAppResponse<void>>;
3130
- cancelTerminalPaymentIntent(orderId: string, provider: string, paymentIntentId: string): Promise<IAppResponse<void>>;
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>>;
3131
3142
  cancelSubscription(teamSlug: string): Promise<IAppResponse<void>>;
3132
3143
  resumeSubscription(teamSlug: string): Promise<IAppResponse<void>>;
3133
3144
  verifyIap(receipt: IapReceipt, team: string, meta?: Record<string, string>): Promise<IAppResponse<PurchaseResult>>;
@@ -3248,7 +3259,7 @@ declare class ContactsResource {
3248
3259
  }): Promise<IAppResponse<ContactActivity>>;
3249
3260
  deleteActivity(id: string, activityId: string): Promise<IAppResponse<void>>;
3250
3261
  send(id: string, message: string, subject?: string, integration?: IntegrationType | 'preferred'): Promise<IAppResponse<void>>;
3251
- upsertProperty(id: string, key: string, value: string): Promise<IAppResponse<void>>;
3262
+ setProperty(id: string, key: string, value: string): Promise<IAppResponse<void>>;
3252
3263
  }
3253
3264
  //#endregion
3254
3265
  //#region src/resources/contracts.d.ts
@@ -3750,7 +3761,7 @@ declare class OrdersResource {
3750
3761
  }): Promise<IAppResponse<Order>>;
3751
3762
  convertToOrder(id: string): Promise<IAppResponse<Order>>;
3752
3763
  delete(id: string): Promise<IAppResponse<void>>;
3753
- pay(id: string, provider: string): Promise<IAppResponse<{
3764
+ pay(id: string, provider?: PaymentProvider): Promise<IAppResponse<{
3754
3765
  url: string;
3755
3766
  }>>;
3756
3767
  notify(id: string, type?: string): Promise<IAppResponse<{
@@ -4323,7 +4334,9 @@ declare class WarpsResource {
4323
4334
  destroy(identifier: string): Promise<IAppResponse<void>>;
4324
4335
  execute<C extends Record<string, unknown> = Record<string, never>>(identifier: string, inputs: string[], room?: string, context?: WarpExecutionContext<C>): Promise<IAppResponse<JsonValue>>;
4325
4336
  executions(identifier: string, page?: number, perPage?: number): Promise<IAppResponse<WarpExecutionBackend[]>>;
4326
- results(identifier: string, page?: number, perPage?: number): Promise<IAppResponse<WarpExecutionBackend[]>>;
4337
+ clearExecutions(identifier: string): Promise<IAppResponse<void>>;
4338
+ clearExecution(identifier: string, executionId: string): Promise<IAppResponse<void>>;
4339
+ results(identifier: string): Promise<IAppResponse<PublicFormResults>>;
4327
4340
  ensureLink(identifier: string): Promise<IAppResponse<Link>>;
4328
4341
  install(identifier: string): Promise<IAppResponse<{
4329
4342
  identifier: string;
@@ -4383,35 +4396,15 @@ declare class WarpsResource {
4383
4396
  fetchSourceSchemaFromUrl(url: string): Promise<IAppResponse<any>>;
4384
4397
  }
4385
4398
  //#endregion
4386
- //#region src/resources/webhooks.d.ts
4387
- declare class WebhooksResource {
4399
+ //#region src/resources/hooks.d.ts
4400
+ declare class HooksResource {
4388
4401
  private readonly http;
4389
4402
  constructor(http: IHttpService);
4390
- list(agentId: string): Promise<IAppResponse<Webhook[]>>;
4391
- create(agentId: string, name: string, url: string, trigger: WebhookTriggerEvent, options?: {
4392
- headers?: Record<string, string>;
4393
- description?: string;
4394
- active?: boolean;
4395
- verifySsl?: boolean;
4396
- timeout?: number;
4397
- maxRetries?: number;
4398
- }): Promise<IAppResponse<Webhook>>;
4399
- update(agentId: string, webhookId: string, updates: {
4400
- name?: string;
4401
- url?: string;
4402
- trigger?: WebhookTriggerEvent;
4403
- headers?: Record<string, string>;
4404
- description?: string;
4405
- active?: boolean;
4406
- verifySsl?: boolean;
4407
- timeout?: number;
4408
- maxRetries?: number;
4409
- }): Promise<IAppResponse<Webhook>>;
4410
- delete(agentId: string, webhookId: string): Promise<IAppResponse<void>>;
4411
- listWarps(agentId: string): Promise<IAppResponse<AgentWebhookWarp[]>>;
4412
- activateWarp(agentId: string, payload: ActivateAgentWebhookWarpPayload): Promise<IAppResponse<AgentWebhookWarp>>;
4413
- deactivateWarp(agentId: string, warpIdentifier: string): Promise<IAppResponse<void>>;
4414
- deleteWarpHook(agentId: string, webhookId: number): Promise<IAppResponse<void>>;
4403
+ list(agentId: string): Promise<IAppResponse<Hook[]>>;
4404
+ create(agentId: string, payload: CreateHookPayload): Promise<IAppResponse<Hook>>;
4405
+ toggle(agentId: string, hookId: string): Promise<IAppResponse<Hook>>;
4406
+ removeByHook(agentId: string, hookId: string): Promise<IAppResponse<void>>;
4407
+ removeByWarp(agentId: string, warpIdentifier: string): Promise<IAppResponse<void>>;
4415
4408
  }
4416
4409
  //#endregion
4417
4410
  //#region src/cache/types.d.ts
@@ -4499,7 +4492,7 @@ declare class JoAiClient {
4499
4492
  readonly users: UsersResource;
4500
4493
  readonly voice: VoiceResource;
4501
4494
  readonly wallets: WalletsResource;
4502
- readonly webhooks: WebhooksResource;
4495
+ readonly hooks: HooksResource;
4503
4496
  readonly workspace: WorkspaceResource;
4504
4497
  constructor(config: JoAiClientConfig);
4505
4498
  clearCache(): void;
@@ -4539,4 +4532,4 @@ declare class DistributionResource {
4539
4532
  private fetchDistribution;
4540
4533
  }
4541
4534
  //#endregion
4542
- export { AgentsResource, AlertsResource, ApiTokensResource, AppointmentsResource, type AttachedMedia, AuthResource, type AuthSendCodeRequest, type AuthVerifyResponse, type BackendWarp, type BackendWarpBrand, BillingAddressesResource, BillingResource, BlueprintsResource, type CacheConfig, CachedHttpService, CampaignsResource, CardsResource, CartsResource, ChangelogResource, CharactersResource, ContactsResource, ContractsResource, DeskResource, DistributionResource, DocumentsResource, ElementsResource, EntitiesResource, FlowsResource, GoalsResource, IngestionsResource, InquiriesResource, IntegrationsResource, IntentsResource, ItemsResource, JoAiClient, type JoAiClientConfig, KvResource, LinksResource, LoyaltyResource, McpResource, type MediaUploadType, MeetingsResource, MemoriesResource, MessagesResource, MissionsResource, NotificationsResource, OfficeResource, type OpeningHoursEntry, type OpeningHoursFormatOptions, OrdersResource, PersonaResource, type Product, type ProductVariation, ProductsResource, ProjectsResource, RemindersResource, SegmentsResource, ServicesResource, ShortcutsResource, SitesResource, SkillsResource, StatsResource, StoreResource, SubscriptionsResource, SwarmsResource, TagsResource, TasksResource, type TeamInviteInfo, TeamsResource, UpdatesResource, UpgradesResource, UsersResource, VoiceResource, WalletsResource, WarpsResource, WebhooksResource, WorkspaceResource, createClient, formatOpeningHours };
4535
+ export { AgentsResource, AlertsResource, ApiTokensResource, AppointmentsResource, type AttachedMedia, AuthResource, type AuthSendCodeRequest, type AuthVerifyResponse, type BackendWarp, type BackendWarpBrand, BillingAddressesResource, BillingResource, BlueprintsResource, type CacheConfig, CachedHttpService, CampaignsResource, CardsResource, CartsResource, ChangelogResource, CharactersResource, ContactsResource, ContractsResource, type CreateHookPayload, type CreateInternalHookPayload, type CreateWarpLinkedHookPayload, type CreateWebHookPayload, DeskResource, DistributionResource, DocumentsResource, ElementsResource, EntitiesResource, FlowsResource, GoalsResource, type Hook, type HookTrigger, type HookTriggerCondition, type HookTriggerInput, HooksResource, IngestionsResource, InquiriesResource, IntegrationsResource, IntentsResource, ItemsResource, JoAiClient, type JoAiClientConfig, KvResource, LinksResource, LoyaltyResource, McpResource, type MediaUploadType, MeetingsResource, MemoriesResource, MessagesResource, MissionsResource, NotificationsResource, OfficeResource, type OpeningHoursEntry, type OpeningHoursFormatOptions, OrdersResource, PersonaResource, type Product, type ProductVariation, ProductsResource, ProjectsResource, RemindersResource, SegmentsResource, ServicesResource, ShortcutsResource, SitesResource, SkillsResource, StatsResource, StoreResource, SubscriptionsResource, SwarmsResource, TagsResource, TasksResource, type TeamInviteInfo, TeamsResource, UpdatesResource, UpgradesResource, UsersResource, VoiceResource, WalletsResource, WarpsResource, type WebHookTriggerEvent, WorkspaceResource, createClient, formatOpeningHours };
package/dist/index.mjs CHANGED
@@ -780,7 +780,7 @@ var ContactsResource = class {
780
780
  integration
781
781
  });
782
782
  }
783
- upsertProperty(id, key, value) {
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
- results(identifier, page = 1, perPage = 50) {
2388
- return this.http.get(`warps/${identifier}/results?page=${page}&perPage=${perPage}`);
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`, {});
@@ -2455,39 +2461,25 @@ var WarpsResource = class {
2455
2461
  }
2456
2462
  };
2457
2463
  //#endregion
2458
- //#region src/resources/webhooks.ts
2459
- var WebhooksResource = class {
2464
+ //#region src/resources/hooks.ts
2465
+ var HooksResource = class {
2460
2466
  constructor(http) {
2461
2467
  this.http = http;
2462
2468
  }
2463
2469
  list(agentId) {
2464
- return this.http.get(`agents/${agentId}/webhooks`);
2465
- }
2466
- create(agentId, name, url, trigger, options) {
2467
- return this.http.post(`agents/${agentId}/webhooks`, {
2468
- name,
2469
- url,
2470
- trigger,
2471
- ...options
2472
- });
2473
- }
2474
- update(agentId, webhookId, updates) {
2475
- return this.http.patch(`agents/${agentId}/webhooks/${webhookId}`, updates);
2476
- }
2477
- delete(agentId, webhookId) {
2478
- return this.http.delete(`agents/${agentId}/webhooks/${webhookId}`);
2470
+ return this.http.get(`hooks?agent=${agentId}`);
2479
2471
  }
2480
- listWarps(agentId) {
2481
- return this.http.get(`agents/${agentId}/webhook-warps`);
2472
+ create(agentId, payload) {
2473
+ return this.http.post(`hooks?agent=${agentId}`, payload);
2482
2474
  }
2483
- activateWarp(agentId, payload) {
2484
- return this.http.post(`agents/${agentId}/webhook-warps`, payload);
2475
+ toggle(agentId, hookId) {
2476
+ return this.http.post(`hooks/${hookId}/toggle?agent=${agentId}`);
2485
2477
  }
2486
- deactivateWarp(agentId, warpIdentifier) {
2487
- return this.http.delete(`agents/${agentId}/webhook-warps?warpIdentifier=${encodeURIComponent(warpIdentifier)}`);
2478
+ removeByHook(agentId, hookId) {
2479
+ return this.http.delete(`hooks?agent=${agentId}&hookId=${encodeURIComponent(hookId)}`);
2488
2480
  }
2489
- deleteWarpHook(agentId, webhookId) {
2490
- return this.http.delete(`agents/${agentId}/webhook-warps?webhookId=${encodeURIComponent(webhookId)}`);
2481
+ removeByWarp(agentId, warpIdentifier) {
2482
+ return this.http.delete(`hooks?agent=${agentId}&warpIdentifier=${encodeURIComponent(warpIdentifier)}`);
2491
2483
  }
2492
2484
  };
2493
2485
  //#endregion
@@ -2690,7 +2682,7 @@ var JoAiClient = class {
2690
2682
  this.users = new UsersResource(this.http);
2691
2683
  this.voice = new VoiceResource(this.http);
2692
2684
  this.wallets = new WalletsResource(this.http);
2693
- this.webhooks = new WebhooksResource(this.http);
2685
+ this.hooks = new HooksResource(this.http);
2694
2686
  this.workspace = new WorkspaceResource(this.http);
2695
2687
  }
2696
2688
  clearCache() {
@@ -2736,4 +2728,4 @@ var DistributionResource = class {
2736
2728
  }
2737
2729
  };
2738
2730
  //#endregion
2739
- export { AgentsResource, AlertsResource, ApiTokensResource, AppointmentsResource, AuthResource, BillingAddressesResource, BillingResource, BlueprintsResource, CachedHttpService, CampaignsResource, CardsResource, CartsResource, ChangelogResource, CharactersResource, ContactsResource, ContractsResource, DeskResource, DistributionResource, DocumentsResource, ElementsResource, EntitiesResource, FlowsResource, GoalsResource, IngestionsResource, InquiriesResource, IntegrationsResource, IntentsResource, ItemsResource, JoAiClient, KvResource, LinksResource, LoyaltyResource, McpResource, MeetingsResource, MemoriesResource, MessagesResource, MissionsResource, NotificationsResource, OfficeResource, OrdersResource, PersonaResource, ProductsResource, ProjectsResource, RemindersResource, SegmentsResource, ServicesResource, ShortcutsResource, SitesResource, SkillsResource, StatsResource, StoreResource, SubscriptionsResource, SwarmsResource, TagsResource, TasksResource, TeamsResource, UpdatesResource, UpgradesResource, UsersResource, VoiceResource, WalletsResource, WarpsResource, WebhooksResource, WorkspaceResource, createClient, formatOpeningHours };
2731
+ export { AgentsResource, AlertsResource, ApiTokensResource, AppointmentsResource, AuthResource, BillingAddressesResource, BillingResource, BlueprintsResource, CachedHttpService, CampaignsResource, CardsResource, CartsResource, ChangelogResource, CharactersResource, ContactsResource, ContractsResource, DeskResource, DistributionResource, DocumentsResource, ElementsResource, EntitiesResource, FlowsResource, GoalsResource, HooksResource, IngestionsResource, InquiriesResource, IntegrationsResource, IntentsResource, ItemsResource, JoAiClient, KvResource, LinksResource, LoyaltyResource, McpResource, MeetingsResource, MemoriesResource, MessagesResource, MissionsResource, NotificationsResource, OfficeResource, OrdersResource, PersonaResource, ProductsResource, ProjectsResource, RemindersResource, SegmentsResource, ServicesResource, ShortcutsResource, SitesResource, SkillsResource, StatsResource, StoreResource, SubscriptionsResource, SwarmsResource, TagsResource, TasksResource, TeamsResource, UpdatesResource, UpgradesResource, UsersResource, VoiceResource, WalletsResource, WarpsResource, WorkspaceResource, createClient, formatOpeningHours };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joai/sdk",
3
- "version": "2.1.0",
3
+ "version": "2.3.0",
4
4
  "description": "JoAi public API SDK — build with your AI agents",
5
5
  "license": "MIT",
6
6
  "type": "module",