This repository was archived by the owner on Oct 15, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathVapi.java
More file actions
148 lines (112 loc) · 5.14 KB
/
Copy pathVapi.java
File metadata and controls
148 lines (112 loc) · 5.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
/**
* This file was auto-generated by Fern from our API Definition.
*/
package com.vapi.api;
import com.vapi.api.core.ClientOptions;
import com.vapi.api.core.Suppliers;
import com.vapi.api.resources.analytics.AnalyticsClient;
import com.vapi.api.resources.assistants.AssistantsClient;
import com.vapi.api.resources.calls.CallsClient;
import com.vapi.api.resources.campaigns.CampaignsClient;
import com.vapi.api.resources.chats.ChatsClient;
import com.vapi.api.resources.files.FilesClient;
import com.vapi.api.resources.knowledgebases.KnowledgeBasesClient;
import com.vapi.api.resources.logs.LogsClient;
import com.vapi.api.resources.phonenumbers.PhoneNumbersClient;
import com.vapi.api.resources.sessions.SessionsClient;
import com.vapi.api.resources.squads.SquadsClient;
import com.vapi.api.resources.testsuiteruns.TestSuiteRunsClient;
import com.vapi.api.resources.testsuites.TestSuitesClient;
import com.vapi.api.resources.testsuitetests.TestSuiteTestsClient;
import com.vapi.api.resources.tools.ToolsClient;
import com.vapi.api.resources.workflow.WorkflowClient;
import java.util.function.Supplier;
public class Vapi {
protected final ClientOptions clientOptions;
protected final Supplier<CallsClient> callsClient;
protected final Supplier<ChatsClient> chatsClient;
protected final Supplier<CampaignsClient> campaignsClient;
protected final Supplier<SessionsClient> sessionsClient;
protected final Supplier<AssistantsClient> assistantsClient;
protected final Supplier<PhoneNumbersClient> phoneNumbersClient;
protected final Supplier<ToolsClient> toolsClient;
protected final Supplier<FilesClient> filesClient;
protected final Supplier<KnowledgeBasesClient> knowledgeBasesClient;
protected final Supplier<WorkflowClient> workflowClient;
protected final Supplier<SquadsClient> squadsClient;
protected final Supplier<TestSuitesClient> testSuitesClient;
protected final Supplier<TestSuiteTestsClient> testSuiteTestsClient;
protected final Supplier<TestSuiteRunsClient> testSuiteRunsClient;
protected final Supplier<AnalyticsClient> analyticsClient;
protected final Supplier<LogsClient> logsClient;
public Vapi(ClientOptions clientOptions) {
this.clientOptions = clientOptions;
this.callsClient = Suppliers.memoize(() -> new CallsClient(clientOptions));
this.chatsClient = Suppliers.memoize(() -> new ChatsClient(clientOptions));
this.campaignsClient = Suppliers.memoize(() -> new CampaignsClient(clientOptions));
this.sessionsClient = Suppliers.memoize(() -> new SessionsClient(clientOptions));
this.assistantsClient = Suppliers.memoize(() -> new AssistantsClient(clientOptions));
this.phoneNumbersClient = Suppliers.memoize(() -> new PhoneNumbersClient(clientOptions));
this.toolsClient = Suppliers.memoize(() -> new ToolsClient(clientOptions));
this.filesClient = Suppliers.memoize(() -> new FilesClient(clientOptions));
this.knowledgeBasesClient = Suppliers.memoize(() -> new KnowledgeBasesClient(clientOptions));
this.workflowClient = Suppliers.memoize(() -> new WorkflowClient(clientOptions));
this.squadsClient = Suppliers.memoize(() -> new SquadsClient(clientOptions));
this.testSuitesClient = Suppliers.memoize(() -> new TestSuitesClient(clientOptions));
this.testSuiteTestsClient = Suppliers.memoize(() -> new TestSuiteTestsClient(clientOptions));
this.testSuiteRunsClient = Suppliers.memoize(() -> new TestSuiteRunsClient(clientOptions));
this.analyticsClient = Suppliers.memoize(() -> new AnalyticsClient(clientOptions));
this.logsClient = Suppliers.memoize(() -> new LogsClient(clientOptions));
}
public CallsClient calls() {
return this.callsClient.get();
}
public ChatsClient chats() {
return this.chatsClient.get();
}
public CampaignsClient campaigns() {
return this.campaignsClient.get();
}
public SessionsClient sessions() {
return this.sessionsClient.get();
}
public AssistantsClient assistants() {
return this.assistantsClient.get();
}
public PhoneNumbersClient phoneNumbers() {
return this.phoneNumbersClient.get();
}
public ToolsClient tools() {
return this.toolsClient.get();
}
public FilesClient files() {
return this.filesClient.get();
}
public KnowledgeBasesClient knowledgeBases() {
return this.knowledgeBasesClient.get();
}
public WorkflowClient workflow() {
return this.workflowClient.get();
}
public SquadsClient squads() {
return this.squadsClient.get();
}
public TestSuitesClient testSuites() {
return this.testSuitesClient.get();
}
public TestSuiteTestsClient testSuiteTests() {
return this.testSuiteTestsClient.get();
}
public TestSuiteRunsClient testSuiteRuns() {
return this.testSuiteRunsClient.get();
}
public AnalyticsClient analytics() {
return this.analyticsClient.get();
}
public LogsClient logs() {
return this.logsClient.get();
}
public static VapiBuilder builder() {
return new VapiBuilder();
}
}